-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose_typeaheads.css
272 lines (222 loc) · 6.52 KB
/
compose_typeaheads.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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
:root {
/* To encode icons back to svg file paste string "..." to 'Take encoded:' field here https://yoksel.github.io/url-encoder/ */
--icon-status-online-light: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='4' fill='%2346AA62'/%3e%3c/svg%3e");
--icon-status-idle-light: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='4' fill='%23D5BB6C'/%3e%3c/svg%3e");
--icon-status-away-light: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='4' fill='%2373788C' fill-opacity='.25'/%3e%3c/svg%3e");
--icon-status-online-dark: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='4' fill='%2344BB65'/%3e%3c/svg%3e");
--icon-status-idle-dark: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='4' fill='%23736D30'/%3e%3c/svg%3e");
--icon-status-away-dark: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='4' fill='%23ABAEBA' fill-opacity='.22'/%3e%3c/svg%3e");
}
.list_popover {
background: hsl(240, 20%, 98%);
border: 1px solid hsla(0, 0%, 0%, 0.4);
border-radius: 6px;
box-shadow: 0px 7px 13px rgba(0, 0, 0, 0.15), 0px 5px 8px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.1);
z-index: 1;
}
.dark .list_popover {
background-color: hsl(240deg 5% 16%);
border: 1px solid black;
box-shadow: 0px 7px 13px rgba(0, 0, 0, 0.35), 0px 5px 8px rgba(0, 0, 0, 0.32), 0px 2px 4px rgba(0, 0, 0, 0.2);
}
.stream_list_popover {
position: absolute;
bottom: 150px;
left: 50px;
width: 240px;
height: 210px;
display: flex;
flex-direction: column;
}
.streams-list__filter {
margin: 4px 4px 2px 4px;
background: hsl(240deg 12.68% 92.24%);
color: #222;
font-size: 15px;
line-height: 19px;
text-align: left;
font-family: var(--font-ss3);
font-style: normal;
font-weight: 400;
padding: 4px 8px;
border: 1px solid transparent;
outline: none;
border-radius: 3px;
transition: all 0.1s linear;
border: 1px solid transparent;
}
.streams-list__filter:hover {
background: white;
border: 1px solid rgba(20, 22, 31, 0.3);
}
.streams-list__filter:active,
.streams-list__filter:focus {
background: white;
border: 1px solid rgba(20, 22, 31, 0.8);
box-shadow: 0px 0px 6px rgba(46, 48, 56, 0.3);
}
.dark .streams-list__filter {
background: hsl(225deg 6% 10%);
color: hsl(0deg 0% 95%);
border: 1px solid black;
}
.dark .streams-list__filter:hover {
background: hsl(225deg 6% 8%);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark.streams-list__filter:active,
.dark .streams-list__filter:focus {
background: hsl(225deg 6% 7%);
border: 1px solid rgba(255, 255, 255, 0.5);
box-shadow: 0px 0px 5px rgb(255 255 255 / 40%);
}
.topic_list_popover {
position: absolute;
bottom: 150px;
right: 380px;
width: 400px;
height: 210px;
display: flex;
flex-direction: column;
}
.user_list_popover {
position: absolute;
bottom: 150px;
right: 40px;
width: 300px;
height: 210px;
display: flex;
flex-direction: column;
}
ul.typeahead-menu {
list-style: none;
margin: 4px 0;
padding: 0;
}
ul.typeahead-menu li {
font-family: var(--font-ss3);
font-style: normal;
font-weight: 400;
font-size: 15px;
line-height: 134%;
color: #262626;
padding: 3px 10px;
user-select: none;
cursor: pointer;
}
.dark ul.typeahead-menu li {
color: hsl(0, 0%, 75%);
}
ul.typeahead-menu li:hover,
ul.typeahead-menu li._active {
background-color: rgba(11, 12, 14, 0.05);
}
ul.typeahead-menu li:active {
background-color: rgba(11, 12, 14, 0.07);
transition: all 80ms;
transform: scale(0.99);
}
.dark ul.typeahead-menu li:hover,
.dark ul.typeahead-menu li._active {
background-color: hsla(220, 12%, 95%, 0.051);
}
.dark ul.typeahead-menu li:active {
background-color: hsla(220, 12%, 95%, 0.07);
}
.typeahead-menu li .stream_list__icon {
display: block;
flex-grow: 0;
flex-shrink: 0;
width: 16px;
height: 16px;
margin-top: 2px;
margin-right: 5px;
}
._new-topic::after {
font-family: var(--font-ss3);
font-style: italic;
content: ' –\00a0new\00a0topic';
display: inline-block;
opacity: 0.5;
margin-left: 0.5em;
}
.stream_list_popover .typeahead-menu li {
padding: 3px 10px 3px 8px;
display: flex;
}
.topic_list_popover .topic_placeholder {
color: hsl(240deg 20% 45%);
}
.dark .topic_list_popover .topic_placeholder {
color: hsl(240deg 25% 65%);
}
.user_list_popover .typeahead-menu li {
display: flex;
padding-left: 4px;
}
.user_list_popover .typeahead-menu li .user_list__icon {
margin-top: 2px;
}
.scrollable_list {
height: 100%;
width: 100%;
overflow-x: hidden;
overflow-y: auto;
scrollbar-width: thin;
}
.scrollable_list::-webkit-scrollbar {
width: 8px;
border-radius: 12px;
background: transparent;
}
.scrollable_list::-webkit-scrollbar-thumb {
background: #999;
border-radius: 12px;
border: 2px solid hsl(240, 20%, 98%);
}
.scrollable_list::-webkit-scrollbar-track {
background: transparent;
border-radius: 12px;
}
.dark .scrollable_list::-webkit-scrollbar-thumb {
background: hsl(0, 0%, 40%);
border-color: hsl(240deg 5% 16%)
}
.dark .scrollable_list::-webkit-scrollbar-track {
background: transparent;
}
.user_list__icon {
width: 16px;
height: 16px;
background-repeat: no-repeat;
background-position: center;
display: inline-block;
flex-shrink: 0;
flex-grow: 0;
}
.user_list__avatar {
width: 22px;
height: 22px;
border-radius: 2px;
margin-top: -2px;
margin-right: 5px;
margin-left: 2px;
}
.icon-online {
background: var(--icon-status-online-light);
}
.dark .icon-online {
background: var(--icon-status-online-dark);
}
.icon-idle {
background: var(--icon-status-idle-light);
}
.dark .icon-idle {
background: var(--icon-status-idle-dark);
}
.icon-away {
background: var(--icon-status-away-light);
}
.dark .icon-away {
background: var(--icon-status-away-dark);
}