Making WordPress.org


Ignore:
Timestamp:
11/16/2018 08:34:10 PM (8 years ago)
Author:
coffee2code
Message:

Developer: Improve styling of handbook sidebar menu.

  • Sets background color for expansion toggle to white for current item or its unexpanded ancestor (and unsets it for expanded ancestor)
  • Highlights current item expansion toggle on hover, as done for non-current expansion toggles
  • Removes focus outline

See [7856], [7857].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss

    r7824 r7858  
    20002000        font-size: 0.8em;
    20012001
     2002        *:focus {
     2003                outline: 0;
     2004        }
    20022005        ul {
    20032006                margin-left: 0;
    … …  
    20662069                }
    20672070        }
    2068         .open .expandable .dashicons:not(:focus) {
    2069                 background: #fff;
    2070                 color: #0073aa;
    2071         }
    20722071        & > ul > li {
    20732072                &:last-child {
    … …  
    20962095        .current-menu-ancestor ul {
    20972096                display: block;
     2097        }
     2098        .current-menu-ancestor:not(.open) .expandable .dashicons:not(:focus),
     2099        .current-menu-item .expandable .dashicons:not(:focus) {
     2100                background: #fff;
     2101                color: #0073aa;
     2102        }
     2103        .current-menu-ancestor .expandable .dashicons:hover,
     2104        .current-menu-item .expandable .dashicons:hover {
     2105                background-color:: #0073aa !important;
     2106                color: #fff !important;
    20982107        }
    20992108        .children,
Note: See TracChangeset for help on using the changeset viewer.