Changeset 14054
- Timestamp:
- 09/16/2024 04:43:58 AM (15 months ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024
- Files:
-
- 2 edited
-
style.css (modified) (27 diffs)
-
theme.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/style.css
r14049 r14054 85 85 h2 { 86 86 font-size: var(--wp--preset--font-size--heading-3); 87 line-height: var(--wp--custom--heading--level-2--typography--line-height); 87 88 } 88 89 89 90 h3 { 90 91 font-size: var(--wp--preset--font-size--heading-5); 92 line-height: var(--wp--custom--heading--level-5--typography--line-height); 91 93 } 92 94 93 95 h4 { 94 96 font-size: var(--wp--preset--font-size--heading-6); 97 line-height: var(--wp--custom--heading--level-6--typography--line-height); 95 98 } 96 99 … … 212 215 213 216 .site, 214 .custom-menu .site { 217 .custom-menu .site, 218 .post-type-archive-handbook #main, 219 .single-handbook #main { 215 220 box-sizing: border-box; 216 221 margin: 0 auto; … … 522 527 } 523 528 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 524 544 nav.o2-dropdown-actions button.o2-dropdown-actions-disclosure.genericon:hover, 525 545 nav.o2-dropdown-actions button.o2-dropdown-actions-disclosure.open { … … 558 578 line-height: var(--wp--custom--heading--level-5--typography--line-height); 559 579 font-size: var(--wp--preset--font-size--heading-5); 560 }561 562 #secondary-content .widget_wporg_handbook_pages a {563 text-decoration: none;564 580 } 565 581 … … 793 809 font-size: 16px; 794 810 text-transform: uppercase; 795 letter-spacing: 1px;796 811 background-color: transparent; 797 padding: 1rem 12px 1rem 8px;798 812 margin-bottom: 0; 799 813 color: inherit; … … 847 861 article#post-new .o2-post, 848 862 article.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 } 850 873 } 851 874 … … 1035 1058 font-family: dashicons; 1036 1059 position: absolute; 1037 top: 4 4px;1060 top: 45px; 1038 1061 right: 60px; 1039 1062 font-size: var(--wp--preset--font-size--small); … … 1469 1492 .post-type-archive-handbook .site-main .widget-area, 1470 1493 .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; 1473 1498 } 1474 1499 .handbook-header { … … 1480 1505 1481 1506 .single-handbook .content-area h1 { 1482 margin -top: 0;1507 margin: 0 0 var(--wp--style--block-gap); 1483 1508 padding-top: 0; 1484 1509 } … … 1512 1537 } 1513 1538 1514 @media (max-width: 876px) {1539 @media (max-width: 876px) { 1515 1540 .handbook-name-container { 1516 1541 padding-left: 22px; … … 1518 1543 width: 100%; 1519 1544 margin-left: 0; 1545 } 1546 1547 .single-handbook .content-area h1 { 1548 padding-right: 40px; 1520 1549 } 1521 1550 } … … 1623 1652 1624 1653 .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; 1630 1657 } 1631 1658 1632 1659 .rtl .handbook-breadcrumbs { 1633 1660 left: inherit; 1634 right: 280px;1661 right: calc(25% + var(--wp--preset--spacing--edge-space)); 1635 1662 padding-left: 34px; 1636 1663 padding-right: inherit; 1637 }1638 1639 .single-handbook .handbook-breadcrumbs ~ #primary {1640 padding-top: 9rem;1641 1664 } 1642 1665 … … 1655 1678 1656 1679 @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 1670 1680 .single-handbook .handbook-name-container ~ .handbook-breadcrumbs ~ #primary { 1671 1681 padding-top: 14rem; … … 1676 1686 .post-type-archive-handbook div.table-of-contents, 1677 1687 .single-handbook div.table-of-contents { 1678 float: right;1688 float: inline-end; 1679 1689 width: 250px; 1680 1690 background: #f7f7f7; … … 1695 1705 .single-handbook div.table-of-contents { 1696 1706 background-color: #fff; 1697 bo x-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); 1699 1709 } 1700 1710 1701 1711 @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 }1706 1712 1707 1713 .rtl.post-type-archive-handbook div.table-of-contents, … … 1717 1723 .single-handbook div.table-of-contents h3 { 1718 1724 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); 1724 1728 } 1725 1729 … … 1727 1731 .single-handbook ul.items { 1728 1732 margin: 0; 1733 padding: 10px 12px; 1729 1734 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; 1731 1741 } 1732 1742 … … 1734 1744 .single-handbook ul.items li { 1735 1745 padding: 4px; 1746 font-size: var(--wp--preset--font-size--small); 1736 1747 } 1737 1748 … … 1750 1761 .post-type-archive-handbook ul.items li a:hover, 1751 1762 .single-handbook ul.items li a:hover { 1752 color: #0073aa;1753 1763 text-decoration: underline; 1754 1764 } 1755 1765 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 1756 1784 /* Highlight current heading and adjust scroll position for fixed toolbar */ 1757 .toc-heading :target{1785 .toc-heading { 1758 1786 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 1769 1790 1770 1791 .toc-heading:target:before { … … 1772 1793 position: absolute; 1773 1794 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%; 1778 1797 } 1779 1798 … … 1785 1804 } 1786 1805 1787 @media (max-width: 876px) {1806 @media (max-width: 876px) { 1788 1807 .toc-heading:target:before { 1789 1808 left: -10px; 1790 1809 } 1791 .toc-heading:target:before {1792 left: inherit;1793 right: -10px;1794 }1795 1810 } 1796 1811 1797 1812 .toc-jump { 1798 1813 position: relative; 1799 height: 50px; 1814 margin-bottom: unset; 1815 font-size: var(--wp--preset--font-size--extra-small) !important; 1800 1816 } 1801 1817 … … 1834 1850 } 1835 1851 1836 .menu-table-of-contents-container {1837 font-size: 0.8em;1838 }1839 1852 .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 1844 1858 #secondary .menu-table-of-contents-container ul li { 1845 margin: 1px0;1846 padding: 0;1847 position: relative; 1848 } 1859 padding: 0; 1860 position: relative; 1861 } 1862 1849 1863 #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 1853 1867 .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 1859 1874 .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 1880 1893 .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 1890 1898 .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 1896 1910 .menu-table-of-contents-container ul li.menu-item-has-children > .expandable > a { 1897 1911 padding-right: 32px; 1898 1912 } 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 1909 1914 .menu-table-of-contents-container ul a.active, 1910 1915 .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 1923 1920 .menu-table-of-contents-container ul.default-open { 1924 display: block !important; 1925 } 1921 display: block !important; 1922 } 1923 1926 1924 .menu-table-of-contents-container .current-menu-item ul, 1927 1925 .menu-table-of-contents-container .current-menu-ancestor ul { 1928 1926 display: block; 1929 1927 } 1928 1930 1929 .menu-table-of-contents-container .children { 1931 overflow: hidden;1932 display: none;1930 overflow: hidden; 1931 display: none; 1933 1932 } 1934 1933 … … 1936 1935 .post-type-archive-handbook #page, 1937 1936 .single-handbook #page { 1938 background: linear-gradient(to right, #fafafa 40%, #fff 40%);1939 1937 max-width: 100%; 1940 1938 padding: 0; 1941 1939 } 1942 1940 1943 .rtl.post-type-archive-handbook #page,1944 .rtl.single-handbook #page {1945 background: linear-gradient(to left, #fafafa 40%, #fff 40%);1946 }1947 1948 1941 .post-type-archive-handbook #main, 1949 1942 .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; 1953 1968 } 1954 1969 … … 1962 1977 clear: left; 1963 1978 margin: 0; 1964 background: #fafafa;1965 1979 } 1966 1980 1967 1981 .post-type-archive-handbook #primary, 1968 1982 .single-handbook #primary { 1969 p adding: 4rem 0 4rem 4rem;1970 background: #fff;1971 box-sizing: border-box;1983 position: relative; 1984 padding: unset; 1985 grid-column-start: 2; 1972 1986 } 1973 1987 … … 1978 1992 } 1979 1993 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 1992 1994 .post-type-archive-handbook .widget_wporg_handbook_pages, 1993 1995 .single-handbook .widget_wporg_handbook_pages { … … 1995 1997 } 1996 1998 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; 2007 2004 } 2008 2005 … … 2017 2014 } 2018 2015 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; 2021 2023 } 2022 2024 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/theme.json
r14050 r14054 161 161 ] 162 162 } 163 }, 164 "styles": { 165 "blocks": { 166 "core/quote": { 167 "spacing": { 168 "margin": { 169 "bottom": "var(--wp--style--block-gap)" 170 } 171 } 172 } 173 } 163 174 } 164 175 }
Note: See TracChangeset
for help on using the changeset viewer.