mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 12:22:45 +02:00
refactor(theme): simplify CSS solution to solve empty search container (#10061)
This commit is contained in:
parent
a612b4eacf
commit
c746289db2
2 changed files with 71 additions and 78 deletions
|
@ -9,15 +9,8 @@
|
|||
Workaround to avoid rendering empty search container
|
||||
See https://github.com/facebook/docusaurus/pull/9385
|
||||
*/
|
||||
/*
|
||||
TODO temporary @supports check, remove before 2025
|
||||
only needed for Firefox < 121
|
||||
see https://github.com/facebook/docusaurus/issues/9527#issuecomment-1805272379
|
||||
*/
|
||||
@supports selector(:has(*)) {
|
||||
.navbarSearchContainer:not(:has(> *)) {
|
||||
display: none;
|
||||
}
|
||||
.navbarSearchContainer:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 996px) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue