mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Admin bar styling improvements.
* Ensure there isn't a text shadow for update and comment counts. * Hide zero count of pending comments via PHP, not CSS. * Show the update title attribute across the entire menu item, props demetris. * Let the CSS breathe a little. git-svn-id: https://develop.svn.wordpress.org/trunk@16791 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
45cb3321c0
commit
d5717c050c
@ -221,7 +221,8 @@ function wp_admin_bar_comments_menu() {
|
||||
$awaiting_mod = wp_count_comments();
|
||||
$awaiting_mod = $awaiting_mod->moderated;
|
||||
|
||||
$wp_admin_bar->add_menu( array( 'id' => 'comments', 'title' => sprintf( __('Comments %s'), "<span id='ab-awaiting-mod' class='count-$awaiting_mod'><span class='pending-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'href' => admin_url('edit-comments.php') ) );
|
||||
$awaiting_mod = $awaiting_mod ? "<span id='ab-awaiting-mod'><span class='pending-count>" . number_format_i18n( $awaiting_mod ) . "</span></span>" : '';
|
||||
$wp_admin_bar->add_menu( array( 'id' => 'comments', 'title' => sprintf( __('Comments %s'), $awaiting_mod ), 'href' => admin_url('edit-comments.php') ) );
|
||||
}
|
||||
|
||||
function wp_admin_bar_appearance_menu() {
|
||||
@ -276,7 +277,9 @@ function wp_admin_bar_updates_menu() {
|
||||
|
||||
$update_title = !empty($update_title) ? esc_attr(implode(', ', $update_title)) : '';
|
||||
|
||||
$update_title = sprintf( __('Updates %s'), "<span id='ab-updates' class='count-$update_count' title='$update_title'><span class='update-count'>" . number_format_i18n($update_count) . "</span></span>" );
|
||||
$update_title = "<span title='$update_title'>";
|
||||
$update_title .= sprintf( __('Updates %s'), "<span id='ab-updates' class='update-count'>" . number_format_i18n($update_count) . '</span>' );
|
||||
$update_title .= '</span>';
|
||||
|
||||
$href = is_multisite() ? network_admin_url( 'update-core.php' ) : admin_url( 'update-core.php' );
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -83,17 +83,12 @@
|
||||
-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: #888;
|
||||
}
|
||||
#wpadminbar span.update-count {
|
||||
text-shadow: none;
|
||||
}
|
||||
#wpadminbar ul li a span#ab-awaiting-mod.count-0 {
|
||||
display: none;
|
||||
color: #000;
|
||||
}
|
||||
#wpadminbar .menupop ul {
|
||||
-moz-box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
||||
@ -196,8 +191,6 @@ html>body #wpadminbar .menupop ul {
|
||||
|
||||
#adminbarsearch {
|
||||
float: right;
|
||||
}
|
||||
#adminbarsearch {
|
||||
height: 18px;
|
||||
padding: 3px;
|
||||
}
|
||||
|
@ -516,7 +516,7 @@ function wp_default_styles( &$styles ) {
|
||||
$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( 'nav-menu', "/wp-admin/css/nav-menu$suffix.css", array(), '20100907' );
|
||||
$styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20101201' );
|
||||
$styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20101208' );
|
||||
$styles->add( 'wp-jquery-ui-dialog', "/wp-includes/css/jquery-ui-dialog$suffix.css", array(), '20101119' );
|
||||
$styles->add( 'wplink', "/wp-includes/js/tinymce/plugins/wplink/css/wplink$suffix.css", array(), '20101206' );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user