@@ -36,7 +36,8 @@ export default {
3636 },
3737 autocompleteOptions: {
3838 keyboardShortcuts: HOT_KEYS
39- }
39+ },
40+ layout: LAYOUT
4041 }
4142 this .initialize (options)
4243 this .placeholder = PLACEHOLDER || this .$site .themeConfig .searchPlaceholder || ' '
@@ -101,11 +102,11 @@ export default {
101102.meilisearch-search-wrapper
102103 & > span
103104 vertical-align middle
105+ .dsb-cursor
106+ background rgba ($accentColor, 0.05 )
104107 .meilisearch-autocomplete
105108 line-height 2
106- .docs-searchbar-suggestion--highlight
107- color darken ($accentColor , 20% )
108- .docs-searchbar-suggestion
109+ .docs-searchbar-suggestion :not (.suggestion-layout-simple )
109110 border-color $borderColor
110111 .docs-searchbar-suggestion--category-header
111112 background #f1 f3 f5
@@ -115,10 +116,12 @@ export default {
115116 font-weight 600
116117 color #f f f
117118 .docs-searchbar-suggestion--highlight
118- background rgba (255 , 255 , 255 , 0.6 )
119119 box-shadow none
120+ background lighten ($accentColor , 70% )
120121 .docs-searchbar-suggestion--wrapper
121122 padding 0
123+ .docs-searchbar-suggestion--highlight
124+ color darken ($accentColor , 20% )
122125 .docs-searchbar-suggestion--title
123126 margin-bottom 0
124127 color $textColor
@@ -129,6 +132,22 @@ export default {
129132 .docs-searchbar-suggestion--text
130133 .docs-searchbar-suggestion--highlight
131134 box-shadow inset 0 - 2px 0 0 lighten ($accentColor , 20% )
135+ color : inherit
136+ .suggestion-layout-simple
137+ .docs-searchbar-suggestion--title
138+ color : $accentColor
139+ & :before
140+ color : darken ($accentColor , 20% )
141+ .docs-searchbar-suggestion--category-header
142+ .docs-searchbar-suggestion--highlight
143+ box-shadow unset
144+ color : darken ($accentColor , 20% )
145+ background-color rgba ($accentColor, 0.05 )
146+ .docs-searchbar-suggestion--category-header-lvl0 , .docs-searchbar-suggestion--category-header-lvl1
147+ .docs-searchbar-suggestion--highlight
148+ background-color : transparent
149+ box-shadow inset 0 - 2px 0 0 lighten ($accentColor , 20% )
150+ color inherit
132151 .docs-searchbar-footer
133152 display flex !important
134153 justify-content space-between !important
0 commit comments