forked from sindresorhus/caprine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dark-mode.css
689 lines (580 loc) · 14.8 KB
/
dark-mode.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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
:root {
--base: #000;
--base-ninety: rgba(255, 255, 255, 0.9);
--base-seventy-five: rgba(255, 255, 255, 0.75);
--base-seventy: rgba(255, 255, 255, 0.7);
--base-fifty: rgba(255, 255, 255, 0.5);
--base-fourty: rgba(255, 255, 255, 0.4);
--base-thiry: rgba(255, 255, 255, 0.3);
--base-twenty: rgba(255, 255, 255, 0.2);
--base-five: rgba(255, 255, 255, 0.05);
--base-ten: rgba(255, 255, 255, 0.1);
--base-nine: rgba(255, 255, 255, 0.09);
--container-color: #192633;
--conversation-bg: rgb(25, 38, 51);
--list-header-color: #202c3a;
--blue: #0084ff;
--unread-bg: #365899;
}
html.dark-mode body {
color: var(--base-seventy);
background: var(--container-color) !important;
}
/* Main container? */
html.dark-mode ._4sp8 {
background: var(--container-color) !important;
}
/* Main content */
html.dark-mode ._1q5- {
background: var(--container-color) !important;
border-left: 1px solid var(--base-five) !important;
}
/* Message list: your message bubble */
html.dark-mode ._o46:not(._nd_) ._hh7 {
background: var(--base-ten);
color: var(--base-seventy);
}
/* Message list: remove background if emoji */
html.dark-mode ._hh7._2f5r {
background: none !important;
}
/* Message list: remove border from messages */
._hh7._aol {
border-color: transparent !important;
}
/* Fix dark mode overriding colors for code snippets */
html.dark-mode ._wu0 {
color: var(--base);
}
/* message list: link in your message bubble */
html.dark-mode ._o46:not(._nd_) ._hh7 a {
color: var(--base-seventy);
}
/* Message list: link in message bubble */
html.dark-mode ._hh7 a:hover {
background: transparent !important;
}
/* Message list: link in incoming message bubble */
html.dark-mode ._o46._nd_ ._hh7 {
color: var(--base-ninety);
}
/* Message list: link preview */
html.dark-mode ._5i_d {
border: solid 1px var(--base-five);
}
/* Message list: link preview text */
html.dark-mode ._5i_d .__6k,
html.dark-mode ._5i_d .__6l {
color: var(--base-seventy);
}
html.dark-mode ._5i_d .__6m {
color: var(--base-fourty);
}
/* Message list: input bar */
html.dark-mode ._4rv3 {
background: transparent !important;
border-top: solid 1px var(--base-five);
color: var(--base-seventy);
}
/* Message list: input bar on block */
html.dark-mode ._2wy4 {
color: var(--base-twenty);
}
/* Message list: timestamp */
html.dark-mode ._497p {
color: var(--base-fourty);
}
/* Message list: header above */
html.dark-mode ._5742,
html.dark-mode ._673w {
background: var(--list-header-color) !important;
border-bottom: none;
}
/* Message list: header above (event) */
html.dark-mode ._3nta {
background: var(--container-color) !important;
border-bottom: 1px solid var(--base-five);
}
/* Message list: header above (event) */
html.dark-mode ._2n3t {
background-color: var(--conversation-bg);
}
/* Message list: header above (event) */
html.dark-mode ._2n3u {
color: var(--base-thiry);
}
/* Message list: header above (event menu small text) */
html.dark-mode ._4x7m {
color: var(--base-thiry);
}
/* Message list: header above (event menu small text) */
html.dark-mode ._4x79 {
color: var(--base-thiry);
}
/* Message list: header above (event menu small text) */
html.dark-mode ._4x7b {
color: var(--base-thiry);
}
/* Message list: header above (invitation) */
html.dark-mode ._2y8z,
html.dark-mode ._14-7 ._58ah ._58al::-webkit-input-placeholder,
html.dark-mode ._58-3 {
color: var(--base-fourty);
}
/* Message list: header above (invitation) (typed text) */
html.dark-mode ._14-7 ._58ah ._58al {
color: var(--base-seventy);
}
/* Message list: sender (group chat) */
html.dark-mode ._ih3 {
color: var(--base-fourty);
}
/* Messages list: user info (is in contacts) */
html.dark-mode ._36zg-e {
color: var(--base-seventy) !important;
}
/* Messages list: user info */
html.dark-mode ._1n-e {
color: var(--base-fourty);
}
/* Messages list: event box (event name) */
html.dark-mode ._618l {
color: var(--base-seventy);
}
/* Messages list: event box (event icon) */
html.dark-mode ._618m {
width: 28px;
}
/* Messages list: event box (event description) */
html.dark-mode ._618n {
color: var(--base-thiry);
}
/* Messages list: event box (line) */
html.dark-mode ._618k div hr {
background: var(--container-color) !important;
border-top: 1px solid var(--base-five);
}
/* Messages list: text header above the messages */
html.dark-mode ._17w2,
html.dark-mode ._ih3 ._3oh-,
html.dark-mode ._llq ._3oh- {
color: var(--base-seventy);
}
html.dark-mode ._2v6o {
color: var(--base-fourty);
}
/* Messages list: typing indicator dots */
html.dark-mode ._5pd7 {
background: var(--base-seventy) !important;
}
/* Contact list: header above */
html.dark-mode ._36ic {
background: var(--list-header-color) !important;
border-bottom: none;
}
/* Contact list: search input */
html.dark-mode ._5iwm ._58al {
background: var(--base-ten) !important;
color: var(--base-ninety);
}
html.dark-mode ._5iwm ._58al::-webkit-input-placeholder {
color: var(--base-thirty);
}
/* Contact list: background */
html.dark-mode ._1enh {
background: transparent !important;
}
/* Contact list: person */
html.dark-mode ._1ht1 {
background: transparent !important;
}
/* Contact list: person (selected) */
html.dark-mode ._1ht1._1ht2 {
background: rgba(0, 0, 0, 0.1) !important;
}
/* Contact list: person container */
html.dark-mode ._1qt4 {
border-top: solid 1px var(--base-five) !important;
}
/* contact list: person name */
html.dark-mode ._1ht6 {
color: var(--base-seventy);
}
/* Contact list: message blurb */
html.dark-mode ._1htf,
/* Contact list: (for format) person: message blurb */
html.dark-mode ._1htf ._4qba {
color: var(--base-fourty);
}
/* Contact list: timestamp */
html.dark-mode ._1ht7 {
color: var(--base-twenty);
}
/* Contact list: timestamp (selected) */
html.dark-mode ._1ht2 ._1ht7 {
color: var(--base-fifty);
}
/* Contact list: timestamp (unread) */
html.dark-mode ._1ht3 ._1ht7 {
color: rgba(0, 132, 255, 0.7);
}
/* contact list: search results */
html.dark-mode ._5t4c,
html.dark-mode ._5t4c ._5l37 {
color: var(--base-seventy) !important;
}
/* Contact list: search results name */
html.dark-mode ._3q34,
html.dark-mode ._364g {
color: var(--base-seventy);
}
/* Contact list: search results subname */
html.dark-mode ._3q35 {
color: var(--base-fourty);
}
/* Contact list: search result label type */
html.dark-mode ._3xcx,
html.dark-mode ._225b {
color: var(--base-fourty);
}
/* Contact list: searching text */
html.dark-mode ._4g0h {
color: var(--base-fourty);
}
/* Contact list: unread */
html.dark-mode ._1ht3 {
background: var(--unread-bg) !important;
}
html.dark-mode ._1ht3 ._1ht7.timestamp {
color: var(--base-twenty);
}
/* Right sidebar */
html.dark-mode ._4_j5 {
background: transparent;
border-left: solid 1px var(--base-five);
}
/* Right sidebar: menus background */
html.dark-mode ._54ng {
background: var(--conversation-bg);
}
/* Right sidebar: menus text color */
html.dark-mode ._2i-c ._54nf ._54nh {
color: var(--base-seventy);
}
/* Right sidebar: menus selected text color */
html.dark-mode ._2i-c ._54nf .selected ._54nh {
color: rgb(255, 255, 255);
}
/* Right sidebar: headings */
html.dark-mode ._1lj0 {
color: var(--base-fourty);
}
/* Right sidebar: section spacer */
html.dark-mode ._1li- {
border-top: solid 1px var(--base-five);
}
/* Right sidebar: group chat names */
html.dark-mode ._2jnv,
html.dark-mode ._5rpu {
color: var(--base-seventy);
}
/* Right sidebar: group chat names admin label */
html.dark-mode ._5qsj {
color: var(--base-fourty);
}
/* Right sidebar: messenger type info under name */
html.dark-mode ._3eus {
color: var(--base-fourty);
}
/* Right sidebar: mute notification label */
html.dark-mode ._3szq {
color: var(--base-seventy);
}
/* Right sidebar: mute notification time */
html.dark-mode ._3x6v {
color: var(--base-fourty);
}
/* Right sidebar: people list */
html.dark-mode ._4_j5 ._5l37 {
color: var(--base-fourty);
background: transparent;
}
/* Right sidebar: people list (add people) */
html.dark-mode ._4rph ._4rpj {
border-top: solid 1px var(--base-ten) !important;
}
/* Invite friends popup */
html.dark-mode ._4jgu {
background-color: var(--conversation-bg);
}
html.dark-mode ._5rh4 {
color: var(--base-seventy);
}
/* Right sidebar: people list item (name) */
html.dark-mode ._364g,
html.dark-mode ._3x6u,
html.dark-mode ._4rph ._4rpj {
color: var(--base-seventy);
}
/* Photos info color */
html.dark-mode ._2zn2 {
color: var(--base-seventy);
}
html.dark-mode ._2zn6 {
color: var(--base-fourty);
}
/* New conversation contact list: popup */
html.dark-mode ._2y8_ {
background-color: var(--container-color);
border: solid 1px var(--base-five);
}
/* New conversation contact list: popup hr */
html.dark-mode ._5l38 {
border-top: 1px solid var(--base-ten);
}
/* New conversation contact list: popup hover */
html.dark-mode ._1k1p ._5l38 {
border-top: none;
}
html.dark-mode ._5l37:active,
html.dark-mode ._1k1p {
background-color: var(--base-five) !important;
}
/* Conversation search */
html.dark-mode ._33p7 {
background-color: var(--conversation-bg);
}
html.dark-mode ._33p7 ._b-u,
html.dark-mode ._33p7 ._b-v {
background-color: transparent !important;
background-image: url('https://static.xx.fbcdn.net/rsrc.php/v3/yG/r/CV3cVGSAcf3.png') !important;
background-repeat: no-repeat !important;
background-size: auto !important;
}
html.dark-mode ._33p7 ._b-u {
background-position: 0 -42px !important;
}
html.dark-mode ._33p7 ._b-v {
background-position: 0 0 !important;
}
html.dark-mode ._33p7 input {
color: var(--base-seventy);
background-color: var(--base-five);
}
html.dark-mode ._33p7 ._5iwn ._58ak::before {
filter: invert();
}
/* Poll */
/* Border */
html.dark-mode ._3b4t {
border-color: var(--base-nine);
}
/* "Poll" header text */
html.dark-mode ._4qba {
color: var(--base-seventy);
}
/* Voting options text */
html.dark-mode ._1mr_,
html.dark-mode ._1mq_ ._1mq- {
color: var(--base-fourty);
}
/* Check box colors */
html.dark-mode ._2m5p[aria-checked='false'][role='checkbox'] {
border: 1px solid var(--base-ten);
}
/* New option text box */
html.dark-mode ._58al {
color: #fff;
}
/* Poll results bar graph colors */
html.dark-mode ._3b4h {
background-color: var(--base-nine);
}
/* Poll results profile pictures */
html.dark-mode ._4mnq {
border-color: var(--container-color);
}
html.dark-mode ._34n6 {
color: var(--base-fourty);
background-color: var(--base-nine);
}
/* Message reaction buttons */
html.dark-mode ._aou,
html.dark-mode ._4kf5 {
background-color: var(--conversation-bg);
}
/* Message action buttons */
html.dark-mode ._3erg ._hh7 a._2q1l,
html.dark-mode ._2f5n {
background-color: var(--container-color);
}
/* Bot quick-reply buttons */
html.dark-mode ._3u69 {
background: var(--container-color) !important;
}
/* Bot quick-reply button border */
html.dark-mode ._36wf {
border: 1px solid var(--base-five) !important;
}
/* Bot card title */
html.dark-mode ._3cn0 {
color: var(--base-seventy);
}
/* Bot card content */
html.dark-mode ._3cnl,
._3cnn a,
._3cnj {
color: var(--base-fourty);
}
/* Dialogs */
html.dark-mode ._53ij,
html.dark-mode ._4eby,
html.dark-mode ._2c9g {
background: var(--container-color) !important;
}
/* Dialog: preferences text */
html.dark-mode ._374b ._374d ._4ng2 {
color: var(--base-seventy);
}
html.dark-mode ._374b ._374d ._6cs7 {
color: var(--base-fourty);
}
/* Dialog: title and names */
html.dark-mode ._374c,
html.dark-mode ._4ebz,
html.dark-mode ._2c9i ._19jt,
html.dark-mode .uiInputLabelLabel {
color: var(--base-seventy) !important;
}
/* Send cash dialog background */
html.dark-mode ._49no,
html.dark-mode ._2z8r {
background-color: transparent !important;
}
/* Send cash dialog disabled */
html.dark-mode ._3org {
background-color: var(--base-twenty) !important;
}
/* Send cash dialog primary text */
html.dark-mode ._39r6 {
color: var(--base-seventy) !important;
}
/* Send cash dialog secondary text */
html.dark-mode ._39r7 {
color: var(--base-fourty) !important;
}
/* Gif and sticker dialog: hide white triangle */
html.dark-mode ._53io {
visibility: hidden;
}
/* Gif and sticker dialog: style the bottom of the list */
html.dark-mode .uiScrollableArea.contentAfter::after {
background: linear-gradient(rgba(25, 38, 51, 0.05), var(--container-color));
}
/* Sticker dialog: selected header */
html.dark-mode ._5r8a._5r8b,
html.dark-mode ._eb3::before {
background-color: var(--base-five);
}
/* Sticker dialog: header borders */
html.dark-mode ._5r8e,
html.dark-mode ._5r86 {
border-color: var(--base-five);
}
/* Record dialog: time */
html.dark-mode ._3z53 {
color: var(--base-seventy);
}
/* Delete popover */
html.dark-mode ._hw2 ._53ij {
background-color: var(--base-seventy) !important;
}
/* Login tile and names */
html.dark-mode ._5hy4,
html.dark-mode ._3403 {
color: var(--base-fourty) !important;
}
/* Login inputs */
html.dark-mode ._55r1._5f0v._43di {
background: var(--base-ten) !important;
color: var(--base-seventy-five);
}
/* Login button */
html.dark-mode button:not(._5upp) {
background: var(--container-color) !important;
}
/* Fix the Sticker and Gaming buttons */
html.dark-mode ._4rv6,
html.dark-mode ._4ce_ {
filter: invert() !important;
opacity: 0.6 !important;
}
/* Fix the @name-popover in the chat input box */
html.dark-mode ._13iv {
background: var(--container-color) !important;
}
/* Gaming popover */
/* Gaming popover header text */
html.dark-mode ._4lh7 {
color: var(--base-seventy);
}
/* Gaming popover header */
html.dark-mode ._53ij ._3rh0 {
background: var(--list-header-color) !important;
}
/* Gaming popover content */
html.dark-mode ._53ij ._4lh2 {
background: var(--container-color) !important;
}
/* Gaming popover "PLAY" text color */
html.dark-mode ._30vt ._4qba {
color: var(--blue);
}
/* Tomorrow dark theme for code blocks */
html.dark-mode ._wu0 {
--code-block-base: #c5c8c6;
--code-block-background: #1d1f21;
--code-block-border: #0a0c14;
}
/* Plan dialog primary text */
html.dark-mode ._4dx5,
html.dark-mode ._38wl {
color: var(--base-seventy) !important;
}
/* Plan dialog input fields */
html.dark-mode ._2mes._3smo ._3smp,
html.dark-mode ._5pw9,
html.dark-mode ._5pw6 {
background-color: transparent !important;
color: var(--base-fourty) !important;
}
/* Plan dialog time selector active highlight */
html.dark-mode ._5pw1 {
background: var(--base-nine);
}
/* Rich media integration text */
html.dark-mode ._29ey {
color: var(--base-fourty) !important;
}
html.dark-mode .fbNubFlyoutAttachments,
html.dark-mode .chatAttachmentShelf {
background: var(--container-color) !important;
color: var(--base-seventy);
}
html.dark-mode .chatAttachmentShelf {
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
html.dark-mode .chatAttachmentShelf .__6k,
html.dark-mode .chatAttachmentShelf .__6l {
color: inherit;
}
/* Fixes appearance of attached files */
html.dark-mode ._2zl5 {
border-color: rgba(255, 255, 255, 0.1);
}
html.dark-mode ._2-x5,
html.dark-mode .__6k,
html.dark-mode .__6l {
color: var(--base-seventy);
background: var(--container-color);
}