mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
magic-removal: Restyled login form to no longer require the entire forms stylesheet.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2626 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a30f87160f
commit
4b3bf0ac3c
13
django/contrib/admin/media/css/login.css
Normal file
13
django/contrib/admin/media/css/login.css
Normal file
@ -0,0 +1,13 @@
|
||||
@import url('base.css');
|
||||
@import url('layout.css');
|
||||
|
||||
/* LOGIN FORM */
|
||||
body.login { background:#eee; }
|
||||
.login #container { background:white; border:1px solid #ccc; width:28em; min-width:300px; margin-left:auto; margin-right:auto; margin-top:100px; }
|
||||
.login #content-main { width:100%; }
|
||||
.login form { margin-top:1em; }
|
||||
.login .form-row { padding:4px 0; float:left; width:100%; }
|
||||
.login .form-row label { float:left; width:7em; padding-right:0.5em; line-height:2em; text-align:right; font-size:1em; color:#333; }
|
||||
.login .form-row #id_username, .login .form-row #id_password { width:16em; }
|
||||
.login span.help { font-size:10px; display:block; }
|
||||
.login .submit-row { clear:both; padding:1em 0 0 7.4em; }
|
@ -1,6 +1,8 @@
|
||||
{% extends "admin/base_site" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/login.css{% endblock %}
|
||||
{% block bodyclass %}login{% endblock %}
|
||||
{% block content_title %}{% endblock %}
|
||||
{% block breadcrumbs %}{% endblock %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user