From c22bedbfcfbbd58410034a4bb8ddc0fdb2503814 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 6 Feb 2023 10:04:08 +0500 Subject: [PATCH] editor: use css for propagating text direction to child nodes --- packages/editor/styles/styles.css | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/packages/editor/styles/styles.css b/packages/editor/styles/styles.css index 7cd823044..1ceebb6f1 100644 --- a/packages/editor/styles/styles.css +++ b/packages/editor/styles/styles.css @@ -466,3 +466,32 @@ p > *::selection { .math-inline.math-select .math-render { padding-top: 2px; } */ + +/* RTL */ + +[dir="rtl"] * { + direction: rtl; +} + +[dir="rtl"] ul { + margin-left: 0px !important; +} + +blockquote[dir="rtl"] { + border-left: none; + padding-left: 0px; + border-right: 5px solid var(--border); + padding-right: 15px; +} + +.outline-list-item-toggle.rtl { + display: none; +} + +[dir="rtl"] .outline-list-item-toggle.rtl { + display: block; +} + +[dir="rtl"] .outline-list-item-toggle:not(.rtl) { + display: none; +} \ No newline at end of file