/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* 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; } } @media (max-width: 996px) { .navbarSearchContainer { position: absolute; right: var(--ifm-navbar-padding-horizontal); } } @media (min-width: 997px) { .navbarSearchContainer { padding: var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal); } }