@@ -109,7 +109,6 @@ html[data-theme='dark'] {
109109 background : var (--docsearch-searchbox-background );
110110 color : var (--ifm-color-emphasis-900 );
111111 font-weight : 500 ;
112- transition : background-color 0.3s ease-out;
113112 user-select : none;
114113}
115114
@@ -125,6 +124,12 @@ html[data-theme='dark'] {
125124 stroke-width : var (--docsearch-icon-stroke-width );
126125}
127126
127+ .DocSearch-SearchButton : hover .DocSearch-Search-Icon ,
128+ .DocSearch-SearchButton : active .DocSearch-Search-Icon ,
129+ .DocSearch-SearchButton : focus .DocSearch-Search-Icon {
130+ color : var (--docsearch-primary-color );
131+ }
132+
128133.DocSearch-SearchButton-Placeholder {
129134 margin : 0 1em 0 .5em ;
130135 font-size : 1rem ;
@@ -420,6 +425,7 @@ html[data-theme='dark'] {
420425 font-size : 0.9em ;
421426 color : var (--docsearch-muted-color );
422427 user-select : none;
428+ margin : 0 ;
423429}
424430
425431.DocSearch-Title {
@@ -429,7 +435,7 @@ html[data-theme='dark'] {
429435/* Hit */
430436
431437.DocSearch-Hits : last-of-type {
432- margin-bottom : 40 px ;
438+ margin-bottom : 24 px ;
433439 }
434440
435441.DocSearch-Hits mark {
@@ -456,9 +462,9 @@ html[data-theme='dark'] {
456462.DocSearch-Hit-source {
457463 position : sticky;
458464 top : 0 ;
459- z-index : var ( --ifm-z-index-fixed ) ;
460- margin : 0 calc ( var ( --docsearch-spacing ) * -1 + 1 px ) ;
461- padding : 8px calc ( var ( --docsearch-spacing ) - 1 px ) 0 ;
465+ z-index : 10 ;
466+ margin : 0 -4 px ;
467+ padding : 8px 4 px 0 ;
462468 line-height : 32px ;
463469 font-size : 0.85em ;
464470 font-weight : 600 ;
@@ -614,21 +620,30 @@ html[data-theme='dark'] {
614620@media (max-width : 750px ) {
615621 : root {
616622 /* quickfix https://stackoverflow.com/questions/37112218/css3-100vh-not-constant-in-mobile-browser */
617- --docsearch-modal-height : 100vh ;
623+ --docsearch-modal-height : calc ( 100vh - 200 px ) ;
618624 --docsearch-spacing : 10px ;
619625 --docsearch-footer-height : 40px ;
620626 }
621627 .DocSearch-SearchButton-KeySeparator ,
622628 .DocSearch-SearchButton-Key {
623629 display : none;
624630 }
631+
632+ .DocSearch-Dropdown {
633+ height : calc (
634+ var (--docsearch-modal-height ) - var (--docsearch-searchbox-height ) -
635+ var (--docsearch-spacing ) - var (--docsearch-footer-height )
636+ );
637+ }
638+
625639 .DocSearch-Modal {
626640 border-radius : 0 ;
627641 box-shadow : none;
628642 margin : 0 ;
629643 width : 100% ;
630644 max-width : 100% ;
631645 }
646+
632647 .DocSearch-Cancel {
633648 display : inline-block;
634649 white-space : nowrap;
0 commit comments