mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +03:00
Merge pull request #140 from matthojo/Login-Screen
Vertically center login form, fixes #134
This commit is contained in:
commit
2be5ce72ae
@ -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 () {
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user