WordPress.org

Make WordPress Core

Ticket #28599: 28599-focus-highlighting-default-color-scheme.diff

File 28599-focus-highlighting-default-color-scheme.diff, 3.6 KB (added by florianziegler, 6 years ago)

Changes only the default color scheme

  • wp-admin/css/admin-menu-rtl.css

    diff --git wp-admin/css/admin-menu-rtl.css wp-admin/css/admin-menu-rtl.css
    index 844da92..15d54ec 100644
     
    175175}
    176176
    177177#adminmenu a:hover,
    178 #adminmenu .wp-submenu a:hover {
    179         color: #2ea2cc;
    180 }
    181 #adminmenu li.menu-top > a:focus {
    182     color: white;
    183         background-color: #0074a2;
    184 }
     178#adminmenu li.menu-top > a:focus,
     179#adminmenu .wp-submenu a:hover,
    185180#adminmenu .wp-submenu a:focus {
    186     color: white;
    187         background-color: #0074a2;
     181        color: #2ea2cc;
    188182}
    189183
    190184#adminmenu li.menu-top {
     
    239233
    240234/* ensure that wp-submenu's box shadow doesn't appear on top of the focused menu item's background. */
    241235#adminmenu li.menu-top:hover,
    242 #adminmenu li.opensub > a.menu-top {
    243         position: relative;
    244         background-color: #111;
    245 }
     236#adminmenu li.opensub > a.menu-top,
    246237#adminmenu li > a.menu-top:focus {
    247238        position: relative;
    248         background-color: #0074a2;
    249         z-index: 10000;
     239        background-color: #111;
    250240}
    251241
    252242.folded #adminmenu li.menu-top:hover,
    div.wp-menu-image:before { 
    388378#adminmenu li:hover div.wp-menu-image:before {
    389379        color: #2ea2cc;
    390380}
    391 #adminmenu li > a.menu-top:focus div.wp-menu-image:before {
    392         color: white;
    393 }
    394381
    395382.folded #adminmenu div.wp-menu-image {
    396383        width: 35px;
    ul#adminmenu > li.current > a.current:after { 
    470457        z-index: 10000;
    471458}
    472459
    473 #adminmenu li a.wp-has-submenu.wp-not-current-submenu:focus:after,
    474 #adminmenu li.opensub a.wp-has-submenu.wp-not-current-submenu:after {
    475         left: 0;
    476         border: solid transparent;
    477         content: " ";
    478         height: 0;
    479         width: 0;
    480         position: absolute;
    481         pointer-events: none;
    482         border-width: 8px;
    483         top: 10px;
    484         z-index: 10000;
    485     border-left-color: #333;
    486 }
    487 
    488460.folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after {
    489461        border-width: 4px;
    490462        margin-top: -4px;
  • wp-admin/css/admin-menu.css

    diff --git wp-admin/css/admin-menu.css wp-admin/css/admin-menu.css
    index 5c0728a..dd333f7 100644
     
    175175}
    176176
    177177#adminmenu a:hover,
    178 #adminmenu .wp-submenu a:hover {
    179         color: #2ea2cc;
    180 }
    181 #adminmenu li.menu-top > a:focus {
    182     color: white;
    183         background-color: #0074a2;
    184 }
     178#adminmenu li.menu-top > a:focus,
     179#adminmenu .wp-submenu a:hover,
    185180#adminmenu .wp-submenu a:focus {
    186     color: white;
    187         background-color: #0074a2;
     181        color: #2ea2cc;
    188182}
    189183
    190184#adminmenu li.menu-top {
     
    239233
    240234/* ensure that wp-submenu's box shadow doesn't appear on top of the focused menu item's background. */
    241235#adminmenu li.menu-top:hover,
    242 #adminmenu li.opensub > a.menu-top {
    243         position: relative;
    244         background-color: #111;
    245 }
     236#adminmenu li.opensub > a.menu-top,
    246237#adminmenu li > a.menu-top:focus {
    247238        position: relative;
    248         background-color: #0074a2;
    249         z-index: 10000;
     239        background-color: #111;
    250240}
    251241
    252242.folded #adminmenu li.menu-top:hover,
    div.wp-menu-image:before { 
    388378#adminmenu li:hover div.wp-menu-image:before {
    389379        color: #2ea2cc;
    390380}
    391 #adminmenu li > a.menu-top:focus div.wp-menu-image:before {
    392         color: white;
    393 }
    394381
    395382.folded #adminmenu div.wp-menu-image {
    396383        width: 35px;
    ul#adminmenu > li.current > a.current:after { 
    470457        z-index: 10000;
    471458}
    472459
    473 #adminmenu li a.wp-has-submenu.wp-not-current-submenu:focus:after,
    474 #adminmenu li.opensub a.wp-has-submenu.wp-not-current-submenu:after {
    475         right: 0;
    476         border: solid transparent;
    477         content: " ";
    478         height: 0;
    479         width: 0;
    480         position: absolute;
    481         pointer-events: none;
    482         border-width: 8px;
    483         top: 10px;
    484         z-index: 10000;
    485     border-right-color: #333;
    486 }
    487 
    488460.folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after {
    489461        border-width: 4px;
    490462        margin-top: -4px;