Skip to content

Commit b61e929

Browse files
authored
DOC Fixes nav bar by dynamically changing searchbar size (#22954)
1 parent b51fbb0 commit b61e929

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
@@ -205,6 +205,28 @@ ul.search li div.context {
205205
ul.search li div.context {
206206
margin-left: 1rem;
207207
}
208+
209+
.sk-search-text-input {
210+
width: 5rem;
211+
}
212+
}
213+
214+
@media screen and (min-width: 806px) {
215+
.sk-search-text-input {
216+
width: 7rem;
217+
}
218+
}
219+
220+
@media screen and (min-width: 820px) {
221+
.sk-search-text-input {
222+
width: 8rem;
223+
}
224+
}
225+
226+
@media screen and (min-width: 886px) {
227+
.sk-search-text-input {
228+
width: 12rem;
229+
}
208230
}
209231

210232
ul.search li a {

0 commit comments

Comments
 (0)