WordPress.org

Making WordPress.org

Changeset 9428


Ignore:
Timestamp:
01/28/2020 06:44:02 PM (15 months ago)
Author:
coffee2code
Message:

Developer theme: More handbook sidebar menu design improvements.

  • Decrease padding-right for menu items which do not have children
  • Embolden the name of the current page in the menu

Props rilwis, coffee2code.
See #4901, #4467.

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

    r9413 r9428  
    20842084                border-left: none;
    20852085            }
     2086   
     2087            &.menu-item-has-children > .expandable > a {
     2088                padding-right: 40px;
     2089            }
    20862090        }
    20872091
     
    20902094            width: 100%;
    20912095            font-size: 1.05em;
    2092             padding: 8px 40px 8px 13px;
     2096            padding: 8px 8px 8px 13px;
    20932097            text-decoration: none;
    20942098
     
    20972101                color: #fff;
    20982102                background-color: #0073aa;
     2103                font-weight: bold;
    20992104            }
    21002105            &.active {
     
    21092114    }
    21102115    & > ul > li {
    2111         .children > li > a,
    2112         .sub-menu > li > a {
    2113             padding-left: 13px;
    2114         }
    2115         .children > li > ul > li > a,
    2116         .sub-menu > li > ul > li > a {
    2117             padding-left: 13px;
    2118         }
    2119 
    21202116        &.open > div > a {
    21212117            &:not(:focus) {
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css

    r9413 r9428  
    24742474}
    24752475
     2476div[class*="-table-of-contents-container"] ul li.menu-item-has-children > .expandable > a {
     2477  padding-right: 40px;
     2478}
     2479
    24762480div[class*="-table-of-contents-container"] ul a {
    24772481  display: block;
    24782482  width: 100%;
    24792483  font-size: 1.05em;
    2480   padding: 8px 40px 8px 13px;
     2484  padding: 8px 8px 8px 13px;
    24812485  text-decoration: none;
    24822486}
     
    24852489  color: #fff;
    24862490  background-color: #0073aa;
     2491  font-weight: bold;
    24872492}
    24882493
     
    24942499div[class*="-table-of-contents-container"] ul.default-open {
    24952500  display: block !important;
    2496 }
    2497 
    2498 div[class*="-table-of-contents-container"] > ul > li .children > li > a,
    2499 div[class*="-table-of-contents-container"] > ul > li .sub-menu > li > a {
    2500   padding-left: 13px;
    2501 }
    2502 
    2503 div[class*="-table-of-contents-container"] > ul > li .children > li > ul > li > a,
    2504 div[class*="-table-of-contents-container"] > ul > li .sub-menu > li > ul > li > a {
    2505   padding-left: 13px;
    25062501}
    25072502
Note: See TracChangeset for help on using the changeset viewer.