Author: wilson
Date: 2008-09-20 17:33:24 -0500 (Sat, 20 Sep 2008)
New Revision: 9077

Modified:
   django/trunk/django/contrib/admin/media/css/global.css
Log:
Added a generic "button" class to the admin styles to allow applying the 
standard admin button styles to arbitrary elements in the future. Should have 
no effect on existing code.

Modified: django/trunk/django/contrib/admin/media/css/global.css
===================================================================
--- django/trunk/django/contrib/admin/media/css/global.css      2008-09-19 
21:04:48 UTC (rev 9076)
+++ django/trunk/django/contrib/admin/media/css/global.css      2008-09-20 
22:33:24 UTC (rev 9077)
@@ -87,10 +87,10 @@
 input[type=text], input[type=password], textarea, select, .vTextField { 
border:1px solid #ccc; }
 
 /*  FORM BUTTONS  */
-input[type=submit], input[type=button], .submit-row input { background:white 
url(../img/admin/nav-bg.gif) bottom repeat-x; padding:3px; color:black; 
border:1px solid #bbb; border-color:#ddd #aaa #aaa #ddd; }
-input[type=submit]:active, input[type=button]:active { 
background-image:url(../img/admin/nav-bg-reverse.gif); background-position:top; 
}
-input[type=submit].default, .submit-row input.default { border:2px solid 
#5b80b2; background:#7CA0C7 url(../img/admin/default-bg.gif) bottom repeat-x; 
font-weight:bold; color:white; float:right; }
-input[type=submit].default:active { 
background-image:url(../img/admin/default-bg-reverse.gif); 
background-position:top; }
+.button, input[type=submit], input[type=button], .submit-row input { 
background:white url(../img/admin/nav-bg.gif) bottom repeat-x; padding:3px; 
color:black; border:1px solid #bbb; border-color:#ddd #aaa #aaa #ddd; }
+.button:active, input[type=submit]:active, input[type=button]:active { 
background-image:url(../img/admin/nav-bg-reverse.gif); background-position:top; 
}
+.button.default, input[type=submit].default, .submit-row input.default { 
border:2px solid #5b80b2; background:#7CA0C7 url(../img/admin/default-bg.gif) 
bottom repeat-x; font-weight:bold; color:white; float:right; }
+.button.default:active, input[type=submit].default:active { 
background-image:url(../img/admin/default-bg-reverse.gif); 
background-position:top; }
 
 /* MODULES */
 .module { border:1px solid #ccc; margin-bottom:5px; background:white; }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to