WordPress.org

Make WordPress Core

Changeset 16862


Ignore:
Timestamp:
12/10/10 18:47:21 (3 years ago)
Author:
nacin
Message:

Admin bar script/style improvements. props ocean90, see #15308.

Location:
trunk/wp-includes
Files:
7 edited

Legend:

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

    r16795 r16862  
    122122        // @todo Replace with some favicon lookup. 
    123123        //$blavatar = '<img src="' . esc_url( blavatar_url( blavatar_domain( $blog->siteurl ), 'img', 16, $default ) ) . '" alt="Blavatar" width="16" height="16" />'; 
    124         $blavatar = '<img src="' . esc_url($default) . '" alt="' . esc_attr__( 'Blavatar' ) . '" width="16" height="16" />'; 
     124        $blavatar = '<img src="' . esc_url($default) . '" alt="' . esc_attr__( 'Blavatar' ) . '" width="16" height="16" class="blavatar"/>'; 
    125125 
    126126        $marker = ''; 
    127         if ( strlen($blog->blogname) > 15 ) 
     127        if ( strlen($blog->blogname) > 18 ) 
    128128            $marker = '...'; 
    129129 
     
    131131            $blogname = $blog->domain; 
    132132        else 
    133             $blogname = substr( $blog->blogname, 0, 15 ) . $marker; 
     133            $blogname = substr( $blog->blogname, 0, 18 ) . $marker; 
    134134 
    135135        if ( ! isset( $blog->visible ) || $blog->visible === true ) { 
  • trunk/wp-includes/class-wp-admin-bar.php

    r16842 r16862  
    9090    function render() { 
    9191        ?> 
    92         <div id="wpadminbar" class="snap_nopreview no-grav"> 
     92        <div id="wpadminbar"> 
    9393            <div class="quicklinks"> 
    9494                <ul> 
  • trunk/wp-includes/css/admin-bar.css

    r16852 r16862  
    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 ul,#wpadminbar ul li{background:none;list-style:none;margin:0;padding:0;position:relative;z-index:99999;}#wpadminbar ul li img{vertical-align:middle!important;margin-right:8px!important;border:none!important;padding:0!important;}#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 a{outline:none;}#wpadminbar .avatar{border:1px solid #999!important;padding:0!important;margin:-3px 5px 0 0!important;vertical-align:middle;float:none;display:inline!important;}#wpadminbar li:hover>ul,#wpadminbar li.hover>ul{display:block;}#wpadminbar .menupop li:hover>ul,#wpadminbar .menupop li.hover>ul{margin-left:100%;margin-top:-28px;}#wpadminbar .menupop ul li a{color:#555!important;text-shadow:none;font-weight:normal;white-space:nowrap;}#wpadminbar .menupop a>span{background:url(../images/admin-bar-sprite.png?d=08102010) 100% 100.4% no-repeat;padding-right:.8em;line-height:28px;}#wpadminbar .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;line-height:28px;}#wpadminbar ul li a span#ab-awaiting-mod,#wpadminbar ul li a span#ab-updates{display:inline;background:#eee;color:#333;padding:1px 5px;font-size:10px;font-family:verdana;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;text-shadow:none;}#wpadminbar ul li a:hover span#ab-awaiting-mod,#wpadminbar ul li a:hover span#ab-updates{background:#fff;color:#000;}#wpadminbar .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);background:#fff;display:none;position:absolute;border:1px solid #dfdfdf;border-top:none!important;float:none;}html>body #wpadminbar .menupop ul{background:rgba(255,255,255,0.97);border-color:rgba(0,0,0,0.1);}#wpadminbar .menupop li{float:none;margin:0;padding:0;background-image:none;}#wpadminbar .quicklinks a{border:none;color:#ddd!important;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;text-decoration:none!important;}#wpadminbar .quicklinks li ul li a{overflow:hidden;width:160px;}#wpadminbar .quicklinks a:hover{text-shadow:#333 0 -1px 0;}#wpadminbar li:hover{background:#555 url(../images/admin-bar-sprite.png?d=08102010) 0 -282px repeat-x;}#wpadminbar li li:hover{color:#fff!important;background:#888 url(../images/admin-bar-sprite.png?d=08102010) 0 -222px repeat-x!important;text-shadow:#666 0 -1px 0;}#wpadminbar li li:hover>a{color:#fff!important;}.quicklinks ul{list-style:none;margin:0;padding:0;text-align:left;}.quicklinks ul li{float:left;margin:0;}#adminbarsearch{float:right;height:18px;padding:3px;}#adminbarsearch *{color:#555;font-size:12px;}#wpadminbar li.ab-me:hover{background:none;}#wpadminbar li.ab-me>a{line-height:18px!important;border:none!important;background:url(../images/admin-bar-sprite.png?d=08102010) 100% 59.8% no-repeat;height:28px;padding:0 1.15em 0 .7em;}#wpadminbar li.ab-blog>a:hover{background-position:67% 59.8%;}#wpadminbar li.ab-me img.avatar{margin:4px 0 0 0!important;vertical-align:middle;background:#eee;width:16px!important;height:16px!important;}#wpadminbar li.ab-my-account a{border-left:none!important;padding-left:.7em!important;margin-top:0!important;}#wpadminbar ul li img{width:16px!important;height:16px!important;}#wpadminbar #adminbar-search{line-height:normal!important;width:140px!important;margin-top:0!important;}.adminbar-input{display:block!important;float:left!important;font:12px Arial,Helvetica,sans-serif!important;border:1px solid #626262!important;padding:2px 3px!important;margin:0 3px 0 0!important;background:#ddd url(../images/admin-bar-sprite.png?d=08102010) top left no-repeat!important;-webkit-border-radius:0!important;-khtml-border-radius:0!important;-moz-border-radius:0!important;border-radius:0!important;outline:none;text-shadow:0 1px 0 #fff;}button.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;}button.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!important;font-weight:bold!important;color:#444!important;text-shadow:0 1px 0 #eee!important;}button.adminbar-button:active{background-position:right -184px!important;text-shadow:0 1px 0 #eee!important;}button.adminbar-button:hover span{color:#000!important;}button.adminbar-button:active span{background-position:left -146px!important;}button.adminbar-button::-moz-focus-inner{border:none;}@media screen and(-webkit-min-device-pixel-ratio:0){button.adminbar-button span{margin-top:-1px;}}* html #wpadminbar,* html #wpadminbar .menupop a span,* html #wpadminbar .menupop ul li a:hover,* html .quicklinks a:hover,* html #wpadminbar .menupop:hover{background-image:none!important;}* html #wpadminbar{overflow:hidden;position:absolute;}* html #wpadminbar .quicklinks ul li a{float:left;}* html #adminbarsearch-wrap{position:absolute;top:0;}* html #wpadminbar ul,* html #wpadminbar ul li{zoom:1;} 
     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;} 
  • trunk/wp-includes/css/admin-bar.dev.css

    r16852 r16862  
    1414} 
    1515 
     16#wpadminbar a, 
     17#wpadminbar a:hover { 
     18    outline: none; 
     19    border: none; 
     20    text-decoration: none; 
     21} 
     22 
    1623#wpadminbar ul,  
    1724#wpadminbar ul li { 
     
    2431} 
    2532 
    26 #wpadminbar ul li img { 
    27     vertical-align: middle !important; 
    28     margin-right: 8px !important; 
    29     border: none !important; 
    30     padding: 0 !important; 
     33#wpadminbar .quicklinks ul { 
     34    text-align: left; 
     35} 
     36 
     37#wpadminbar .quicklinks ul li { 
     38    float: left; 
    3139} 
    3240 
     
    4452} 
    4553 
    46 #wpadminbar a { 
    47     outline: none; 
    48 } 
    49  
    50 #wpadminbar .avatar { 
    51     border: 1px solid #999 !important; 
    52     padding: 0 !important; 
    53     margin: -3px 5px 0 0 !important; 
    54     vertical-align: middle; 
    55     float: none; 
    56     display: inline !important; 
    57 } 
    58  
    59 #wpadminbar li:hover > ul, 
    60 #wpadminbar li.hover > ul { 
    61     display: block; 
    62 } 
    63  
    64  
    65 #wpadminbar .menupop li:hover > ul, 
    66 #wpadminbar .menupop li.hover > ul { 
    67     margin-left: 100%; 
    68     margin-top: -28px; 
    69 } 
    70  
    71  
    72 #wpadminbar .menupop ul li a { 
    73     color: #555 !important; 
    74     text-shadow: none; 
    75     font-weight: normal; 
    76     white-space: nowrap; 
    77 } 
    78  
    79 #wpadminbar .menupop a > span { 
    80     background: url(../images/admin-bar-sprite.png?d=08102010) 100% 100.4% no-repeat; 
    81     padding-right: .8em; 
    82     line-height: 28px; 
    83 } 
    84  
    85 #wpadminbar .menupop ul li a > span { 
    86     display: block; 
    87     background: url(../images/admin-bar-sprite.png?d=08102010) 100% 97.2% no-repeat; 
    88     padding-right: 1.5em; 
    89     line-height: 28px; 
    90 } 
    91  
    92 #wpadminbar ul li a span#ab-awaiting-mod, 
    93 #wpadminbar ul li a span#ab-updates { 
    94     display: inline; 
    95     background: #eee; 
    96     color: #333; 
    97     padding: 1px 5px; 
    98     font-size: 10px; 
    99     font-family: verdana; 
    100     -moz-border-radius: 5px; 
    101     -webkit-border-radius: 5px; 
    102     border-radius: 5px; 
    103     text-shadow: none; 
    104 } 
    105  
    106 #wpadminbar ul li a:hover span#ab-awaiting-mod, 
    107 #wpadminbar ul li a:hover span#ab-updates  { 
    108     background: #fff; 
    109     color: #000; 
    110 } 
    111  
    112 #wpadminbar .menupop ul { 
    113     -moz-box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    114     -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    115     background: #fff; 
    116     display: none; 
    117     position: absolute; 
    118     border: 1px solid #dfdfdf; 
    119     border-top: none !important; 
    120     float: none; 
    121 } 
    122  
    123 html>body #wpadminbar .menupop ul { 
    124     background: rgba(255,255,255,0.97); 
    125     border-color: rgba(0,0,0,0.1); 
    126 } 
    127  
    128 #wpadminbar .menupop li { 
    129     float: none; 
    130     margin: 0; 
    131     padding: 0; 
    132     background-image: none; 
    133 } 
    134  
    13554#wpadminbar .quicklinks a { 
    136     border: none; 
    137     color: #ddd !important; 
     55    color: #ddd; 
    13856    height: 28px; 
    13957    text-shadow: #555 0px -1px 0px; 
     
    14462    padding: 0 0.85em; 
    14563    line-height: 28px; 
    146     text-decoration: none !important; 
    147 } 
    148  
    149 #wpadminbar .quicklinks li ul li a { 
     64} 
     65 
     66#wpadminbar .quicklinks .menupop ul { 
     67    -moz-box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
     68    -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
     69    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
     70    background: #fff; 
     71    background: rgba(255,255,255,0.97); 
     72    display: none; 
     73    position: absolute; 
     74    border: 1px solid #dfdfdf; 
     75    border-top: none; 
     76    float: none; 
     77} 
     78#wpadminbar .quicklinks .menupop ul li { 
     79    float: none; 
     80} 
     81 
     82#wpadminbar .quicklinks .menupop ul li a { 
     83    color: #555; 
     84    text-shadow: none; 
     85    font-weight: normal; 
     86    white-space: nowrap; 
    15087    overflow: hidden; 
    15188    width: 160px; 
    15289} 
    15390 
    154 #wpadminbar .quicklinks a:hover { 
    155     text-shadow: #333 0px -1px 0px; 
    156 } 
    157  
    158  
    159 #wpadminbar li:hover { 
     91#wpadminbar .quicklinks .menupop ul li:hover > a { 
     92    color: #fff; 
     93    text-shadow: #666 0px -1px 0px; 
     94} 
     95 
     96#wpadminbar .quicklinks li:hover > ul, 
     97#wpadminbar .quicklinks li.hover > ul { 
     98    display: block; 
     99} 
     100 
     101#wpadminbar .quicklinks .menupop li:hover > ul, 
     102#wpadminbar .quicklinks .menupop li.hover > ul { 
     103    margin-left: 100%; 
     104    margin-top: -28px; 
     105} 
     106 
     107#wpadminbar .quicklinks li:hover { 
    160108    background: #555 url(../images/admin-bar-sprite.png?d=08102010) 0 -282px repeat-x; 
    161109} 
    162110 
    163 #wpadminbar li li:hover { 
    164     color: #fff !important; 
    165     background: #888 url(../images/admin-bar-sprite.png?d=08102010) 0 -222px repeat-x !important; 
    166     text-shadow: #666 0px -1px 0px; 
    167 } 
    168  
    169 #wpadminbar li li:hover > a { 
    170     color: #fff !important; 
    171 } 
    172  
    173 .quicklinks ul { 
    174     list-style: none; 
    175     margin: 0; 
    176     padding: 0; 
    177     text-align: left; 
    178 } 
    179  
    180 .quicklinks ul li { 
    181     float: left; 
    182     margin: 0; 
    183 } 
    184  
    185  
    186 #adminbarsearch { 
     111#wpadminbar .quicklinks .menupop li:hover { 
     112    background: #888 url(../images/admin-bar-sprite.png?d=08102010) 0 -222px repeat-x; 
     113} 
     114 
     115#wpadminbar .quicklinks .menupop a > span { 
     116    background: url(../images/admin-bar-sprite.png?d=08102010) 100% 100.4% no-repeat; 
     117    padding-right: .8em; 
     118} 
     119 
     120#wpadminbar .quicklinks .menupop ul li a > span { 
     121    display: block; 
     122    background: url(../images/admin-bar-sprite.png?d=08102010) 100% 97.2% no-repeat; 
     123    padding-right: 1.5em; 
     124} 
     125 
     126#wpadminbar .quicklinks a span#ab-awaiting-mod, 
     127#wpadminbar .quicklinks a span#ab-updates { 
     128    background: #eee; 
     129    color: #333; 
     130    text-shadow: none; 
     131    display: inline; 
     132    padding: 2px 5px; 
     133    font-size: 10px; 
     134    font-weight: bold; 
     135    -moz-border-radius: 10px; 
     136    -khtml-border-radius: 10px; 
     137    -webkit-border-radius: 10px; 
     138    border-radius: 10px; 
     139} 
     140 
     141#wpadminbar .quicklinks a:hover span#ab-awaiting-mod, 
     142#wpadminbar .quicklinks a:hover span#ab-updates  { 
     143    background: #fff; 
     144    color: #000; 
     145} 
     146 
     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 
     152#wpadminbar .quicklinks li.ab-my-account a { 
     153    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 { 
     161    border: 1px solid #999; 
     162    margin: 5px 2px 0 -4px; 
     163    background: #eee; 
     164    width: 16px; 
     165    height: 16px; 
     166} 
     167 
     168#wpadminbar .quicklinks .menupop li a img.blavatar { 
     169    vertical-align: middle; 
     170    margin-right: 8px; 
     171} 
     172 
     173#wpadminbar #adminbarsearch { 
    187174    float: right; 
    188175    height: 18px; 
     
    190177} 
    191178 
    192 #adminbarsearch * { 
     179#wpadminbar #adminbarsearch .adminbar-input { 
    193180    color: #555; 
    194     font-size: 12px; 
    195 } 
    196  
    197 #wpadminbar li.ab-me:hover { 
    198     background: none; 
    199 } 
    200  
    201 #wpadminbar li.ab-me > a { 
    202     line-height: 18px !important; 
    203     border: none !important; 
    204     background: url(../images/admin-bar-sprite.png?d=08102010) 100% 59.8% no-repeat; 
    205     height: 28px; 
    206     padding: 0 1.15em 0 0.7em; 
    207 } 
    208  
    209 #wpadminbar li.ab-blog > a:hover { 
    210     background-position: 67% 59.8%; 
    211 } 
    212  
    213 #wpadminbar li.ab-me img.avatar { 
    214     margin: 4px 0 0 0 !important; 
    215     vertical-align: middle; 
    216     background: #eee; 
    217     width: 16px !important; 
    218     height: 16px !important; 
    219 } 
    220  
    221 #wpadminbar li.ab-my-account a { 
    222     border-left: none !important; 
    223     padding-left: 0.7em !important; 
    224     margin-top: 0 !important; 
    225 } 
    226  
    227 #wpadminbar ul li img { 
    228     width: 16px !important; 
    229     height: 16px !important; 
    230 } 
    231  
    232 #wpadminbar #adminbar-search { 
    233     line-height: normal !important; 
    234     width: 140px !important; 
    235     margin-top: 0px !important; 
    236 } 
    237  
    238 .adminbar-input { 
    239     display: block !important; 
    240     float: left !important; 
    241     font: 12px Arial, Helvetica, sans-serif !important; 
    242     border: 1px solid #626262 !important; 
    243     padding: 2px 3px !important; 
    244     margin: 0 3px 0 0 !important; 
    245     background: #ddd url(../images/admin-bar-sprite.png?d=08102010) top left no-repeat !important; 
    246     -webkit-border-radius: 0 !important; 
    247     -khtml-border-radius: 0 !important; 
    248     -moz-border-radius: 0 !important; 
    249     border-radius: 0 !important; 
     181    width: 140px; 
     182    display: block; 
     183    float: left; 
     184    font: 12px Arial, Helvetica, sans-serif; 
     185    border: 1px solid #626262; 
     186    padding: 2px 3px; 
     187    margin: 0 3px 0 0; 
     188    background: #ddd url(../images/admin-bar-sprite.png?d=08102010) top left no-repeat; 
     189    -webkit-border-radius: 0; 
     190    -khtml-border-radius: 0; 
     191    -moz-border-radius: 0; 
     192    border-radius: 0; 
    250193    outline: none; 
    251194    text-shadow: 0 1px 0 #fff; 
    252195} 
    253196 
    254 button.adminbar-button { 
     197#wpadminbar #adminbarsearch .adminbar-button { 
    255198    position: relative; 
    256199    border: 0; 
     
    262205    padding: 0 14px 0 0; 
    263206    text-align: center; 
    264 } 
    265  
    266 button.adminbar-button span { 
     207    outline: none; 
     208} 
     209 
     210#wpadminbar #adminbarsearch .adminbar-button span { 
    267211    position: relative; 
    268212    display: block; 
     
    271215    background: url(../images/admin-bar-sprite.png?d=08102010) left -69px no-repeat; 
    272216    padding: 3px 0 0 14px; 
    273     font: 12px Arial, Helvetica, sans-serif !important; 
    274     font-weight: bold !important; 
    275     color: #444 !important; 
    276     text-shadow: 0px 1px 0px #eee !important; 
    277 } 
    278  
    279 button.adminbar-button:active { 
    280     background-position: right -184px !important; 
    281     text-shadow: 0px 1px 0px #eee !important; 
    282 } 
    283  
    284 button.adminbar-button:hover span { 
    285     color: #000 !important; 
    286 } 
    287  
    288 button.adminbar-button:active span { 
    289     background-position: left -146px !important; 
    290 } 
    291  
    292 button.adminbar-button::-moz-focus-inner { 
     217    font: 12px Arial, Helvetica, sans-serif; 
     218    font-weight: bold; 
     219    color: #444; 
     220    text-shadow: 0px 1px 0px #eee; 
     221} 
     222 
     223#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 { 
     229    color: #000; 
     230} 
     231 
     232#wpadminbar #adminbarsearch .adminbar-button:active span { 
     233    background-position: left -146px; 
     234} 
     235 
     236#wpadminbar #adminbarsearch .adminbar-button::-moz-focus-inner { 
    293237    border: none; 
    294 } 
    295  
    296 @media screen and (-webkit-min-device-pixel-ratio: 0) { 
    297     button.adminbar-button span { 
    298         margin-top: -1px; 
    299     } 
    300  
    301238} 
    302239 
     
    305242 * IE 6-targeted rules 
    306243 */ 
    307  
    308 * html #wpadminbar, 
    309 * html #wpadminbar .menupop a span, 
    310 * html #wpadminbar .menupop ul li a:hover, 
    311 * html .quicklinks a:hover, 
    312 * html #wpadminbar .menupop:hover { 
    313     background-image: none !important; 
    314 } 
    315  
    316244* html #wpadminbar { 
    317245    overflow: hidden; 
     
    323251} 
    324252 
    325 * html #adminbarsearch-wrap { 
    326     position: absolute; 
    327     top: 0; 
    328 } 
    329  
    330 * html #wpadminbar ul, 
    331 * html #wpadminbar ul li { 
    332     zoom: 1; 
    333 } 
    334  
    335 /** 
    336  * End IE 6-targeted rules 
    337  */ 
     253* html #wpadminbar, 
     254* html #wpadminbar .menupop a span, 
     255* html #wpadminbar .quicklinks li, 
     256* html #wpadminbar .quicklinks li:hover { 
     257    background-image: none; 
     258} 
  • trunk/wp-includes/js/admin-bar.dev.js

    r16598 r16862  
    2929            if( 'LI' == t.nodeName.toUpperCase() ) { 
    3030                ancestors[ ancestors.length ] = t; 
    31                 id = getTOID(t);     
     31                id = getTOID(t); 
    3232                if ( id ) 
    3333                    clearTimeout( id ); 
     
    3636            t = t.parentNode; 
    3737        } 
    38          
     38 
    3939        /* remove the hover class for any objects not in the immediate element's ancestry */ 
    4040        while ( i-- ) { 
     
    4545                    inA = true;  
    4646            } 
    47              
    48             /* keep delayed hover on mu (superadmin) menu because it's so easy to mouse away from */ 
    49             if ( ! inA && -1 == q[i][1].className.indexOf('ab-superadmin') ) 
     47 
     48            if ( ! inA ) 
    5049                q[i][1].className = q[i][1].className ? q[i][1].className.replace(hc, '') : ''; 
    5150        } 
     
    6867    clickShortlink = function(e) { 
    6968        var t = e.target || e.srcElement, links, i; 
    70          
    7169 
    7270        if ( 'undefined' == typeof adminBarL10n ) 
     
    9694                } 
    9795            } 
    98              
     96 
    9997            alert( adminBarL10n.noShortlink ); 
    10098            return false; 
     
    105103        var b = d.getElementsByTagName('body')[0], 
    106104        s = d.getElementById('adminbar-search'); 
    107          
     105 
    108106        aB = d.getElementById('wpadminbar'); 
    109107 
     
    133131            } 
    134132        } 
    135          
     133 
    136134        if ( w.location.hash ) 
    137135            w.scrollBy(0,-32); 
  • trunk/wp-includes/js/admin-bar.js

    r16598 r16862  
    1 (function(i,j){var c=function(m,l,d){if(m.addEventListener){m.addEventListener(l,d,false)}else{if(m.attachEvent){m.attachEvent("on"+l,function(){return d.call(m,window.event)})}}},e,f=new RegExp("\\bhover\\b","g"),a=[],g=function(l){var d=a.length;while(d--){if(a[d]&&l==a[d][1]){return a[d][0]}}return false},h=function(l){var m=[],p=0,o,d=a.length,n;while(l&&l!=e&&l!=i){if("LI"==l.nodeName.toUpperCase()){m[m.length]=l;o=g(l);if(o){clearTimeout(o)}l.className=l.className?(l.className.replace(f,"")+" hover"):"hover"}l=l.parentNode}while(d--){n=false;p=m.length;while(p--){if(m[p]==a[d][1]){n=true}}if(!n&&-1==a[d][1].className.indexOf("ab-superadmin")){a[d][1].className=a[d][1].className?a[d][1].className.replace(f,""):""}}},k=function(d){while(d&&d!=e&&d!=i){if("LI"==d.nodeName.toUpperCase()){(function(l){var m=setTimeout(function(){l.className=l.className?l.className.replace(f,""):""},500);a[a.length]=[m,l]})(d)}d=d.parentNode}},b=function(n){var m=n.target||n.srcElement,d,l;if("undefined"==typeof adminBarL10n){return}while(m&&m!=e&&m!=i&&(!m.className||-1==m.className.indexOf("ab-get-shortlink"))){m=m.parentNode}if(m&&m.className&&-1!=m.className.indexOf("ab-get-shortlink")){d=i.getElementsByTagName("link");if(!d.length){d=i.links}l=d.length;if(n.preventDefault){n.preventDefault()}n.returnValue=false;while(l--){if(d[l]&&"shortlink"==d[l].getAttribute("rel")){prompt(adminBarL10n.url,d[l].href);return false}}alert(adminBarL10n.noShortlink);return false}};c(j,"load",function(){var d=i.getElementsByTagName("body")[0],l=i.getElementById("adminbar-search");e=i.getElementById("wpadminbar");if(d&&e){d.appendChild(e);c(e,"mouseover",function(m){h(m.target||m.srcElement)});c(e,"mouseout",function(m){k(m.target||m.srcElement)});c(e,"click",b)}if(l){if(""==l.value){l.value=l.getAttribute("title")}l.onblur=function(){this.value=""==this.value?this.getAttribute("title"):this.value};l.onfocus=function(){this.value=this.getAttribute("title")==this.value?"":this.value}}if(j.location.hash){j.scrollBy(0,-32)}})})(document,window); 
     1(function(i,j){var c=function(m,l,d){if(m.addEventListener){m.addEventListener(l,d,false)}else{if(m.attachEvent){m.attachEvent("on"+l,function(){return d.call(m,window.event)})}}},e,f=new RegExp("\\bhover\\b","g"),a=[],g=function(l){var d=a.length;while(d--){if(a[d]&&l==a[d][1]){return a[d][0]}}return false},h=function(l){var m=[],p=0,o,d=a.length,n;while(l&&l!=e&&l!=i){if("LI"==l.nodeName.toUpperCase()){m[m.length]=l;o=g(l);if(o){clearTimeout(o)}l.className=l.className?(l.className.replace(f,"")+" hover"):"hover"}l=l.parentNode}while(d--){n=false;p=m.length;while(p--){if(m[p]==a[d][1]){n=true}}if(!n){a[d][1].className=a[d][1].className?a[d][1].className.replace(f,""):""}}},k=function(d){while(d&&d!=e&&d!=i){if("LI"==d.nodeName.toUpperCase()){(function(l){var m=setTimeout(function(){l.className=l.className?l.className.replace(f,""):""},500);a[a.length]=[m,l]})(d)}d=d.parentNode}},b=function(n){var m=n.target||n.srcElement,d,l;if("undefined"==typeof adminBarL10n){return}while(m&&m!=e&&m!=i&&(!m.className||-1==m.className.indexOf("ab-get-shortlink"))){m=m.parentNode}if(m&&m.className&&-1!=m.className.indexOf("ab-get-shortlink")){d=i.getElementsByTagName("link");if(!d.length){d=i.links}l=d.length;if(n.preventDefault){n.preventDefault()}n.returnValue=false;while(l--){if(d[l]&&"shortlink"==d[l].getAttribute("rel")){prompt(adminBarL10n.url,d[l].href);return false}}alert(adminBarL10n.noShortlink);return false}};c(j,"load",function(){var d=i.getElementsByTagName("body")[0],l=i.getElementById("adminbar-search");e=i.getElementById("wpadminbar");if(d&&e){d.appendChild(e);c(e,"mouseover",function(m){h(m.target||m.srcElement)});c(e,"mouseout",function(m){k(m.target||m.srcElement)});c(e,"click",b)}if(l){if(""==l.value){l.value=l.getAttribute("title")}l.onblur=function(){this.value=""==this.value?this.getAttribute("title"):this.value};l.onfocus=function(){this.value=this.getAttribute("title")==this.value?"":this.value}}if(j.location.hash){j.scrollBy(0,-32)}})})(document,window); 
  • trunk/wp-includes/script-loader.php

    r16852 r16862  
    263263    $scripts->add_data( 'user-profile', 'group', 1 ); 
    264264 
    265     $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", false, '20101126'); 
     265    $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", false, '20101210'); 
    266266    $scripts->add_data( 'admin-bar', 'group', 1 ); 
    267267    $scripts->localize( 'admin-bar', 'adminBarL10n', array( 
     
    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(), '20101209' ); 
     519    $styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20101210' ); 
    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.