Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/apps/web/app/globals.css
diff options
context:
space:
mode:
authorLeitwolf112026-10-03 15:42:08 +0300
committerLeitwolf112026-10-03 15:42:08 +0300
commit549b164464855ae3605c03b58497f91d26555418 (patch)
tree829df551495a11df26b1ebd4cd877db3297deaae /apps/web/app/globals.css
parent715953aeaa98ba977e694e8897ccd40151ee0ac0 (diff)
parent282b015e23474c3bb78fe303af627248f5bd2d7a (diff)
downloadprogmaweb-ci/docfx.tar.gz
Merge remote-tracking branch 'origin/main' into ci/docfxci/docfx
Diffstat (limited to 'apps/web/app/globals.css')
-rw-r--r--apps/web/app/globals.css22
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
index 2022863..3a27983 100644
--- a/apps/web/app/globals.css
+++ b/apps/web/app/globals.css
@@ -1393,3 +1393,25 @@ a {
transition-duration: 0.01ms !important;
}
}
+
+/*
+ * Right-to-left text. Only the text follows the direction of the language:
+ * the page layout, the navigation and code keep their left-to-right
+ * arrangement. Blocks of prose run right to left, and short pieces such as
+ * links, buttons and list items take the direction of their own first
+ * letter, so a product name on its own still reads left to right.
+ */
+[data-text-direction="rtl"]
+ :is(h1, h2, h3, h4, h5, h6, p, blockquote, figcaption, dt, dd, legend) {
+ direction: rtl;
+}
+
+[data-text-direction="rtl"]
+ :is(a, button, label, li, small, strong, span, option, summary) {
+ unicode-bidi: plaintext;
+}
+
+[data-text-direction="rtl"] :is(code, pre, kbd, samp, input) {
+ direction: ltr;
+ unicode-bidi: isolate;
+}