Center Login container

This commit is contained in:
Matthew Harrison-Jones 2013-06-11 17:42:56 +01:00
parent 1267f91935
commit fbd54942b5
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
// # Temporary Admin UI
/*global document, jQuery */
/*global window, document, jQuery */
(function ($) {
"use strict";
@ -31,6 +31,12 @@
}
});
// LOGIN SCREEN
var loginContainer = $(".js-login-container"),
marginTop = Math.round(($(window).height() - loginContainer.height()) / 2);
loginContainer.css('margin-top', marginTop);
// EDITOR / NOTIFICATIONS
$('.entry-content header, .entry-preview header').on('click', function () {

View File

@ -1,5 +1,5 @@
{{!< default}}
<section class="login-box">
<section class="login-box js-login-container">
<form id="login" method="post">
<div class="email-wrap">
<input class="email" type="text" placeholder="Email Address" name="email">