1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 17:11:48 +02:00

Move DocSearch out of offcanvas to always show it on mobile (#36824)

This commit is contained in:
Mark Otto
2022-07-27 13:30:42 -07:00
committed by GitHub
parent dfae892801
commit 3feaf6ca0b
3 changed files with 38 additions and 11 deletions

View File

@@ -2,7 +2,6 @@
.bd-search {
position: relative;
width: 100%;
@include media-breakpoint-up(lg) {
position: absolute;
@@ -57,6 +56,26 @@
opacity: 1;
}
}
@include media-breakpoint-down(lg) {
&,
&:hover,
&:focus {
background: transparent;
border: 0;
box-shadow: none;
}
&:focus {
box-shadow: var(--docsearch-searchbox-shadow);
}
}
}
.DocSearch-Button-Keys,
.DocSearch-Button-Placeholder {
@include media-breakpoint-down(lg) {
display: none;
}
}
.DocSearch-Button-Keys {