Making WordPress.org

Changeset 7858


Ignore:
Timestamp:
11/16/2018 08:34:10 PM (6 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].

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
Files:
2 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,
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css

    r7824 r7858  
    23872387}
    23882388
     2389div[class*="-table-of-contents-container"] *:focus {
     2390  outline: 0;
     2391}
     2392
    23892393div[class*="-table-of-contents-container"] ul {
    23902394  margin-left: 0;
     
    24522456}
    24532457
    2454 div[class*="-table-of-contents-container"] .open .expandable .dashicons:not(:focus) {
    2455   background: #fff;
    2456   color: #0073aa;
    2457 }
    2458 
    24592458div[class*="-table-of-contents-container"] > ul > li:last-child {
    24602459  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
     
    24832482div[class*="-table-of-contents-container"] .current-menu-ancestor ul {
    24842483  display: block;
     2484}
     2485
     2486div[class*="-table-of-contents-container"] .current-menu-ancestor:not(.open) .expandable .dashicons:not(:focus),
     2487div[class*="-table-of-contents-container"] .current-menu-item .expandable .dashicons:not(:focus) {
     2488  background: #fff;
     2489  color: #0073aa;
     2490}
     2491
     2492div[class*="-table-of-contents-container"] .current-menu-ancestor .expandable .dashicons:hover,
     2493div[class*="-table-of-contents-container"] .current-menu-item .expandable .dashicons:hover {
     2494  background-color: #0073aa !important;
     2495  color: #fff !important;
    24852496}
    24862497
Note: See TracChangeset for help on using the changeset viewer.