Making WordPress.org

Changeset 14044


Ignore:
Timestamp:
09/11/2024 06:07:36 AM (2 years ago)
Author:
adamwood
Message:

Make 2024: Update post styles

Sticky post and menu styles.

Closes https://github.com/WordPress/wordpress.org/issues/366

File:
1 edited

Legend:

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

    r14043 r14044  
    2121        background-size: 100%;
    2222        background-repeat: no-repeat;
     23}
     24
     25/* Override the Open Sans font for o2 plugin UI elements, and set to use the body font */
     26[class*="o2"]:not(body) {
     27        font-family: inherit !important;
     28}
     29/* The rule above can set Genericon wrappers to the body font, so set the actual icon element to the correct font */
     30.genericon:before,
     31.genericon:after {
     32        font-family: "Genericons";
    2333}
    2434
     
    386396        font-weight: 600;
    387397        color: var(--wp--custom--button--color--text);
    388         font-family: inherit;
    389398        line-height: var(--wp--custom--button--typography--line-height);
    390399        padding-top: calc(var(--wp--custom--button--spacing--padding--top) + var(--wp--custom--button--border--width));
     
    426435        border-radius: 2px;
    427436        background: var(--wp--custom--button--outline--color--background);
    428         font-family: inherit;
    429437        font-weight: 600 !important;
    430438        line-height: var(--wp--custom--button--typography--line-height);
     
    472480
    473481div.o2-comment-footer-actions ul li > a {
    474         font-family: inherit;
    475482        color: var(--wp--custom--link--color--text);
    476483        opacity: 1;
     
    490497}
    491498
     499nav.o2-dropdown-actions button.o2-dropdown-actions-disclosure.genericon:before {
     500        color: inherit;
     501}
     502
     503nav.o2-dropdown-actions ul {
     504        border-color: var(--wp--custom--color--border);
     505        box-shadow: unset;
     506        border-radius: 2px;
     507        overflow: hidden;
     508}
     509
     510nav.o2-dropdown-actions ul li {
     511        line-height: 1;
     512}
     513
     514nav.o2-dropdown-actions ul li > a.o2-actions-border-top,
     515nav.o2-dropdown-actions ul li > span > a.o2-actions-border-top {
     516        border-top-color: var(--wp--custom--color--border);
     517}
     518
    492519nav.o2-dropdown-actions ul li > a.genericon:before,
    493520nav.o2-dropdown-actions ul li > span > a.genericon:before {
    494521        color: inherit;
     522}
     523
     524nav.o2-dropdown-actions button.o2-dropdown-actions-disclosure.genericon:hover,
     525nav.o2-dropdown-actions button.o2-dropdown-actions-disclosure.open {
     526        background: unset;
     527}
     528
     529nav.o2-dropdown-actions ul li > a,
     530nav.o2-dropdown-actions ul li > span > a {
     531        color: inherit;
     532        font-size: var(--wp--preset--font-size--small);
     533        font-weight: 400;
    495534}
    496535
     
    9621001.post.sticky .o2-post {
    9631002        border: 0;
    964         border-top: 2px solid #ddd;
    965         background: #e5f5fa;
    966         padding-top: 3em;
     1003        border-top: none;
     1004        background: var(--wp--preset--color--blueberry-4);
     1005        padding-top: 40px !important;
     1006        margin-top: 40px;
    9671007        position: relative;
    9681008}
     
    9721012        font-family: dashicons;
    9731013        position: absolute;
    974         top: -2px;
    975         right: 45px;
    976         color: #fff;
    977         font-size: 18px;
    978         padding: 13px 5px 0px;
    979         background: #00a0d2;
     1014        top: 44px;
     1015        right: 60px;
     1016        font-size: var(--wp--preset--font-size--small);
     1017        padding: 4px;
     1018        background: var(--wp--preset--color--blueberry-1);
     1019        border-radius: 2px;
     1020        line-height: 14px;
     1021        color: var(--wp--preset--color--white);
    9801022}
    9811023
     
    11041146        padding: 0.5em 1em;
    11051147        font-size: var(--wp--preset--font-size--small);
    1106         font-family: inherit;
    11071148}
    11081149
Note: See TracChangeset for help on using the changeset viewer.