Making WordPress.org

Changeset 14036


Ignore:
Timestamp:
09/10/2024 04:01:02 AM (15 months ago)
Author:
adamwood
Message:

Make 2024: Complete o2 editor styling

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

File:
1 edited

Legend:

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

    r14034 r14036  
    129129#primary thead td,
    130130#primary thead th {
    131     font-weight: bold;
     131    font-weight: bold;
    132132}
    133133
     
    333333}
    334334
    335 .o2-editor .o2-editor-footer .o2-editor-tabs li.selected a {
    336     border-top: 1px #fff solid;
    337     background: #fff;
    338 }
    339 
    340 .o2-editor .o2-editor-footer .o2-editor-tabs li a {
    341     padding: 0.25em 1.2em 0.5em 1.2em;
    342     background: var(--wp--preset--color--light-grey-2);
    343     border: 1px solid var(--wp--preset--color--charcoal-5);
    344     border-top: 1px solid var(--wp--preset--color--light-grey-2);
    345     vertical-align: middle;
    346     -webkit-border-bottom-left-radius: 3px;
    347     -webkit-border-bottom-right-radius: 3px;
    348     -moz-border-radius-bottomleft: 3px;
    349     -moz-border-radius-bottomright: 3px;
     335.o2-editor .o2-editor-footer .o2-editor-tabs li {
     336    border-top-color: var(--wp--custom--form--border--color);
     337}
     338
     339.o2-editor .o2-editor-footer .o2-editor-tabs li:first-of-type {
     340    border-left-color: var(--wp--custom--form--border--color);
     341    border-top-color: var(--wp--custom--form--border--color);
     342    -webkit-border-bottom-left-radius: 2px;
     343    -webkit-border-bottom-right-radius: 2px;
     344    -moz-border-radius-bottomleft: 2px;
     345    -moz-border-radius-bottomright: 2px;
    350346    border-bottom-left-radius: 2px;
    351347    border-bottom-right-radius: 2px;
    352     font-family: "Inter", sans-serif;
     348    -webkit-background-clip: padding-box;
     349}
     350
     351.o2-editor .o2-editor-footer .o2-editor-tabs li.selected {
     352    border-top-color: var(--wp--preset--color--white);
     353}
     354
     355.o2-editor .o2-editor-footer .o2-editor-tabs li a {
     356    background: var(--wp--preset--color--light-grey-2);
     357    border-color: var(--wp--custom--form--border--color);
     358    border-top-color: transparent;
     359    -webkit-border-bottom-left-radius: 2px;
     360    -webkit-border-bottom-right-radius: 2px;
     361    -moz-border-radius-bottomleft: 2px;
     362    -moz-border-radius-bottomright: 2px;
     363    border-bottom-left-radius: 2px;
     364    border-bottom-right-radius: 2px;
    353365    font-size: 12px;
    354     border-left: 0px;
    355 }
    356 
    357 .o2-editor .o2-editor-footer .o2-editor-tabs li:first-of-type {
    358     border-left: 1px solid var(--wp--preset--color--charcoal-5);
    359366}
    360367
     
    362369    content: none;
    363370}
     371
     372.o2-save.primary,
     373.o2-cancel.primary,
     374.o2-comment-save.primary,
     375.o2-comment-cancel.primary,
     376.o2-new-comment-cancel.primary {
     377    border: none;
     378    background: var(--wp--custom--button--color--background);
     379    font-weight: 600;
     380    color: var(--wp--custom--button--color--text);
     381    font-family: inherit;
     382    line-height: var(--wp--custom--button--typography--line-height);
     383    padding-top: calc(var(--wp--custom--button--spacing--padding--top) + var(--wp--custom--button--border--width));
     384    padding-bottom: calc(var(--wp--custom--button--spacing--padding--bottom) + var(--wp--custom--button--border--width));
     385    padding-left: calc(var(--wp--custom--button--spacing--padding--left) + var(--wp--custom--button--border--width));
     386    padding-right: calc(var(--wp--custom--button--spacing--padding--right) + var(--wp--custom--button--border--width));
     387}
     388
     389.o2-save.primary:hover,
     390.o2-cancel.primary:hover,
     391.o2-comment-save.primary:hover,
     392.o2-comment-cancel.primary:hover,
     393.o2-new-comment-cancel.primary:hover {
     394    color: var(--wp--custom--button--hover--color--text);
     395    background: var(--wp--custom--button--hover--color--background);
     396}
     397
     398.o2-save.primary:active,
     399.o2-cancel.primary:active,
     400.o2-comment-save.primary:active,
     401.o2-comment-cancel.primary:active,
     402.o2-new-comment-cancel.primary:active {
     403    color: var(--wp--custom--button--active--color--text);
     404    background: var(--wp--custom--button--active--color--background);
     405    padding-top: var(--wp--custom--button--spacing--padding--top);
     406    padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
     407    padding-left: var(--wp--custom--button--spacing--padding--left);
     408    padding-right: var(--wp--custom--button--spacing--padding--right);
     409    border: var(--wp--custom--button--border--width) solid currentColor;
     410}
     411
     412.o2-save.primary:focus,
     413.o2-cancel.primary:focus,
     414.o2-comment-save.primary:focus,
     415.o2-comment-cancel.primary:focus,
     416.o2-new-comment-cancel.primary:focus {
     417    box-shadow: inset 0 0 0 3px var(--wp--preset--color--white);
     418    outline: 1.5px solid var(--wp--custom--button--focus--border--color);
     419    outline-offset: -1.5px;
     420}
     421
     422/* .o2-editor .o2-editor-footer > a,
     423.o2-save.primary,
     424.o2-cancel.primary,
     425.o2-comment-save.primary,
     426.o2-comment-cancel.primary,
     427.o2-new-comment-cancel.primary {
     428}
     429
     430.o2-editor .o2-editor-footer > a {
     431    color: var(--wp--preset--color--blueberry-1);
     432    background: transparent;
     433    border: 1px solid;
     434}
     435
     436.o2-editor .o2-editor-footer > .o2-save.primary,
     437.o2-editor .o2-editor-footer > .o2-cancel.primary,
     438.o2-editor .o2-editor-footer > .o2-comment-save.primary,
     439.o2-editor .o2-editor-footer > .o2-comment-cancel.primary,
     440.o2-editor .o2-editor-footer > .o2-new-comment-cancel.primary {
     441    color: var(--wp--custom--button--color--text);
     442    background: var(--wp--custom--button--color--background);
     443    border: none;
     444} */
    364445
    365446/* Sidebar */
     
    790871body > #grav-throbber,
    791872body > a.grav-tilt-parent {
    792     display: none;
     873    display: none;
    793874}
    794875
     
    15831664
    15841665.widget_wporg_handbook_pages h1 {
    1585     font-size: 1.6em;
    1586     font-weight: bold;
    1587     margin-bottom: 0.6em;
     1666    font-size: 1.6em;
     1667    font-weight: bold;
     1668    margin-bottom: 0.6em;
    15881669}
    15891670
     
    17631844@media (max-width: 550px) {
    17641845    nav.o2-post-actions ul {
    1765         left: initial;
     1846        left: initial;
    17661847    }
    17671848
Note: See TracChangeset for help on using the changeset viewer.