Making WordPress.org

Changeset 14099


Ignore:
Timestamp:
10/09/2024 02:42:48 AM (4 months ago)
Author:
adamwood
Message:

Make 2024: Fix handbook layout

Refactor styles to allow for layouts without a secondary area and or breadcrumbs.

See https://github.com/WordPress/wporg-make/issues/3

File:
1 edited

Legend:

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

    r14096 r14099  
    20662066.post-type-archive-handbook #main,
    20672067.single-handbook #main {
     2068    padding-bottom: var(--wp--preset--spacing--edge-space);
     2069}
     2070
     2071.post-type-archive-handbook #main:has(#secondary),
     2072.single-handbook #main:has(#secondary) {
    20682073    display: grid;
    20692074    grid-template-columns: 25% auto;
    2070     grid-template-rows: 40px auto;
     2075    grid-template-rows: auto;
    20712076    column-gap: 60px;
    20722077    padding-top: var(--wp--preset--spacing--40);
    20732078}
    20742079
     2080.post-type-archive-handbook #main:has(#secondary):has(.handbook-breadcrumbs),
     2081.single-handbook #main:has(#secondary):has(.handbook-breadcrumbs) {
     2082    grid-template-rows: 40px auto;
     2083}
     2084
    20752085@media (max-width: 876px) {
    2076     post-type-archive-handbook #main,
    2077     .single-handbook #main {
     2086    post-type-archive-handbook #main:has(#secondary),
     2087    .single-handbook #main:has(#secondary) {
    20782088        grid-template-columns: auto;
    20792089        column-gap: unset;
Note: See TracChangeset for help on using the changeset viewer.