summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Mourelle <pedromagnus@gmail.com>2013-02-23 15:00:54 -0300
committerRamiro Morales <cramm0@gmail.com>2013-03-02 20:27:59 -0300
commit0868e5a8ac6811fffcb25e9dc8248d87d25abcd1 (patch)
tree575c0388627074f9817c8ec9058daeb433351d03
parent8e8c9b908a0fe0d2437fcf3f0378eb2a62b81986 (diff)
Fixed #19177 -- Better layout for admin login form field labels.
Thanks goes to void for the comprehensive report, to Pedro Mourelle for the fix and to Bryan Veloso, Ɓukasz Rekucki and Claude Paroz for the review. This fix includes the following changes: * Modified layout to top-aligned labels. * Added 'air' for inputs (the padding was really needed there.). It adjust good to zoom in/out. * Removed float attributes from label and inputs in login form. * Removed useless text-align property.
-rw-r--r--django/contrib/admin/static/admin/css/login.css11
1 files changed, 7 insertions, 4 deletions
diff --git a/django/contrib/admin/static/admin/css/login.css b/django/contrib/admin/static/admin/css/login.css
index 8872ade70b..a91de117b4 100644
--- a/django/contrib/admin/static/admin/css/login.css
+++ b/django/contrib/admin/static/admin/css/login.css
@@ -29,17 +29,20 @@ body.login {
}
.login .form-row label {
- float: left;
- width: 9em;
padding-right: 0.5em;
line-height: 2em;
- text-align: right;
font-size: 1em;
+ clear: both;
color: #333;
}
.login .form-row #id_username, .login .form-row #id_password {
- width: 14em;
+ clear: both;
+ padding: 6px;
+ width: 100%;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
}
.login span.help {