Skip to content

Commit 3b245ca

Browse files
Copilotbrunoborges
andcommitted
Fix Arabic RTL flipping code snippets and nav bar
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
1 parent 3ffc524 commit 3b245ca

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

site/styles.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,3 +1653,21 @@ footer a:hover {
16531653
text-decoration: underline;
16541654
margin-left: 8px;
16551655
}
1656+
1657+
/* ============================
1658+
RTL overrides — keep code blocks and nav LTR
1659+
============================ */
1660+
[dir="rtl"] nav,
1661+
[dir="rtl"] .nav-inner {
1662+
direction: ltr;
1663+
}
1664+
1665+
[dir="rtl"] pre,
1666+
[dir="rtl"] code,
1667+
[dir="rtl"] .code-text,
1668+
[dir="rtl"] .card-code,
1669+
[dir="rtl"] .compare-code {
1670+
direction: ltr;
1671+
text-align: left;
1672+
unicode-bidi: embed;
1673+
}

0 commit comments

Comments
 (0)