WordPress.org

Make WordPress Core

Ticket #18809: 18809.tweaks.2.diff

File 18809.tweaks.2.diff, 1.4 KB (added by duck_, 10 years ago)
  • wp-includes/admin-bar.php

     
    559559        $icon .= "<div class='ab-comments-icon-arrow'></div>";
    560560        $icon .= "</div>";
    561561
    562         $title = ( $awaiting_mod ) ? '<span id="ab-awaiting-mod" class="pending-count">' . number_format_i18n( $awaiting_mod ) . '</span>' : '';
     562        $title = '<span id="ab-awaiting-mod" class="awaiting-mod pending-count count-' . $awaiting_mod . '">' . number_format_i18n( $awaiting_mod ) . '</span>';
    563563
    564564        $wp_admin_bar->add_menu( array(
    565565                'id'    => 'comments',
  • wp-includes/css/admin-bar.dev.css

     
    463463}
    464464
    465465#wpadminbar .ab-comments-icon-body {
    466         margin: 3px 4px 0 -2px;
     466        margin-top: 3px;
    467467        background: #999;
    468468        height: 10px;
    469469        width: 14px;
     
    480480        height: 0;
    481481        position: absolute;
    482482        bottom: -3px;
    483         left: 1px;
     483        left: 3px;
    484484        /* Use transparent borders to form a triangle */
    485485        border-left: 4px solid #999;
    486486        border-bottom: 4px solid transparent;
     
    489489        border-left-color: #bbb;
    490490}
    491491
     492#wpadminbar #ab-awaiting-mod {
     493        margin-left: 4px;
     494}
     495#wpadminbar span.count-0 {
     496        display: none;
     497}
    492498
     499
    493500/**
    494501 * IE 6-targeted rules
    495502 */