1
1
@import "https://cdn.jsdelivr.net/npm/docs-searchbar.js@latest/dist/cdn/docs-searchbar.min.css" ;
2
2
@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" ;
3
3
4
- div [data-ds-theme ] .searchbox {
4
+ div [data-ds-theme ] .searchbox {
5
5
overflow-y : scroll;
6
6
margin : auto;
7
- display : block;
8
- width : 600px ;
9
- }
10
-
11
- .dsb-suggestions {
12
- width : 580px ;
13
7
}
14
8
15
9
.docs-searchbar-suggestion--category-header {
@@ -18,11 +12,67 @@ div [data-ds-theme] .searchbox {
18
12
text-align : left;
19
13
}
20
14
21
- .docs-searchbar-suggestion--subcategory-column-text {
22
- color : var (--pst-color-text-base );
15
+ /* Styles for screens with a width of 576px or less */
16
+ @media screen and (max-width : 576px ) {
17
+ div [data-ds-theme ] .searchbox {
18
+ width : 100% ;
19
+ max-width : 100% ;
20
+ }
21
+
22
+ .dsb-suggestions {
23
+ width : 100% ;
24
+ max-width : 480px ;
25
+ }
26
+
27
+ .meilisearch-autocomplete .dsb-dropdown-menu [class ^= "dsb-dataset-" ] {
28
+ max-width : 580px ;
29
+ min-width : 430px ;
30
+ width : 450px ;
31
+ }
32
+
33
+ .bd-search input {
34
+ width : 270px !important ;
35
+ }
36
+
37
+ .index-select {
38
+ width : 180px ;
39
+ }
40
+
41
+ .meilisearch-autocomplete .docs-searchbar-suggestion {
42
+ width : 450px ;
43
+ }
23
44
}
24
45
25
- div [data-ds-theme ] .searchbox input {
46
+ /* Styles for screens with a width of 1200px or less */
47
+ @media screen and (min-width : 1200px ) {
48
+ div [data-ds-theme ] .searchbox {
49
+ max-width : 800px ;
50
+ }
51
+
52
+ .dsb-suggestions {
53
+ width : 100% ;
54
+ max-width : 580px ;
55
+ }
56
+
57
+ .meilisearch-autocomplete .dsb-dropdown-menu {
58
+ max-width : 870px ;
59
+ min-width : 580px ;
60
+ width : 850px ;
61
+ }
62
+
63
+ .bd-search input {
64
+ width : 600px !important ;
65
+ }
66
+ .index-select {
67
+ width : 250px ;
68
+ }
69
+
70
+ .meilisearch-autocomplete .docs-searchbar-suggestion {
71
+ width : 735px ;
72
+ }
73
+ }
74
+
75
+ div [data-ds-theme ] .searchbox input {
26
76
height : 32px ;
27
77
border-radius : 8px ;
28
78
font-size : 18px ;
@@ -34,6 +84,10 @@ div [data-ds-theme] .searchbox input {
34
84
display : none;
35
85
}
36
86
87
+ .docs-searchbar-footer {
88
+ display : none;
89
+ }
90
+
37
91
[class *= "docs-searchbar-suggestion" ] {
38
92
text-decoration : none;
39
93
}
@@ -54,7 +108,6 @@ div [data-ds-theme] .searchbox input {
54
108
}
55
109
56
110
# search-bar-input {
57
- width : 550px ;
58
111
background-color : var (--pst-color-background );
59
112
border : 1px solid var (--pst-color-border );
60
113
border-radius : 0.25rem ;
@@ -66,7 +119,7 @@ div [data-ds-theme] .searchbox input {
66
119
67
120
.meilisearch-autocomplete ::before {
68
121
content : "\f002" ;
69
- font-family : "Font Awesome 6 Free" ; /* The Font Awesome font family */
122
+ font-family : "Font Awesome 6 Free" ;
70
123
position : absolute;
71
124
left : 8px ;
72
125
top : 50% ;
@@ -85,7 +138,6 @@ div [data-ds-theme] .searchbox input {
85
138
font-family : "Open Sans" , sans-serif;
86
139
box-shadow : 0px 0px 20px var (--pst-color-border );
87
140
padding : 0 10px 0px 10px ;
88
- width : 250px ;
89
141
margin-left : 5px ;
90
142
}
91
143
@@ -94,19 +146,15 @@ div [data-ds-theme] .searchbox input {
94
146
border : 1px solid # d9d9d9 ;
95
147
background : var (--pst-color-background );
96
148
border-radius : 4px ;
97
- max-width : 800px ;
98
- min-width : 500px ;
99
149
padding : 0 8px 8px ;
100
- width : 805px ;
101
150
}
102
151
.meilisearch-autocomplete .dsb-dropdown-menu {
103
- height : 500 px !important ; /* Set a fixed height to trigger the scrollbar */
104
- overflow-y : auto !important ; /* Enable the vertical scrollbar */
152
+ max- height: 600 px !important ;
153
+ overflow-y : auto !important ;
105
154
border : 1px solid # ccc ;
106
155
}
107
156
108
157
.meilisearch-autocomplete .docs-searchbar-suggestion {
109
- width : 735px ;
110
158
background : var (--pst-color-background );
111
159
}
112
160
@@ -124,11 +172,6 @@ div [data-ds-theme] .searchbox input {
124
172
125
173
.meilisearch-autocomplete .docs-searchbar-suggestion--content {
126
174
display : block;
127
- width : 100% !important ;
128
- }
129
-
130
- .meilisearch-autocomplete .dsb-dropdown-menu {
131
- max-width : 800px ;
132
175
}
133
176
134
177
.meilisearch-autocomplete .docs-searchbar-suggestion--title {
@@ -139,10 +182,6 @@ div [data-ds-theme] .searchbox input {
139
182
width : 100% ;
140
183
}
141
184
142
- .meilisearch-autocomplete .docs-searchbar-suggestion--text {
143
- width : 100% ;
144
- }
145
-
146
185
/* Styling the scrollbar */
147
186
.meilisearch-autocomplete .dsb-dropdown-menu ::-webkit-scrollbar {
148
187
width : 0.5rem ;
0 commit comments