Skip to content

Commit 8924c93

Browse files
fix: searchbar expansion, preserve title and make the searchbar expansion as an overlay
Signed-off-by: codeEvolveZenith345 <suntiwari3495@gmail.com>
1 parent 1bd2fae commit 8924c93

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/stylesheets/extra.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,4 +693,26 @@ article.md-search-result__article p:not(.md-search-result__meta) {
693693
-webkit-line-clamp: 3;
694694
-webkit-box-orient: vertical;
695695
overflow: hidden;
696+
}
697+
698+
@media screen and (min-width: 76.25em) {
699+
700+
/* When search is active, make it float and expand */
701+
[data-md-toggle="search"]:checked ~ .md-header .md-search {
702+
position: absolute;
703+
right: 3rem;
704+
width: 50%;
705+
z-index: 100;
706+
}
707+
708+
/* Make search form expand fully */
709+
[data-md-toggle="search"]:checked ~ .md-header .md-search__form {
710+
width: 100%;
711+
}
712+
713+
/* Make search input expand fully */
714+
[data-md-toggle="search"]:checked ~ .md-header .md-search__input {
715+
width: 100%;
716+
}
717+
696718
}

0 commit comments

Comments
 (0)