1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 16:50:00 +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

@@ -4,6 +4,12 @@
background-image: linear-gradient(to bottom, rgba(var(--bd-violet-rgb), 1), rgba(var(--bd-violet-rgb), .95));
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15), inset 0 -1px 0 rgba(0, 0, 0, .15);
.bd-navbar-toggle {
@include media-breakpoint-down(lg) {
width: 4.25rem;
}
}
.navbar-toggler {
padding: 0;
margin-right: -.5rem;

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 {