Making WordPress.org

Changeset 14308


Ignore:
Timestamp:
12/18/2024 03:45:52 AM (4 months ago)
Author:
adamwood
Message:

Breathe 2024: Improve RTL styles for local nav

Use logical properties to re-implement overridden mu-plugins RTL styles

File:
1 edited

Legend:

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

    r14277 r14308  
    199199}
    200200
    201 /* TODO: This should be handled by RTL CSS in mu-plugins */
    202 [dir="rtl"] .wp-block-wporg-local-navigation-bar {
    203     padding-right: var(--wp--preset--spacing--edge-space);
    204 
    205     @media (max-width: 889px) {
    206         padding-left: unset;
    207     }
    208 }
    209 
    210201/* 2021 global header/footer */
    211202
     
    251242/* Local navigation */
    252243
     244/* This is necessary because the p2-breathe reset styles set `div { padding: 0 }`, and the mu-plugins selector
     245 * `:where(.wp-block-wporg-local-navigation-bar)` is not specific enough to override it.
     246*/
    253247.wp-block-wporg-local-navigation-bar {
    254     padding-left: var(--wp--preset--spacing--edge-space);
    255 
    256     @media (min-width: 890px) {
    257         padding-right: var(--wp--preset--spacing--edge-space);
     248    padding-inline-start: var(--wp--preset--spacing--edge-space);
     249    padding-inline-end: var(--wp--preset--spacing--edge-space);
     250
     251    @media (max-width: 889px) {
     252        padding-inline-end: 0;
    258253    }
    259254}
Note: See TracChangeset for help on using the changeset viewer.