fix(theme): fix firefox CSS :has() support bug (#9530)

This commit is contained in:
Sébastien Lorber 2023-11-10 17:46:25 +01:00 committed by GitHub
parent e494f16d3c
commit 328e5f7ddc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,8 +9,15 @@
Workaround to avoid rendering empty search container
See https://github.com/facebook/docusaurus/pull/9385
*/
.navbarSearchContainer:not(:has(> *)) {
/*
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) {