Admin bar sprite cleanups. Props ocean90, darrenmeehan. see #15611

git-svn-id: https://develop.svn.wordpress.org/trunk@16897 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-12-13 20:35:28 +00:00
parent ab23780cbc
commit 5003828f16
9 changed files with 101 additions and 119 deletions

View File

@@ -1,13 +1,16 @@
#wpadminbar {
direction: ltr;
background: #666 url(../images/admin-bar-sprite.png?d=08102010) 0 -222px repeat-x;
background: #666;
background: -moz-linear-gradient(bottom, #666, #7f7f7f);
background: -webkit-gradient(linear, left bottom, left top, from(#666), to(#7f7f7f));
color: #ddd;
font: 12px Arial, Helvetica, sans-serif;
height: 28px;
left: 0;
margin: 0;
padding: 0;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 99999;
min-width: 960px;
@@ -75,6 +78,7 @@
border-top: none;
float: none;
}
#wpadminbar .quicklinks .menupop ul li {
float: none;
}
@@ -105,21 +109,25 @@
}
#wpadminbar .quicklinks li:hover {
background: #555 url(../images/admin-bar-sprite.png?d=08102010) 0 -282px repeat-x;
background: #555;
background: -moz-linear-gradient(bottom, #555, #3e3e3e);
background: -webkit-gradient(linear, left bottom, left top, from(#555), to(#3e3e3e));
}
#wpadminbar .quicklinks .menupop li:hover {
background: #888 url(../images/admin-bar-sprite.png?d=08102010) 0 -222px repeat-x;
background: #888;
background: -moz-linear-gradient(bottom, #888, #9d9d9d);
background: -webkit-gradient(linear, left bottom, left top, from(#888), to(#9d9d9d));
}
#wpadminbar .quicklinks .menupop a > span {
background: url(../images/admin-bar-sprite.png?d=08102010) 100% 100.4% no-repeat;
background: url(../images/admin-bar-sprite.png?d=11122010) right -58px no-repeat;
padding-right: .8em;
}
#wpadminbar .quicklinks .menupop ul li a > span {
display: block;
background: url(../images/admin-bar-sprite.png?d=08102010) 100% 97.2% no-repeat;
background: url(../images/admin-bar-sprite.png?d=11122010) right -29px no-repeat;
padding-right: 1.5em;
}
@@ -144,25 +152,20 @@
color: #000;
}
#wpadminbar .quicklinks li.ab-me a {
border: none;
background: url(../images/admin-bar-sprite.png?d=08102010) 100% 59.8% no-repeat;
}
#wpadminbar .quicklinks li.ab-my-account > a {
border-left: none;
background: url(../images/admin-bar-sprite.png?d=11122010) top left no-repeat;
}
#wpadminbar .quicklinks li.ab-me:hover {
background: none;
}
#wpadminbar .quicklinks li.ab-me a img.avatar {
#wpadminbar .quicklinks li.ab-my-account a img.avatar {
border: 1px solid #999;
margin: 5px 2px 0 -4px;
vertical-align: middle;
margin: -2px 23px 0 -5px;
background: #eee;
width: 16px;
height: 16px;
}
#wpadminbar .quicklinks li.ab-my-account ul {
left: 30px;
}
#wpadminbar .quicklinks .menupop li a img.blavatar {
@@ -177,62 +180,60 @@
}
#wpadminbar #adminbarsearch .adminbar-input {
color: #555;
width: 140px;
display: block;
float: left;
font: 12px Arial, Helvetica, sans-serif;
color: #555;
text-shadow: 0 1px 0 #fff;
border: 1px solid #626262;
padding: 2px 3px;
margin: 0 3px 0 0;
background: #ddd url(../images/admin-bar-sprite.png?d=08102010) top left no-repeat;
background-color: #ddd;
-moz-box-shadow: inset 2px 2px 1px #cdcdcd;
-webkit-box-shadow: inset 2px 2px 1px #cdcdcd;
box-shadow: inset 2px 2px 1px #cdcdcd;
-webkit-border-radius: 0;
-khtml-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
outline: none;
text-shadow: 0 1px 0 #fff;
}
#wpadminbar #adminbarsearch .adminbar-button {
position: relative;
border: 0;
cursor: pointer;
overflow: visible;
margin: 0 !important;
float: left;
background: url(../images/admin-bar-sprite.png?d=08102010) right -107px no-repeat;
padding: 0 14px 0 0;
text-align: center;
outline: none;
}
#wpadminbar #adminbarsearch .adminbar-button span {
position: relative;
display: block;
white-space: nowrap;
height: 19px;
background: url(../images/admin-bar-sprite.png?d=08102010) left -69px no-repeat;
padding: 3px 0 0 14px;
font: 12px Arial, Helvetica, sans-serif;
font-weight: bold;
font: bold 12px Arial, Helvetica, sans-serif;
color: #444;
text-shadow: 0px 1px 0px #eee;
cursor: pointer;
float: left;
background: #aaa;
background: -moz-linear-gradient(bottom, #aaa, #cecece);
background: -webkit-gradient(linear, left bottom, left top, from(#aaa), to(#cecece));
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
border: 1px solid #626262;
padding: 2px 13px;
margin: 0;
}
#wpadminbar #adminbarsearch .adminbar-button:active {
background-position: right -184px;
text-shadow: 0px 1px 0px #eee;
background: #a0a0a0;
background:-moz-linear-gradient(bottom, #a0a0a0, #c1c1c1);
background:-webkit-gradient(linear, left bottom, left top, from(#a0a0a0), to(#c1c1c1));
-moz-box-shadow: inset 1px 1px 1px #9b9b9b;
-webkit-box-shadow: inset 1px 1px 1px #9b9b9b;
box-shadow: inset 1px 1px 1px #9b9b9b;
}
#wpadminbar #adminbarsearch .adminbar-button:hover span {
#wpadminbar #adminbarsearch .adminbar-button:hover {
color: #000;
}
#wpadminbar #adminbarsearch .adminbar-button:active span {
background-position: left -146px;
}
#wpadminbar #adminbarsearch .adminbar-button::-moz-focus-inner {
border: none;
}