4343 --hl : var (--blue-5 );
4444 --fg : var (--black );
4545 --bg : var (--white );
46+
47+ /* We manually add a blur on `::before` of the container, so no background needed. */
48+ --docsearch-container-background : transparent !important ;
49+ --docsearch-footer-background : var (--white ) !important ;
50+ --docsearch-footer-shadow : 0 -1px 0 0 var (--gray-2 ) !important ;
51+ --docsearch-highlight-color : var (--hl ) !important ;
52+ --docsearch-hit-color : var (--gray-7 ) !important ;
53+ --docsearch-hit-shadow : inset 0 0 0 1px var (--gray-2 ) !important ;
54+ /* This is actually used in a `background` field so does not have to be a gradient. */
55+ --docsearch-key-gradient : var (--gray-0 ) !important ;
56+ --docsearch-key-pressed-shadow : none !important ;
57+ --docsearch-key-shadow : inset 0 -1px 0 var (--gray-4 ) !important ;
58+ --docsearch-modal-background : var (--white ) !important ;
59+ /* Card shadow: <https://github.com/unifiedjs/unifiedjs.github.io/blob/4de0391/asset/index.css#L399> */
60+ --docsearch-modal-shadow : 0 0 0 0.2em rgb (3 102 214 / 0% ),
61+ 0 13px 27px -5px rgb (50 50 93 / 25% ), 0 8px 16px -8px rgb (0 0 0 / 30% ),
62+ 0 -6px 16px -6px rgb (0 0 0 / 2.5% ) !important ;
63+ /* Use the regular color: */
64+ --docsearch-muted-color : var (--black ) !important ;
65+ --docsearch-primary-color : var (--hl ) !important ;
66+ --docsearch-searchbox-background : var (--white ) !important ;
67+ --docsearch-searchbox-focus-background : var (--gray-0 ) !important ;
68+ --docsearch-searchbox-shadow : inset 0 0 0 2px var (--hl ) !important ;
69+ --docsearch-text-color : var (--black ) !important ;
4670}
4771
4872* {
@@ -526,7 +550,8 @@ button.success {
526550 padding-top : calc (2 * (1em + 1ex ));
527551}
528552
529- .navigation ::before {
553+ .navigation ::before ,
554+ .DocSearch-Container ::before {
530555 content : '' ;
531556 inset : 0 ;
532557 position : absolute;
@@ -538,6 +563,10 @@ button.success {
538563 );
539564}
540565
566+ .DocSearch li {
567+ margin : 0 ;
568+ }
569+
541570# banner {
542571 padding : calc (0.25 * (1em + 1ex ));
543572 background-color : var (--mdx-yellow );
@@ -564,7 +593,8 @@ button.success {
564593
565594/* Note that the `backdrop-filter` itself is applied in light mode. */
566595@supports (backdrop-filter : blur (1ex )) {
567- .navigation ::before {
596+ .navigation ::before ,
597+ .DocSearch-Container ::before {
568598 backdrop-filter : saturate (200% ) blur (1ex );
569599 background-image : radial-gradient (
570600 ellipse at 50% 0% ,
@@ -574,8 +604,10 @@ button.success {
574604 }
575605}
576606
607+ .DocSearch-Modal ,
577608.navigation-primary ,
578609.navigation-secondary ,
610+ .navigation-search ,
579611.navigation-tertiary {
580612 z-index : 3 ;
581613}
@@ -597,13 +629,22 @@ button.success {
597629
598630.navigation-primary ,
599631.navigation-secondary ,
632+ .navigation-search ,
600633.navigation-tertiary {
601634 margin : 0 ;
602635 padding : calc (0.5 * (1em + 1ex ));
603636 display : flex;
604637 list-style-type : none;
605638}
606639
640+ .navigation-search {
641+ padding : calc (0.25em + 0.25ex );
642+ }
643+
644+ .DocSearch-Button {
645+ margin : 0 !important ;
646+ }
647+
607648.navigation-primary h1 ,
608649.navigation-secondary li ,
609650.navigation-tertiary li {
@@ -1009,6 +1050,8 @@ details[open] {
10091050 --hl : var (--mdx-yellow );
10101051 --fg : var (--white );
10111052 --bg : var (--black );
1053+
1054+ --docsearch-key-gradient : # eaeef2 !important ;
10121055 }
10131056
10141057 .navigation-secondary a {
@@ -1201,6 +1244,10 @@ details[open] {
12011244 font-size : 1.125em ;
12021245 }
12031246
1247+ .navigation-search {
1248+ padding : calc (0.3em + 0.3ex );
1249+ }
1250+
12041251 # markdown-for-thecomponent-era {
12051252 font-size : 3rem ;
12061253 line-height : calc (1em + (1 / 3 * 1ex ));
0 commit comments