Skip to content

Commit

Permalink
Fixture code and footer content tags in rtl content (#1433)
Browse files Browse the repository at this point in the history
Part of #671 
and #1413

In the code part of content which always is in english and must be
`text-align: left` but with `<html ... dir=rtl >` cuz conflict.

---------

Co-authored-by: Kaveh <hamidrkp@riseup.net>
  • Loading branch information
moaminsharifi and hamidrezakp authored Oct 31, 2023
1 parent 9d2043e commit 8f42baf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 7 additions & 0 deletions theme/css/rtl.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[dir="rtl"] .hljs,
[dir="rtl"] pre > code {
text-align: left;
}
[dir="rtl"] #cookieBar {
direction: ltr;
}

0 comments on commit 8f42baf

Please sign in to comment.