Skip to content

Commit cded2f2

Browse files
committed
Bump sidebar width to 260px
1 parent 01d5bcf commit cded2f2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ span.pre {
140140
}
141141

142142
div.sphinxsidebar {
143+
display: flex;
144+
width: 260px;
143145
float: none;
144146
position: sticky;
145147
top: 0;
@@ -156,13 +158,18 @@ div.sphinxsidebar h4 {
156158
margin-top: 1.5em;
157159
}
158160

161+
div.documentwrapper > div.bodywrapper {
162+
margin-left: 260px;
163+
}
164+
159165
div.sphinxsidebarwrapper {
160-
width: 217px;
166+
/* width: 217px; */
161167
box-sizing: border-box;
162168
height: 100%;
163169
overflow-x: hidden;
164170
overflow-y: auto;
165-
float: left;
171+
float: none;
172+
flex-grow: 1;
166173
}
167174

168175
div.sphinxsidebarwrapper > h3:first-child {
@@ -199,10 +206,11 @@ div.sphinxsidebar input[type='text'] {
199206
font-size: 1.2em;
200207
cursor: pointer;
201208
padding-top: 1px;
202-
float: right;
209+
float: none;
203210
display: table;
204211
/* after Sphinx 4.x and earlier is dropped, only the below is needed */
205212
width: 12px;
213+
min-width: 12px;
206214
border-radius: 0 5px 5px 0;
207215
border-left: none;
208216
}

0 commit comments

Comments
 (0)