Making WordPress.org

Changeset 14054


Ignore:
Timestamp:
09/16/2024 04:43:58 AM (15 months ago)
Author:
adamwood
Message:

Make 2024: Restyle handbook

See https://github.com/WordPress/wordpress.org/issues/363

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024
Files:
2 edited

Legend:

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

    r14049 r14054  
    8585h2 {
    8686    font-size: var(--wp--preset--font-size--heading-3);
     87    line-height: var(--wp--custom--heading--level-2--typography--line-height);
    8788}
    8889
    8990h3 {
    9091    font-size: var(--wp--preset--font-size--heading-5);
     92    line-height: var(--wp--custom--heading--level-5--typography--line-height);
    9193}
    9294
    9395h4 {
    9496    font-size: var(--wp--preset--font-size--heading-6);
     97    line-height: var(--wp--custom--heading--level-6--typography--line-height);
    9598}
    9699
     
    212215
    213216.site,
    214 .custom-menu .site {
     217.custom-menu .site,
     218.post-type-archive-handbook #main,
     219.single-handbook #main {
    215220    box-sizing: border-box;
    216221    margin: 0 auto;
     
    522527}
    523528
     529@media (max-width: 640px) {
     530    nav.o2-dropdown-actions ul li > a,
     531    nav.o2-dropdown-actions ul li > span > a {
     532        line-height: 1.5;
     533    }
     534
     535    nav.o2-dropdown-actions ul li > a.genericon:before,
     536    nav.o2-dropdown-actions ul li > span > a.genericon:before {
     537        font-size: var(--wp--preset--font-size--normal);
     538        top: unset;
     539        left: unset;
     540        line-height: 1.25;
     541    }
     542}
     543
    524544nav.o2-dropdown-actions button.o2-dropdown-actions-disclosure.genericon:hover,
    525545nav.o2-dropdown-actions button.o2-dropdown-actions-disclosure.open {
     
    558578    line-height: var(--wp--custom--heading--level-5--typography--line-height);
    559579    font-size: var(--wp--preset--font-size--heading-5);
    560 }
    561 
    562 #secondary-content .widget_wporg_handbook_pages a {
    563     text-decoration: none;
    564580}
    565581
     
    793809    font-size: 16px;
    794810    text-transform: uppercase;
    795     letter-spacing: 1px;
    796811    background-color: transparent;
    797     padding: 1rem 12px 1rem 8px;
    798812    margin-bottom: 0;
    799813    color: inherit;
     
    847861article#post-new .o2-post,
    848862article.page .o2-post {
    849     padding-top: var(--wp--preset--spacing--50);
     863    padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--20) var(--wp--preset--spacing--20);
     864}
     865
     866@media screen and (max-width: 640px) {
     867    article.post .o2-post,
     868    article#post-new .o2-post,
     869    article.page .o2-post {
     870        padding-left: unset;
     871        padding-right: unset;
     872    }
    850873}
    851874
     
    10351058    font-family: dashicons;
    10361059    position: absolute;
    1037     top: 44px;
     1060    top: 45px;
    10381061    right: 60px;
    10391062    font-size: var(--wp--preset--font-size--small);
     
    14691492.post-type-archive-handbook .site-main .widget-area,
    14701493.single-handbook .site-main .widget-area {
    1471     float: left;
    1472     margin-right: 4%;
     1494    width: unset;
     1495    float: unset;
     1496    grid-row-start: 1;
     1497    grid-row-end: 3;
    14731498}
    14741499.handbook-header {
     
    14801505
    14811506.single-handbook .content-area h1 {
    1482     margin-top: 0;
     1507    margin: 0 0 var(--wp--style--block-gap);
    14831508    padding-top: 0;
    14841509}
     
    15121537}
    15131538
    1514 @media(max-width: 876px) {
     1539@media (max-width: 876px) {
    15151540    .handbook-name-container {
    15161541        padding-left: 22px;
     
    15181543        width: 100%;
    15191544        margin-left: 0;
     1545    }
     1546
     1547    .single-handbook .content-area h1 {
     1548        padding-right: 40px;
    15201549    }
    15211550}
     
    16231652
    16241653.handbook-breadcrumbs {
    1625     position: absolute;
    1626     top: 4rem;
    1627     left: 280px;
    1628     font-size: 1.25rem;
    1629     padding-right: 34px;
     1654    grid-column-start: 2;
     1655    font-size: var(--wp--preset--font-size--small);
     1656    align-self: center;
    16301657}
    16311658
    16321659.rtl .handbook-breadcrumbs {
    16331660    left: inherit;
    1634     right: 280px;
     1661    right: calc(25% + var(--wp--preset--spacing--edge-space));
    16351662    padding-left: 34px;
    16361663    padding-right: inherit;
    1637 }
    1638 
    1639 .single-handbook .handbook-breadcrumbs ~ #primary {
    1640     padding-top: 9rem;
    16411664}
    16421665
     
    16551678
    16561679@media (max-width: 876px) {
    1657     .handbook-breadcrumbs {
    1658         top: 3rem;
    1659         left: 22px;
    1660     }
    1661 
    1662     .single-handbook .handbook-breadcrumbs ~ #primary {
    1663         padding-top: 7rem;
    1664     }
    1665 
    1666     .single-handbook .handbook-name-container ~ .handbook-breadcrumbs {
    1667         top: 6rem;
    1668     }
    1669 
    16701680    .single-handbook .handbook-name-container ~ .handbook-breadcrumbs ~ #primary {
    16711681        padding-top: 14rem;
     
    16761686.post-type-archive-handbook div.table-of-contents,
    16771687.single-handbook div.table-of-contents {
    1678     float: right;
     1688    float: inline-end;
    16791689    width: 250px;
    16801690    background: #f7f7f7;
     
    16951705.single-handbook div.table-of-contents {
    16961706    background-color: #fff;
    1697     box-shadow: 0 0 8px rgba(0,0,0,0.1);
    1698     border-radius: 3px;
     1707    border-radius: 2px;
     1708    border: 1px solid var(--wp--custom--color--border);
    16991709}
    17001710
    17011711@media (min-width: 971px) {
    1702     .post-type-archive-handbook div.table-of-contents,
    1703     .single-handbook div.table-of-contents {
    1704         margin: 0 -30px 15px 15px;
    1705     }
    17061712
    17071713    .rtl.post-type-archive-handbook div.table-of-contents,
     
    17171723.single-handbook div.table-of-contents h3 {
    17181724    margin: 0;
    1719     padding: 7px 12px;
    1720     font-size: 1.3em;
    1721     color: #32373c;
    1722     text-transform: uppercase;
    1723     border-bottom: 1px solid #eee;
     1725    padding: 10px 12px;
     1726    font-size: var(--wp--preset--font-size--small);
     1727    border-bottom: 1px solid var(--wp--custom--color--border);
    17241728}
    17251729
     
    17271731.single-handbook ul.items {
    17281732    margin: 0;
     1733    padding: 10px 12px;
    17291734    list-style-type: none;
    1730     padding: 1rem;
     1735    line-height: var(--wp--custom--body--short-text--typography--line-height);
     1736}
     1737
     1738.post-type-archive-handbook ul.items ul,
     1739.single-handbook ul.items ul {
     1740    margin-left: unset;
    17311741}
    17321742
     
    17341744.single-handbook ul.items li {
    17351745    padding: 4px;
     1746    font-size: var(--wp--preset--font-size--small);
    17361747}
    17371748
     
    17501761.post-type-archive-handbook ul.items li a:hover,
    17511762.single-handbook ul.items li a:hover {
    1752     color: #0073aa;
    17531763    text-decoration: underline;
    17541764}
    17551765
     1766.toc-heading a:before {
     1767    margin: 2px 5px 0 !important;
     1768    font-size: var(--wp--preset--font-size--small);
     1769}
     1770
     1771@media (max-width: 876px) {
     1772    .toc-heading a:before {
     1773        width: 20px !important;
     1774        height: 20px !important;
     1775    }
     1776}
     1777
     1778@media (min-width: 877px) {
     1779    :not(:hover) .toc-heading a:before {
     1780        content: "";
     1781    }
     1782}
     1783
    17561784/* Highlight current heading and adjust scroll position for fixed toolbar */
    1757 .toc-heading:target {
     1785.toc-heading {
    17581786    position: relative;
    1759     padding-top: 50px;
    1760     margin-top: -50px;
    1761 }
    1762 
    1763 /* Remove negative margin because there is no jump link before these headlines */
    1764 .entry-content h2.toc-heading:first-of-type:target,
    1765 .entry-content h3.toc-heading:first-of-type:target,
    1766 h2.toc-heading + h3.toc-heading:target {
    1767     margin-top: 0;
    1768 }
     1787    scroll-margin-top: 50px;
     1788}
     1789
    17691790
    17701791.toc-heading:target:before {
     
    17721793    position: absolute;
    17731794    left: -40px;
    1774     top: 50px;
    1775     border-left: 5px solid #0073aa;
    1776     height: 50%;
    1777     height: calc(100% - 50px);
     1795    border-left: 5px solid var(--wp--preset--color--blueberry-1);
     1796    height: 100%;
    17781797}
    17791798
     
    17851804}
    17861805
    1787 @media(max-width: 876px) {
     1806@media (max-width: 876px) {
    17881807    .toc-heading:target:before {
    17891808        left: -10px;
    17901809    }
    1791     .toc-heading:target:before {
    1792         left: inherit;
    1793         right: -10px;
    1794     }
    17951810}
    17961811
    17971812.toc-jump {
    17981813    position: relative;
    1799     height: 50px;
     1814    margin-bottom: unset;
     1815    font-size: var(--wp--preset--font-size--extra-small) !important;
    18001816}
    18011817
     
    18341850}
    18351851
    1836 .menu-table-of-contents-container {
    1837   font-size: 0.8em;
    1838 }
    18391852.menu-table-of-contents-container ul {
    1840   margin-left: 0;
    1841   padding-left: 0;
    1842   list-style: none;
    1843 }
     1853    margin-left: 0;
     1854    padding-left: 0;
     1855    list-style: none;
     1856}
     1857
    18441858#secondary .menu-table-of-contents-container ul li {
    1845   margin: 1px 0;
    1846   padding: 0;
    1847   position: relative;
    1848 }
     1859    padding: 0;
     1860    position: relative;
     1861}
     1862
    18491863#secondary .menu-table-of-contents-container ul ul {
    1850     margin-left: 12px;
    1851     border-left: 2px solid #21759b;
    1852 }
     1864    margin-left: var(--wp--style--block-gap);
     1865}
     1866
    18531867.menu-table-of-contents-container ul li .expandable {
    1854   display: flex;
    1855   flex-direction: row-reverse;
    1856   align-items: stretch;
    1857   position: relative;
    1858 }
     1868    display: flex;
     1869    flex-direction: row-reverse;
     1870    align-items: stretch;
     1871    position: relative;
     1872}
     1873
    18591874.menu-table-of-contents-container ul li .dashicons {
    1860   position: absolute;
    1861   right: 0;
    1862   cursor: pointer;
    1863   padding: 8px 4px;
    1864   display: inline-block;
    1865   width: auto;
    1866   height: 100%;
    1867   color: #0073aa;
    1868   background-color: #fafafa;
    1869   border: 0;
    1870   border-left: 1px solid rgba(0,0,0,0.05);
    1871   border-radius: 0;
    1872   box-shadow: none;
    1873   -webkit-appearance: none;
    1874 }
    1875 .menu-table-of-contents-container ul li .dashicons:hover,
    1876 .menu-table-of-contents-container ul li .dashicons:focus {
    1877   color: #fff;
    1878   background-color: #0073aa;
    1879 }
     1875    position: absolute;
     1876    right: 0;
     1877    cursor: pointer;
     1878    padding: 8px 4px;
     1879    display: inline-block;
     1880    width: auto;
     1881    height: 100%;
     1882    background-color: #fafafa;
     1883    border: 0;
     1884    border-left: none;
     1885    color: var(--wp--preset--color--charcoal-1);
     1886    background: none;
     1887    font-size: var(--wp--preset--font-size--small);
     1888    border-radius: 0;
     1889    box-shadow: none;
     1890    -webkit-appearance: none;
     1891}
     1892
    18801893.menu-table-of-contents-container ul li.open > div > .dashicons {
    1881   transform: rotate(180deg);
    1882   border-right: 1px solid rgba(0,0,0,0.05);
    1883   border-left: none;
    1884 }
    1885 .menu-table-of-contents-container .current_page_ancestor:not(.open) .expandable .dashicons:not(:focus),
    1886 .menu-table-of-contents-container .current_page_item > .expandable .dashicons:not(:focus) {
    1887     background: #fff;
    1888     color: #0073aa;
    1889 }
     1894    transform: rotate(180deg);
     1895    border: none;
     1896}
     1897
    18901898.menu-table-of-contents-container ul a {
    1891   display: block;
    1892   width: 100%;
    1893   padding: 8px 8px 8px 13px;
    1894   text-decoration: none;
    1895 }
     1899    display: block;
     1900    width: 100%;
     1901    padding: 8px 0;
     1902    text-decoration: none;
     1903    font-size: var(--wp--preset--font-size--small);
     1904}
     1905
     1906.menu-table-of-contents-container ul a:focus {
     1907    text-decoration: underline;
     1908}
     1909
    18961910.menu-table-of-contents-container ul li.menu-item-has-children > .expandable > a {
    18971911    padding-right: 32px;
    18981912}
    1899 .menu-table-of-contents-container ul a:hover,
    1900 .menu-table-of-contents-container ul a:focus {
    1901   color: #fff;
    1902   background-color: #0073aa;
    1903 }
    1904 .menu-table-of-contents-container .current_page_ancestor .expandable .dashicons:hover,
    1905 .menu-table-of-contents-container .current_page_item .expandable .dashicons:hover {
    1906   background-color: #0073aa !important;
    1907   color: #fff !important;
    1908 }
     1913
    19091914.menu-table-of-contents-container ul a.active,
    19101915.menu-table-of-contents-container .current-menu-item > a {
    1911   color: #555;
    1912   background-color: #fff;
    1913   font-weight: bold;
    1914 }
    1915 
    1916 .menu-table-of-contents-container > ul > li.open > div > a:not(:focus) {
    1917   color: #0073aa;
    1918 }
    1919 .menu-table-of-contents-container > ul > li.open > div > a:hover {
    1920   color: #fff;
    1921   background-color: #0073aa;
    1922 }
     1916    background-color: #fff;
     1917    font-weight: bold;
     1918}
     1919
    19231920.menu-table-of-contents-container ul.default-open {
    1924   display: block !important;
    1925 }
     1921    display: block !important;
     1922}
     1923
    19261924.menu-table-of-contents-container .current-menu-item ul,
    19271925.menu-table-of-contents-container .current-menu-ancestor ul {
    19281926    display: block;
    19291927}
     1928
    19301929.menu-table-of-contents-container .children {
    1931   overflow: hidden;
    1932   display: none;
     1930    overflow: hidden;
     1931    display: none;
    19331932}
    19341933
     
    19361935.post-type-archive-handbook #page,
    19371936.single-handbook #page {
    1938     background: linear-gradient(to right, #fafafa 40%, #fff 40%);
    19391937    max-width: 100%;
    19401938    padding: 0;
    19411939}
    19421940
    1943 .rtl.post-type-archive-handbook #page,
    1944 .rtl.single-handbook #page {
    1945     background: linear-gradient(to left, #fafafa 40%, #fff 40%);
    1946 }
    1947 
    19481941.post-type-archive-handbook #main,
    19491942.single-handbook #main {
    1950     max-width: 1024px;
    1951     margin: 0 auto;
    1952     display: flex;
     1943    display: grid;
     1944    grid-template-columns: 25% auto;
     1945    grid-template-rows: 40px auto;
     1946    column-gap: 60px;
     1947    padding-top: var(--wp--preset--spacing--40);
     1948}
     1949
     1950@media (max-width: 876px) {
     1951    post-type-archive-handbook #main,
     1952    .single-handbook #main {
     1953        grid-template-columns: auto;
     1954        column-gap: unset;
     1955    }
     1956}
     1957
     1958.post-type-archive-handbook #primary,
     1959.single-handbook #primary {
     1960    width: 100%;
     1961}
     1962
     1963.post-type-archive-handbook #main:before,
     1964.post-type-archive-handbook #main:after,
     1965.single-handbook #main:before,
     1966.single-handbook #main:after {
     1967    display: none;
    19531968}
    19541969
     
    19621977    clear: left;
    19631978    margin: 0;
    1964     background: #fafafa;
    19651979}
    19661980
    19671981.post-type-archive-handbook #primary,
    19681982.single-handbook #primary {
    1969     padding: 4rem 0 4rem 4rem;
    1970     background: #fff;
    1971     box-sizing: border-box;
     1983    position: relative;
     1984    padding: unset;
     1985    grid-column-start: 2;
    19721986}
    19731987
     
    19781992}
    19791993
    1980 @media(max-width: 876px) {
    1981     .post-type-archive-handbook #primary,
    1982     .single-handbook #primary {
    1983         padding: 4rem 20px;
    1984     }
    1985 }
    1986 
    1987 .post-type-archive-handbook #secondary-content,
    1988 .single-handbook #secondary-content {
    1989     padding-top: 4rem;
    1990 }
    1991 
    19921994.post-type-archive-handbook .widget_wporg_handbook_pages,
    19931995.single-handbook .widget_wporg_handbook_pages {
     
    19951997}
    19961998
    1997 .post-type-archive-handbook nav.o2-post-actions button,
    1998 .single-handbook nav.o2-post-actions button {
    1999     margin-right: 16.8px;
    2000     top: 10px;
    2001 }
    2002 
    2003 .post-type-archive-handbook nav.o2-post-actions ul,
    2004 .single-handbook nav.o2-post-actions ul {
    2005     margin-right: 16.8px;
    2006     top: 9px;
     1999.post-type-archive-handbook nav.o2-post-actions,
     2000.single-handbook nav.o2-post-actions {
     2001    position: absolute;
     2002    top: -36px;
     2003    inset-inline-end: 0;
    20072004}
    20082005
     
    20172014    }
    20182015
    2019     .single-handbook .handbook-breadcrumbs ~ #primary {
    2020         padding-top: 10rem;
     2016    .post-type-archive-handbook nav.o2-post-actions,
     2017    .single-handbook nav.o2-post-actions {
     2018        top: -6px;
     2019    }
     2020
     2021    .single-handbook .o2-post {
     2022        position: relative;
    20212023    }
    20222024}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/theme.json

    r14050 r14054  
    161161            ]
    162162        }
     163    },
     164    "styles": {
     165        "blocks": {
     166            "core/quote": {
     167                "spacing": {
     168                    "margin": {
     169                        "bottom": "var(--wp--style--block-gap)"
     170                    }
     171                }
     172            }
     173        }
    163174    }
    164175}
Note: See TracChangeset for help on using the changeset viewer.