|
84 | 84 | --ifm-pre-padding: 1rem; |
85 | 85 | --ifm-code-border-radius: 16px; |
86 | 86 | --ifm-global-border-radius: 6px; |
| 87 | + --ifm-navbar-height: 4.5rem; |
| 88 | + --search-box-width: 30rem; |
87 | 89 | } |
88 | 90 |
|
89 | 91 | /* Page background */ |
@@ -139,11 +141,18 @@ code { |
139 | 141 | border-radius: 4px; |
140 | 142 | } |
141 | 143 |
|
| 144 | +@media screen and (max-width: 1200px) { |
| 145 | + :root { |
| 146 | + --search-box-width: 20rem; |
| 147 | + } |
| 148 | +} |
| 149 | + |
142 | 150 | /* Responsive adjustments */ |
143 | 151 | @media screen and (max-width: 768px) { |
144 | 152 | :root { |
145 | 153 | --ifm-code-border-radius: 12px; |
146 | 154 | --ifm-pre-padding: 0.75rem; |
| 155 | + --search-box-width: auto; |
147 | 156 | } |
148 | 157 |
|
149 | 158 | pre { |
@@ -246,3 +255,37 @@ mark, :not(.prism-code) > code:not(.prism-code), .mark { |
246 | 255 | grid-template-columns: 1fr !important; |
247 | 256 | } |
248 | 257 | } |
| 258 | + |
| 259 | +.DocSearch.DocSearch-Button { |
| 260 | + align-items: center; |
| 261 | + outline-offset: 0.125rem; |
| 262 | + border-radius: 9999px; |
| 263 | + border: 1px solid rgba(255, 255, 255, .15); |
| 264 | + background: rgba(255, 255, 255, .05); |
| 265 | + color: #ffffff; |
| 266 | + display: flex; |
| 267 | + gap: 0.75rem; |
| 268 | + height: 2.5rem; |
| 269 | + padding-inline: 1rem; |
| 270 | + transition: opacity 0.2s ease-in-out; |
| 271 | + flex-grow: 1; |
| 272 | + width: var(--search-box-width); |
| 273 | +} |
| 274 | + |
| 275 | +.DocSearch .DocSearch-Button-Container { |
| 276 | + opacity: 0.65; |
| 277 | + transition: opacity 0.2s ease-in-out; |
| 278 | +} |
| 279 | + |
| 280 | +.DocSearch.DocSearch-Button:hover .DocSearch-Button-Container { |
| 281 | + opacity: 0.85; |
| 282 | +} |
| 283 | + |
| 284 | +.DocSearch .DocSearch-Button-Key { |
| 285 | + font-size: 0.75rem; |
| 286 | + color: rgba(255, 255, 255, 0.5); |
| 287 | + border: 1px solid rgba(255, 255, 255, .15); |
| 288 | + background: rgba(255, 255, 255, .05); |
| 289 | + border-radius: 4px; |
| 290 | + padding: 0.125rem 0.25rem; |
| 291 | +} |
0 commit comments