@@ -419,9 +419,79 @@ html[data-theme="dark"] .navbar {
419419/* Search */
420420
421421.DocSearch-Button {
422- @apply rounded-lg px-3 py-2 !important ;
422+ @apply rounded-lg !important ;
423+ display : flex !important ;
424+ align-items : center !important ;
425+ padding : 0 12px !important ;
426+ height : 44px !important ;
427+ gap : 8px !important ;
428+ }
429+
430+ /* Search icon */
431+ .DocSearch-Button .DocSearch-Search-Icon {
432+ flex-shrink : 0 ;
433+ width : 18px ;
434+ height : 18px ;
435+ }
436+
437+ /* Search placeholder text */
438+ .DocSearch-Button .DocSearch-Button-Placeholder {
439+ line-height : 1 ;
440+ padding : 0 !important ;
441+ margin : 0 ;
442+ }
443+
444+ /* Keyboard shortcut keys */
445+ .DocSearch-Button .DocSearch-Button-Keys {
446+ display : flex;
447+ align-items : center;
448+ gap : 2px ;
449+ min-width : auto !important ;
450+ padding : 0 !important ;
451+ }
452+
453+ .DocSearch-Button .DocSearch-Button-Key {
454+ display : flex;
455+ align-items : center;
456+ justify-content : center;
457+ padding : 0 4px !important ;
458+ margin : 0 !important ;
459+ line-height : 1 ;
460+ }
461+
462+ /* Search button focus/hover */
463+ .DocSearch-Button : focus ,
464+ .DocSearch-Button : hover {
465+ box-shadow : inset 0 0 0 2px var (--ifm-color-primary ) !important ;
466+ outline : none !important ;
423467}
424468
469+ /* Search modal icon */
470+ .DocSearch-Modal .DocSearch-MagnifierLabel {
471+ margin-right : 12px ;
472+ flex-shrink : 0 ;
473+ }
474+
475+ /* Search modal input */
476+ .DocSearch-Modal .DocSearch-Input {
477+ padding-left : 0 !important ;
478+ width : 100% !important ;
479+ min-width : 0 !important ;
480+ box-sizing : border-box !important ;
481+ outline : none !important ;
482+ box-shadow : none !important ;
483+ border : none !important ;
484+ }
485+
486+ /* Search modal form */
487+ .DocSearch-Modal .DocSearch-Form {
488+ padding : 0 12px !important ;
489+ gap : 8px ;
490+ overflow : hidden;
491+ align-items : center;
492+ }
493+
494+
425495.button .button--secondary .button--outline : not (.button--active ): not (: hover ) {
426496 color : # ffffff ;
427497}
0 commit comments