mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 11:22:30 +02:00
refactor(v2): increase search input on medium screens (#2799)
* refactor(v2): show only search icon on mobiles * refactor(v2): increase search input on medium screens
This commit is contained in:
parent
a7e4013d3b
commit
604f9f5b25
2 changed files with 14 additions and 6 deletions
|
@ -35,6 +35,7 @@ const Search = ({handleSearchBarToggle, isSearchBarExpanded}) => {
|
|||
openOnFocus: true,
|
||||
autoselect: false,
|
||||
hint: false,
|
||||
tabAutocomplete: false,
|
||||
},
|
||||
// Override algolia's default selection event, allowing us to do client-side
|
||||
// navigation and avoiding a full page refresh.
|
||||
|
|
|
@ -9,6 +9,13 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
@media (min-width: 769px) and (max-width: 996px) {
|
||||
:global(.navbar__search),
|
||||
:global(.navbar__search-input) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.searchIconButton {
|
||||
display: block;
|
||||
|
@ -53,10 +60,10 @@
|
|||
.searchInputExpanded {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
:global(.algolia-autocomplete) {
|
||||
width: 100%;
|
||||
display: flex !important;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
:global(.algolia-autocomplete) {
|
||||
width: 100%;
|
||||
display: flex !important;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue