Skip to content

Commit cae8c63

Browse files
authored
Merge pull request #97 from javaevolved/copilot/fix-arabic-flipping-issue
Fix Arabic RTL flipping Java code blocks and nav bar
2 parents 904e059 + 3b245ca commit cae8c63

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)