Make WordPress Core

Changeset 26184


Ignore:
Timestamp:
11/15/2013 12:08:38 AM (11 years ago)
Author:
iammattthomas
Message:

Fixing some inconsistent behavior on toolbar icons:

  • Use .ab-icon:before, .ab-item:before, and #adminbarsearch:before to select all toolbar icons.
  • Rewrite the selector for toolbar icon hover styles so they're not overridden by default colors.
  • Add #adminbarsearch:before to color schemes, so its icon color is changed with the others.
  • Remove duplicate color rule on #adminbarsearch:before.

See #25858.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/color-schemes/_admin.scss

    r26181 r26184  
    260260
    261261#wpadminbar .ab-icon,
    262 #wpadminbar .ab-icon:before {
     262#wpadminbar .ab-icon:before,
     263#wpadminbar .ab-item:before {
    263264    color: $menu-icon;
    264265}
     
    276277}
    277278
    278 #wpadminbar li:hover .ab-icon,
    279 #wpadminbar li:hover > .ab-item:before {
     279#wpadminbar li:hover .ab-icon:before,
     280#wpadminbar li:hover .ab-item:before,
     281#wpadminbar li:hover #adminbarsearch:before {
    280282    color: $menu-highlight-icon;
    281283}
  • trunk/src/wp-includes/css/admin-bar.css

    r26180 r26184  
    224224}
    225225
    226 #wpadminbar li:hover .ab-icon,
    227 #wpadminbar li:hover > .ab-item:before {
    228     color: #2ea2cc;
    229 }
    230 
    231 #wpadminbar .ab-icon:before {
     226#wpadminbar .ab-icon:before,
     227#wpadminbar .ab-item:before,
     228#wpadminbar #adminbarsearch:before {
    232229    color: #999;
    233230    position: relative;
     
    256253#wpadminbar .quicklinks .menupop ul li a:hover strong,
    257254#wpadminbar .quicklinks .menupop.hover ul li a:hover,
    258 #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover {
     255#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover,
     256#wpadminbar li:hover .ab-icon:before,
     257#wpadminbar li:hover .ab-item:before,
     258#wpadminbar li:hover #adminbarsearch:before {
    259259    color: #2ea2cc;
    260260}
     
    522522    font: normal 20px/1 'dashicons' !important;
    523523    content: '\f179';
    524     color: #999;
    525524    speak: none;
    526525    -webkit-font-smoothing: antialiased;
Note: See TracChangeset for help on using the changeset viewer.