Make WordPress Core

Ticket #32579: 32579.3.diff

File 32579.3.diff, 3.0 KB (added by ryelle, 3 years ago)
  • src/wp-admin/css/admin-menu.css

     
    213213        left: 160px;
    214214        overflow: visible;
    215215        word-wrap: break-word;
    216 }
    217 
    218 #adminmenu .wp-submenu,
    219 .folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu,
    220 .folded #adminmenu .wp-has-current-submenu .wp-submenu {
    221216        padding: 7px 0 8px;
    222217        z-index: 9999;
    223218        background-color: #2c3338;
     
    231226        top: -1px;
    232227}
    233228
     229#adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
     230        top: 0;
     231}
     232
    234233#adminmenu .wp-has-current-submenu .wp-submenu,
    235234.no-js li.wp-has-current-submenu:hover .wp-submenu,
    236 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu,
    237235#adminmenu .wp-has-current-submenu .wp-submenu.sub-open,
    238236#adminmenu .wp-has-current-submenu.opensub .wp-submenu {
    239237        position: relative;
     
    245243        border: 0 none;
    246244        margin-top: 0;
    247245        box-shadow: none;
    248         background-color: #2c3338;
    249246}
    250247
     248.folded #adminmenu .wp-has-current-submenu .wp-submenu {
     249        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
     250}
     251
    251252/* ensure that wp-submenu's box shadow doesn't appear on top of the focused menu item's background. */
    252253#adminmenu li.menu-top:hover,
    253254#adminmenu li.opensub > a.menu-top,
     
    265266
    266267#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
    267268#adminmenu li.current a.menu-top,
    268 .folded #adminmenu li.wp-has-current-submenu,
    269 .folded #adminmenu li.current.menu-top,
    270269#adminmenu .wp-menu-arrow,
    271270#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,
    272271#adminmenu .wp-menu-arrow div {
     
    445444        margin-top: -8px;
    446445}
    447446
    448 .folded ul#adminmenu li:hover a.wp-has-current-submenu:after {
     447.folded ul#adminmenu li:hover a.wp-has-current-submenu:after,
     448.folded ul#adminmenu li.wp-has-current-submenu:focus-within a.wp-has-current-submenu:after {
    449449        display: none;
    450450}
    451451
     
    840840                display: block;
    841841        }
    842842
    843         .auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after {
     843        .auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after,
     844        .auto-fold ul#adminmenu li.wp-has-current-submenu:focus-within a.wp-has-current-submenu:after {
    844845                display: block;
    845846        }
    846847
  • src/wp-admin/css/colors/_admin.scss

     
    286286#adminmenu .wp-submenu,
    287287#adminmenu .wp-has-current-submenu .wp-submenu,
    288288#adminmenu .wp-has-current-submenu.opensub .wp-submenu,
    289 .folded #adminmenu .wp-has-current-submenu .wp-submenu,
    290289#adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
    291290        background: $menu-submenu-background;
    292291}
     
    301300
    302301#adminmenu .wp-submenu a,
    303302#adminmenu .wp-has-current-submenu .wp-submenu a,
    304 .folded #adminmenu .wp-has-current-submenu .wp-submenu a,
    305303#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a,
    306304#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
    307305        color: $menu-submenu-text;