Making WordPress.org


Ignore:
Timestamp:
05/31/2022 09:34:24 PM (18 months ago)
Author:
iandunn
Message:

Developer: Use modern clearfix to restore heading anchor image.

Using overflow: auto as a clearfix prevented the .toc-heading a Dashicon from showing up on hover.

This also replaces the various padding-left values with a single value that works across all breakpoints, to ensure that there's enough room for the icon.

See https://github.com/WordPress/wporg-developer/issues/33

File:
1 edited

Legend:

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

    r11659 r11901  
    2828
    2929    #content, #content-area {
    30         padding: 0 10px;
     30        padding: 0 #{"max( 20px, 2% )"};
    3131
    3232        .toc-heading {
     
    300300    .site-content:after,
    301301    .site-footer:before,
    302     .site-footer:after {
     302    .site-footer:after,
     303    section:after {
    303304        content: '';
    304305        display: table;
     
    309310    .comment-content:after,
    310311    .site-content:after,
    311     .site-footer:after {
     312    .site-footer:after,
     313    section:after {
    312314        clear: both;
    313315    }
     
    506508     */
    507509
    508     section {
    509         overflow: auto;
    510     }
    511 
    512     section.error-404 {
    513         overflow: visible;
    514     }
    515510    .home-landing .section {
    516511        padding: 50px 0 10px;
     
    20912086                border-left: none;
    20922087            }
    2093    
     2088
    20942089            &.menu-item-has-children > .expandable > a {
    20952090                padding-right: 30px;
     
    23582353        width: 100%;
    23592354
    2360         #content,
    2361         #content-area,
    23622355        .inner-wrap {
    23632356            max-width: 100%;
     
    23692362                width: 100%;
    23702363            }
    2371         }
    2372         #content-area {
    2373             padding-left: 2%;
    23742364        }
    23752365
     
    23972387            .sourcefile {
    23982388                float: left;
    2399             }
    2400         }
    2401         #content-area {
    2402             @media (max-width: 43em) {
    2403                 padding-left: 2%;
    24042389            }
    24052390        }
Note: See TracChangeset for help on using the changeset viewer.