From fbd54942b5a804a2f5039b84b3985b8b3668a69c Mon Sep 17 00:00:00 2001 From: Matthew Harrison-Jones Date: Tue, 11 Jun 2013 17:42:56 +0100 Subject: [PATCH] Center Login container --- core/admin/assets/js/admin-ui-temp.js | 8 +++++++- core/admin/views/login.hbs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/admin/assets/js/admin-ui-temp.js b/core/admin/assets/js/admin-ui-temp.js index af4cc85841..51a7b4bebe 100644 --- a/core/admin/assets/js/admin-ui-temp.js +++ b/core/admin/assets/js/admin-ui-temp.js @@ -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 () { diff --git a/core/admin/views/login.hbs b/core/admin/views/login.hbs index 07fb7c8bc1..4b594ae960 100644 --- a/core/admin/views/login.hbs +++ b/core/admin/views/login.hbs @@ -1,5 +1,5 @@ {{!< default}} -
+