|
| 1 | +#pst-search-dialog[open] { |
| 2 | + left: revert; |
| 3 | + top: 2rem; |
| 4 | + margin-top: 0; |
| 5 | + transform: revert; |
| 6 | + max-height: calc(100vh - 4rem); |
| 7 | +} |
| 8 | + |
| 9 | +#pst-search-dialog[open] form.bd-search { |
| 10 | + flex-grow: 0; |
| 11 | +} |
| 12 | + |
| 13 | +.readthedocs-search { |
| 14 | + background: var(--pst-color-background); |
| 15 | + border-radius: 0.25rem; |
| 16 | + width: 100%; |
| 17 | + display: flex; |
| 18 | + flex-direction: column; |
| 19 | + overflow: hidden; |
| 20 | +} |
| 21 | + |
| 22 | +.readthedocs-search form { |
| 23 | + margin: 0.5rem; |
| 24 | + border: 0; |
| 25 | +} |
| 26 | + |
| 27 | +.readthedocs-search form:focus-within { |
| 28 | + outline: 2px solid var(--pst-color-accent); |
| 29 | + border: 0; |
| 30 | +} |
| 31 | + |
| 32 | +/* .readthedocs-search form.loading input { */ |
| 33 | +/* } */ |
| 34 | + |
| 35 | +.readthedocs-search form.loading .fa-magnifying-glass { |
| 36 | + background-image: url("data:image/svg+xml,<svg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_6kVp%7Btransform-origin:center;animation:spinner_irSm .75s infinite linear%7D@keyframes spinner_irSm%7B100%25%7Btransform:rotate(360deg)%7D%7D%3C/style%3E%3Cpath d='M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z' class='spinner_6kVp'/%3E%3C/svg>"); |
| 37 | + background-position: left center; |
| 38 | + background-repeat: no-repeat; |
| 39 | + background-size: contain; |
| 40 | +} |
| 41 | + |
| 42 | +html[data-theme="dark"] .readthedocs-search form.loading .fa-magnifying-glass { |
| 43 | + background-image: url("data:image/svg+xml,<svg fill='white' width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_6kVp%7Btransform-origin:center;animation:spinner_irSm .75s infinite linear%7D@keyframes spinner_irSm%7B100%25%7Btransform:rotate(360deg)%7D%7D%3C/style%3E%3Cpath d='M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z' class='spinner_6kVp'/%3E%3C/svg>"); |
| 44 | +} |
| 45 | + |
| 46 | +.readthedocs-search form.loading .fa-magnifying-glass path { |
| 47 | + display: none; |
| 48 | +} |
| 49 | + |
| 50 | +.readthedocs-search .content { |
| 51 | + max-height: calc(100% - 110px); |
| 52 | + overflow-y: auto; |
| 53 | +} |
| 54 | + |
| 55 | +.readthedocs-search .tablist { |
| 56 | + position: sticky; |
| 57 | + display: flex; |
| 58 | + overflow-x: auto; |
| 59 | + top: 0; |
| 60 | + outline: 0; |
| 61 | + background: var(--pst-color-background); |
| 62 | +} |
| 63 | + |
| 64 | +.readthedocs-search .tablist button { |
| 65 | + display: flex; |
| 66 | + border: 0; |
| 67 | + border-bottom: max(3px, 0.1875rem, 0.12em) solid transparent; |
| 68 | + color: var(--pst-color-text-base); |
| 69 | + background-color: var(--pst-color-surface); |
| 70 | + padding: 0.5rem 1rem; |
| 71 | + align-items: center; |
| 72 | + white-space: nowrap; |
| 73 | +} |
| 74 | + |
| 75 | +.readthedocs-search .tablist button:focus { |
| 76 | + color: var(--sst-lightest-color); |
| 77 | + background-color: var(--sst-dark-color); |
| 78 | +} |
| 79 | + |
| 80 | +.readthedocs-search .tablist button:focus, |
| 81 | +.readthedocs-search .tablist button[aria-selected="true"] { |
| 82 | + outline: 0; |
| 83 | + border-bottom: max(3px, 0.1875rem, 0.12em) solid var(--pst-color-secondary); |
| 84 | +} |
| 85 | + |
| 86 | +.readthedocs-search .tablist button svg { |
| 87 | + padding-right: 0.25rem; |
| 88 | +} |
| 89 | + |
| 90 | +.readthedocs-search .tablist button .n { |
| 91 | + padding-left: 0.25rem; |
| 92 | +} |
| 93 | + |
| 94 | +.readthedocs-search .results .results-message > * { |
| 95 | + margin: 1rem; |
| 96 | +} |
| 97 | + |
| 98 | +.readthedocs-search .results ul { |
| 99 | + list-style: none; |
| 100 | + padding: 0; |
| 101 | + margin: 0; |
| 102 | +} |
| 103 | + |
| 104 | +.readthedocs-search .results ul li { |
| 105 | + margin: 0; |
| 106 | + padding: 1rem; |
| 107 | +} |
| 108 | + |
| 109 | +.readthedocs-search .results ul li:focus { |
| 110 | + background: var(--pst-color-attention-bg); |
| 111 | + outline: 0; |
| 112 | +} |
| 113 | + |
| 114 | +.readthedocs-search .results ul li:first-child { |
| 115 | + border: 0; |
| 116 | +} |
| 117 | + |
| 118 | +/* .readthedocs-search .results ul li > *:last-child { */ |
| 119 | +/* } */ |
| 120 | + |
| 121 | +.readthedocs-search .results ul li a:hover, |
| 122 | +.readthedocs-search .results ul li a:focus, |
| 123 | +.readthedocs-search .results ul li.selected a { |
| 124 | + color: var(--pst-color-text-base); |
| 125 | + background-color: var(--sst-footer-background-color); |
| 126 | +} |
| 127 | + |
| 128 | +.readthedocs-search .footer { |
| 129 | + padding: 10px; |
| 130 | + border-top: 1px solid #e1e4e5; |
| 131 | + display: flex; |
| 132 | + gap: 1em; |
| 133 | + justify-content: space-between; |
| 134 | + align-items: center; |
| 135 | + font-size: 12px; |
| 136 | + color: var(--pst-color-text-base); |
| 137 | + background-color: var(--sst-footer-background-color); |
| 138 | +} |
| 139 | + |
| 140 | +.readthedocs-search .help { |
| 141 | + display: flex; |
| 142 | + list-style: none; |
| 143 | + margin: 0; |
| 144 | + padding: 0; |
| 145 | + gap: 20px; |
| 146 | +} |
| 147 | + |
| 148 | +.readthedocs-search .credits { |
| 149 | + display: flex; |
| 150 | + align-items: center; |
| 151 | + gap: 5px; |
| 152 | + margin-left: auto; |
| 153 | + text-align: right; |
| 154 | +} |
| 155 | +.readthedocs-search .credits a { |
| 156 | + color: inherit; |
| 157 | +} |
| 158 | + |
| 159 | +.readthedocs-search .credits svg { |
| 160 | + height: 20px; |
| 161 | +} |
| 162 | + |
| 163 | +@media only screen and (max-width: 70rem) { |
| 164 | + .readthedocs-search .footer, |
| 165 | + .readthedocs-search .help { |
| 166 | + display: block; |
| 167 | + } |
| 168 | +} |
0 commit comments