-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathalgolia.scss
More file actions
148 lines (128 loc) · 3.9 KB
/
algolia.scss
File metadata and controls
148 lines (128 loc) · 3.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
.layout-search__search {
.DocSearch-Button {
display: inline-flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
font-weight: 500;
transition: all var(--amplify-components-button-transition-duration);
background-color: var(--amplify-colors-background-primary);
border-width: var(--amplify-components-button-border-width);
border-style: var(--amplify-components-button-border-style);
border-color: var(--amplify-colors-border-primary);
border-radius: var(--amplify-components-button-border-radius);
color: var(--amplify-colors-font-tertiary);
font-size: var(--amplify-components-button-small-font-size);
user-select: none;
height: revert;
margin: revert;
padding-block-start: var(--amplify-components-button-padding-block-start);
padding-block-end: var(--amplify-components-button-padding-block-end);
padding-inline-start: var(--amplify-components-button-padding-inline-start);
padding-inline-end: var(--amplify-components-button-padding-inline-end);
&:hover {
background: var(--amplify-components-button-hover-background-color);
border-color: var(--amplify-components-button-hover-border-color);
color: var(--amplify-components-button-hover-color);
box-shadow: none;
}
&:focus {
box-shadow: none;
}
&:focus-visible {
transition: none;
background-color: var(--amplify-components-button-hover-background-color);
color: var(--amplify-components-button-focus-color);
outline: 2px solid var(--amplify-colors-border-focus);
outline-offset: 2px;
}
.DocSearch-Search-Icon {
color: inherit;
height: var(--amplify-font-sizes-medium);
width: var(--amplify-font-sizes-medium);
margin: var(--amplify-space-xxxs);
}
}
.DocSearch-Button-Key {
height: var(--amplify-font-sizes-medium);
font-family: var(--font-code);
padding: 0;
margin-right: var(--amplify-space-xxs);
color: var(--amplify-colors-neutral-80);
&:last-of-type {
margin-right: 0;
}
@include darkMode {
color: var(--amplify-colors-neutral-20);
}
}
.DocSearch-Button-Placeholder {
font-size: var(--amplify-components-button-font-size);
line-height: var(--amplify-line-heights-medium);
}
}
// Modal
.DocSearch-Container .DocSearch-Modal {
position: fixed;
@media (min-width: 480px) {
position: relative;
}
.DocSearch-Input {
color: inherit;
}
.DocSearch-Reset:focus {
outline: revert;
}
.DocSearch-Hit-source,
.DocSearch-Logo svg {
color: var(--amplify-colors-font-tertiary);
}
.DocSearch-MagnifierLabel {
color: var(--amplify-colors-font-disabled);
}
.DocSearch-Hit {
border-radius: var(--amplify-radii-small);
padding-block-end: var(--amplify-space-small);
}
.DocSearch-Cancel {
color: var(--amplify-components-button-link-color);
}
.DocSearch-Form {
box-shadow: inset 0 0 0 2px var(--amplify-colors-border-focus);
}
}
// Search filters — compact row below search input inside the modal
.search-filters {
display: flex;
align-items: center;
gap: var(--amplify-space-xs);
padding: 6px var(--amplify-space-small);
border-bottom: 1px solid var(--amplify-colors-border-tertiary);
font-size: 11px;
&__group {
display: flex;
align-items: center;
gap: 4px;
}
&__label {
color: var(--amplify-colors-font-tertiary);
}
&__separator {
width: 1px;
height: 16px;
background: var(--amplify-colors-border-tertiary);
}
&__select {
font-size: 11px;
padding: 2px 4px;
border: 1px solid var(--amplify-colors-border-secondary);
border-radius: var(--amplify-radii-small);
background: var(--amplify-colors-background-primary);
color: var(--amplify-colors-font-primary);
cursor: pointer;
&:focus-visible {
outline: 2px solid var(--amplify-colors-border-focus);
outline-offset: 1px;
}
}
}