Sfoglia il codice sorgente

Made login form prettier

master
Adrian Short 12 anni fa
parent
commit
50627b0d6a
2 ha cambiato i file con 21 aggiunte e 5 eliminazioni
  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 Vedi File

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

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

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

.logo {
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 Vedi File

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

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


Caricamento…
Annulla
Salva