Skip to content

Commit e36331f

Browse files
committed
Merge remote-tracking branch 'upstream/main' into sidebar-width
2 parents dec0899 + 2f15ba6 commit e36331f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ div.sphinxsidebar input[type='text'] {
197197
}
198198

199199
#sidebarbutton {
200+
display: flex;
201+
justify-content: center;
202+
align-items: center;
200203
/* Sphinx 4.x and earlier compat */
201204
height: 100%;
202205
background-color: #CCCCCC;
@@ -206,20 +209,13 @@ div.sphinxsidebar input[type='text'] {
206209
cursor: pointer;
207210
padding-top: 1px;
208211
float: none;
209-
display: table;
210212
/* after Sphinx 4.x and earlier is dropped, only the below is needed */
211213
width: 12px;
212214
min-width: 12px;
213215
border-radius: 0 5px 5px 0;
214216
border-left: none;
215217
}
216218

217-
#sidebarbutton span {
218-
/* Sphinx 4.x and earlier compat */
219-
display: table-cell;
220-
vertical-align: middle;
221-
}
222-
223219
#sidebarbutton:hover {
224220
background-color: #AAAAAA;
225221
}

0 commit comments

Comments
 (0)