Skip to content

Commit dec0899

Browse files
committed
Make sidebar width more flexible
1 parent 7430795 commit dec0899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_docs_theme/static/pydoctheme.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ span.pre {
141141

142142
div.sphinxsidebar {
143143
display: flex;
144-
width: 260px;
144+
width: min(25vw, 350px);
145145
float: none;
146146
position: sticky;
147147
top: 0;
@@ -159,7 +159,7 @@ div.sphinxsidebar h4 {
159159
}
160160

161161
div.bodywrapper {
162-
margin-left: 260px;
162+
margin-left: min(25vw, 350px);
163163
}
164164

165165
div.sphinxsidebarwrapper {

0 commit comments

Comments
 (0)