mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-08 05:42:34 +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,9 +9,16 @@
|
||||||
Workaround to avoid rendering empty search container
|
Workaround to avoid rendering empty search container
|
||||||
See https://github.com/facebook/docusaurus/pull/9385
|
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(> *)) {
|
.navbarSearchContainer:not(:has(> *)) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 996px) {
|
@media (max-width: 996px) {
|
||||||
.navbarSearchContainer {
|
.navbarSearchContainer {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue