Skip to content

Commit 09fce2b

Browse files
committed
Fix navbar
1 parent 1ce690e commit 09fce2b

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

python_docs_theme/static/pydoctheme.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,19 @@ div.related ul::after {
133133
display: block;
134134
}
135135

136+
html[dir='rtl'] div.related ul {
137+
padding: 0 10px 0 0;
138+
}
139+
140+
html[dir='rtl'] div.related ul li.right {
141+
float: left;
142+
}
143+
144+
html[dir='rtl'] div.related ul li {
145+
float: right;
146+
padding-inline: 0.3em;
147+
}
148+
136149
.inline-search,
137150
form.inline-search input {
138151
display: inline;
@@ -631,6 +644,9 @@ div.genindex-jumpbox a {
631644
padding: .25rem;
632645
align-items: stretch;
633646
}
647+
html[dir='rtl'] .nav-items-wrapper {
648+
flex-direction: row-reverse;
649+
}
634650
.nav-logo {
635651
margin-inline-end: 1rem;
636652
flex-shrink: 0;
@@ -658,6 +674,10 @@ div.genindex-jumpbox a {
658674
width: 100%;
659675
flex: 1;
660676
}
677+
html[dir='rtl'] .nav-content .search input[type=search] {
678+
padding-inline-start: 4px;
679+
padding-inline-end: 24px;
680+
}
661681
.nav-content .search input[type=submit] {
662682
height: 100%;
663683
box-shadow: none;
@@ -671,6 +691,10 @@ div.genindex-jumpbox a {
671691
align-self: center;
672692
padding-inline-start: 4px;
673693
}
694+
html[dir='rtl'] .nav-content .search svg {
695+
padding-inline-start: 0;
696+
padding-inline-end: 4px;
697+
}
674698
.toggler__input {
675699
display: none;
676700
}
@@ -683,6 +707,9 @@ div.genindex-jumpbox a {
683707
padding: 8px;
684708
flex-shrink: 0;
685709
}
710+
html[dir='rtl'] .toggler__label {
711+
order: 1;
712+
}
686713
.toggler__label:hover, .toggler__label:focus {
687714
background-color: rgba(127 127 127 / 50%);
688715
}

0 commit comments

Comments
 (0)