Reverted the default focus in username field
This commit is contained in:
parent
f339ddbec3
commit
d0389fd411
3 changed files with 4 additions and 6 deletions
|
@ -1327,8 +1327,6 @@ function user_login(&$form_state) {
|
||||||
$form['#validate'] = user_login_default_validators();
|
$form['#validate'] = user_login_default_validators();
|
||||||
$form['submit'] = array('#type' => 'submit', '#value' => t('Log in'), '#weight' => 2);
|
$form['submit'] = array('#type' => 'submit', '#value' => t('Log in'), '#weight' => 2);
|
||||||
|
|
||||||
drupal_add_js('$jq(function(){$("#edit-name").focus();});', 'inline', 'footer');
|
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -600,10 +600,10 @@ html.js .js-hide {
|
||||||
*/
|
*/
|
||||||
#user-pass #edit-submit {
|
#user-pass #edit-submit {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 30px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
#user-login #edit-submit {
|
#user-login #edit-submit {
|
||||||
margin-top: 30px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#user-admin-filter ul {
|
#user-admin-filter ul {
|
||||||
|
|
|
@ -63,8 +63,8 @@ body.not-logged-in[class*="page-user"] {
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
body.not-logged-in[class*="page-user"] #main {
|
body.not-logged-in[class*="page-user"] #main {
|
||||||
margin: 30px auto 0;
|
margin: 20px auto 0;
|
||||||
max-width: 400px;
|
max-width: 380px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background: rgba(252, 255, 255, 0.85);
|
background: rgba(252, 255, 255, 0.85);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue