WordPress.org

Make WordPress Core

Changeset 33284


Ignore:
Timestamp:
07/15/2015 08:13:47 PM (5 years ago)
Author:
helen
Message:

Toolbar: Ensure icons are colored correctly in alternate schemes.

props ryelle.
fixes #32931. see #29906.

Location:
trunk/src/wp-admin/css/colors
Files:
2 edited

Legend:

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

    r33067 r33284  
    282282}
    283283
    284 #wpadminbar .ab-top-menu > li:hover > .ab-item,
    285 #wpadminbar .ab-top-menu > li.hover > .ab-item,
    286 #wpadminbar .ab-top-menu > li > .ab-item:focus,
     284#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
     285#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus,
    287286#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
    288 #wpadminbar-nojs .ab-top-menu > li.menupop:hover > .ab-item,
     287#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item,
    289288#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item {
    290289    color: $menu-submenu-focus-text;
     
    292291}
    293292
    294 #wpadminbar > #wp-toolbar li:hover span.ab-label,
    295 #wpadminbar > #wp-toolbar li.hover span.ab-label,
    296 #wpadminbar > #wp-toolbar a:focus span.ab-label {
     293#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
     294#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label,
     295#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
    297296    color: $menu-submenu-focus-text;
    298297}
    299298
    300 #wpadminbar li:hover .ab-icon:before,
    301 #wpadminbar li:hover .ab-item:before,
    302 #wpadminbar li:hover .ab-item:after,
    303 #wpadminbar li:hover #adminbarsearch:before {
     299#wpadminbar:not(.mobile) li:hover .ab-icon:before,
     300#wpadminbar:not(.mobile) li:hover .ab-item:before,
     301#wpadminbar:not(.mobile) li:hover .ab-item:after,
     302#wpadminbar:not(.mobile) li:hover #adminbarsearch:before {
    304303    color: $menu-highlight-icon;
    305304}
     
    320319#wpadminbar .quicklinks .menupop ul li a,
    321320#wpadminbar .quicklinks .menupop.hover ul li a,
    322 #wpadminbar-nojs .quicklinks .menupop:hover ul li a {
     321#wpadminbar.nojs .quicklinks .menupop:hover ul li a {
    323322    color: $menu-submenu-text;
    324323}
     
    343342#wpadminbar li.hover .ab-icon:before,
    344343#wpadminbar li.hover .ab-item:before,
    345 #wpadminbar li:hover .ab-item:after,
    346 #wpadminbar li.hover .ab-item:after,
    347 #wpadminbar li:hover #adminbarsearch:before {
     344#wpadminbar li:hover #adminbarsearch:before,
     345#wpadminbar li #adminbarsearch.adminbar-focused:before {
    348346    color: $menu-submenu-focus-text;
    349347}
    350348
    351349#wpadminbar .quicklinks li a:hover .blavatar,
    352 #wpadminbar .menupop .menupop > .ab-item:hover:before {
     350#wpadminbar .menupop .menupop > .ab-item:hover:before,
     351#wpadminbar.mobile .quicklinks .ab-icon:before,
     352#wpadminbar.mobile .quicklinks .ab-item:before {
    353353    color: $menu-submenu-focus-text;
     354}
     355
     356#wpadminbar.mobile .quicklinks .hover .ab-icon:before,
     357#wpadminbar.mobile .quicklinks .hover .ab-item:before {
     358    color: $menu-icon;
    354359}
    355360
     
    521526    background: $menu-submenu-background;
    522527}
     528
     529.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before {
     530    color: $menu-icon;
     531}
  • trunk/src/wp-admin/css/colors/light/colors.scss

    r31471 r33284  
    2727#wpadminbar .ab-top-menu > li > .ab-item:focus,
    2828#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
    29 #wpadminbar-nojs .ab-top-menu > li.menupop:hover > .ab-item,
     29#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item,
    3030#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item {
    3131    color: $text-color;
Note: See TracChangeset for help on using the changeset viewer.