Skip to content

Commit baf828c

Browse files
authored
DOC Fixes nav bar by dynamically changing searchbar size (scikit-learn#22954) (scikit-learn#23058)
1 parent 582fa30 commit baf828c

File tree

1 file changed

+22
-0
lines changed
  • doc/themes/scikit-learn-modern/static/css

1 file changed

+22
-0
lines changed

doc/themes/scikit-learn-modern/static/css/theme.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,28 @@ ul.search li div.context {
201201
ul.search li div.context {
202202
margin-left: 1rem;
203203
}
204+
205+
.sk-search-text-input {
206+
width: 5rem;
207+
}
208+
}
209+
210+
@media screen and (min-width: 806px) {
211+
.sk-search-text-input {
212+
width: 7rem;
213+
}
214+
}
215+
216+
@media screen and (min-width: 820px) {
217+
.sk-search-text-input {
218+
width: 8rem;
219+
}
220+
}
221+
222+
@media screen and (min-width: 886px) {
223+
.sk-search-text-input {
224+
width: 12rem;
225+
}
204226
}
205227

206228
ul.search li a {

0 commit comments

Comments
 (0)