Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit fb052b528ad5f0a92f7420ab8ade16462b6435fd 1 parent 5dbca13
@pedromagnus pedromagnus authored timgraham committed
View
32 django/contrib/admin/static/admin/css/base.css
@@ -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;
}
-
View
8 django/contrib/admin/static/admin/css/widgets.css
@@ -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;
}
-
View
BIN  django/contrib/admin/static/admin/img/chooser-bg.gif
Deleted file not rendered
View
BIN  django/contrib/admin/static/admin/img/chooser_stacked-bg.gif
Deleted file not rendered
View
BIN  django/contrib/admin/static/admin/img/tool-left.gif
Deleted file not rendered
View
BIN  django/contrib/admin/static/admin/img/tool-left_over.gif
Deleted file not rendered
View
BIN  django/contrib/admin/static/admin/img/tool-right.gif
Deleted file not rendered
View
BIN  django/contrib/admin/static/admin/img/tool-right_over.gif
Deleted file not rendered
View
BIN  django/contrib/admin/static/admin/img/tooltag-add.gif
Deleted file not rendered
View
BIN  django/contrib/admin/static/admin/img/tooltag-add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  django/contrib/admin/static/admin/img/tooltag-add_over.gif
Deleted file not rendered
View
BIN  django/contrib/admin/static/admin/img/tooltag-arrowright.gif
Deleted file not rendered
View
BIN  django/contrib/admin/static/admin/img/tooltag-arrowright.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  django/contrib/admin/static/admin/img/tooltag-arrowright_over.gif
Deleted file not rendered
View
3  docs/releases/1.7.txt
@@ -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
=====================================
Please sign in to comment.
Something went wrong with that request. Please try again.