Making WordPress.org

Changeset 7856


Ignore:
Timestamp:
11/16/2018 07:29:20 PM (6 years ago)
Author:
coffee2code
Message:

Gutenberg: Improve styling of handbook sidebar menu.

  • Increases specificity for sidebar menu 'ul' styling to ensure no left margin
  • Sets background color for expansion toggle to white for current item or its unexpanded ancestor
  • Removes focus outline
  • Overrides default :visited color link
  • Highlights current item expansion toggle on hover, as done for non-current expansion toggles
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/style.css

    r7849 r7856  
    14191419  font-size: 0.8em;
    14201420}
    1421 .menu-table-of-contents-container ul {
     1421
     1422.menu-table-of-contents-container *:focus {
     1423  outline: 0;
     1424}
     1425
     1426.site-content .menu-table-of-contents-container ul {
    14221427  margin-left: 0;
    14231428  padding-left: 0;
     
    14651470  border-left: none;
    14661471}
    1467 .menu-table-of-contents-container .open .expandable .dashicons:not(:focus) {
     1472.menu-table-of-contents-container .current_page_ancestor:not(.open) .expandable .dashicons:not(:focus),
     1473.menu-table-of-contents-container .current_page_item .expandable .dashicons:not(:focus) {
     1474    background-color: #fff;
    14681475    color: #0073aa;
    14691476}
    1470 .menu-table-of-contents-container .open .expandable .dashicons:hover {
    1471     background-color: #0073aa;
    1472     color: #fff;
     1477.menu-table-of-contents-container .current_page_ancestor .expandable .dashicons:hover,
     1478.menu-table-of-contents-container .current_page_item .expandable .dashicons:hover {
     1479    background-color: #0073aa !important;
     1480    color: #fff !important;
    14731481}
    14741482.menu-table-of-contents-container ul a {
     
    14871495  color: #555;
    14881496  background-color: #fff;
     1497}
     1498.menu-table-of-contents-container ul a:visited:not(:hover) {
     1499  color: #0073aa;
    14891500}
    14901501.menu-table-of-contents-container > ul > li:last-child {
Note: See TracChangeset for help on using the changeset viewer.