mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 12:22:45 +02:00
fix(theme): fix firefox CSS :has() support bug (#9530)
This commit is contained in:
parent
ca7a279c02
commit
d019fc63df
1 changed files with 9 additions and 2 deletions
|
@ -9,8 +9,15 @@
|
|||
Workaround to avoid rendering empty search container
|
||||
See https://github.com/facebook/docusaurus/pull/9385
|
||||
*/
|
||||
.navbarSearchContainer:not(:has(> *)) {
|
||||
display: none;
|
||||
/*
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 996px) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue