1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-19 22:19:29 +02:00

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 `<html ... dir=rtl >` cuz conflict.

---------

Co-authored-by: Kaveh <hamidrkp@riseup.net>
This commit is contained in:
Amin Sharifi 2023-10-31 10:07:04 +03:30 committed by GitHub
parent 9d2043e17f
commit 8f42baf968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,7 @@ additional-css = [
"theme/css/speaker-notes.css", "theme/css/speaker-notes.css",
"theme/css/language-picker.css", "theme/css/language-picker.css",
"theme/css/frontmatter.css", "theme/css/frontmatter.css",
"theme/css/rtl.css",
] ]
site-url = "/comprehensive-rust/" site-url = "/comprehensive-rust/"
git-repository-url = "https://github.com/google/comprehensive-rust" git-repository-url = "https://github.com/google/comprehensive-rust"

7
theme/css/rtl.css Normal file
View File

@ -0,0 +1,7 @@
[dir="rtl"] .hljs,
[dir="rtl"] pre > code {
text-align: left;
}
[dir="rtl"] #cookieBar {
direction: ltr;
}