Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #28599, comment 19


Ignore:
Timestamp:
11/12/2014 06:20:22 PM (10 years ago)
Author:
usability.idealist
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28599, comment 19

    initial v1  
    1 The following snippet, placed in the admin-menu.css (line 171 - 180), will achieve both the underline-focus as well as change the hover to white on dark background.
    2 
    3 
    4 {{{
    5         #adminmenu .wp-submenu a:hover,
    6         #adminmenu .wp-submenu a:focus {
    7                 background: #111;
    8         }
    9 
    10         #adminmenu a:hover,
    11         #adminmenu li.menu-top > a:focus,
    12         #adminmenu .wp-submenu a:hover,
    13         #adminmenu .wp-submenu a:focus {
    14                 color: #fff;
    15         }
    16 
    17 
    18         #adminmenu li.menu-top > a:focus,
    19         #adminmenu .wp-submenu a:focus {
    20                 text-decoration: underline;
    21         }
    22 }}}
    23 
    24 Would supply it as a patch, but I've got not enough time at hand right now, for properly setting all up, so that has to do it.
    25 
    26 
    27 Description: Focus stays on currently focused item, while the hover both highlights the currently focused parent menu item as well as the currently selected submenu item. If required, the parent menu item in focus could also be highlighted using the underline-focus.
    28 
    29 Also see the following screenshot:
    30 
    31 [[Image(http://250kb.de/u/141106/p/LXGDqjWUmhif.png)]]
    32 
    33 cu, w0lf.
     1-