File tree Expand file tree Collapse file tree 3 files changed +82
-0
lines changed Expand file tree Collapse file tree 3 files changed +82
-0
lines changed Original file line number Diff line number Diff line change 1414@import 'icon.css' ;
1515@import 'sidebar-container.css' ;
1616@import 'well.css' ;
17+ @import 'algolia-search.css' ;
1718
1819/* Helpers */
1920@import 'helpers/index.css' ;
Original file line number Diff line number Diff line change 1+ # search-input {
2+ border-radius : 18px ;
3+ border : 2px solid var (--color-card-border );
4+ line-height : 30px ;
5+ padding-left : 8px ;
6+ width : 100% ;
7+ }
8+
9+ /* Dropdown styling */
10+ .ds-dropdown-results {
11+ z-index : 1 ; /* makes sure that the search is above the version selector */
12+ }
13+ .ds-dropdown-menu {
14+ width : 500px ;
15+ background-color : white;
16+ color : black;
17+ border-radius : 8px ;
18+ margin-top : 10px ;
19+ border : 2px solid var (--color-card-border );
20+ overflow-x : hidden;
21+ }
22+
23+ /* Dropdown header styling */
24+ .algolia-docsearch-suggestion__main {
25+ background-color : var (--color-info );
26+ padding : 8px 16px ;
27+ }
28+
29+ .algolia-docsearch-suggestion__main > .algolia-docsearch-suggestion--wrapper {
30+ border : none;
31+ padding : 0 ;
32+ }
33+
34+ /* No results styling */
35+ .algolia-docsearch-suggestion--noresults {
36+ color : var (--color-gray-600 );
37+ padding : 8px 16px ;
38+ }
39+
40+ /* Result styling */
41+ .algolia-docsearch-suggestion--wrapper {
42+ display : flex;
43+ border-bottom : 1px solid var (--color-card-border );
44+ gap : 10px ;
45+ font-size : 14px ;
46+ padding : 8px 16px ;
47+ }
48+
49+ .algolia-docsearch-suggestion--subcategory-column {
50+ flex-basis : 80px ;
51+ min-width : 80px ;
52+ }
53+
54+ .algolia-docsearch-suggestion--subcategory-column-text {
55+ font-weight : bold;
56+ }
57+
58+ /* Search sponsor styling */
59+ .powered-by-algolia {
60+ display : flex;
61+ justify-content : end;
62+ margin : 8px ;
63+ }
64+ .powered-by-algolia > a {
65+ display : flex;
66+ }
67+
68+ @media (min-width : 1008px ) {
69+ .navbar-list {
70+ flex-grow : 1 ;
71+ }
72+ }
73+
74+ @media (max-width : 1007px ) {
75+ .ds-dropdown-menu {
76+ width : calc (100vw - 2rem );
77+ }
78+ }
Original file line number Diff line number Diff line change 1+ # Algolia Search style overrides
2+
3+ We use Algolia as search engine. This comes with some default styling which we've updated a bit to look nicer and fit more with our theme.
You can’t perform that action at this time.
0 commit comments