| // Licensed to the Apache Software Foundation (ASF) under one or more |
| // contributor license agreements. See the NOTICE file distributed with |
| // this work for additional information regarding copyright ownership. |
| // The ASF licenses this file to You under the Apache License, Version 2.0 |
| // (the "License"); you may not use this file except in compliance with |
| // the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| header { |
| position: relative; |
| |
| .container { |
| #search-button { |
| width: 18px; |
| height: 19px; |
| padding: 12px; |
| background: url("/assets/images/search.svg") center no-repeat; |
| grid-area: search; |
| |
| &.open { |
| border-radius: 4px; |
| box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3); |
| transform: translateY(1px); |
| } |
| } |
| } |
| |
| #search-wrapper { |
| display: none; |
| position: absolute; |
| top: 100%; |
| left: 50%; |
| transform: translateX(-50%); |
| max-width: 900px; |
| width: 80vw; |
| |
| &.open { |
| display: block; |
| } |
| |
| .pagefind-ui__form { |
| background: white; |
| border: 2px solid gray; |
| border-radius: 10px; |
| |
| .pagefind-ui__message { |
| padding-left: 15px; |
| } |
| |
| .pagefind-ui__results { |
| max-height: 70vh; |
| overflow: auto; |
| |
| .pagefind-ui__result { |
| padding-left: 15px; |
| } |
| } |
| } |
| } |
| } |