WordPress.org

Make WordPress Core

Changeset 16897


Ignore:
Timestamp:
12/13/2010 08:35:28 PM (7 years ago)
Author:
ryan
Message:

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

Location:
trunk/wp-includes
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r16862 r16897  
    6868
    6969/**
    70  * Show the logged in user's gravatar as a separator.
    71  *
    72  * @since 3.1.0
    73  */
    74 function wp_admin_bar_me_separator() {
    75     global $wp_admin_bar;
    76     $user_id = get_current_user_id();
    77     if ( 0 != $user_id )
    78         $wp_admin_bar->add_menu( array( 'id' => 'me', 'title' => get_avatar( get_current_user_id(), 16 ), 'href' => get_edit_profile_url( $user_id ), ) );
    79 }
    80 
    81 /**
    8270 * Add the "My Account" menu and all submenus.
    8371 *
     
    9179    if ( 0 != $user_id ) {
    9280        /* Add the 'My Account' menu */
    93         $wp_admin_bar->add_menu( array( 'id' => 'my-account', 'title' => $user_identity,  'href' => get_edit_profile_url( $user_id ) ) );
     81        $avatar = get_avatar( get_current_user_id(), 16 );
     82        $wp_admin_bar->add_menu( array( 'id' => 'my-account', 'title' => $avatar . $user_identity,  'href' => get_edit_profile_url( $user_id ) ) );
    9483
    9584        /* Add the "My Account" sub menus */
     
    148137
    149138/**
    150  * Show the blavatar of the current site as a separator.
    151  *
    152  * @since 3.1.0
    153  */
    154 function wp_admin_bar_blog_separator() {
    155     global $wp_admin_bar, $current_blog;
    156     $default = includes_url('images/wpmini-blue.png');
    157     $wp_admin_bar->add_menu( array( 'id' => 'blog', 'title' => '<img class="avatar" src="' . $default . '" alt="' . esc_attr__( 'Current site avatar' ) . '" width="16" height="16" />',  'href' => home_url(), ) );
    158 }
    159 
    160 
    161 /**
    162139 * Provide a shortlink.
    163140 *
     
    193170}
    194171
     172/**
     173 * Add "Add New" menu.
     174 *
     175 * @since 3.1.0
     176 */
    195177function wp_admin_bar_new_content_menu() {
    196178    global $wp_admin_bar;
     
    200182        if ( true !== $ptype_obj->show_in_menu || ! current_user_can( $ptype_obj->cap->edit_posts ) )
    201183            continue;
     184
    202185        $actions[ 'post-new.php?post_type=' . $ptype_obj->name ] = array( $ptype_obj->labels->singular_name, $ptype_obj->cap->edit_posts, 'new-' . $ptype_obj->name );
    203186    }
     
    213196}
    214197
     198/**
     199 * Add edit comments link with awaiting moderation count bubble.
     200 *
     201 * @since 3.1.0
     202 */
    215203function wp_admin_bar_comments_menu() {
    216204    global $wp_admin_bar;
     
    226214}
    227215
     216/**
     217 * Add "Appearance" menu with widget and nav menu submenu.
     218 *
     219 * @since 3.1.0
     220 */
    228221function wp_admin_bar_appearance_menu() {
    229222    global $wp_admin_bar;
     
    244237}
    245238
     239/**
     240 * Provide an update link if theme/plugin/core updates are available.
     241 *
     242 * @since 3.1.0
     243 */
    246244function wp_admin_bar_updates_menu() {
    247245    global $wp_admin_bar;
  • trunk/wp-includes/class-wp-admin-bar.php

    r16875 r16897  
    102102                <form action="<?php echo home_url(); ?>" method="get" id="adminbarsearch">
    103103                    <input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" />
    104                     <button type="submit" class="adminbar-button"><span><?php _e('Search'); ?></span></button>
     104                    <input type="submit" class="adminbar-button" value="<?php _e('Search'); ?>"/>
    105105                </form>
    106106            </div>
     
    175175
    176176    function add_menus() {
    177         add_action( 'admin_bar_menu', 'wp_admin_bar_me_separator', 10 );
    178         add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 20 );
    179         add_action( 'admin_bar_menu', 'wp_admin_bar_my_sites_menu', 30 );
    180         add_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 40 );
    181         add_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu', 90 );
    182         add_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 80 );
     177        add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 10 );
     178        add_action( 'admin_bar_menu', 'wp_admin_bar_my_sites_menu', 20 );
     179        add_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 30 );
     180        add_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu', 80 );
     181        add_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 70 );
    183182       
    184183        if ( !is_network_admin() && !is_user_admin() ) {
    185             add_action( 'admin_bar_menu', 'wp_admin_bar_new_content_menu', 50 );
    186             add_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 60 );
    187             add_action( 'admin_bar_menu', 'wp_admin_bar_appearance_menu', 70 );
     184            add_action( 'admin_bar_menu', 'wp_admin_bar_new_content_menu', 40 );
     185            add_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 50 );
     186            add_action( 'admin_bar_menu', 'wp_admin_bar_appearance_menu', 60 );
    188187        }
    189188       
  • trunk/wp-includes/css/admin-bar-rtl.css

    r16875 r16897  
    1 #wpadminbar{background:#666 url(../images/admin-bar-sprite-rtl.png?d=08102010) 0 -222px repeat-x;direction:rtl;font-family:Tahoma,Arial,sans-serif;right:0;left:auto;}#wpadminbar .quicklinks ul{text-align:right;}#wpadminbar .quicklinks ul li{float:right;}#wpadminbar .quicklinks>ul>li>a{border-left:1px solid #686868;border-right:1px solid #808080;}#wpadminbar .quicklinks>ul>li:last-child>a{border-left:none;border-right:1px solid #808080;}#wpadminbar .quicklinks>ul>li:hover>a{border-right-color:#707070;border-left-color:#686868;}#wpadminbar .quicklinks li.ab-me a img.avatar{margin:5px -4px 0 2px;}#wpadminbar .quicklinks .menupop li:hover>ul,#wpadminbar .quicklinks .menupop li.hover>ul{margin-right:100%;margin-left:0;}#wpadminbar .quicklinks .menupop a>span{background:url(../images/admin-bar-sprite-rtl.png?d=08102010) 0 100.4% no-repeat;padding-right:0;padding-left:.8em;}#wpadminbar .quicklinks .menupop ul li a>span{background:url(../images/admin-bar-sprite-rtl.png?d=08102010) 0 97.2% no-repeat;padding-right:0;padding-left:1.5em;}#wpadminbar .quicklinks a{font-family:Tahoma,Arial,Helvetica,sans-serif;}#wpadminbar .quicklinks li:hover{background:#555 url(../images/admin-bar-sprite-rtl.png?d=08102010) 0 -282px repeat-x;}#wpadminbar .quicklinks .menupop li:hover{background:#888 url(../images/admin-bar-sprite-rtl.png?d=08102010) 0 -222px repeat-x;}#wpadminbar .quicklinks .menupop li a img.blavatar{margin-right:0;margin-left:8px;}#wpadminbar .quicklinks li.ab-me>a{background:url(../images/admin-bar-sprite-rtl.png?d=08102010) 0 59.8% no-repeat;}#wpadminbar .quicklinks li.ab-my-account>a{border-right:none;border-left:1px solid #686868;}#wpadminbar #adminbarsearch{float:left;}#wpadminbar #adminbarsearch .adminbar-input{background:#ddd url(../images/admin-bar-sprite-rtl.png?d=08102010) right top no-repeat;float:right;font-family:Tahoma,Arial,Helvetica,sans-serif;margin-right:0;margin-left:3px;}#wpadminbar #adminbarsearch .adminbar-button{background:url(../images/admin-bar-sprite-rtl.png?d=08102010) left -107px no-repeat;float:right;padding:0 0 0 14px;}#wpadminbar #adminbarsearch .adminbar-button span{background:url(../images/admin-bar-sprite-rtl.png?d=08102010) right -69px no-repeat;padding:3px 14px 0 0;font-family:Tahoma,Arial,Helvetica,sans-serif;}#wpadminbar #adminbarsearch .adminbar-button:active{background-position:left -184px;}#wpadminbar #adminbarsearch .adminbar-button:active span{background-position:right -146px;}
     1#wpadminbar{background:#666 url(../images/admin-bar-sprite-rtl.png?d=08102010) 0 -222px repeat-x;direction:rtl;font-family:Tahoma,Arial,sans-serif;right:0;left:auto;}#wpadminbar .quicklinks ul{text-align:right;}#wpadminbar .quicklinks ul li{float:right;}#wpadminbar .quicklinks>ul>li>a{border-left:1px solid #686868;border-right:1px solid #808080;}#wpadminbar .quicklinks>ul>li:last-child>a{border-left:none;border-right:1px solid #808080;}#wpadminbar .quicklinks>ul>li:hover>a{border-right-color:#707070;border-left-color:#686868;}#wpadminbar .quicklinks li.ab-my-account a img.avatar{margin:-2px -5px 0 23px;}#wpadminbar .quicklinks li.ab-my-account ul{left:auto;right:30px;}#wpadminbar .quicklinks .menupop li:hover>ul,#wpadminbar .quicklinks .menupop li.hover>ul{margin-right:100%;margin-left:0;}#wpadminbar .quicklinks .menupop a>span{background:url(../images/admin-bar-sprite-rtl.png?d=11122010) left -58px no-repeat;padding-right:0;padding-left:.8em;}#wpadminbar .quicklinks .menupop ul li a>span{background:url(../images/admin-bar-sprite-rtl.png?d=11122010) left -29px no-repeat;padding-right:0;padding-left:1.5em;}#wpadminbar .quicklinks a{font-family:Tahoma,Arial,Helvetica,sans-serif;}#wpadminbar .quicklinks .menupop li a img.blavatar{margin-right:0;margin-left:8px;}#wpadminbar .quicklinks li.ab-my-account>a{background:url(../images/admin-bar-sprite-rtl.png?d=11122010) top right no-repeat;}#wpadminbar .quicklinks li.ab-my-account>a{border-right:none;border-left:1px solid #686868;}#wpadminbar #adminbarsearch{float:left;}#wpadminbar #adminbarsearch .adminbar-input{float:right;font-family:Tahoma,Arial,Helvetica,sans-serif;margin-right:0;margin-left:3px;-moz-box-shadow:inset 2px -2px 1px #cdcdcd;-webkit-box-shadow:inset -2px 2px 1px #cdcdcd;box-shadow:inset 2px -2px 1px #cdcdcd;}#wpadminbar #adminbarsearch .adminbar-button{float:right;font-family:Tahoma,Arial,Helvetica,sans-serif;}
  • trunk/wp-includes/css/admin-bar-rtl.dev.css

    r16875 r16897  
    3030}
    3131
    32 #wpadminbar .quicklinks li.ab-me a img.avatar {
    33     margin: 5px -4px 0 2px;
     32#wpadminbar .quicklinks li.ab-my-account a img.avatar  {
     33    margin: -2px -5px 0 23px;
     34}
     35
     36#wpadminbar .quicklinks li.ab-my-account ul {
     37    left: auto;
     38    right: 30px;
    3439}
    3540
     
    4146
    4247#wpadminbar .quicklinks .menupop a > span {
    43     background: url(../images/admin-bar-sprite-rtl.png?d=08102010) 0 100.4% no-repeat;
     48    background: url(../images/admin-bar-sprite-rtl.png?d=11122010) left -58px no-repeat;
    4449    padding-right: 0;
    4550    padding-left: .8em;
     
    4752
    4853#wpadminbar .quicklinks .menupop ul li a > span {
    49     background: url(../images/admin-bar-sprite-rtl.png?d=08102010) 0% 97.2% no-repeat;
     54    background: url(../images/admin-bar-sprite-rtl.png?d=11122010) left -29px no-repeat;
    5055    padding-right: 0;
    5156    padding-left: 1.5em;
     
    5661}
    5762
    58 #wpadminbar .quicklinks li:hover {
    59     background: #555 url(../images/admin-bar-sprite-rtl.png?d=08102010) 0 -282px repeat-x;
    60 }
    61 
    62 #wpadminbar .quicklinks .menupop li:hover {
    63     background: #888 url(../images/admin-bar-sprite-rtl.png?d=08102010) 0 -222px repeat-x;
    64 }
    65 
    6663#wpadminbar .quicklinks .menupop li a img.blavatar {
    6764    margin-right: 0;
     
    6966}
    7067
    71 #wpadminbar .quicklinks li.ab-me > a {
    72     background: url(../images/admin-bar-sprite-rtl.png?d=08102010) 0% 59.8% no-repeat;
     68#wpadminbar .quicklinks li.ab-my-account > a {
     69    background: url(../images/admin-bar-sprite-rtl.png?d=11122010) top right no-repeat;
    7370}
    7471
     
    8380
    8481#wpadminbar #adminbarsearch .adminbar-input {
    85     background: #ddd url(../images/admin-bar-sprite-rtl.png?d=08102010) right top no-repeat;
    8682    float: right;
    8783    font-family: Tahoma, Arial, Helvetica, sans-serif;
    8884    margin-right: 0;
    8985    margin-left: 3px;
     86    -moz-box-shadow: inset 2px -2px 1px #cdcdcd;
     87    -webkit-box-shadow: inset -2px 2px 1px #cdcdcd;
     88    box-shadow: inset 2px -2px 1px #cdcdcd;
    9089}
    9190
    9291#wpadminbar #adminbarsearch .adminbar-button {
    93     background: url(../images/admin-bar-sprite-rtl.png?d=08102010) left -107px no-repeat;
    9492    float: right;
    95     padding: 0 0 0 14px;
    96 }
    97 
    98 #wpadminbar #adminbarsearch .adminbar-button span {
    99     background: url(../images/admin-bar-sprite-rtl.png?d=08102010) right -69px no-repeat;
    100     padding: 3px 14px 0 0;
    10193    font-family: Tahoma, Arial, Helvetica, sans-serif;
    10294}
    103 
    104 #wpadminbar #adminbarsearch .adminbar-button:active {
    105     background-position: left -184px;
    106 }
    107 
    108 #wpadminbar #adminbarsearch .adminbar-button:active span {
    109     background-position: right -146px;
    110 }
  • trunk/wp-includes/css/admin-bar.css

    r16875 r16897  
    1 #wpadminbar{direction:ltr;background:#666 url(../images/admin-bar-sprite.png?d=08102010) 0 -222px repeat-x;color:#ddd;font:12px Arial,Helvetica,sans-serif;height:28px;left:0;margin:0;position:fixed;top:0;width:100%;z-index:99999;min-width:960px;}#wpadminbar a,#wpadminbar a:hover{outline:none;border:none;text-decoration:none;}#wpadminbar ul,#wpadminbar ul li{background:none;list-style:none;margin:0;padding:0;position:relative;z-index:99999;}#wpadminbar .quicklinks ul{text-align:left;}#wpadminbar .quicklinks ul li{float:left;}#wpadminbar .quicklinks>ul>li>a{border-right:1px solid #686868;border-left:1px solid #808080;}#wpadminbar .quicklinks>ul>li:last-child>a{border-right:none;}#wpadminbar .quicklinks>ul>li:hover>a{border-left-color:#707070;}#wpadminbar .quicklinks a{color:#ddd;height:28px;text-shadow:#555 0 -1px 0;display:block;font:13px Arial,Helvetica,sans-serif;font-weight:normal;letter-spacing:normal;padding:0 .85em;line-height:28px;}#wpadminbar .quicklinks .menupop ul{-moz-box-shadow:0 4px 8px rgba(0,0,0,0.1);-webkit-box-shadow:0 4px 8px rgba(0,0,0,0.1);box-shadow:0 4px 8px rgba(0,0,0,0.1);background:#fff;background:rgba(255,255,255,0.97);display:none;position:absolute;border:1px solid #dfdfdf;border-top:none;float:none;}#wpadminbar .quicklinks .menupop ul li{float:none;}#wpadminbar .quicklinks .menupop ul li a{color:#555;text-shadow:none;font-weight:normal;white-space:nowrap;overflow:hidden;width:160px;}#wpadminbar .quicklinks .menupop ul li:hover>a{color:#fff;text-shadow:#666 0 -1px 0;}#wpadminbar .quicklinks li:hover>ul,#wpadminbar .quicklinks li.hover>ul{display:block;}#wpadminbar .quicklinks .menupop li:hover>ul,#wpadminbar .quicklinks .menupop li.hover>ul{margin-left:100%;margin-top:-28px;}#wpadminbar .quicklinks li:hover{background:#555 url(../images/admin-bar-sprite.png?d=08102010) 0 -282px repeat-x;}#wpadminbar .quicklinks .menupop li:hover{background:#888 url(../images/admin-bar-sprite.png?d=08102010) 0 -222px repeat-x;}#wpadminbar .quicklinks .menupop a>span{background:url(../images/admin-bar-sprite.png?d=08102010) 100% 100.4% 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;padding-right:1.5em;}#wpadminbar .quicklinks a span#ab-awaiting-mod,#wpadminbar .quicklinks a span#ab-updates{background:#eee;color:#333;text-shadow:none;display:inline;padding:2px 5px;font-size:10px;font-weight:bold;-moz-border-radius:10px;-khtml-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;}#wpadminbar .quicklinks a:hover span#ab-awaiting-mod,#wpadminbar .quicklinks a:hover span#ab-updates{background:#fff;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;}#wpadminbar .quicklinks li.ab-me:hover{background:none;}#wpadminbar .quicklinks li.ab-me a img.avatar{border:1px solid #999;margin:5px 2px 0 -4px;background:#eee;width:16px;height:16px;}#wpadminbar .quicklinks .menupop li a img.blavatar{vertical-align:middle;margin-right:8px;}#wpadminbar #adminbarsearch{float:right;height:18px;padding:3px;}#wpadminbar #adminbarsearch .adminbar-input{color:#555;width:140px;display:block;float:left;font:12px Arial,Helvetica,sans-serif;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;-webkit-border-radius:0;-khtml-border-radius:0;-moz-border-radius:0;border-radius:0;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;color:#444;text-shadow:0 1px 0 #eee;}#wpadminbar #adminbarsearch .adminbar-button:active{background-position:right -184px;text-shadow:0 1px 0 #eee;}#wpadminbar #adminbarsearch .adminbar-button:hover span{color:#000;}#wpadminbar #adminbarsearch .adminbar-button:active span{background-position:left -146px;}#wpadminbar #adminbarsearch .adminbar-button::-moz-focus-inner{border:none;}* html #wpadminbar{overflow:hidden;position:absolute;}* html #wpadminbar .quicklinks ul li a{float:left;}* html #wpadminbar,* html #wpadminbar .menupop a span,* html #wpadminbar .quicklinks li,* html #wpadminbar .quicklinks li:hover{background-image:none;}
     1#wpadminbar{direction:ltr;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;margin:0;padding:0;position:fixed;top:0;left:0;width:100%;z-index:99999;min-width:960px;}#wpadminbar a,#wpadminbar a:hover{outline:none;border:none;text-decoration:none;}#wpadminbar ul,#wpadminbar ul li{background:none;list-style:none;margin:0;padding:0;position:relative;z-index:99999;}#wpadminbar .quicklinks ul{text-align:left;}#wpadminbar .quicklinks ul li{float:left;}#wpadminbar .quicklinks>ul>li>a{border-right:1px solid #686868;border-left:1px solid #808080;}#wpadminbar .quicklinks>ul>li:last-child>a{border-right:none;}#wpadminbar .quicklinks>ul>li:hover>a{border-left-color:#707070;}#wpadminbar .quicklinks a{color:#ddd;height:28px;text-shadow:#555 0 -1px 0;display:block;font:13px Arial,Helvetica,sans-serif;font-weight:normal;letter-spacing:normal;padding:0 .85em;line-height:28px;}#wpadminbar .quicklinks .menupop ul{-moz-box-shadow:0 4px 8px rgba(0,0,0,0.1);-webkit-box-shadow:0 4px 8px rgba(0,0,0,0.1);box-shadow:0 4px 8px rgba(0,0,0,0.1);background:#fff;background:rgba(255,255,255,0.97);display:none;position:absolute;border:1px solid #dfdfdf;border-top:none;float:none;}#wpadminbar .quicklinks .menupop ul li{float:none;}#wpadminbar .quicklinks .menupop ul li a{color:#555;text-shadow:none;font-weight:normal;white-space:nowrap;overflow:hidden;width:160px;}#wpadminbar .quicklinks .menupop ul li:hover>a{color:#fff;text-shadow:#666 0 -1px 0;}#wpadminbar .quicklinks li:hover>ul,#wpadminbar .quicklinks li.hover>ul{display:block;}#wpadminbar .quicklinks .menupop li:hover>ul,#wpadminbar .quicklinks .menupop li.hover>ul{margin-left:100%;margin-top:-28px;}#wpadminbar .quicklinks li:hover{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;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=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=11122010) right -29px no-repeat;padding-right:1.5em;}#wpadminbar .quicklinks a span#ab-awaiting-mod,#wpadminbar .quicklinks a span#ab-updates{background:#eee;color:#333;text-shadow:none;display:inline;padding:2px 5px;font-size:10px;font-weight:bold;-moz-border-radius:10px;-khtml-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;}#wpadminbar .quicklinks a:hover span#ab-awaiting-mod,#wpadminbar .quicklinks a:hover span#ab-updates{background:#fff;color:#000;}#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-my-account a img.avatar{border:1px solid #999;vertical-align:middle;margin:-2px 23px 0 -5px;background:#eee;}#wpadminbar .quicklinks li.ab-my-account ul{left:30px;}#wpadminbar .quicklinks .menupop li a img.blavatar{vertical-align:middle;margin-right:8px;}#wpadminbar #adminbarsearch{float:right;height:18px;padding:3px;}#wpadminbar #adminbarsearch .adminbar-input{width:140px;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-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;}#wpadminbar #adminbarsearch .adminbar-button{font:bold 12px Arial,Helvetica,sans-serif;color:#444;text-shadow:0 1px 0 #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:#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{color:#000;}#wpadminbar #adminbarsearch .adminbar-button::-moz-focus-inner{border:none;}* html #wpadminbar{overflow:hidden;position:absolute;}* html #wpadminbar .quicklinks ul li a{float:left;}* html #wpadminbar,* html #wpadminbar .menupop a span,* html #wpadminbar .quicklinks li,* html #wpadminbar .quicklinks li:hover{background-image:none;}
  • trunk/wp-includes/css/admin-bar.dev.css

    r16875 r16897  
    11#wpadminbar {
    22    direction: ltr;
    3     background: #666 url(../images/admin-bar-sprite.png?d=08102010) 0 -222px repeat-x;
     3    background: #666;
     4    background: -moz-linear-gradient(bottom,  #666,  #7f7f7f);
     5    background: -webkit-gradient(linear, left bottom, left top, from(#666), to(#7f7f7f));
    46    color: #ddd;
    57    font: 12px Arial, Helvetica, sans-serif;
    68    height: 28px;
    7     left: 0;
    89    margin: 0;
     10    padding: 0;
    911    position: fixed;
    1012    top: 0;
     13    left: 0;
    1114    width: 100%;
    1215    z-index: 99999;
     
    7679    float: none;
    7780}
     81
    7882#wpadminbar .quicklinks .menupop ul li {
    7983    float: none;
     
    106110
    107111#wpadminbar .quicklinks li:hover {
    108     background: #555 url(../images/admin-bar-sprite.png?d=08102010) 0 -282px repeat-x;
     112    background: #555;
     113    background: -moz-linear-gradient(bottom,  #555,  #3e3e3e);
     114    background: -webkit-gradient(linear, left bottom, left top, from(#555), to(#3e3e3e));   
    109115}
    110116
    111117#wpadminbar .quicklinks .menupop li:hover {
    112     background: #888 url(../images/admin-bar-sprite.png?d=08102010) 0 -222px repeat-x;
     118    background: #888;
     119    background: -moz-linear-gradient(bottom,  #888,  #9d9d9d);
     120    background: -webkit-gradient(linear, left bottom, left top, from(#888), to(#9d9d9d));
    113121}
    114122
    115123#wpadminbar .quicklinks .menupop a > span {
    116     background: url(../images/admin-bar-sprite.png?d=08102010) 100% 100.4% no-repeat;
     124    background: url(../images/admin-bar-sprite.png?d=11122010) right -58px no-repeat;
    117125    padding-right: .8em;
    118126}
     
    120128#wpadminbar .quicklinks .menupop ul li a > span {
    121129    display: block;
    122     background: url(../images/admin-bar-sprite.png?d=08102010) 100% 97.2% no-repeat;
     130    background: url(../images/admin-bar-sprite.png?d=11122010) right -29px no-repeat;
    123131    padding-right: 1.5em;
    124132}
     
    145153}
    146154
    147 #wpadminbar .quicklinks li.ab-me a {
    148     border: none;
    149     background: url(../images/admin-bar-sprite.png?d=08102010) 100% 59.8% no-repeat;
    150 }
    151 
    152155#wpadminbar .quicklinks li.ab-my-account > a {
    153156    border-left: none;
    154 }
    155 
    156 #wpadminbar .quicklinks li.ab-me:hover {
    157     background: none;
    158 }
    159 
    160 #wpadminbar .quicklinks li.ab-me a img.avatar {
     157    background: url(../images/admin-bar-sprite.png?d=11122010) top left no-repeat;
     158}
     159
     160#wpadminbar .quicklinks li.ab-my-account a img.avatar {
    161161    border: 1px solid #999;
    162     margin: 5px 2px 0 -4px;
     162    vertical-align: middle;
     163    margin: -2px 23px 0 -5px;
    163164    background: #eee;
    164     width: 16px;
    165     height: 16px;
     165}
     166
     167#wpadminbar .quicklinks li.ab-my-account ul {
     168    left: 30px;
    166169}
    167170
     
    178181
    179182#wpadminbar #adminbarsearch .adminbar-input {
     183    width: 140px;
     184    float: left;
     185    font: 12px Arial, Helvetica, sans-serif;
    180186    color: #555;
    181     width: 140px;
    182     display: block;
    183     float: left;
    184     font: 12px Arial, Helvetica, sans-serif;
     187    text-shadow: 0 1px 0 #fff;
    185188    border: 1px solid #626262;
    186189    padding: 2px 3px;
    187190    margin: 0 3px 0 0;
    188     background: #ddd url(../images/admin-bar-sprite.png?d=08102010) top left no-repeat;
     191    background-color: #ddd;
     192    -moz-box-shadow: inset 2px 2px 1px #cdcdcd;
     193    -webkit-box-shadow: inset 2px 2px 1px #cdcdcd;
     194    box-shadow: inset 2px 2px 1px #cdcdcd;
    189195    -webkit-border-radius: 0;
    190196    -khtml-border-radius: 0;
    191197    -moz-border-radius: 0;
    192198    border-radius: 0;
     199    -moz-box-sizing: border-box;
     200    -webkit-box-sizing: border-box;
     201    -ms-box-sizing: border-box;
     202    box-sizing: border-box;
    193203    outline: none;
    194     text-shadow: 0 1px 0 #fff;
    195204}
    196205
    197206#wpadminbar #adminbarsearch .adminbar-button {
    198     position: relative;
    199     border: 0;
    200     cursor: pointer;
    201     overflow: visible;
    202     margin: 0 !important;
    203     float: left;
    204     background: url(../images/admin-bar-sprite.png?d=08102010) right -107px no-repeat;
    205     padding: 0 14px 0 0;
    206     text-align: center;
    207     outline: none;
    208 }
    209 
    210 #wpadminbar #adminbarsearch .adminbar-button span {
    211     position: relative;
    212     display: block;
    213     white-space: nowrap;
    214     height: 19px;
    215     background: url(../images/admin-bar-sprite.png?d=08102010) left -69px no-repeat;
    216     padding: 3px 0 0 14px;
    217     font: 12px Arial, Helvetica, sans-serif;
    218     font-weight: bold;
     207    font: bold 12px Arial, Helvetica, sans-serif;
    219208    color: #444;
    220209    text-shadow: 0px 1px 0px #eee;
     210    cursor: pointer;
     211    float: left;
     212    background: #aaa;
     213    background: -moz-linear-gradient(bottom,  #aaa,  #cecece);
     214    background: -webkit-gradient(linear, left bottom, left top, from(#aaa), to(#cecece));
     215    -webkit-border-radius: 10px;
     216    -khtml-border-radius: 10px;
     217    -moz-border-radius: 10px;
     218    border-radius: 10px;
     219    border: 1px solid #626262;
     220    padding: 2px 13px;
     221    margin: 0;
    221222}
    222223
    223224#wpadminbar #adminbarsearch .adminbar-button:active {
    224     background-position: right -184px;
    225     text-shadow: 0px 1px 0px #eee;
    226 }
    227 
    228 #wpadminbar #adminbarsearch .adminbar-button:hover span {
     225    background: #a0a0a0;
     226    background:-moz-linear-gradient(bottom,  #a0a0a0,  #c1c1c1);
     227    background:-webkit-gradient(linear, left bottom, left top, from(#a0a0a0), to(#c1c1c1));
     228    -moz-box-shadow: inset 1px 1px 1px #9b9b9b;
     229    -webkit-box-shadow: inset 1px 1px 1px #9b9b9b;
     230    box-shadow: inset 1px 1px 1px #9b9b9b;
     231}
     232
     233#wpadminbar #adminbarsearch .adminbar-button:hover {
    229234    color: #000;
    230 }
    231 
    232 #wpadminbar #adminbarsearch .adminbar-button:active span {
    233     background-position: left -146px;
    234235}
    235236
  • trunk/wp-includes/script-loader.php

    r16887 r16897  
    517517    $styles->add( 'imgareaselect', '/wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.1' );
    518518    $styles->add( 'nav-menu', "/wp-admin/css/nav-menu$suffix.css", array(), '20100907' );
    519     $styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20101210' );
     519    $styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20101213' );
    520520    $styles->add( 'wp-jquery-ui-dialog', "/wp-includes/css/jquery-ui-dialog$suffix.css", array(), '20101119' );
    521521    $styles->add( 'wplink', "/wp-includes/js/tinymce/plugins/wplink/css/wplink$suffix.css", array(), '20101206' );
Note: See TracChangeset for help on using the changeset viewer.