/*! * SPDX-License-Identifier: BSD-3-Clause * * The OpenSearch Contributors require contributions made to this file be licensed * under the BSD-3-Clause license or a compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ /*! just-the-docs * Copyright (c) 2016 Patrick Marsceill * SPDX-License-Identifier: MIT */ .copy-banner { a, h1 { white-space: nowrap; } } [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } .search { position: relative; z-index: 2; flex-grow: 1; height: 6.4rem; padding: 0.8rem; transition: padding linear 200ms; box-sizing: border-box; } .search * { box-sizing: border-box; } @media (min-width: 46.25rem) { .search { position: relative !important; width: auto !important; height: 100% !important; padding: 0; transition: none; } } .search-input-wrap { position: relative; z-index: 1; height: 4.8rem; overflow: hidden; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08); transition: height linear 200ms; } @media (min-width: 46.25rem) { .search-input-wrap { position: absolute; width: 100%; max-width: 536px; height: 100% !important; border-radius: 0; box-shadow: none; transition: width ease 400ms; } } .search-input { position: absolute; width: 100%; height: 100%; padding-top: 0.8rem; padding-right: 1.6rem; padding-bottom: 0.8rem; padding-left: 4rem; font-size: 16px; background-color: #fff; border-top: 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; } @media (min-width: 46.25rem) { .search-input { padding-top: 1.6rem; padding-bottom: 1.6rem; padding-left: 5.6rem; font-size: 14px; background-color: #FFFFFF; transition: padding-left linear 200ms; } } .search-input:focus { outline: 0; } .search-input:focus + .search-label .search-icon { color: #0055A6; } .search-label { position: absolute; display: flex; height: 100%; padding-left: 1.6rem; } @media (min-width: 46.25rem) { .search-label { padding-left: 3.2rem; transition: padding-left linear 200ms; } } .search-label .search-icon { width: 1.92rem; height: 1.92rem; align-self: center; color: #4D8399; } .search-results { position: absolute; left: 0; display: none; width: 100%; max-height: calc(100% - 6.4rem); overflow-y: auto; background-color: #fff; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08); } @media (min-width: 46.25rem) { .search-results { top: 100%; width: 536px; max-height: calc(100vh - 200%) !important; } } .search-results-list { padding-left: 0; margin-bottom: 0.4rem; list-style: none; font-size: 14px !important; } @media (min-width: 31.25rem) { .search-results-list { font-size: 16px !important; } } @media (min-width: 46.25rem) { .search-results-list { font-size: 12px !important; } } @media (min-width: 50rem) { .search-results-list { font-size: 14px !important; } } .search-results-list-item { padding: 0; margin: 0; } .search-result { display: block; padding-top: 0.4rem; padding-right: 1.2rem; padding-bottom: 0.4rem; padding-left: 1.2rem; } .search-result:hover, .search-result.active { background-color: #ebedf5; } .search-result-title { display: block; padding-top: 0.8rem; padding-bottom: 0.8rem; } @media (min-width: 31.25rem) { .search-result-title { display: inline-block; width: 40%; padding-right: 0.8rem; vertical-align: top; } } .search-result-doc { display: flex; align-items: center; word-wrap: break-word; } .search-result-doc.search-result-doc-parent { opacity: 0.5; font-size: 12px !important; } @media (min-width: 31.25rem) { .search-result-doc.search-result-doc-parent { font-size: 14px !important; } } @media (min-width: 46.25rem) { .search-result-doc.search-result-doc-parent { font-size: 11px !important; } } @media (min-width: 50rem) { .search-result-doc.search-result-doc-parent { font-size: 12px !important; } } .search-result-doc .search-result-icon { width: 1.6rem; height: 1.6rem; margin-right: 0.8rem; color: #0055A6; flex-shrink: 0; } .search-result-doc .search-result-doc-title { overflow: auto; } .search-result-section { margin-left: 2.4rem; word-wrap: break-word; } .search-result-rel-url { display: block; margin-left: 2.4rem; overflow: hidden; color: #959396; text-overflow: ellipsis; white-space: nowrap; font-size: 9px !important; } @media (min-width: 31.25rem) { .search-result-rel-url { font-size: 10px !important; } } .search-result-previews { display: block; padding-top: 0.8rem; padding-bottom: 0.8rem; padding-left: 1.6rem; margin-left: 0.8rem; color: #959396; word-wrap: break-word; border-left: 1px solid; border-left-color: #eeebee; font-size: 11px !important; } @media (min-width: 31.25rem) { .search-result-previews { font-size: 12px !important; } } @media (min-width: 31.25rem) { .search-result-previews { display: inline-block; width: 60%; padding-left: 0.8rem; margin-left: 0; vertical-align: top; } } .search-result-preview + .search-result-preview { margin-top: 0.4rem; } .search-result-highlight { font-weight: bold; } .search-no-result { padding-top: 0.8rem; padding-right: 1.2rem; padding-bottom: 0.8rem; padding-left: 1.2rem; font-size: 12px !important; } @media (min-width: 31.25rem) { .search-no-result { font-size: 14px !important; } } .search-button { position: fixed; right: 1.6rem; bottom: 1.6rem; display: flex; width: 5.6rem; height: 5.6rem; background-color: #fff; border: 1px solid rgba(0, 85, 166, 0.3); border-radius: 2.8rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08); align-items: center; justify-content: center; } .search-overlay { position: fixed; top: 0; left: 0; z-index: 1; width: 0; height: 0; background-color: rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity ease 400ms, width 0s 400ms, height 0s 400ms; } .search-active .search { position: fixed; top: 0; left: 0; width: 100%; height: 100%; padding: 0; } .search-active .search-input-wrap { height: 6.4rem; border-radius: 0; } @media (min-width: 46.25rem) { .search-active .search-input-wrap { width: 536px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08); } } .search-active .search-input { background-color: #fff; } @media (min-width: 46.25rem) { .search-active .search-input { padding-left: 3.6799999999999997rem; } } @media (min-width: 46.25rem) { .search-active .search-label { padding-left: 0.96rem; } } .search-active .search-results { display: block; } .search-active .search-overlay { width: 100%; height: 100%; opacity: 1; transition: opacity ease 400ms, width 0s, height 0s; } @media (min-width: 46.25rem) { .search-active .main { position: fixed; right: 0; left: 0; } } .search-active .main-header { padding-top: 6.4rem; } @media (min-width: 46.25rem) { .search-active .main-header { padding-top: 0; } } .copy-banner .search { display: block; width: 100%; padding: 0; } @media (min-width: 46.25rem) { .copy-banner .search { display: block; height: 4.8rem !important; margin: 1.15rem 0 1.15rem 4.8rem; } } @media (min-width: 46.25rem) { .copy-banner .search-input-wrap { height: 4.8rem !important; right: 0; } } .search-active .main { position: relative !important; } @media (min-width: 46.25rem) { .search-active .search-results { right: 0; left: auto; max-height: calc(100vh - 200% - 60px) !important; } } #main-header.nav-open ~ .copy-banner .search { display: block; } .custom-search-results > div { padding: 1.6rem; } .custom-search-results cite { font-size: 12px; font-size: 1.2rem; font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif; color: #002A3A; text-decoration: none; font-style: normal; display: block; line-height: 1; font-weight: normal; } .search-active { body { position: fixed; @media (min-width: 46.25rem) { position: unset; } } } .custom-search-results a { font-size: 20px; font-size: 2rem; font-family: "Open Sans Condensed", Impact, "Franklin Gothic Bold", sans-serif; line-height: 1.6; font-weight: bold; background: linear-gradient(rgb(238, 235, 238) 0%, rgb(238, 235, 238) 100%) repeat-x 0 100% / 1px 1px; color: rgb(0, 85, 166); font-size: 20px; text-decoration: rgb(0, 85, 166); -moz-osx-font-smoothing: grayscale; &:hover { background-image: linear-gradient(rgba(0, 85, 166, 0.45) 0%, rgba(0, 85, 166, 0.45) 100%); } } .custom-search-results span { font-size: 14px; font-size: 1.4rem; color: #1B4859; line-height: 1.4; display: block; overflow-wrap: break-word; } .custom-search-results span:only-child { text-align: center; padding: 1.6rem; } .custom-search-results .highlighted { background: #EAF4F9; } .custom-search-results { a, h1 { white-space: unset; } } .banner-alert ~ main .custom-search-results { max-height: calc(100vh - 200% - 60px - 5.76rem) !important; } .search-spinner { display: none; font-weight: 700; outline: 0; user-select: none; position: absolute; padding-left: 0.96rem; height: 100%; } .search-spinner.spinning { display: flex; } .search-spinner.spinning ~ .search-label { display: none; } .search-spinner > i { border-color: rgba(77, 131, 153, 0.2); position: relative; animation: spin 0.6s infinite linear; border-width: 3px; border-style: solid; border-radius: 100%; display: inline-block; width: 18px; height: 18px; vertical-align: middle; align-self: center; } .search-spinner > i:before { content: ""; border: 3px solid rgba(77, 131, 153, 0); border-top-color: rgba(77, 131, 153, 0.8); border-radius: 100%; display: block; left: -3px; position: absolute; top: -3px; height: 100%; width: 100%; box-sizing: content-box; } @keyframes spin { from { transform:rotate(0deg) } to { transform:rotate(359deg) } }