Permalink
Browse files

Fixed #19900 -- Updated admin buttons to use CSS3 rounded corners.

  • Loading branch information...
1 parent 5dbca13 commit fb052b528ad5f0a92f7420ab8ade16462b6435fd @pmourelle pmourelle committed with timgraham Feb 25, 2013
@@ -661,45 +661,34 @@ a.deletelink:hover {
.object-tools li {
display: block;
float: left;
- background: url(../img/tool-left.gif) 0 0 no-repeat;
- padding: 0 0 0 8px;
- margin-left: 2px;
+ margin-left: 5px;
height: 16px;
}
-.object-tools li:hover {
- background: url(../img/tool-left_over.gif) 0 0 no-repeat;
+.object-tools a {
+ border-radius: 15px;
}
.object-tools a:link, .object-tools a:visited {
display: block;
float: left;
color: white;
- padding: .1em 14px .1em 8px;
- height: 14px;
- background: #999 url(../img/tool-right.gif) 100% 0 no-repeat;
+ padding: .2em 10px;
+ background: #999;
}
.object-tools a:hover, .object-tools li:hover a {
- background: #5b80b2 url(../img/tool-right_over.gif) 100% 0 no-repeat;
+ background-color: #5b80b2;
}
.object-tools a.viewsitelink, .object-tools a.golink {
- background: #999 url(../img/tooltag-arrowright.gif) top right no-repeat;
- padding-right: 28px;
-}
-
-.object-tools a.viewsitelink:hover, .object-tools a.golink:hover {
- background: #5b80b2 url(../img/tooltag-arrowright_over.gif) top right no-repeat;
+ background: #999 url(../img/tooltag-arrowright.png) 95% center no-repeat;
+ padding-right: 26px;
}
.object-tools a.addlink {
- background: #999 url(../img/tooltag-add.gif) top right no-repeat;
- padding-right: 28px;
-}
-
-.object-tools a.addlink:hover {
- background: #5b80b2 url(../img/tooltag-add_over.gif) top right no-repeat;
+ background: #999 url(../img/tooltag-add.png) 95% center no-repeat;
+ padding-right: 26px;
}
/* OBJECT HISTORY */
@@ -837,4 +826,3 @@ table#change-history tbody th {
background: #eee url(../img/nav-bg.gif) bottom left repeat-x;
color: #666;
}
-
@@ -54,8 +54,8 @@
.selector ul.selector-chooser {
float: left;
width: 22px;
- height: 50px;
- background: url(../img/chooser-bg.gif) top center no-repeat;
+ background-color: #eee;
+ border-radius: 10px;
margin: 10em 5px 0 5px;
padding: 0;
}
@@ -169,7 +169,8 @@ a.active.selector-clearall {
height: 22px;
width: 50px;
margin: 0 0 3px 40%;
- background: url(../img/chooser_stacked-bg.gif) top center no-repeat;
+ background-color: #eee;
+ border-radius: 10px;
}
.stacked .selector-chooser li {
@@ -575,4 +576,3 @@ ul.orderer li.deleted:hover, ul.orderer li.deleted a.selector:hover {
font-size: 11px;
border-top: 1px solid #ddd;
}
-
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -72,6 +72,9 @@ Minor features
allowing the ``published`` element to be included in the feed (which
relies on ``pubdate``).
+* Buttons in :mod:`django.contrib.admin` now use the ``border-radius`` CSS
+ property for rounded corners rather than GIF background images.
+
Backwards incompatible changes in 1.7
=====================================

0 comments on commit fb052b5

Please sign in to comment.