Skip to content

Commit

Permalink
Merge pull request #140 from matthojo/Login-Screen
Browse files Browse the repository at this point in the history
Vertically center login form, fixes #134
  • Loading branch information
JohnONolan committed Jun 11, 2013
2 parents bdd29fa + fbd5494 commit 2be5ce7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion core/admin/assets/js/admin-ui-temp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// # Temporary Admin UI

/*global document, jQuery */
/*global window, document, jQuery */

(function ($) {
"use strict";
Expand Down Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion core/admin/views/login.hbs
Original file line number Diff line number Diff line change
@@ -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">
Expand Down

0 comments on commit 2be5ce7

Please sign in to comment.