Making WordPress.org

Changeset 14238


Ignore:
Timestamp:
12/05/2024 01:46:57 AM (22 months ago)
Author:
adamwood
Message:

Breathe 2024: RTL and o2 post form fixes

Fix issue with styling of o2 post form tabs.
Fix RTL display of mobile secondary fly out menu.
Fix RTL display of welcome box button.

Fixes https://github.com/WordPress/wordpress.org/issues/412
See https://github.com/WordPress/wordpress.org/issues/377

File:
1 edited

Legend:

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

    r14233 r14238  
    447447#respond .o2-editor .o2-editor-wrapper {
    448448        border-radius: 2px;
     449        border-end-start-radius: 0;
    449450        border: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--custom--form--border--color);
    450451        overflow: hidden;
     
    457458
    458459.o2-editor .o2-editor-footer .o2-editor-tabs li {
     460        position: relative;
    459461        border: 1px solid var(--wp--custom--form--border--color);
    460         border-bottom-left-radius: 2px;
    461         border-bottom-right-radius: 2px;
    462         overflow: hidden;
     462        border-end-start-radius: 2px;
     463        border-end-end-radius: 2px;
    463464}
    464465
    465466.o2-editor .o2-editor-footer .o2-editor-tabs li:first-of-type,
    466467#respond .o2-editor-footer .o2-editor-tabs li:first-of-type {
    467         border-left: 1px solid var(--wp--custom--form--border--color);
    468         border-top: 1px solid var(--wp--custom--form--border--color);
    469         border-bottom-left-radius: 2px;
    470         border-bottom-right-radius: 2px;
     468        border: 1px solid var(--wp--custom--form--border--color);
     469        border-end-start-radius: 2px;
     470        border-end-end-radius: 2px;
    471471        margin-inline-end: -1px;
     472}
     473
     474.o2-editor .o2-editor-footer .o2-editor-tabs li.selected::before,
     475#respond .o2-editor-footer .o2-editor-tabs li.selected::before,
     476.o2-editor .o2-editor-footer .o2-editor-tabs li.selected::after,
     477#respond .o2-editor-footer .o2-editor-tabs li.selected::after {
     478        display: block;
     479        content: '';
     480        position: absolute;
     481        inset-inline-start: -1px;
     482        inset-block-start: -1px;
     483        width: 1px;
     484        height: 1px;
     485        background: var(--wp--custom--form--border--color);
     486}
     487
     488.o2-editor .o2-editor-footer .o2-editor-tabs li.selected::after,
     489#respond .o2-editor-footer .o2-editor-tabs li.selected::after {
     490        inset-inline-start: unset;
     491        inset-inline-end: -1px;
    472492}
    473493
     
    481501        border: unset;
    482502        font-size: var(--wp--preset--font-size--small);
    483         border-radius: unset;
     503        border-end-start-radius: 1px;
     504        border-end-end-radius: 1px;
    484505}
    485506
     
    874895        }
    875896
     897        #secondary {
     898                top: var(--wp-admin--admin-bar--height, 0px);
     899                z-index: 500;
     900                left: unset;
     901                inset-inline-start: -100%;
     902        }
     903
    876904        body.responsive-show {
    877905                overflow-y: hidden;
     
    887915        }
    888916
     917        body.responsive-show #secondary {
     918                inset-inline-start: 0;
     919        }
     920
    889921        body.responsive-show #secondary-content .navigation-main {
    890922                margin-top: 0;
     
    904936        }
    905937
    906         #secondary {
    907                 top: var(--wp-admin--admin-bar--height, 0px);
    908                 z-index: 500;
    909         }
    910 
    911938        #secondary-toggle {
    912                 margin-left: var(--wp--preset--spacing--edge-space);
    913                 margin-right: 0;
     939                float: inline-start;
     940                margin-right: unset;
    914941                margin-top: -12px;
     942                text-align: end;
    915943        }
    916944
    917945        #main #secondary-toggle {
    918                 margin-left: 4px;
    919                 margin-right: var(--wp--style--block-gap);
     946                margin-inline-start: 4px;
     947                margin-inline-end: var(--wp--style--block-gap);
    920948                margin-top: 20px;
    921949        }
     
    14041432        border-left-width: 0;
    14051433        border-top-right-radius: 2px;
    1406         border-bottom-right-radius: 2px;
     1434        border-end-end-radius: 2px;
    14071435}
    14081436
     
    18081836}
    18091837
    1810 [dir="rtl"] .make-welcome #make-welcome-toggle::before,
    18111838.make-welcome #make-welcome-toggle::after {
    18121839        content: "\f343";
     
    18171844}
    18181845
    1819 [dir="rtl"] .make-welcome #make-welcome-toggle::after {
    1820         display: none;
    1821 }
    1822 
    1823 [dir="rtl"] .make-welcome.collapsed #make-welcome-toggle::before,
    18241846.make-welcome.collapsed #make-welcome-toggle::after {
    18251847        content: "\f347";
Note: See TracChangeset for help on using the changeset viewer.