-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
194 lines (165 loc) · 3.99 KB
/
styles.css
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
/* Example on how to customize the color facet */
atomic-color-facet::part(value-dynamicscrmitem) {
background-image: url("/build/assets/email.svg");
background-position: center;
background-size: contain;
background-repeat: no-repeat;
background-color: rgb(149, 174, 197);
}
atomic-color-facet::part(value-lithiumuser) {
background-image: url("/build/assets/folder.svg");
background-position: center;
background-size: contain;
background-repeat: no-repeat;
background-color: rgb(139, 154, 227);
}
atomic-color-facet::part(value-YouTubeVideo) {
background-image: url("build/assets/video.svg");
background-position: center;
background-size: contain;
background-repeat: no-repeat;
background-color: rgb(176, 112, 230);
}
atomic-color-facet::part(value-lithiummessage) {
background-image: url("build/assets/knowledge.svg");
background-position: center;
background-size: contain;
background-repeat: no-repeat;
background-color: rgb(236, 148, 237);
}
atomic-color-facet::part(value-lithiumthread) {
background-image: url("build/assets/post.svg");
background-position: center;
background-size: contain;
background-repeat: no-repeat;
background-image: rgb(101, 202, 228);
}
atomic-color-facet::part(value-html) {
background-image: url("build/assets/html.svg");
background-position: center;
background-size: contain;
background-repeat: no-repeat;
background-color: transparent;
}
/* Example of generic layout styling, mobile-first */
:root {
--spacing: 16px;
--spacing-col: 32px;
--search-box-width: 648px;
}
body {
margin: 0;
}
body.atomic-modal-opened {
overflow-y: hidden;
}
atomic-search-interface {
display: grid;
grid-template-columns: var(--spacing) 1fr var(--spacing);
grid-template-areas:
". search ."
". status ."
". breadbox ."
". topbar ."
". results ."
". pagination ."
". . .";
}
.header-bg {
background-color: var(--atomic-neutral-light);
grid-area: 1 / -1 / 1 / 1;
}
atomic-facet-manager {
display: none;
}
atomic-sort-dropdown {
display: none;
}
atomic-search-box {
grid-area: search;
margin: var(--spacing) 0;
max-width: var(--search-box-width);
}
.status {
grid-area: status;
}
atomic-facet-manager {
grid-area: facets;
margin-top: var(--spacing);
}
atomic-facet-manager > * {
margin-bottom: var(--spacing);
}
atomic-breadbox {
grid-area: breadbox;
margin-top: var(--spacing);
padding-bottom: var(--spacing);
border-bottom: 1px solid var(--atomic-neutral);
}
.topbar {
grid-area: topbar;
margin: var(--spacing) 0;
display: flex;
justify-content: space-between;
align-items: center;
}
atomic-did-you-mean {
margin-bottom: var(--spacing);
}
.results {
grid-area: results;
}
.pagination {
grid-area: pagination;
margin: var(--spacing) 0;
}
.atomic-search-interface-no-results .topbar,
.atomic-search-interface-no-results .results,
.atomic-search-interface-no-results .pagination {
display: none;
}
@media only screen and (min-width: 1024px) {
atomic-search-interface {
column-gap: var(--spacing-col);
grid-template-columns: 1fr minmax(150px, 325px) minmax(500px, 1100px) 1fr;
grid-template-areas:
". . search ."
". facets breadbox ."
". facets topbar ."
". facets results ."
". facets pagination ."
". facets status ."
". facets . .";
}
atomic-facet-manager {
display: block;
}
atomic-refine-toggle {
display: none;
}
atomic-sort-dropdown {
display: block;
}
.status {
max-width: var(--search-box-width);
}
.this-year-button {
width: fit-content;
padding: 10px 10px 12px 10px;
border: 1px solid #1372ec;
border-radius: 10px;
font-family: var(--atomic-font-family);
position: absolute;
margin: var(--spacing);
right: 0;
cursor: pointer;
user-select: none;
}
.this-year-button:hover {
background: #e1e9f3;
}
.this-year-button.active {
background: #066bf0;
color: white;
}
}