Skip to content

Commit 6eb161f

Browse files
committed
Fix sidebar
1 parent 5870154 commit 6eb161f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

python_docs_theme/static/pydoctheme.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ span.pre {
165165
div.sphinxsidebar {
166166
display: flex;
167167
width: min(25vw, 350px);
168+
flex-shrink: 0;
169+
margin: 0;
168170
float: none;
169171
position: sticky;
170172
top: 0;
@@ -182,7 +184,12 @@ div.sphinxsidebar h4 {
182184
}
183185

184186
div.bodywrapper {
185-
margin-inline-start: min(25vw, 350px);
187+
margin-inline-start: 0;
188+
}
189+
190+
div.documentwrapper {
191+
flex: 1;
192+
min-width: 0;
186193
}
187194

188195
div.sphinxsidebarwrapper {
@@ -238,6 +245,10 @@ div.body {
238245
padding: 0 0 0 1.2em;
239246
}
240247

248+
html[dir='rtl'] div.body {
249+
padding: 0 1.2em 0 0;
250+
}
251+
241252
div.body p, div.body dd, div.body li, div.body blockquote {
242253
text-align: start;
243254
line-height: 1.6;

0 commit comments

Comments
 (0)