Skip to content

Commit 1ce690e

Browse files
committed
Fix siderbar
1 parent 13de683 commit 1ce690e

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

python_docs_theme/static/pydoctheme.css

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
@font-face {
1111
font-family: 'Vazirmatn';
12-
src: url('../fonts/Vazirmatn[wght].woff2') format('woff2');
12+
src: url('fonts/Vazirmatn[wght].woff2') format('woff2');
1313
font-weight: 100 900;
1414
font-style: normal;
1515
font-display: swap;
@@ -24,13 +24,6 @@ html[dir='rtl'] .menu {
2424
noto, arial, sans-serif;
2525
}
2626

27-
/* Keep code blocks LTR and in the monospace stack — don't let Vazirmatn leak in */
28-
html[dir='rtl'] tt,
29-
html[dir='rtl'] code,
30-
html[dir='rtl'] pre {
31-
font-family: Menlo, Consolas, Monaco, 'Liberation Mono', 'Lucida Console', monospace;
32-
}
33-
3427
/* unset some styles from the classic stylesheet */
3528
div.document,
3629
div.body,
@@ -153,6 +146,7 @@ form.inline-search input[type='submit'] {
153146

154147
div.document {
155148
display: flex;
149+
flex-direction: row;
156150
/* Don't let long code literals extend beyond the right side of the screen */
157151
overflow-wrap: break-word;
158152
}
@@ -167,6 +161,7 @@ div.sphinxsidebar {
167161
width: min(25vw, 350px);
168162
flex-shrink: 0;
169163
margin: 0;
164+
order: 0;
170165
float: none;
171166
position: sticky;
172167
top: 0;
@@ -190,6 +185,7 @@ div.bodywrapper {
190185
div.documentwrapper {
191186
flex: 1;
192187
min-width: 0;
188+
order: 1;
193189
}
194190

195191
div.sphinxsidebarwrapper {
@@ -247,6 +243,7 @@ div.body {
247243

248244
html[dir='rtl'] div.body {
249245
padding: 0 1.2em 0 0;
246+
direction: rtl;
250247
}
251248

252249
div.body p, div.body dd, div.body li, div.body blockquote {
@@ -513,11 +510,11 @@ dl > dt span ~ em,
513510
}
514511

515512
.toctree-wrapper ul {
516-
padding-left: 20px;
513+
padding-inline-start: 20px;
517514
}
518515

519516
.theme-selector {
520-
margin-left: .5em;
517+
margin-inline-start: .5em;
521518
}
522519

523520
div.genindex-jumpbox,

0 commit comments

Comments
 (0)