Skip to content

Commit 0a13c64

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

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

python_docs_theme/static/pydoctheme.css

+10-3
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,17 @@ 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;
161166
box-sizing: border-box;
162167
height: 100%;
163168
overflow-x: hidden;
164169
overflow-y: auto;
165-
float: left;
170+
float: none;
171+
flex-grow: 1;
166172
}
167173

168174
div.sphinxsidebarwrapper > h3:first-child {
@@ -199,10 +205,11 @@ div.sphinxsidebar input[type='text'] {
199205
font-size: 1.2em;
200206
cursor: pointer;
201207
padding-top: 1px;
202-
float: right;
208+
float: none;
203209
display: table;
204210
/* after Sphinx 4.x and earlier is dropped, only the below is needed */
205211
width: 12px;
212+
min-width: 12px;
206213
border-radius: 0 5px 5px 0;
207214
border-left: none;
208215
}

0 commit comments

Comments
 (0)