| .searchBar .dropdownMenu { | |
| left: -20% !important; | |
| right: 0 !important; | |
| background: var(--search-local-modal-background, #f5f6f7); | |
| border-radius: 6px; | |
| box-shadow: var(--search-local-modal-shadow, inset 1px 1px 0 0 hsla(0, 0%, 100%, 0.5), 0 3px 8px 0 #555a64); | |
| margin-top: 8px; | |
| width: var(--search-local-modal-width, 560px); | |
| position: relative; | |
| padding: var(--search-local-spacing, 12px); | |
| } | |
| .searchLoadError { | |
| position: absolute; | |
| z-index: 20; | |
| top: 100%; | |
| right: 0; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| max-width: min(22rem, calc(100vw - 2rem)); | |
| padding: 0.5rem 0.75rem; | |
| border: 1px solid var(--brand-border-soft); | |
| border-radius: 6px; | |
| background: var(--brand-surface-note); | |
| color: var(--brand-ink); | |
| font-size: 0.875rem; | |
| } | |
| .searchLoadError button { | |
| flex-shrink: 0; | |
| border: 1px solid currentColor; | |
| border-radius: 4px; | |
| padding: 0.15rem 0.5rem; | |
| background: transparent; | |
| color: inherit; | |
| font: inherit; | |
| cursor: pointer; | |
| } | |
| .searchLoadError > span { | |
| min-width: 0; | |
| white-space: normal; | |
| } | |
| .searchSourceLink { | |
| display: inline-flex; | |
| align-items: center; | |
| box-sizing: border-box; | |
| max-width: 100%; | |
| min-height: 2.5rem; | |
| padding: 0.25rem 0.5rem; | |
| border: 1px solid var(--brand-border-soft); | |
| border-radius: 6px; | |
| background: var(--brand-surface-note); | |
| color: var(--brand-ink); | |
| font-size: 0.875rem; | |
| line-height: 1.2; | |
| white-space: normal; | |
| } | |
| .searchBar .mobileDropdownMenu { | |
| left: 0 !important; | |
| } | |
| /* | |
| * In the dedicated Dev docs search strip, the input fills the full width of | |
| * the section, so the navbar-style hardcoded `left: -20%; width: 560px` rule | |
| * pulls the dropdown off to the left of the input. Anchor it to the input | |
| * instead and let it inherit the input's full width. | |
| */ | |
| :global(.docs-search-section) .searchBar .dropdownMenu { | |
| left: 0 !important; | |
| right: 0 !important; | |
| width: 100% !important; | |
| } | |
| @media not (max-width: 996px) { | |
| .searchBar.searchBarLeft .dropdownMenu { | |
| right: auto !important; | |
| } | |
| } | |
| @media (max-width: 996px) { | |
| .searchHintContainer { | |
| display: none !important; | |
| } | |
| } | |
| @media (max-width: 576px) { | |
| :global(.navbar__search-input):not(:focus) { | |
| width: 2rem; | |
| } | |
| .searchBar .dropdownMenu { | |
| width: var(--search-local-modal-width-sm, 340px); | |
| max-width: calc(100vw - var(--ifm-navbar-padding-horizontal) * 2); | |
| } | |
| } | |
| html[data-theme='dark'] .searchBar .dropdownMenu { | |
| background: var(--search-local-modal-background, var(--ifm-background-color)); | |
| box-shadow: var(--search-local-modal-shadow, inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309); | |
| } | |
| .searchBar .dropdownMenu .suggestion { | |
| cursor: pointer; | |
| background: var(--search-local-hit-background, #fff); | |
| border-radius: 4px; | |
| box-shadow: var(--search-local-hit-shadow, 0 1px 3px 0 #d4d9e1); | |
| padding: 0 var(--search-local-spacing, 12px); | |
| width: 100%; | |
| align-items: center; | |
| color: var(--search-local-hit-color, #444950); | |
| display: flex; | |
| flex-direction: row; | |
| height: var(--search-local-hit-height, 56px); | |
| } | |
| html[data-theme='dark'] .dropdownMenu .suggestion { | |
| background: var(--search-local-hit-background, var(--ifm-color-emphasis-100)); | |
| box-shadow: var(--search-local-hit-shadow, none); | |
| color: var(--search-local-hit-color, var(--ifm-font-color-base)); | |
| } | |
| .searchBar .dropdownMenu .suggestion:not(:last-child) { | |
| margin-bottom: 4px; | |
| } | |
| .searchBar .dropdownMenu .suggestion.cursor { | |
| background-color: var(--search-local-highlight-color, var(--ifm-color-primary)); | |
| } | |
| .hitTree, | |
| .hitIcon, | |
| .hitPath, | |
| .noResultsIcon, | |
| .hitFooter a { | |
| color: var(--search-local-muted-color, #969faf); | |
| } | |
| html[data-theme='dark'] .hitTree, | |
| html[data-theme='dark'] .hitIcon, | |
| html[data-theme='dark'] .hitPath, | |
| html[data-theme='dark'] .noResultsIcon { | |
| color: var(--search-local-muted-color, var(--ifm-color-secondary-darkest)); | |
| } | |
| .hitTree { | |
| display: flex; | |
| align-items: center; | |
| } | |
| .hitTree > svg { | |
| height: var(--search-local-hit-height, 56px); | |
| opacity: 0.5; | |
| stroke-width: var(--search-local-icon-stroke-width, 1.4); | |
| width: 24px; | |
| } | |
| .hitIcon { | |
| stroke-width: var(--search-local-icon-stroke-width, 1.4); | |
| height: 20px; | |
| width: 20px; | |
| } | |
| .hitWrapper { | |
| flex: 1 1 auto; | |
| display: flex; | |
| flex-direction: column; | |
| font-weight: 500; | |
| justify-content: center; | |
| margin: 0 8px; | |
| overflow-x: hidden; | |
| width: 80%; | |
| } | |
| .hitWrapper mark { | |
| background: none; | |
| color: var(--search-local-highlight-color, var(--ifm-color-primary)); | |
| } | |
| .hitTitle { | |
| font-size: 0.9em; | |
| } | |
| .hitPath { | |
| font-size: 0.75em; | |
| } | |
| .hitPath, | |
| .hitTitle { | |
| white-space: nowrap; | |
| overflow-x: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .hitAction { | |
| height: 20px; | |
| width: 20px; | |
| } | |
| .hideAction > svg { | |
| display: none; | |
| } | |
| .noResults { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: var(--search-local-spacing, 12px) 0; | |
| } | |
| .noResultsIcon { | |
| margin-bottom: var(--search-local-spacing, 12px); | |
| } | |
| .hitFooter { | |
| text-align: center; | |
| margin-top: var(--search-local-spacing, 12px); | |
| font-size: 0.85em; | |
| } | |
| .hitFooter a { | |
| text-decoration: underline; | |
| } | |
| .cursor .hideAction > svg { | |
| display: block; | |
| } | |
| .suggestion.cursor, | |
| .suggestion.cursor mark, | |
| .suggestion.cursor .hitTree, | |
| .suggestion.cursor .hitIcon, | |
| .suggestion.cursor .hitPath { | |
| color: var(--search-local-hit-active-color, var(--ifm-color-white)) !important; | |
| } | |
| .suggestion.cursor mark { | |
| text-decoration: underline; | |
| } | |
| .searchBarContainer { | |
| margin-left: 16px; | |
| border: 1px solid #dfe5f0; | |
| border-radius: 4px; | |
| } | |
| .searchBarContainer:hover { | |
| border: 1px solid #8592a6; | |
| } | |
| .searchBarContainer .searchBarLoadingRing { | |
| display: none; | |
| position: absolute; | |
| left: 10px; | |
| top: 10px; | |
| } | |
| .searchBarContainer .searchClearButton { | |
| position: absolute; | |
| right: 0.8rem; | |
| top: 50%; | |
| transform: translate(0, -50%); | |
| padding: 0; | |
| background: none; | |
| border: none; | |
| line-height: 1rem; | |
| } | |
| :global(.navbar__search) { | |
| position: relative; | |
| .searchBar { | |
| width: 100% !important; | |
| left: auto !important; | |
| right: 0 !important; | |
| display: inline !important; | |
| background: transparent; | |
| border-radius: 6px; | |
| margin-top: 8px; | |
| width: var(--search-local-modal-width, 560px); | |
| position: relative; | |
| padding: 0 !important; | |
| } | |
| input { | |
| width: 100% !important; | |
| border: none !important; | |
| background-color: #FFF; | |
| background-image: url('/static/images/search-icon.svg'); | |
| height: 2.5rem !important; | |
| background-position: 0.625rem center !important; | |
| padding-left: 2.25rem !important; | |
| color: #4c576c !important; | |
| border-radius: 0.5rem; | |
| } | |
| input:focus { | |
| border: none !important; | |
| outline: none !important; | |
| } | |
| .dropdownMenu { | |
| top: 2.5rem !important; | |
| } | |
| kbd { | |
| color: #8592a6 !important; | |
| background-color: #ffffff !important; | |
| border: none !important; | |
| border-radius: none !important; | |
| box-shadow: none !important; | |
| font-size: 12px; | |
| padding: 0 !important; | |
| } | |
| .searchHintContainer { | |
| position: absolute; | |
| right: 10x; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 5px 7px; | |
| background-color: #fff; | |
| border: none; | |
| gap: 2px; | |
| height: auto; | |
| } | |
| } | |
| .searchIndexLoading :global(.navbar__search-input) { | |
| background-image: none; | |
| } | |
| .searchBarContainer.searchIndexLoading .searchBarLoadingRing { | |
| display: inline-block; | |
| } | |
| :global(.navbar__search-input) { | |
| border-radius: 4px !important; | |
| } | |
| .searchHintContainer { | |
| position: absolute; | |
| right: 10px; | |
| top: 0px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| height: 100%; | |
| pointer-events: none; | |
| gap: 4px; | |
| } | |
| .searchHint { | |
| color: var(--ifm-navbar-search-input-placeholder-color); | |
| background-color: var(--ifm-navbar-search-input-background-color); | |
| border: 1px solid var(--ifm-color-emphasis-500); | |
| box-shadow: inset 0 -1px 0 var(--ifm-color-emphasis-500); | |
| } | |
| .macFontStyle { | |
| font-weight: 600; | |
| font-size: 1rem !important; | |
| } | |
| html[dir='rtl'] .searchHintContainer { | |
| right: auto; | |
| left: 10px; | |
| } | |
| html[dir='rtl'] .searchBarContainer .searchClearButton { | |
| right: auto; | |
| left: 0.8rem; | |
| } | |
| html[dir='rtl'] .searchBarContainer .searchBarLoadingRing { | |
| left: auto; | |
| right: 10px; | |
| } | |
| html[dir='rtl'] :global(.navbar__search-input) { | |
| padding: 0 2.25em 0 0.5em; | |
| } | |
| /* For autocomplete.js only. */ | |
| .input { | |
| } | |
| .hint { | |
| } | |
| .suggestions { | |
| max-height: 500px !important; | |
| overflow: scroll !important; | |
| } | |
| .dataset { | |
| } | |
| .empty { | |
| } | |
| /**/ |