|
| 1 | +/* this was copy/paste/modified from @docsearch/css/dist/_variables.css */ |
| 2 | +:root { |
| 3 | + &:where(.dark) { |
| 4 | + --docsearch-text-color: #f5f6f7; |
| 5 | + --docsearch-container-background: rgba(9, 10, 17, 0.8); |
| 6 | + --docsearch-modal-background: #15172a; |
| 7 | + --docsearch-modal-shadow: inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309; |
| 8 | + --docsearch-searchbox-background: #090a11; |
| 9 | + --docsearch-searchbox-focus-background: #000; |
| 10 | + --docsearch-hit-color: #bec3c9; |
| 11 | + --docsearch-hit-shadow: none; |
| 12 | + --docsearch-hit-background: #090a11; |
| 13 | + --docsearch-key-gradient: linear-gradient(-26.5deg, #565872, #31355b); |
| 14 | + --docsearch-key-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d, |
| 15 | + 0 2px 2px 0 rgba(3, 4, 9, 0.3); |
| 16 | + --docsearch-footer-background: #1e2136; |
| 17 | + --docsearch-footer-shadow: inset 0 1px 0 0 rgba(73, 76, 106, 0.5), |
| 18 | + 0 -4px 8px 0 rgba(0, 0, 0, 0.2); |
| 19 | + --docsearch-logo-color: #fff; |
| 20 | + --docsearch-muted-color: #7f8497; |
| 21 | + } |
| 22 | +} |
| 23 | + |
| 24 | +.DocSearch-Button { |
| 25 | + @apply ml-0 h-10 bg-gray-100 px-3 hover:bg-gray-200 hover:shadow-none focus:bg-gray-200 focus-visible:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus-visible:bg-gray-700; |
| 26 | + |
| 27 | + @media screen and (min-width: theme(screens.lg)) { |
| 28 | + width: 100%; |
| 29 | + } |
| 30 | + @media not screen and (min-width: theme(screens.lg)) { |
| 31 | + @apply w-10 place-content-center px-0; |
| 32 | + .DocSearch-Button-Keys, |
| 33 | + .DocSearch-Button-Placeholder { |
| 34 | + display: none; |
| 35 | + } |
| 36 | + } |
| 37 | + @media print { |
| 38 | + display: none; |
| 39 | + } |
| 40 | +} |
| 41 | + |
| 42 | +.DocSearch-Button-Placeholder { |
| 43 | + @apply text-sm font-normal text-black dark:text-gray-200; |
| 44 | +} |
| 45 | + |
| 46 | +.DocSearch-Button-Keys { |
| 47 | + @apply justify-end gap-1; |
| 48 | +} |
| 49 | + |
| 50 | +.DocSearch-Button-Key { |
| 51 | + all: unset; |
| 52 | + |
| 53 | + @apply grid h-5 w-3.5 place-items-center rounded bg-white px-1 text-xs text-gray-600 dark:bg-gray-600 dark:text-gray-200; |
| 54 | +} |
| 55 | + |
| 56 | +.DocSearch-Container { |
| 57 | + cursor: auto; |
| 58 | +} |
0 commit comments