Skip to content

Commit

Permalink
Breathe 2024: Fix RTL issues
Browse files Browse the repository at this point in the history
Primary and secondary column order.
List padding.
Local nav padding.

See #377


git-svn-id: https://meta.svn.wordpress.org/sites/trunk@14268 74240141-8908-4e6f-9713-ba540dce6ec7
  • Loading branch information
Adam Wood committed Dec 11, 2024
1 parent 2b603c7 commit da8b943
Showing 1 changed file with 36 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ ol ul {
font-size: inherit;
}

.rtl ul,
.rtl ol {
margin-left: 0;
margin-right: 25px;
}

h1,
h2,
h3,
Expand Down Expand Up @@ -174,6 +168,14 @@ tr:last-of-type td {
left: 0;
}

@media (max-width: 876px) {
.content-area table {
display: block;
max-width: fit-content;
overflow-x: auto;
}
}

/*
* Block styles
*/
Expand All @@ -196,6 +198,15 @@ tr:last-of-type td {
background-color: color-mix( in srgb, currentColor 7%, transparent );
}

/* TODO: This should be handled by RTL CSS in mu-plugins */
[dir="rtl"] .wp-block-wporg-local-navigation-bar {
padding-right: var(--wp--preset--spacing--edge-space);

@media (max-width: 889px) {
padding-left: unset;
}
}

/* 2021 global header/footer */

.wp-block-group.global-header button,
Expand Down Expand Up @@ -898,9 +909,28 @@ input[type="submit"]:hover {
}
}

#primary {
width: 68%;
float: inline-start;
padding-right: unset;
padding-inline-end: var(--wp--preset--spacing--20);
}

#secondary {
float: inline-end;
clear: inline-end;
}

@media (max-width: 876px) {
#primary {
width: 100%;
}
}

@media (max-width: 876px) {
#primary {
-webkit-backface-visibility: initial;
padding-inline-end: unset;
}

#secondary {
Expand Down Expand Up @@ -977,22 +1007,6 @@ input[type="submit"]:hover {

}

.content-area {
width: 68%;
}

@media (max-width: 876px) {
.content-area {
width: 100%;
}

.content-area table {
display: block;
max-width: fit-content;
overflow-x: auto;
}
}

.post-type-archive-handbook aside[id^="handbook"] .widget-title,
.post-type-archive-handbook aside[id^="nav_menu"] .widget-title,
.single-handbook aside[id^="handbook"] .widget-title,
Expand Down

0 comments on commit da8b943

Please sign in to comment.