@jsb188/css 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,834 @@
1
+ @import url("./_sizing.css");
2
+
3
+ /* Main elements */
4
+
5
+ html, body {
6
+ height: 100%;
7
+ }
8
+
9
+ body {
10
+ scroll-behavior: smooth;
11
+ padding: 0;
12
+ margin: 0;
13
+ background-color: var(--color-bg);
14
+ }
15
+
16
+ body, input, textarea, button {
17
+ /* Can't use this because numbers, etc will get converted to emoji */
18
+ /* font-family: 'Noto Color Emoji', sans-serif; */
19
+
20
+ /* Defaults */
21
+ font-family: 'ttnp-normal', sans-serif;
22
+ font-size: 16px;
23
+ line-height: 1.4;
24
+ text-rendering: optimizeLegibility;
25
+
26
+ /* See if you like it better without it later */
27
+ /* -webkit-font-smoothing: antialiased;
28
+ -moz-osx-font-smoothing: grayscale; */
29
+ }
30
+
31
+ body, body, input, textarea, button, [data-mode="light"], [data-mode="dark"] {
32
+ color: var(--color-text);
33
+ }
34
+
35
+ * {
36
+ /* This will make .ellip dots work */
37
+ min-width: 0;
38
+ }
39
+
40
+ ::selection {
41
+ background-color: var(--color-secondary-opaque);
42
+ color: var(--color-contrast);
43
+ }
44
+
45
+ .no_sel::selection {
46
+ background-color: transparent;
47
+ color: inherit;
48
+ }
49
+
50
+ a {
51
+ cursor: pointer;
52
+ color: var(--color-highlight);
53
+ text-decoration: none;
54
+ position: relative;
55
+ }
56
+
57
+ a.em:before {
58
+ content: '';
59
+ position: absolute;
60
+ bottom: -.25em;
61
+ left: 0;
62
+ right: 0;
63
+ height: 4px;
64
+ background-color: var(--color-highlight);
65
+ }
66
+
67
+ a.bg:not(:disabled):hover, button.bg:not(:disabled):hover, .link.bg:not(:disabled):hover,
68
+ a.bg:not(:disabled):active, button.bg:not(:disabled):active, .link.bg:not(:disabled):active,
69
+ a.bg_alt:not(:disabled):hover, button.bg_alt:not(:disabled):hover, .link.bg_alt:not(:disabled):hover {
70
+ background-color: var(--color-bg-active);
71
+ }
72
+
73
+ a.bg.click_alt:not(:disabled):hover, button.bg.click_alt:not(:disabled):hover, .link.bg.click_alt:not(:disabled):hover {
74
+ background-color: var(--color-bg-alt);
75
+ color: var(--color-text-bold);
76
+ }
77
+
78
+ a.bg.click_alt:not(:disabled):active, button.bg.click_alt:not(:disabled):active, .link.bg.click_alt:not(:disabled):active {
79
+ background-color: var(--color-bg-medium);
80
+ }
81
+
82
+ button:not(:disabled):active,
83
+ a.bg:not(:disabled):active, button.bg:not(:disabled):active, .link.bg:not(:disabled):active,
84
+ a.bg_alt:not(:disabled):active, button.bg_alt:not(:disabled):active, .link.bg_alt:not(:disabled):active {
85
+ transform: translateY(1px);
86
+ }
87
+
88
+ .non_link:active {
89
+ transform: translateY(0) !important;
90
+ }
91
+
92
+ /* a, a .link {
93
+ transition: color .2s ease, background-color .2s ease;
94
+ } */
95
+
96
+ /*
97
+ This is probably wanted somewhere
98
+ a.link, a .link, button.link, [role="button"].link, [role="button"] .link {
99
+ transition: color .2s ease, background-color .2s ease;
100
+ } */
101
+
102
+ button {
103
+ all: unset;
104
+ }
105
+
106
+ .pointer {
107
+ cursor: pointer;
108
+ }
109
+
110
+ button, .link[role="button"] {
111
+ cursor: pointer;
112
+ user-select: none;
113
+ }
114
+
115
+ button:disabled, .link[role="button"]:disabled {
116
+ cursor: auto;
117
+ }
118
+
119
+ .link[role="button"]:disabled {
120
+ cursor: text;
121
+ }
122
+
123
+ main, section, article, aside, nav, div, p, button, input, textarea, ul, ol, li, span, i, a {
124
+ box-sizing: border-box;
125
+ }
126
+
127
+ ul, ol, figure {
128
+ list-style: none;
129
+ padding: 0;
130
+ margin: 0;
131
+ }
132
+
133
+ img {
134
+ position: relative;
135
+ max-width: 100%;
136
+ }
137
+
138
+ img:after {
139
+ content: "❖";
140
+ font-size: 1.25em;
141
+ display: flex;
142
+ justify-content: center;
143
+ align-items: center;
144
+ position: absolute;
145
+ z-index: 2;
146
+ top: 0;
147
+ left: 0;
148
+ width: 100%;
149
+ height: 100%;
150
+ background-color: var(--color-bg-active);
151
+ }
152
+
153
+ /*
154
+ Attempted to use this to stop click->drag->move on input fields when disabled
155
+ But not using this because even when not disabled, you can still click->drag->move the input content
156
+ input:disabled {
157
+ pointer-events: none;
158
+ } */
159
+
160
+ p:last-child {
161
+ margin-bottom: 0;
162
+ }
163
+
164
+ .tfd, .tfd_p p:last-child {
165
+ /* Use this to fix minor visual typography issues */
166
+ margin-bottom: .1em;
167
+ }
168
+
169
+ .img_auto {
170
+ display: block;
171
+ width: 100%;
172
+ height: 100%;
173
+ object-fit: cover;
174
+ user-select: none;
175
+ }
176
+
177
+ .bg_cover {
178
+ background-size: cover;
179
+ background-position: center;
180
+ }
181
+
182
+ /* Miscelaneous */
183
+
184
+ .scroll_lock { overscroll-behavior-x: none; } /* Use this on <body> when Modal is used */
185
+ .of { overflow: hidden; }
186
+ .hidden { display: none !important; }
187
+
188
+ .z1 { z-index: 10; }
189
+ .z2 { z-index: 20; }
190
+ .z3 { z-index: 30; }
191
+ .z4 { z-index: 40; }
192
+ .z5 { z-index: 50; }
193
+ .z6 { z-index: 60; }
194
+ .z7 { z-index: 70; }
195
+ .z8 { z-index: 80; }
196
+ .z9 { z-index: 90; }
197
+ .z10 { z-index: 100; }
198
+
199
+ .cs_default, label { cursor: inherit; }
200
+ .cs_back { cursor: w-resize; }
201
+ .unsel { user-select: none; }
202
+ .bl { display: block; }
203
+ .ib { display: inline-block; }
204
+
205
+ /* Ellipsis */
206
+
207
+ .ellip_cnt {
208
+ min-width: 0;
209
+ }
210
+
211
+ .ellip {
212
+ display: block;
213
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
214
+ max-width: 100%;
215
+ }
216
+
217
+ .ellip_dbl {
218
+ overflow: hidden;
219
+ text-overflow: ellipsis;
220
+ display: -webkit-box;
221
+ -webkit-line-clamp: 2;
222
+ -webkit-box-orient: vertical;
223
+ }
224
+
225
+ /* Flex & dimensions */
226
+
227
+ .f { flex: 1; }
228
+ .fs { flex: 1; align-self: stretch; }
229
+
230
+ .f_stretch { align-self: stretch; }
231
+ .f_wrap { flex-wrap: wrap; }
232
+ .f_shrink { flex-shrink: 0; }
233
+
234
+ .h_spread { display: flex; justify-content: space-between; align-items: center; }
235
+ .h_top { display: flex; justify-content: space-between; align-items: flex-start; }
236
+ .h_center { display: flex; justify-content: center; align-items: center; }
237
+ .h_bottom { display: flex; justify-content: flex-start; align-items: flex-end; }
238
+ .h_bottom_spread { display: flex; justify-content: space-between; align-items: flex-end; }
239
+ .h_left { display: flex; justify-content: flex-start; align-items: flex-start; }
240
+ .h_right { display: flex; justify-content: flex-end; align-items: center; }
241
+ .h_item { display: flex; justify-content: flex-start; align-items: center; }
242
+
243
+ .v_spread { display: flex; flex-direction: column; justify-content: space-between; }
244
+ .v_center_spread { display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
245
+ .v_center { flex-direction: column; display: flex; justify-content: center; align-items: center; }
246
+ .v_top { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; }
247
+ .v_left { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; }
248
+ .v_bottom { display: flex; flex-direction: column; justify-content: flex-end; }
249
+
250
+ .h_wrap { display: flex; justify-content: flex-start; align-items: flex-start; flex-wrap: wrap; }
251
+
252
+ .hf { height: 100%; }
253
+ .wf { width: 100%; }
254
+
255
+ .a_c { text-align: center; }
256
+ .a_r { text-align: right; }
257
+ .u { text-decoration: underline; }
258
+
259
+ /* Opacity */
260
+
261
+ .op_75 { opacity: .75; }
262
+ .op_50 { opacity: .5; }
263
+ .op_30 { opacity: .3; }
264
+ .op_20 { opacity: .2; }
265
+ .op_10 { opacity: .1; }
266
+ .invis { visibility: hidden; }
267
+
268
+ /* emphasiszed a.text but inside .bg_primary */
269
+
270
+ .bg_primary a.text, .bg_primary button.text {
271
+ color: inherit;
272
+ }
273
+
274
+ .bg_primary a.text:before, .bg_primary button.text:before {
275
+ opacity: .2;
276
+ }
277
+
278
+ .bg_primary a.text:hover:before, .bg_primary button.text:hover:before {
279
+ opacity: .58;
280
+ }
281
+
282
+ .bg_primary a.text:before, .bg_primary button.text:before,
283
+ .bg_primary a.text:hover:before, .bg_primary button.text:hover:before {
284
+ bottom: -.2em;
285
+ border-bottom: 4px solid var(--color-solid);
286
+ }
287
+
288
+ .ft_t a.text:before, a.text.ft_t:before, .ft_t button.text:before, button.text.ft_t:before {
289
+ bottom: -.1em;
290
+ }
291
+
292
+ a.u, button.u {
293
+ color: inherit;
294
+ }
295
+
296
+ .cl_m a.u:hover, button.u:hover, a.u.cl_m:hover, button.u.cl_m:hover {
297
+ color: var(--color-text);
298
+ }
299
+
300
+ .l_pop:not(.is_disabled) .icon {
301
+ /* NOTE: transform must be applied to .icon, not the entire <a> or <button> itself, */
302
+ /* because that changes the popOver mouse enter/leave zone */
303
+ transition: transform .1s ease, color .1s ease;
304
+ }
305
+
306
+ .l_pop:not(.is_disabled) .icon:hover {
307
+ transform: scale(1.1);
308
+ }
309
+
310
+ /* Mock (must be before colors so it can be overridden) */
311
+
312
+ .mock, .mock_av {
313
+ position: relative;
314
+ color: transparent;
315
+ user-select: none;
316
+ }
317
+
318
+ .mock_av, .mock:before {
319
+ background-color: var(--color-bg-alt);
320
+ }
321
+
322
+ .mock.active:before {
323
+ background-color: var(--color-bg-active);
324
+ }
325
+
326
+ .bg_alt .mock_av, .bg_alt .mock:before,
327
+ .mock.normal:before {
328
+ background-color: var(--color-bg);
329
+ }
330
+
331
+ .mock:before {
332
+ content: ' ';
333
+ position: absolute;
334
+ top: 5px; bottom: 5px; left: 0; right: 0;
335
+ /* top: 0; bottom: 0; left: 0; right: 0; */
336
+ border-radius: var(--radius-small);
337
+ }
338
+
339
+ /* Colors; brands */
340
+
341
+ .cl_discord { color: var(--color-discord) !important; }
342
+
343
+ /* Background colors */
344
+
345
+ .bg_white {
346
+ color: #111 !important;
347
+ background-color: #FFF !important;
348
+ }
349
+
350
+ button.bg_white:not([disabled="true"]):hover, a.bg_white:not([disabled="true"]):hover {
351
+ background-color: #EEE !important;
352
+ }
353
+
354
+ button.bg_white:not([disabled="true"]):active, a.bg_white:not([disabled="true"]):active {
355
+ background-color: #DDD !important;
356
+ }
357
+
358
+ .bg_black {
359
+ color: #EEE !important;
360
+ background-color: #000 !important;
361
+ }
362
+
363
+ button.bg_black:not([disabled="true"]):hover, a.bg_black:not([disabled="true"]):hover {
364
+ background-color: #111 !important;
365
+ }
366
+
367
+ button.bg_black:not([disabled="true"]):active, a.bg_black:not([disabled="true"]):active {
368
+ background-color: #222 !important;
369
+ }
370
+
371
+ .bg_error {
372
+ color: #FFF;
373
+ background-color: var(--color-error) !important;
374
+ }
375
+
376
+ a.bg_error:active, button.bg_error:active, .bg_error_active {
377
+ color: rgba(255, 255, 255, .64);
378
+ background-color: var(--color-error-active) !important;
379
+ }
380
+
381
+ .bg_error_hover:hover {
382
+ background-color: var(--color-error-active) !important;
383
+ }
384
+
385
+ .bg_pass {
386
+ color: #FFF;
387
+ background-color: var(--color-pass) !important;
388
+ }
389
+
390
+ a.bg_pass:active, button.bg_pass:active {
391
+ background-color: var(--color-pass-active) !important;
392
+ }
393
+
394
+ .bg_contrast {
395
+ color: var(--color-solid) !important;
396
+ background-color: var(--color-contrast) !important;
397
+ }
398
+
399
+ button.bg_contrast:not([disabled="true"]):hover, a.bg_contrast:not([disabled="true"]):hover {
400
+ background-color: var(--color-contrast-hover) !important;
401
+ }
402
+
403
+ .bg_solid {
404
+ color: var(--color-contrast) !important;
405
+ background-color: var(--color-solid) !important;
406
+ }
407
+
408
+ .bg_solid_hover {
409
+ background-color: var(--color-solid-hover) !important;
410
+ }
411
+
412
+ .bg_highlight {
413
+ color: var(--color-solid) !important;
414
+ background-color: var(--color-highlight) !important;
415
+ }
416
+
417
+ button.bg_highlight:hover, a.bg_highlight:hover {
418
+ background-color: var(--color-highlight-hover) !important;
419
+ }
420
+
421
+ button.bg_highlight:active, a.bg_highlight:active {
422
+ background-color: var(--color-highlight-active) !important;
423
+ }
424
+
425
+ .bg_primary, .bg_primary_strict, .before_primary:before {
426
+ color: var(--color-solid) !important;
427
+ background-color: var(--color-primary) !important;
428
+ }
429
+
430
+ .bg_primary_hover,
431
+ .bg_primary.btn:hover, button.bg_primary.pill:hover, a.bg_primary.pill:hover, .bg_primary.pill[role="button"]:hover {
432
+ background-color: var(--color-primary-hover) !important;
433
+ }
434
+
435
+ .bg_secondary_hover,
436
+ .bg_secondary.btn:hover, button.bg_secondary.pill:hover, a.bg_secondary.pill:hover, .bg_secondary.pill[role="button"]:hover {
437
+ background-color: var(--color-secondary-opaque) !important;
438
+ }
439
+
440
+ .bg_primary_active,
441
+ .bg_primary_hover[role="button"]:hover,
442
+ .bg_primary.btn:active, button.bg_primary.pill:active, a.bg_primary.pill:active, .bg_primary.pill[role="button"]:active,
443
+ .bg_primary.btn:disabled, button.bg_primary.pill:disabled, a.bg_primary.pill:disabled, .bg_primary.pill[role="button"]:disabled,
444
+ .bg_primary.btn.is_loading, .bg_primary.pill.is_loading {
445
+ background-color: var(--color-primary-active) !important;
446
+ }
447
+
448
+ .bg_primary.btn.is_loading, .bg_primary.pill.is_loading {
449
+ color: var(--color-solid-active) !important;
450
+ }
451
+
452
+ .bg_secondary, .bg_secondary_strict, .before_secondary:before {
453
+ color: var(--color-solid) !important;
454
+ background-color: var(--color-secondary) !important;
455
+ }
456
+
457
+ .cl_black { color: #000 !important; }
458
+ .cl_white { color: #FFF !important; }
459
+
460
+ .pill.with_loading_indicator {
461
+ color: transparent;
462
+ }
463
+
464
+ .bg, .bg_subtle { background-color: var(--color-bg); }
465
+ .bg_chat_other { background-color: var(--color-chat-bubble); }
466
+ .bg_alt { background-color: var(--color-bg-alt); }
467
+ .bg_medium { background-color: var(--color-bg-medium); }
468
+
469
+ .bg_shadow { box-shadow: 0 4px 12px var(--color-bg); }
470
+ .bg_alt_shadow { box-shadow: 0 4px 12px var(--color-bg-alt); }
471
+
472
+ .bg_active {
473
+ background-color: var(--color-bg-active);
474
+ }
475
+
476
+ .bg_active.btn:hover {
477
+ background-color: var(--color-secondary) !important;
478
+ }
479
+
480
+ .bg_active.btn:active {
481
+ background-color: var(--color-secondary-opaque) !important;
482
+ }
483
+
484
+ .pill.bg_active[role="button"]:hover, .pill.bg_alt[role="button"]:hover, .pill.bg[role="button"]:hover,
485
+ a.pill.bg_active:hover, a.pill.bg_alt:hover, a.pill.bg:hover,
486
+ button.pill.bg_active:hover, button.pill.bg_alt:hover, button.pill.bg:hover {
487
+ color: var(--color-solid) !important;
488
+ background-color: var(--color-secondary) !important;
489
+ }
490
+
491
+ .pill.bg_subtle {
492
+ color: var(--color-text);
493
+ }
494
+
495
+ .pill.bg_subtle[role="button"]:hover,
496
+ a.pill.bg_subtle:hover,
497
+ button.pill.bg_subtle:hover {
498
+ color: var(--color-text-bold);
499
+ background-color: var(--color-bg-alt) !important;
500
+ }
501
+
502
+ .pill.bg_active[role="button"]:active, .pill.bg_alt[role="button"]:active, .pill.bg[role="button"]:active,
503
+ a.pill.bg_active:active, a.pill.bg_alt:active, a.pill.bg:active,
504
+ button.pill.bg_active:active, button.pill.bg_alt:active, button.pill.bg:active {
505
+ background-color: var(--color-secondary-opaque) !important;
506
+ }
507
+
508
+ .bg_disabled {
509
+ color: var(--color-text-medium);
510
+ background-color: var(--color-bg);
511
+ }
512
+
513
+ .bg_disabled:hover {
514
+ background-color: var(--color-bg-alt);
515
+ }
516
+
517
+ .op_light { background-color: var(--opaque-light); }
518
+ .op_default { background-color: var(--opaque-default); }
519
+ .op_strong { background-color: var(--opaque-strong); }
520
+ /* .op_darker_light { background-color: var(--color-darker-light); }
521
+ .op_darker_default { background-color: var(--color-darker-default); } */
522
+
523
+ /* Colors (keep it below so !important can be overridden */
524
+
525
+ .cl_t { color: var(--color-text); }
526
+ .cl_l { color: var(--color-text-light); }
527
+ .cl_m { color: var(--color-text-medium); }
528
+ .cl_b { color: var(--color-text-bold); }
529
+ .cl_h { color: var(--color-highlight) !important; }
530
+ .cl_p { color: var(--color-primary) !important; }
531
+ .cl_s { color: var(--color-secondary) !important; }
532
+ .cl_solid { color: var(--color-solid) !important; }
533
+ .cl_error, .cl_error_hover:hover { color: var(--color-error) !important; border-color: var(--color-error) !important; }
534
+ .cl_error_faded { color: var(--color-error-faded) !important; border-color: var(--color-error) !important; }
535
+ .cl_warn, .cl_warn_hover:hover { color: var(--color-warn) !important; border-color: var(--color-warn) !important; }
536
+ .cl_warn_faded { color: var(--color-warn-faded) !important; border-color: var(--color-warn) !important; }
537
+ .cl_pass { color: var(--color-pass) !important; }
538
+
539
+ .bd_t { border: solid 1px; }
540
+ .bd_s { border: solid 2px; }
541
+ .bd_d { border: solid 3px; }
542
+ .bd_m { border: solid 4px; }
543
+
544
+ a.cl_m:not(.disabled):hover, button.cl_m:not(:disabled):hover, a.cl_b:not(.disabled):hover, button.cl_b:not(:disabled):hover { color: var(--color-text); }
545
+ a.cl_l:not(.disabled):hover, button.cl_l:not(:disabled):hover { color: var(--color-text-medium); }
546
+
547
+ a.normal {
548
+ color: var(--color-text);
549
+ }
550
+
551
+ a.text, button.text {
552
+ position: relative;
553
+ color: var(--color-text);
554
+ }
555
+
556
+ a.text:before, button.text:before {
557
+ content: ' ';
558
+ position: absolute;
559
+ bottom: -.25em; left: 0; right: 0;
560
+ border-bottom: .1875em dotted var(--color-text-light);
561
+ }
562
+
563
+ a.text.cl_m, button.text.cl_m {
564
+ color: var(--color-text-medium);
565
+ }
566
+
567
+ a.text.cl_b, button.text.cl_b {
568
+ color: var(--color-text-bold);
569
+ }
570
+
571
+ a.text:hover:before, button.text:hover:before {
572
+ border-bottom: .3125em solid var(--color-secondary-opaque);
573
+ }
574
+
575
+ a.text.cl_p:before, button.text.cl_p:before, a.text.cl_p:hover:before, button.text.cl_p:hover:before {
576
+ border-bottom-color: var(--color-primary);
577
+ }
578
+
579
+ a.text.cl_s:before, button.text.cl_s:before, a.text.cl_s:hover:before, button.text.cl_s:hover:before {
580
+ border-bottom-color: var(--color-secondary);
581
+ }
582
+
583
+ a.text.cl_h:before, button.text.cl_h:before, a.text.cl_h:hover:before, button.text.cl_h:hover:before {
584
+ border-bottom-color: var(--color-highlight);
585
+ }
586
+
587
+ /* Shadow */
588
+ .shadow { box-shadow: var(--shadow); }
589
+ .shadow_light { box-shadow: var(--shadow-light); }
590
+ .shadow_line { box-shadow: var(--shadow-line); }
591
+ .shadow_bg { box-shadow: 0 0 7px var(--color-bg); }
592
+
593
+ /* Opaque background-colors; use sparingly (too much will hinder browser performance) */
594
+ /* :root .bg_shadow, [data-mode="light"] .bg_shadow { background-color: rgba(0,0,0,.087); } */
595
+ /* [data-mode="dark"] .bg_shadow { background-color: rgba(255,255,255,.087); } */
596
+
597
+ /* Minor effects */
598
+
599
+ .op_btn:hover { opacity: .58; }
600
+
601
+ /* Animations */
602
+
603
+ .trans { transition: all .25s ease-in-out; }
604
+ .trans_color { transition: color .25s ease-in-out, background-color .25s ease-in-out, opacity .25s ease-in-out; }
605
+
606
+ .anim_drop_center .main_content, .anim_drop_center.main_content {
607
+ transition: transform .25s ease-out;
608
+ transform: translateY(-100%) scale(.9);
609
+ }
610
+
611
+ .anim_drop_center.visible .main_content, .anim_drop_center.visible.main_content {
612
+ transform: translateY(0) scale(1);
613
+ }
614
+
615
+ .anim_zoom_in_fade .main_content, .anim_zoom_in_fade.main_content,
616
+ .anim_zoom_in .main_content, .anim_zoom_in.main_content {
617
+ transition: transform .15s ease-in-out, opacity .15s ease-in-out;
618
+ transform: scale3d(0.9, 0.9, 0.9);
619
+ }
620
+
621
+ .anim_zoom_in_fade.visible .main_content, .anim_zoom_in_fade.visible.main_content,
622
+ .anim_zoom_in.visible .main_content, .anim_zoom_in.visible.main_content {
623
+ transform: scale3d(1, 1, 1);
624
+ }
625
+
626
+ .anim_zoom_in_fade .main_content, .anim_zoom_in_fade.main_content {
627
+ opacity: 0;
628
+ }
629
+
630
+ .anim_zoom_in_fade.visible .main_content, .anim_zoom_in_fade.visible.main_content {
631
+ opacity: 1;
632
+ }
633
+
634
+ .anim_drop_down .main_content, .anim_drop_down.main_content {
635
+ transition: transform .075s ease-out, opacity .075s ease-out;
636
+ transform: translateY(-15px);
637
+ opacity: 0;
638
+ }
639
+
640
+ .anim_drop_down.visible .main_content, .anim_drop_down.visible.main_content {
641
+ transform: translateY(0);
642
+ opacity: 1;
643
+ }
644
+
645
+ /* Scroller */
646
+
647
+ .y_scr {
648
+ overflow-x: hidden;
649
+ overflow-y: auto;
650
+ -webkit-overflow-scrolling: touch;
651
+ /* After a recent update, this no longer works in Chrome */
652
+ /* overflow-y: overlay; */
653
+ scrollbar-gutter: auto;
654
+ /* In "new" Google Chrome, this will make the scrollbar invisible, so we must turn it off. */
655
+ /* scrollbar-width: thin; */
656
+ }
657
+ .scr_area {
658
+ overflow-y: auto;
659
+ }
660
+ .y_scr.always {
661
+ overflow-y: scroll;
662
+ }
663
+ .y_scr::-webkit-scrollbar {
664
+ width: 10px;
665
+ }
666
+ .y_scr.flat::-webkit-scrollbar {
667
+ width: 5px;
668
+ }
669
+ .y_scr:not(.subtle)::-webkit-scrollbar-track {
670
+ background-color: var(--color-bg-alt);
671
+ }
672
+ .y_scr.flat::-webkit-scrollbar-track {
673
+ background-color: rgba(0,0,0,.125);
674
+ }
675
+ .y_scr::-webkit-scrollbar-thumb {
676
+ z-index: -1;
677
+ /* Use this for invisible style */
678
+ /* background-color: transparent; */
679
+ /* background-color: var(--color-darker-medium); */
680
+ background-color: var(--color-bg-active);
681
+ /* background-color: var(--color-secondary-opaque); */
682
+ /* box-shadow: inset 0 0 0 2px var(--color-bg); */
683
+ /* transform: scale(.5); */
684
+ border-radius: 5px;
685
+ }
686
+ .y_scr.bg_active::-webkit-scrollbar-thumb {
687
+ background-color: var(--color-bg-medium);
688
+ box-shadow: inset 0 0 0 2px var(--color-bg-active);
689
+ }
690
+ .y_scr:hover::-webkit-scrollbar-thumb {
691
+ background-color: var(--color-bg-medium);
692
+ }
693
+ .y_scr.flat::-webkit-scrollbar-thumb {
694
+ background-color: rgba(0,0,0,.25);
695
+ box-shadow: none;
696
+ }
697
+
698
+ /* Status colors */
699
+
700
+ .s_typing_dots.ONLINE {
701
+ background-color: #23a55a;
702
+ }
703
+
704
+ .s_typing_dots.APPEAR_OFFLINE, .s_typing_dots.OFFLINE {
705
+ background-color: #80848e;
706
+ }
707
+
708
+ .s_typing_dots.AWAY {
709
+ background-color: #f0b232;
710
+ }
711
+
712
+ .s_typing_dots.BUSY {
713
+ background-color: #f23f43;
714
+ }
715
+
716
+ rect.s_dot_online {
717
+ fill: #23a55a;
718
+ }
719
+
720
+ rect.s_dot_offline {
721
+ fill: #80848e;
722
+ }
723
+
724
+ rect.s_dot_busy {
725
+ fill: #f23f43;
726
+ }
727
+
728
+ rect.s_dot_away {
729
+ fill: #df7b00;
730
+ }
731
+
732
+ [data-mode="dark"] rect.s_dot_away {
733
+ fill: #f0b232;
734
+ }
735
+
736
+ /* SVGs */
737
+
738
+ .fill0 { fill: var(--color-bg); }
739
+ .fill1 { fill: var(--color-bg-active); }
740
+ .fill2 { fill: var(--color-primary); }
741
+ .fill3 { fill: var(--color-secondary-opaque); }
742
+
743
+ /* Theme */
744
+
745
+ .bg_theme {
746
+ background: var(--color-highlight) linear-gradient(45deg, var(--color-highlight-alt), var(--color-highlight));
747
+ }
748
+
749
+ /* Corner light effects */
750
+
751
+ .ring_tr:before, .ring_tr:after,
752
+ .ring_r:before, .ring_r:after {
753
+ content: ' ';
754
+ position: absolute; z-index: 1;
755
+ border-radius: 100vmax;
756
+ }
757
+
758
+ .ring_tr:before, .ring_r:before {
759
+ opacity: .36;
760
+ }
761
+
762
+ .ring_tr:after, .ring_r:after {
763
+ opacity: .225;
764
+ }
765
+
766
+ .ring_tr:before, .ring_tr:after {
767
+ width: 170px; height: 170px;
768
+ }
769
+
770
+ .ring_r:before {
771
+ top: -50%; right: -50%;
772
+ width: 100%;
773
+ padding: 100% 0 0;
774
+ }
775
+
776
+ .ring_r:after {
777
+ top: -40%; right: -40%;
778
+ width: 75%;
779
+ padding: 75% 0 0;
780
+ }
781
+
782
+ .ring_tr:before {
783
+ top: -28%; right: -28%;
784
+ }
785
+
786
+ .ring_tr:after {
787
+ top: -14%; right: -14%;
788
+ }
789
+
790
+ .ring_tr.contrast:before, .ring_r.contrast:before {
791
+ opacity: .2;
792
+ }
793
+
794
+ .ring_tr.contrast:after, .ring_r.contrast:after {
795
+ opacity: .125;
796
+ }
797
+
798
+ .ring_tr.solid:before, .ring_r.solid:before {
799
+ opacity: .1;
800
+ }
801
+
802
+ .ring_tr.solid:after, .ring_r.solid:after {
803
+ opacity: .05;
804
+ }
805
+
806
+ .ring_tr.contrast:before, .ring_tr.contrast:after,
807
+ .ring_r.contrast:before, .ring_r.contrast:after {
808
+ background-color: var(--color-contrast);
809
+ }
810
+
811
+ .ring_tr.solid:before, .ring_tr.solid:after,
812
+ .ring_r.solid:before, .ring_r.solid:after {
813
+ background-color: var(--color-solid);
814
+ }
815
+
816
+ .ring_tr.highlight_active:before, .ring_tr.highlight_active:after,
817
+ .ring_r.highlight_active:before, .ring_r.highlight_active:after {
818
+ background-color: var(--color-highlight-active);
819
+ }
820
+
821
+ .ring_tr.primary:before, .ring_tr.primary:after,
822
+ .ring_r.primary:before, .ring_r.primary:after {
823
+ background-color: var(--color-primary);
824
+ }
825
+
826
+ .ring_tr.primary_active:before, .ring_tr.primary_active:after,
827
+ .ring_r.primary_active:before, .ring_r.primary_active:after {
828
+ background-color: var(--color-primary-active);
829
+ }
830
+
831
+ .ring_tr.highlight:before, .ring_tr.highlight:after,
832
+ .ring_r.highlight:before, .ring_r.highlight:after {
833
+ background-color: var(--color-highlight);
834
+ }