-
Notifications
You must be signed in to change notification settings - Fork 285
Add Right-to-Left support #955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0bc17a0
Add RTL support
ofekashery 8c61933
Fix code direction
ofekashery 4b40d9f
Fix versions popup align
ofekashery bfa7ecd
Add RTL support for hoverxref
ofekashery a124979
Fix reversing inline code
ofekashery 59bb6d9
Add a trailing newline
ofekashery File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| @import url('https://fonts.googleapis.com/css2?family=Heebo&display=swap'); | ||
|
|
||
| body, .rst-content .toctree-wrapper > p.caption, h1, h2, h3, h4, h5, h6, legend { | ||
| font-family: 'Heebo', sans-serif; | ||
| } | ||
| body { | ||
| direction: rtl; | ||
| } | ||
| .fa:before { | ||
| transform: scale(-1, 1); | ||
| } | ||
| .rst-content div[class^=highlight] pre, .highlighttable { | ||
| direction: ltr; | ||
| } | ||
| .rst-content code, .rst-content tt { | ||
| direction: ltr; | ||
| unicode-bidi: bidi-override; | ||
| } | ||
|
|
||
| .link-bar-container { | ||
| margin-right: 320px; | ||
| margin-left: 0; | ||
| } | ||
| #link-bar li, .wy-nav-top i { | ||
| float: right; | ||
| } | ||
|
|
||
| .wy-nav-side, .rst-versions { | ||
| right: 0; | ||
| left: unset; | ||
| } | ||
| .wy-nav-content-wrap { | ||
| margin-right: 320px; | ||
| margin-left: 0; | ||
| } | ||
| @media screen and (max-width: 768px) { | ||
| .wy-nav-side, .rst-versions { | ||
| right: -300px; | ||
| } | ||
| .wy-nav-content-wrap { | ||
| margin-right: 0; | ||
| } | ||
| .wy-nav-side.shift, .rst-versions.shift { | ||
| right: 0; | ||
| left: unset; | ||
| } | ||
| .wy-nav-content-wrap.shift { | ||
| right: 85%; | ||
| left: unset; | ||
| } | ||
| } | ||
|
|
||
| .rst-content .admonition-title:before { | ||
| margin-right: 0; | ||
| margin-left: 4px; | ||
| } | ||
| .wy-breadcrumbs li.wy-breadcrumbs-aside { | ||
| float: left; | ||
| } | ||
| .float-right { | ||
| float: left; | ||
| } | ||
| .float-left { | ||
| float: right; | ||
| } | ||
|
|
||
| .rst-versions .rst-current-version { | ||
| text-align: left; | ||
| } | ||
| .rst-versions .rst-current-version .fa-book, .rst-versions .rst-current-version .icon-book { | ||
| float: right; | ||
| } | ||
| .rst-other-versions { | ||
| text-align: right; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.