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 sebastienlorber
parent ca7a279c02
commit d019fc63df

View file

@ -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) {