From 50fcbcf2a7f0ef10a753d7e31bbf93a40c58974d Mon Sep 17 00:00:00 2001 From: Adam Wood Date: Fri, 20 Jan 2023 14:05:52 +1300 Subject: [PATCH] Add RTL support --- .../themes/wporg-main-2022/patterns/about.php | 4 +-- .../wporg-main-2022/src/style/style.scss | 30 +++++++++++++++++-- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/source/wp-content/themes/wporg-main-2022/patterns/about.php b/source/wp-content/themes/wporg-main-2022/patterns/about.php index a39bac91..28476245 100644 --- a/source/wp-content/themes/wporg-main-2022/patterns/about.php +++ b/source/wp-content/themes/wporg-main-2022/patterns/about.php @@ -93,8 +93,8 @@ -
-

+
+

diff --git a/source/wp-content/themes/wporg-main-2022/src/style/style.scss b/source/wp-content/themes/wporg-main-2022/src/style/style.scss index fc37342f..dc08cebc 100644 --- a/source/wp-content/themes/wporg-main-2022/src/style/style.scss +++ b/source/wp-content/themes/wporg-main-2022/src/style/style.scss @@ -121,6 +121,12 @@ html[dir="rtl"] :where([style*="border-right-color"]) { background-image: url(../../images/about-cover-underline.svg); background-repeat: no-repeat; background-position: center; + + [dir="rtl"] & { + left: unset; + right: -5px; + transform: scaleX(-1); + } } } @@ -152,9 +158,27 @@ html[dir="rtl"] :where([style*="border-right-color"]) { } } - > span { - &:last-child { - grid-row: 3; + > span:last-child { + grid-row: 3; + text-align: left; + } + + [dir="rtl"] & { + text-align: left; + + &::after { + transform: scaleX(-1); + } + + > span:last-child { + text-align: right; + } + } +} + +.wporg-about-cover-intro { + [dir="rtl"] & { + p { text-align: left; } }