Commit ae2b6065ce88cb9b31ff213cc9fd23fe6c10ad5c
1 parent
c231035e
Exists in
master
and in
1 other branch
Sign in input set type=email for mobile browsers keyboard
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
app/assets/stylesheets/errbit.css
| ... | ... | @@ -304,7 +304,7 @@ form label.inline { display: inline; } |
| 304 | 304 | form .checkbox label { display: inline; } |
| 305 | 305 | form .required label { padding-right: 20px; background: transparent url(images/icons/required.png) right 50% no-repeat; } |
| 306 | 306 | form .field_with_errors label { color: #900; } |
| 307 | -form input[type=text], form input[type=password] { | |
| 307 | +form input[type=text], form input[type=password], form input[type=email] { | |
| 308 | 308 | width: 96%; padding: 0.8em; |
| 309 | 309 | font-size: 1em; |
| 310 | 310 | color: #787878; border: 1px solid #C6C6C6; |
| ... | ... | @@ -316,7 +316,7 @@ form textarea { |
| 316 | 316 | } |
| 317 | 317 | form textarea.short { height: 8em; } |
| 318 | 318 | form textarea.supershort { height: 4em; } |
| 319 | -form input[type=text]:focus, form input[type=password]:focus, form textarea:focus { | |
| 319 | +form input[type=text]:focus, form input[type=password]:focus, form input[type=email]:focus, form textarea:focus { | |
| 320 | 320 | box-shadow: 0px 0px 4px #69C; |
| 321 | 321 | -moz-box-shadow: 0px 0px 4px #69C; |
| 322 | 322 | -webkit-box-shadow: 0px 0px 4px #69C | ... | ... |
app/views/devise/sessions/new.html.haml
| ... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 | = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| |
| 10 | 10 | .required |
| 11 | 11 | = f.label auth_key |
| 12 | - = f.text_field auth_key, :tabindex => 1 | |
| 12 | + = f.text_field auth_key, :type => :email, :tabindex => 1 | |
| 13 | 13 | |
| 14 | 14 | .required |
| 15 | 15 | = link_to 'forget it?', new_password_path(resource_name), :class => 'float-right', :id => "forgot_password" | ... | ... |