Making WordPress.org


Ignore:
Timestamp:
03/05/2024 02:45:07 AM (15 months ago)
Author:
adamwood
Message:

Support Theme: Redesign iteration 1

Replace wp4 with wporg-parent-2021
Redesign forums homepage
Reskin templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/sass/site/_site.scss

    r11643 r13272  
    11@import "../variables-site/variables-site";
    22
    3 
    4 body, #pagebody {
    5     font-size: ms(0);
    6 }
    7 
    83/*--------------------------------------------------------------
    94# .site-header
    105--------------------------------------------------------------*/
    116.site-header {
    12     background: $color__wp-blue;
     7    background: var(--wp--preset--color--blueberry-1);
    138    padding: 1rem 0;
    149    position: relative;
     
    8681--------------------------------------------------------------*/
    8782.main-navigation {
    88     background: $color__wp-blue;
     83    background: var(--wp--preset--color--blueberry-1);
    8984    clear: both;
    9085    left: 0;
     
    177172    #wporg-header ul li.current-menu-item::after,
    178173    #wporg-header ul li.current_page_parent::after {
    179         border-bottom: 9px solid $color__wp-blue;
     174        border-bottom: 9px solid var(--wp--preset--color--blueberry-1);
    180175    }
    181176
     
    251246/*--------------------------------------------------------------
    252247# .site-main
    253 --------------------------------------------------------------*/
    254 .site-main {
    255     margin: 0 auto;
    256     max-width: $size__site-main;
    257     padding: ms(10) ms(4);
    258 
    259     @media screen and ( min-width: $ms-breakpoint ) {
    260         padding: ms(10) 10px;
    261     }
    262 
    263     .single & {
    264         padding: 0;
    265 
    266         @media screen and ( min-width: $ms-breakpoint ) {
    267             padding: 0 10px ms(10);
    268         }
    269     }
    270 
    271     #page & {
    272         padding: 0 10px ms(10);
    273     }
    274 
    275     .page-header {
    276 
    277         h1 {
    278             margin: 0;
    279         }
    280 
    281         p {
    282             margin: 0.5rem 0;
    283         }
    284     }
    285 
    286     .page-title {
    287         font-size: ms( 4 );
    288         font-weight: 400;
    289     }
    290 
    291     .no-results {
    292         margin: 0 auto;
    293         max-width: ms(32);
    294         padding: 0 2rem;
     248# Override original styles
     249--------------------------------------------------------------*/
     250
     251body:not(.trac):not(.home-page):not(.home) #main {
     252    margin-top: 0;
     253    padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--edge-space) var(--wp--preset--spacing--10);
     254}
     255
     256@media screen and (max-width: 460px) {
     257
     258    #main {
     259        margin: unset;
     260    }
     261}
     262
     263@media screen and (min-width: 960px) {
     264
     265    #header-inner,
     266    #headline-inner,
     267    #subnav-inner,
     268    #showcase-inner,
     269    #main,
     270    #footer {
     271        width: unset;
    295272    }
    296273}
     
    306283--------------------------------------------------------------*/
    307284.sidebar {
    308 
    309     div {
    310         margin-bottom: 2rem;
     285    margin-top: 0;
     286
     287    // Override parent theme
     288    body.single & {
     289        margin-top: 0;
     290    }
     291
     292    > div {
     293        margin-bottom: var(--wp--preset--spacing--30);
    311294
    312295        ul {
    313296            margin-bottom: 0;
     297            padding-left: unset;
    314298        }
    315299
    316300        ul > li {
    317             font-size: ms(-2);
    318             border-top: 1px solid #eee;
     301            font-size: var(--wp--preset--font-size--small);
     302            border-top: 1px solid var(--wp--custom--color--border);
    319303            padding: 0.5rem 0;
    320304        }
     305    }
     306
     307    a {
     308        text-decoration: none;
    321309    }
    322310}
     
    376364            border-radius: 0;
    377365            box-shadow: none;
    378             color: $color__text-input;
     366            color: #32373c;
    379367            display: block;
    380368            height: 100%;
     
    438426
    439427    .site-main & .search-field {
    440         border: 1px solid $color__border-input;
     428        border: 1px solid var(--wp--preset--color--light-grey-1);
    441429        box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 );
    442430        padding: 0.5rem;
     
    457445}
    458446
     447/*--------------------------------------------------------------
     448# .forums-homepage
     449# .page
     450--------------------------------------------------------------*/
     451
     452.forums-homepage-footer .wp-block-heading a {
     453    text-decoration: none;
     454}
     455
     456.forums-homepage-topics {
     457
     458    .wp-block-group-is-layout-grid.is-style-cards-grid .wp-block-wporg-link-wrapper h3 {
     459        margin-bottom: unset;
     460    }
     461}
    459462
    460463/*--------------------------------------------------------------
     
    466469
    467470    .entry-header {
    468         margin-top: 2rem;
    469471
    470472        .entry-title {
    471             font-size: ms( 6 );
    472             font-weight: 400;
    473             margin: 0 auto;
    474             max-width: ms(32);
    475473
    476474            @media screen and ( min-width: $ms-breakpoint ) {
     
    482480    .entry-content {
    483481
    484         h2 {
    485             font-size: ms( 4 );
    486             font-weight: 400;
    487         }
    488 
    489         h3 {
    490             font-size: ms( 0 );
    491             font-weight: 600;
    492             letter-spacing: 0.01rem;
    493             text-transform: uppercase;
    494         }
    495 
    496         a {
    497             text-decoration: underline;
    498         }
    499 
    500482        section {
    501             padding: 2rem 0;
     483            margin: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--50);
    502484
    503485            .container {
    504486                margin: 0 auto;
    505                 max-width: ms(32);
    506487
    507488                @media screen and ( min-width: $ms-breakpoint ) {
     
    515496
    516497            & + section {
    517                 border-top: 2px solid $color__background-hr;
    518             }
    519         }
     498                border-top: 2px solid var(--wp--preset--color--light-grey-1);
     499            }
     500        }
     501
     502        h2.toc-heading {
     503            font-size: var(--wp--preset--font-size--heading-4);
     504            line-height: var(--wp--custom--heading--level-4--typography--line-height);
     505            font-weight: 600;
     506        }
     507
     508        h3.toc-heading {
     509            font-size: var(--wp--preset--font-size--heading-5);
     510            line-height: var(--wp--custom--heading--level-5--typography--line-height);
     511            font-weight: 600;
     512        }
     513
     514        h2,
     515        h3 {
     516
     517            &.toc-heading:target {
     518                border-left-color: var(--wp--preset--color--blueberry-1);
     519            }
     520        }
     521
     522        .table-of-contents {
     523            margin: 0 0 var(--wp--preset--spacing--20) var(--wp--preset--spacing--20);
     524
     525            .items {
     526                font-size: var(--wp--preset--font-size--small);
     527
     528                li {
     529
     530                    ul {
     531                        margin-left: 0;
     532                    }
     533
     534                    a:hover {
     535                        color: var(--wp--custom--link--color--text);
     536                    }
     537                }
     538            }
     539        }
     540
     541        p.toc-jump {
     542            margin-bottom: unset;
     543        }
     544    }
     545
     546    .entry-footer {
     547        margin-bottom: var(--wp--preset--spacing--40);
    520548    }
    521549
Note: See TracChangeset for help on using the changeset viewer.