From ae2b6065ce88cb9b31ff213cc9fd23fe6c10ad5c Mon Sep 17 00:00:00 2001 From: Dmitry Gruzd Date: Tue, 9 Jul 2013 12:18:33 +0400 Subject: [PATCH] Sign in input set type=email for mobile browsers keyboard --- app/assets/stylesheets/errbit.css | 4 ++-- app/views/devise/sessions/new.html.haml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/errbit.css b/app/assets/stylesheets/errbit.css index d413753..064e37b 100644 --- a/app/assets/stylesheets/errbit.css +++ b/app/assets/stylesheets/errbit.css @@ -304,7 +304,7 @@ form label.inline { display: inline; } form .checkbox label { display: inline; } form .required label { padding-right: 20px; background: transparent url(images/icons/required.png) right 50% no-repeat; } form .field_with_errors label { color: #900; } -form input[type=text], form input[type=password] { +form input[type=text], form input[type=password], form input[type=email] { width: 96%; padding: 0.8em; font-size: 1em; color: #787878; border: 1px solid #C6C6C6; @@ -316,7 +316,7 @@ form textarea { } form textarea.short { height: 8em; } form textarea.supershort { height: 4em; } -form input[type=text]:focus, form input[type=password]:focus, form textarea:focus { +form input[type=text]:focus, form input[type=password]:focus, form input[type=email]:focus, form textarea:focus { box-shadow: 0px 0px 4px #69C; -moz-box-shadow: 0px 0px 4px #69C; -webkit-box-shadow: 0px 0px 4px #69C diff --git a/app/views/devise/sessions/new.html.haml b/app/views/devise/sessions/new.html.haml index 5fd9caa..ddfa010 100644 --- a/app/views/devise/sessions/new.html.haml +++ b/app/views/devise/sessions/new.html.haml @@ -9,7 +9,7 @@ = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| .required = f.label auth_key - = f.text_field auth_key, :tabindex => 1 + = f.text_field auth_key, :type => :email, :tabindex => 1 .required = link_to 'forget it?', new_password_path(resource_name), :class => 'float-right', :id => "forgot_password" -- libgit2 0.21.2