refactor(theme): simplify CSS solution to solve empty search container (#10061)

This commit is contained in:
Sébastien Lorber 2024-04-19 13:11:07 +02:00 committed by GitHub
parent a612b4eacf
commit c746289db2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 71 additions and 78 deletions

View file

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