Admin bar styles, take 1. Props iammmattthomas, see #18197.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f6b2da9388
commit
b188bea4c8
|
@ -163,10 +163,6 @@ function wp_admin_bar_my_sites_menu( $wp_admin_bar ) {
|
||||||
// if ( count( $wp_admin_bar->user->blogs ) <= 1 )
|
// if ( count( $wp_admin_bar->user->blogs ) <= 1 )
|
||||||
// return;
|
// return;
|
||||||
|
|
||||||
$grey_wp_logo_url = admin_url( 'images/wp-logo.png' );
|
|
||||||
|
|
||||||
$grey_wp_logo = '<img src="' . esc_url( $grey_wp_logo_url ) . '" alt="' . esc_attr__( 'Blavatar' ) . '" width="16" height="16" class="blavatar"/>';
|
|
||||||
|
|
||||||
if ( is_multisite() )
|
if ( is_multisite() )
|
||||||
$url = admin_url( 'my-sites.php' );
|
$url = admin_url( 'my-sites.php' );
|
||||||
else
|
else
|
||||||
|
@ -174,8 +170,11 @@ function wp_admin_bar_my_sites_menu( $wp_admin_bar ) {
|
||||||
|
|
||||||
$wp_admin_bar->add_menu( array(
|
$wp_admin_bar->add_menu( array(
|
||||||
'id' => 'my-blogs',
|
'id' => 'my-blogs',
|
||||||
'title' => $grey_wp_logo,
|
'title' => ' ',
|
||||||
'href' => $url,
|
'href' => $url,
|
||||||
|
'meta' => array(
|
||||||
|
'class' => 'wp-admin-bar-logo',
|
||||||
|
),
|
||||||
) );
|
) );
|
||||||
|
|
||||||
// Add network admin link
|
// Add network admin link
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,9 +7,9 @@
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
letter-spacing: normal;
|
letter-spacing: normal;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
font: normal 13px/28px Arial, Helvetica, sans-serif;
|
font: normal 12px/28px "Helvetica Neue", sans-serif;
|
||||||
color: #ddd;
|
color: #ccc;
|
||||||
text-shadow: #555 0px -1px 0px;
|
text-shadow: #444 0px -1px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar :before,
|
#wpadminbar :before,
|
||||||
|
@ -29,11 +29,8 @@
|
||||||
|
|
||||||
#wpadminbar {
|
#wpadminbar {
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
background-color: #777;
|
color: #ccc;
|
||||||
background-image: -moz-linear-gradient(bottom, #666, #7f7f7f);
|
font: normal 12px/28px "Helvetica Neue", sans-serif;
|
||||||
background-image: -webkit-gradient(linear, left bottom, left top, from(#666), to(#7f7f7f));
|
|
||||||
color: #ddd;
|
|
||||||
font: normal 12px/28px Arial, Helvetica, sans-serif;
|
|
||||||
height: 28px;
|
height: 28px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -41,6 +38,14 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 99999;
|
z-index: 99999;
|
||||||
min-width: 960px;
|
min-width: 960px;
|
||||||
|
|
||||||
|
background-color: #464646; /* Fallback */
|
||||||
|
background-image: -ms-linear-gradient(bottom, #464646, #373737 5px); /* IE10 */
|
||||||
|
background-image: -moz-linear-gradient(bottom, #464646, #373737 5px); /* Firefox */
|
||||||
|
background-image: -o-linear-gradient(bottom, #464646, #373737); /* Opera */
|
||||||
|
background-image: -webkit-gradient(linear, left bottom, left top, from(#464646), to(#373737)); /* old Webkit */
|
||||||
|
background-image: -webkit-linear-gradient(bottom, #373737, #464646 5px); /* new Webkit */
|
||||||
|
background-image: linear-gradient(bottom, #464646, #373737); /* proposed W3C Markup */
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar ul,
|
#wpadminbar ul,
|
||||||
|
@ -62,19 +67,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar .quicklinks > ul > li > a {
|
#wpadminbar .quicklinks > ul > li > a {
|
||||||
border-right: 1px solid #686868;
|
border-right: 1px solid #555;
|
||||||
border-left: 1px solid #808080;
|
border-left: 1px solid #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar .quicklinks > ul > li:last-child > a {
|
#wpadminbar .quicklinks > ul > li:last-child > a {
|
||||||
border-right: none;
|
border-right: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar .quicklinks > ul > li:hover > a,
|
|
||||||
#wpadminbar .quicklinks > ul > li.selected > a {
|
|
||||||
border-left-color: #707070;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wpadminbar .quicklinks a,
|
#wpadminbar .quicklinks a,
|
||||||
#wpadminbar .shortlink-input {
|
#wpadminbar .shortlink-input {
|
||||||
height: 28px;
|
height: 28px;
|
||||||
|
@ -89,14 +89,14 @@
|
||||||
|
|
||||||
#wpadminbar .quicklinks .menupop ul,
|
#wpadminbar .quicklinks .menupop ul,
|
||||||
#wpadminbar .shortlink-input {
|
#wpadminbar .shortlink-input {
|
||||||
-moz-box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
margin: 0 0 0 1px;
|
||||||
-webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
padding: 6px 0;
|
||||||
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
-moz-box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
||||||
|
-webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
||||||
|
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
||||||
background: #fff;
|
background: #fff;
|
||||||
background: rgba(255,255,255,0.97);
|
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border: 1px solid #dfdfdf;
|
|
||||||
border-top: none;
|
border-top: none;
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,9 @@
|
||||||
#wpadminbar .quicklinks .menupop ul li a span,
|
#wpadminbar .quicklinks .menupop ul li a span,
|
||||||
#wpadminbar .quicklinks .menupop ul li a strong,
|
#wpadminbar .quicklinks .menupop ul li a strong,
|
||||||
#wpadminbar .shortlink-input {
|
#wpadminbar .shortlink-input {
|
||||||
color: #555;
|
line-height: 26px;
|
||||||
|
height: 26px;
|
||||||
|
color: #21759B;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
min-width: 140px;
|
min-width: 140px;
|
||||||
|
@ -127,13 +129,6 @@
|
||||||
width: 200px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar .quicklinks .menupop ul li:hover > a,
|
|
||||||
#wpadminbar .quicklinks .menupop ul li:hover > a span,
|
|
||||||
#wpadminbar .quicklinks .menupop ul li:hover > a strong {
|
|
||||||
color: #fff;
|
|
||||||
text-shadow: #666 0px -1px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wpadminbar.nojq .quicklinks li:hover > ul,
|
#wpadminbar.nojq .quicklinks li:hover > ul,
|
||||||
#wpadminbar .quicklinks li.hover > ul {
|
#wpadminbar .quicklinks li.hover > ul {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -147,20 +142,28 @@
|
||||||
|
|
||||||
#wpadminbar .quicklinks li:hover,
|
#wpadminbar .quicklinks li:hover,
|
||||||
#wpadminbar .quicklinks .selected {
|
#wpadminbar .quicklinks .selected {
|
||||||
background: #555;
|
background-color: #fff;
|
||||||
background: -moz-linear-gradient(bottom, #555, #3e3e3e);
|
|
||||||
background: -webkit-gradient(linear, left bottom, left top, from(#555), to(#3e3e3e));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#wpadminbar .quicklinks li:hover a,
|
||||||
|
#wpadminbar .quicklinks .selected a,
|
||||||
|
#wpadminbar .quicklinks li:hover span,
|
||||||
|
#wpadminbar .quicklinks .selected span {
|
||||||
|
color: #333;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#wpadminbar .quicklinks .menupop li:hover {
|
#wpadminbar .quicklinks .menupop li:hover {
|
||||||
background: #888;
|
/* background: #888;
|
||||||
background: -moz-linear-gradient(bottom, #888, #9d9d9d);
|
background: -moz-linear-gradient(bottom, #888, #9d9d9d);
|
||||||
background: -webkit-gradient(linear, left bottom, left top, from(#888), to(#9d9d9d));
|
background: -webkit-gradient(linear, left bottom, left top, from(#888), to(#9d9d9d));*/
|
||||||
|
background: #f8fbfe;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar .quicklinks .menupop a > span {
|
#wpadminbar .quicklinks .menupop a > span {
|
||||||
display: inline;
|
display: inline;
|
||||||
background: url(../images/admin-bar-sprite.png?d=11122010) right -57px no-repeat;
|
background: url(../images/admin-bar-sprite.png?d=11122010) right -58px no-repeat;
|
||||||
padding-right: .8em;
|
padding-right: .8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,25 +198,22 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar .quicklinks li#wp-admin-bar-my-account > a {
|
#wpadminbar .quicklinks li#wp-admin-bar-my-account > a {
|
||||||
border-left: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar > a {
|
#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar > a {
|
||||||
border-left: none;
|
border: none;
|
||||||
background: url(../images/admin-bar-sprite.png?d=11122010) top right no-repeat;
|
|
||||||
margin-right: -7px;
|
|
||||||
padding-right: 48px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar > a img {
|
#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar > a img {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
border: 1px solid #999;
|
border: 1px solid #999;
|
||||||
position: absolute;
|
|
||||||
right: 6px;
|
|
||||||
top: 5px;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: #eee;
|
background: #eee;
|
||||||
|
line-height: 24px;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin: -2px 0 0 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar ul ul {
|
#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar ul ul {
|
||||||
|
@ -237,7 +237,7 @@
|
||||||
#wpadminbar .quicklinks .admin-bar-search:hover > a {
|
#wpadminbar .quicklinks .admin-bar-search:hover > a {
|
||||||
/* default borders */
|
/* default borders */
|
||||||
border-right: none;
|
border-right: none;
|
||||||
border-left: 1px solid #808080;
|
border-left: 1px solid #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar #adminbarsearch {
|
#wpadminbar #adminbarsearch {
|
||||||
|
@ -252,13 +252,13 @@
|
||||||
height: 23px;
|
height: 23px;
|
||||||
width: 140px;
|
width: 140px;
|
||||||
float: left;
|
float: left;
|
||||||
font: 13px Arial, Helvetica, sans-serif;
|
font: 12px "Helvetica Neue", sans-serif;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0 3px 0 24px;
|
padding: 0 3px 0 24px;
|
||||||
margin: 0 3px 0 0;
|
margin: 0 3px 0 0;
|
||||||
|
|
||||||
color: #ddd;
|
color: #ccc;
|
||||||
text-shadow: #555 0px -1px 0px;
|
text-shadow: #444 0px -1px 0px;
|
||||||
background-color: rgba( 255, 255, 255, 0 );
|
background-color: rgba( 255, 255, 255, 0 );
|
||||||
|
|
||||||
/* @todo: replace/move twenty eleven image to a core search icon. */
|
/* @todo: replace/move twenty eleven image to a core search icon. */
|
||||||
|
@ -301,10 +301,10 @@
|
||||||
|
|
||||||
/* Two rules to ensure browser recognition */
|
/* Two rules to ensure browser recognition */
|
||||||
#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder {
|
#wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder {
|
||||||
color: #e4e4e4;
|
color: #ddd;
|
||||||
}
|
}
|
||||||
#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder {
|
#wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder {
|
||||||
color: #e4e4e4;
|
color: #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -329,6 +329,21 @@
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WP Logo item
|
||||||
|
*/
|
||||||
|
|
||||||
|
#wpadminbar .wp-admin-bar-logo {
|
||||||
|
background: url(../images/wp-logo-white.png) no-repeat 8px 6px;
|
||||||
|
}
|
||||||
|
#wpadminbar .wp-admin-bar-logo > a {
|
||||||
|
padding-left: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpadminbar .wp-admin-bar-logo:hover {
|
||||||
|
background: url(../images/wp-logo-dark.png) no-repeat 8px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Comments bubble
|
* Comments bubble
|
||||||
*/
|
*/
|
||||||
|
@ -337,12 +352,12 @@
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
}
|
}
|
||||||
#wpadminbar .ab-comments-count {
|
#wpadminbar .ab-comments-count {
|
||||||
background: #ddd;
|
background: #ccc;
|
||||||
color: #555;
|
color: #555;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
height: 1.2em;
|
height: 1.2em;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
padding: 2px 8px 0;
|
padding: 0 8px 0;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
-moz-border-radius: 10px;
|
-moz-border-radius: 10px;
|
||||||
|
@ -352,7 +367,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar a:hover .ab-comments-count {
|
#wpadminbar a:hover .ab-comments-count {
|
||||||
background: #fff;
|
background: #bbb;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -362,11 +377,11 @@
|
||||||
bottom: -4px;
|
bottom: -4px;
|
||||||
left: 6px;
|
left: 6px;
|
||||||
/* Use transparent borders to form a triangle */
|
/* Use transparent borders to form a triangle */
|
||||||
border-left: 5px solid #ddd;
|
border-left: 5px solid #ccc;
|
||||||
border-bottom: 5px solid transparent;
|
border-bottom: 5px solid transparent;
|
||||||
}
|
}
|
||||||
#wpadminbar a:hover .ab-comments-arrow {
|
#wpadminbar a:hover .ab-comments-arrow {
|
||||||
border-left-color: #fff;
|
border-left-color: #bbb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
|
@ -423,7 +423,7 @@ function wp_default_styles( &$styles ) {
|
||||||
$styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.3u1' );
|
$styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.3u1' );
|
||||||
$styles->add( 'jcrop', '/wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );
|
$styles->add( 'jcrop', '/wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );
|
||||||
$styles->add( 'imgareaselect', '/wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.1' );
|
$styles->add( 'imgareaselect', '/wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.1' );
|
||||||
$styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20110915' );
|
$styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20110916' );
|
||||||
$styles->add( 'wp-jquery-ui-dialog', "/wp-includes/css/jquery-ui-dialog$suffix.css", array(), '20101224' );
|
$styles->add( 'wp-jquery-ui-dialog', "/wp-includes/css/jquery-ui-dialog$suffix.css", array(), '20101224' );
|
||||||
$styles->add( 'editor-buttons', "/wp-includes/css/editor-buttons$suffix.css", array(), '20110802' );
|
$styles->add( 'editor-buttons', "/wp-includes/css/editor-buttons$suffix.css", array(), '20110802' );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue