Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9c1653e
Update layout.html
julienmalard Dec 10, 2017
8297c3c
RTL support for ReadtheDocs
julienmalard Dec 12, 2017
5894907
Merge branch 'master' into master
Blendify Dec 16, 2017
09b982c
Merge branch 'master' into master
Blendify Dec 16, 2017
16e9d16
Merge branch 'master' into master
Blendify Dec 17, 2017
57ee1c9
Update theme.css
julienmalard Jan 7, 2018
be548e7
Update theme.css
julienmalard Jan 7, 2018
4bf3262
Update _theme_layout.sass
julienmalard Jan 7, 2018
3b5584e
Merge branch 'master' into master
Blendify Jan 7, 2018
eaa5633
Merge branch 'master' into master
Blendify Jan 7, 2018
cd0d5d7
Update _theme_rst.sass
julienmalard Jan 7, 2018
ffcea47
Update _theme_breadcrumbs.sass
julienmalard Jan 7, 2018
4a15d0b
Update _theme_badge.sass
julienmalard Jan 7, 2018
ec9b75d
Update _theme_font_awesome_compatibility.sass
julienmalard Jan 7, 2018
2abc1d5
Update _theme_font_awesome_compatibility.sass
julienmalard Jan 7, 2018
7be9d1f
Update _theme_layout.sass
julienmalard Jan 7, 2018
a7217d7
Fix for RTL language support
julienmalard Dec 30, 2018
2fd1264
Merge branch 'master' into rtl
julienmalard Dec 30, 2018
d712c54
Merge pull request #1 from julienmalard/rtl
julienmalard Dec 30, 2018
3e10e2f
Fixed selector ordering issue.
julienmalard Dec 31, 2018
a3bf4de
Merge branch 'master' into rtl
AustinShalit Aug 1, 2020
f42165b
Use RTL mixin instead of dir
AustinShalit Aug 1, 2020
5d68dfa
Merge branch 'master' into rtl
AustinShalit Oct 10, 2020
c90f6e9
Merge branch 'master' into rtl
Blendify Nov 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{%- set sphinx_writer = 'writer-html5' if html5_doctype else 'writer-html4' %}

<!DOCTYPE html>
<html class="{{ sphinx_writer }}" lang="{{ lang_attr }}" >
<html class="{{ sphinx_writer }}" lang="{{ lang_attr }}" dir="auto">
<head>
<meta charset="utf-8" />
{{ metatags }}
Expand Down
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/static/css/badge_only.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sphinx_rtd_theme/static/css/theme.css

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions src/sass/_theme_badge.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
position: fixed
bottom: 0
left: 0
@include rtl
left: inherit
right: 0
width: $nav-desktop-width
color: $section-background-color
background: darken($menu-background-color, 8%)
Expand All @@ -17,6 +20,8 @@
background-color: darken($menu-background-color, 5%)
display: block
text-align: right
@include rtl
text-align: left
font-size: 90%
cursor: pointer
color: $green
Expand All @@ -25,8 +30,12 @@
color: $section-background-color
.fa-book
float: left
@include rtl
float: right
.icon-book
float: left
@include rtl
float: right
&.rst-out-of-date
background-color: $red
color: $white
Expand Down Expand Up @@ -63,6 +72,9 @@
bottom: 20px
right: 20px
left: auto
@include rtl
left: 20px
right: auto
border: none
max-width: $nav-desktop-width
max-height: 90%
Expand All @@ -74,10 +86,16 @@
line-height: 30px
&.shift-up .rst-current-version
text-align: right
@include rtl
text-align: left
.fa-book
float: left
@include rtl
float: right
.icon-book
float: left
@include rtl
float: right
> .rst-current-version
width: auto
height: 30px
Expand Down
11 changes: 11 additions & 0 deletions src/sass/_theme_badge_fa.sass
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ li
ul.fas
list-style-type: none
margin-left: 2em
@include rtl
margin-left: inherit
margin-right: 2em
text-indent: -0.8em
li
.fa
Expand Down Expand Up @@ -57,12 +60,20 @@ ul.fas

.fa-caret-left:before
content: "\f0d9"
@include rtl
content: "\f0da"

.icon-caret-left:before
content: "\f0d9"
@include rtl
content: "\f0da"

.fa-caret-right:before
content: "\f0da"
@include rtl
content: "\f0d9"

.icon-caret-right:before
content: "\f0da"
@include rtl
content: "\f0d9"
5 changes: 5 additions & 0 deletions src/sass/_theme_breadcrumbs.sass
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
display: inline-block
&.wy-breadcrumbs-aside
float: right
@include rtl
float: left
a
display: inline-block
padding: 5px
&:first-child
padding-left: 0
@include rtl
padding-right: 0
padding-left: inherit
code
padding: 5px
border: none
Expand Down
30 changes: 30 additions & 0 deletions src/sass/_theme_font_awesome_compatibility.sass
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.fa-ul
@include rtl
padding-left: inherit
margin-left: inherit
padding-right: 0
margin-right: $fa-li-width
.icon
@extend .fa
.icon-home
Expand All @@ -16,9 +22,33 @@
@extend .fa-gitlab
.icon-fire
@extend .fa-fire
.fa-arrow-circle-right
@include rtl
@extend .fa-arrow-circle-left
.icon-circle-arrow-right
@extend .fa-arrow-circle-right
.fa-arrow-circle-left
@include rtl
@extend .fa-arrow-circle-right
.icon-circle-arrow-left
@extend .fa-arrow-circle-left
.icon-link
@extend .fa-link

.fa-arrow-circle-right:before
content: "\f0a9"
@include rtl
content: "\f0a8"

.fa-arrow-circle-left:before
content: "\f0a8"
@include rtl
content: "\f0a9"

.float-left
@include rtl
float: right

.float-right
@include rtl
float: left
Loading