File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
packages/docusaurus-theme-classic/src/theme/Navbar/Search Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,9 @@ export default function NavbarSearch({
15
15
children,
16
16
className,
17
17
} : Props ) : JSX . Element {
18
- return < div className = { clsx ( className , styles . navbarSearch ) } > { children } </ div > ;
18
+ return (
19
+ < div className = { clsx ( className , styles . navbarSearchContainer ) } >
20
+ { children }
21
+ </ div >
22
+ ) ;
19
23
}
Original file line number Diff line number Diff line change 7
7
8
8
/*
9
9
Workaround to avoid rendering empty search container
10
- See https://github.com/facebook/docusaurus/pull/7990
10
+ See https://github.com/facebook/docusaurus/pull/9385
11
11
*/
12
- .navbarSearch : not (: has (> * )) {
12
+ .navbarSearchContainer : not (: has (> * )) {
13
13
display : none;
14
14
}
15
15
16
16
@media (max-width : 996px ) {
17
- .navbarSearch {
17
+ .navbarSearchContainer {
18
18
position : absolute;
19
19
right : var (--ifm-navbar-padding-horizontal );
20
20
}
21
21
}
22
22
23
23
@media (min-width : 997px ) {
24
- .navbarSearch {
24
+ .navbarSearchContainer {
25
25
padding : var (--ifm-navbar-item-padding-vertical )
26
26
var (--ifm-navbar-item-padding-horizontal );
27
27
}
You can’t perform that action at this time.
0 commit comments