diff --git a/book.toml b/book.toml index e24d7804..c7ef9426 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 00000000..ff977988 --- /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; +}