Skip to content

Commit

Permalink
refactor(theme): simplify CSS solution to solve empty search container (
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Apr 19, 2024
1 parent a612b4e commit c746289
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c746289

Please sign in to comment.