mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #140 from matthojo/Login-Screen
Vertically center login form, fixes #134
This commit is contained in:
commit
2be5ce72ae
2 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
// # Temporary Admin UI
|
// # Temporary Admin UI
|
||||||
|
|
||||||
/*global document, jQuery */
|
/*global window, document, jQuery */
|
||||||
|
|
||||||
(function ($) {
|
(function ($) {
|
||||||
"use strict";
|
"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
|
// EDITOR / NOTIFICATIONS
|
||||||
|
|
||||||
$('.entry-content header, .entry-preview header').on('click', function () {
|
$('.entry-content header, .entry-preview header').on('click', function () {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{!< default}}
|
{{!< default}}
|
||||||
<section class="login-box">
|
<section class="login-box js-login-container">
|
||||||
<form id="login" method="post">
|
<form id="login" method="post">
|
||||||
<div class="email-wrap">
|
<div class="email-wrap">
|
||||||
<input class="email" type="text" placeholder="Email Address" name="email">
|
<input class="email" type="text" placeholder="Email Address" name="email">
|
||||||
|
|
Loading…
Add table
Reference in a new issue