From 8f42baf96859f95d41943d8c870a1b38fb52ccb1 Mon Sep 17 00:00:00 2001 From: Amin Sharifi Date: Tue, 31 Oct 2023 10:07:04 +0330 Subject: [PATCH] Fixture code and footer content tags in rtl content (#1433) Part of #671 and #1413 In the code part of content which always is in english and must be `text-align: left` but with `` cuz conflict. --------- Co-authored-by: Kaveh --- book.toml | 1 + theme/css/rtl.css | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 theme/css/rtl.css diff --git a/book.toml b/book.toml index e24d7804347d..c7ef94262067 100644 --- a/book.toml +++ b/book.toml @@ -35,6 +35,7 @@ additional-css = [ "theme/css/speaker-notes.css", "theme/css/language-picker.css", "theme/css/frontmatter.css", + "theme/css/rtl.css", ] site-url = "/comprehensive-rust/" git-repository-url = "https://github.com/google/comprehensive-rust" diff --git a/theme/css/rtl.css b/theme/css/rtl.css new file mode 100644 index 000000000000..ff977988777b --- /dev/null +++ b/theme/css/rtl.css @@ -0,0 +1,7 @@ +[dir="rtl"] .hljs, +[dir="rtl"] pre > code { + text-align: left; +} +[dir="rtl"] #cookieBar { + direction: ltr; +}