Skip to content

Commit

Permalink
Correcting login screen markup/styling issues, fixes TryGhost#133
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnONolan committed Jun 11, 2013
1 parent 0a00398 commit 501e869
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
9 changes: 7 additions & 2 deletions core/admin/assets/sass/layouts/login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@
background: $lightbrown;
}

main {
main {
top: 15px;
@include breakpoint($mobile) { top: 0; }
}

.login-box {
max-width: 530px;
margin: 240px auto;
margin: 240px auto; // TODO: Change this to proper vertical centering with JS
padding: 0;
text-align: center;
background: #fff;
Expand Down
24 changes: 13 additions & 11 deletions core/admin/views/login.hbs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{{!< default}}
<img class="login-logo" src="/core/admin/assets/img/logo.png" alt="" />
<form id="login" method="post">
<div class="email-wrap">
<input class="email" type="text" placeholder="Email Address" name="email">
</div>
<div class="password-wrap">
<input class="password" type="password" placeholder="Password" name="password">
</div>
<button class="button-save" type="submit">Log in</button>
<a href="/ghost/register/">Register</a>
</form>
<section class="login-box">
<img class="login-logo" src="/core/admin/assets/img/logo.png" alt="" />
<form id="login" method="post">
<div class="email-wrap">
<input class="email" type="text" placeholder="Email Address" name="email">
</div>
<div class="password-wrap">
<input class="password" type="password" placeholder="Password" name="password">
</div>
<button class="button-save" type="submit">Log in</button>
<a href="/ghost/register/">Register</a>
</form>
</section>

0 comments on commit 501e869

Please sign in to comment.