Browse Source

Made login form prettier

master
Adrian Short 12 years ago
parent
commit
50627b0d6a
2 changed files with 21 additions and 5 deletions
  1. +18
    -2
      app/assets/stylesheets/scaffolds.css.scss
  2. +3
    -3
      app/views/sessions/new.html.haml

+ 18
- 2
app/assets/stylesheets/scaffolds.css.scss View File

@@ -28,7 +28,8 @@ a {


div { div {
&.field, &.actions { &.field, &.actions {
margin-bottom: 10px; } }
margin-bottom: 30px;
} }


#notice { #notice {
color: green; } color: green; }
@@ -115,4 +116,19 @@ h2 {


.logo { .logo {
float: right; float: right;
}
}

#login input {
font-size: 1.8em;
padding: 10px;
}

#login label {
font-size: 1.5em;
margin: 20px 0 20px 0;
}

.actions input {
font-size: 1.0rem;
border-radius: 10px;
}

+ 3
- 3
app/views/sessions/new.html.haml View File

@@ -1,15 +1,15 @@
%h1 Log in %h1 Log in


= form_tag sessions_path do
= form_tag(sessions_path, :id => "login") do
.field .field
= label_tag :email = label_tag :email
%br %br
= text_field_tag :email, params[:email]
= text_field_tag :email, params[:email], :size => 40
.field .field
= label_tag :password = label_tag :password
%br %br
= password_field_tag :password
= password_field_tag :password, '', :size => 40
.field .field
= check_box_tag :remember_me, 1, params[:remember_me] = check_box_tag :remember_me, 1, params[:remember_me]


Loading…
Cancel
Save