-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebtoons-dark-mode.user.js
More file actions
2967 lines (2843 loc) · 142 KB
/
Copy pathwebtoons-dark-mode.user.js
File metadata and controls
2967 lines (2843 loc) · 142 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
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
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ==UserScript==
// @name Webtoons Dark Mode
// @namespace https://github.com/hervad/webtoons-dark-mode
// @version 1.2.4
// @description Scoped dark theme for Webtoons (desktop + mobile) — comic panels render untouched. Elevated viewer card, accent-green active nav, WCAG-tuned contrast, optional reader dim. OS preference on first install; persistent toggle (Alt+Shift+T).
// @author hervad
// @match https://www.webtoons.com/*
// @match https://m.webtoons.com/*
// @icon https://www.webtoons.com/favicon.ico
// @run-at document-start
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_registerMenuCommand
// @noframes
// @license MIT
// @homepageURL https://github.com/hervad/webtoons-dark-mode
// @supportURL https://github.com/hervad/webtoons-dark-mode/issues
// @updateURL https://raw.githubusercontent.com/hervad/webtoons-dark-mode/main/webtoons-dark-mode.user.js
// @downloadURL https://raw.githubusercontent.com/hervad/webtoons-dark-mode/main/webtoons-dark-mode.user.js
// ==/UserScript==
(function () {
'use strict';
const KEY_THEME = 'wt_dark_enabled';
const KEY_DIM = 'wt_reader_dim';
const VERSION = '1.2.4';
// Retry cohort for SPA-navigation work (vignette class sync, viewer cards,
// banner cleanup, panel glow). Webtoons renders the new page asynchronously
// after pushState; one delay never fits all subapps, so we sample three
// times spanning fast → slow bundles.
const SPA_RETRY_DELAYS = [200, 800, 2000];
// Log the startup banner as the FIRST runtime statement so that if anything
// below throws, the console still proves the script loaded and which
// version Tampermonkey is serving.
console.info(`[webtoons-dark-mode] v${VERSION} starting`);
/* ---------- palette (one place to retheme everything) ---------- */
const palette = `
:root {
--wt-bg: #15171a;
--wt-bg-elev: #22262b;
--wt-bg-elev2: #2c313a;
--wt-bg-hover: #30353c;
--wt-bg-input: #2a2e35;
--wt-border: #4a5360;
--wt-border-strong: #5a6472;
--wt-text: #e6e6e6;
--wt-text-dim: #b5b9c0;
--wt-text-mute: #878e99;
--wt-text-on-accent: #0a0a0a;
--wt-link: #7cb6ff;
--wt-accent: #00d564;
--wt-accent-soft: #4ade80;
--wt-accent-like: #f06868;
--wt-shadow: 0 1px 2px rgba(0,0,0,.6);
}
`;
/* ---------- theme: targeted selectors, no global filter ---------- */
const theme = `
html, body {
background-color: var(--wt-bg) !important;
color: var(--wt-text) !important;
scrollbar-color: var(--wt-bg-elev2) var(--wt-bg);
}
/* Text */
h1, h2, h3, h4, h5, h6, p, dt, dd, label, em, strong, small,
.tit, .sub_tit, .subj, .author, .genre, .grade_num, .info, .summary {
color: var(--wt-text) !important;
}
.desc, .date, .count, .from, .ico_view, .ico_grade, .num,
.grade_area, .info_area .author, .nick, .meta, .help_txt, .comment_count {
color: var(--wt-text-dim) !important;
}
/* Links */
a, a:visited { color: var(--wt-text) !important; }
a:hover { color: var(--wt-link) !important; }
/* Exclude button-styled anchors from the global a:hover blue. CTA
buttons (e.g. age-verification "Continue", "First episode") use
<a> or <button> with a green background; inheriting --wt-link
turns their text bright blue on hover which looks broken. Keep
the button's own text color on hover. */
a.btn:hover, a[class*="btn_" i]:hover,
a[class*="button" i]:hover,
a[role="button"]:hover, button a:hover,
a[class~="cta"]:hover, a[class*="_cta_" i]:hover, a[class*="_cta" i]:hover,
a[class*="primary" i]:hover,
a.lk_continue:hover, a._btn_enter:hover {
color: inherit !important;
}
/* Keyboard focus ring — site has none of its own on most controls,
which fails WCAG 2.4.7. A 2 px outline in --wt-border-strong with
a 2 px offset reads clearly on every elevation level without
clipping. :focus-visible so it only appears for keyboard nav. */
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
[role="button"]:focus-visible, [tabindex]:focus-visible {
outline: 2px solid var(--wt-border-strong) !important;
outline-offset: 2px !important;
}
.NPI a, .lk_link, .more, .btn_link { color: var(--wt-link) !important; }
/* Header / global nav — border-color and box-shadow only on the outer
header shell, NOT on .gnb/.lnb nav lists (causes nav item artifacts). */
#header, .header, .gnb_wrap, #gnbWrap, .header_bn {
background-color: var(--wt-bg-elev) !important;
border-color: var(--wt-border) !important;
box-shadow: var(--wt-shadow) !important;
z-index: 10000 !important;
}
.gnb, .lnb {
background-color: var(--wt-bg-elev) !important;
}
.gnb a, .lnb a {
color: var(--wt-text) !important;
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif !important;
font-size: 23px !important;
font-weight: 600 !important;
letter-spacing: .05em !important;
padding: 15px 20px !important;
border-radius: 6px !important;
transition: color .15s, background-color .15s !important;
}
/* Active page link — accent green + inset underline (box-shadow avoids
clipping, works even when the parent has overflow:hidden). */
/* Active GNB link: site sets aria-current="true" on the <a> itself.
ID prefixes (#header / #gnbWrap) boost specificity above the site's
own color rule which wins at 0,2,1 or lower. */
#header .gnb a[aria-current="true"], #gnbWrap .gnb a[aria-current="true"],
#header .lnb a[aria-current="true"], #gnbWrap .lnb a[aria-current="true"] {
color: var(--wt-accent) !important;
box-shadow: inset 0 -2px 0 var(--wt-accent) !important;
border-radius: 6px 6px 0 0 !important;
}
/* GNB links wrap their text in <h1> — our blanket h1 rule sets
color:--wt-text !important which beats the inherited accent color.
Scope the override directly under #header so it wins by ID specificity. */
#header a[aria-current="true"] h1,
#header a[aria-current="true"] h2,
#header a[aria-current="true"] h3,
#gnbWrap a[aria-current="true"] h1,
#gnbWrap a[aria-current="true"] h2 {
color: var(--wt-accent) !important;
font-size: inherit !important;
font-weight: inherit !important;
}
/* Hover — rounded dark pill + accent text. */
.gnb a:hover, .lnb a:hover, .gnb .link:hover, .header .link_menu:hover {
color: var(--wt-accent) !important;
background-color: var(--wt-bg-elev2) !important;
border-radius: 6px !important;
}
/* Search button (top-right of header). Base CSS sets a light-grey
circle (#f3f3f3) which is nearly invisible on our dark header. */
.header_right .btn_search {
background: var(--wt-bg-elev2) !important;
border: 1px solid var(--wt-border) !important;
}
.header_right .btn_search:hover { background: var(--wt-bg-hover) !important; }
.header_right .btn_search:before { filter: brightness(0) invert(1) opacity(.85) !important; }
/* Log In button hover -- base CSS is #e0e0e0 (light grey, almost white).
That made our white-glyph icon disappear into the hover background. */
.header_right .link_login:hover, .header_right .btn_login:hover {
background: var(--wt-bg-hover) !important;
}
/* Search dropdown — three nested layers: .search_area (outer panel) →
.input_box (the rounded grey pill) → .input_search (the transparent
<input>). All three need overriding; .input_box has its own bg. */
.search_cont, .search_area, ._searchArea, .big_search.search_area {
background: var(--wt-bg-elev) !important;
border: 1px solid var(--wt-border) !important;
box-shadow: 0 8px 24px rgba(0,0,0,.5) !important;
}
.search_area .input_box {
background: var(--wt-bg-input) !important;
border: 1px solid var(--wt-border) !important;
}
.input_search, ._txtKeyword,
.search_area .input_search {
background: transparent !important;
color: var(--wt-text) !important;
}
input::placeholder { color: var(--wt-text-mute) !important; }
.ly_autocomplete, ._searchLayer {
background: var(--wt-bg-elev) !important;
border: 1px solid var(--wt-border) !important;
border-radius: 4px;
}
.ly_autocomplete li, ._searchLayer li { background: transparent !important; }
.ly_autocomplete li:hover, ._searchLayer li:hover,
.ly_autocomplete li.on, ._searchLayer li.on {
background: var(--wt-bg-elev2) !important;
}
.ly_autocomplete a, ._searchLayer a, .ly_autocomplete .title { color: var(--wt-text) !important; }
.search_area .ly_autocomplete .autocomplete_foot a { color: var(--wt-text-dim) !important; }
/* Search autocomplete RESULT LIST (e.g. typing "roman" → Selfish Romance,
Sweet Romance, ... Each <li class="link"> has white-on-hover from base
CSS, plus #000 title + #8c8c8c info — all needs overriding. */
.search_area .list_autocomplete li.on,
.search_area .list_autocomplete .link:hover,
.search_area .list_autocomplete li.on .link {
background: var(--wt-bg-elev2) !important;
}
.search_area .list_autocomplete .subj { color: var(--wt-text) !important; }
.search_area .list_autocomplete .info { color: var(--wt-text-dim) !important; }
/* Bold-highlighted matching substring (e.g. "roman" inside "Sweet Romance").
Base uses brand green #03aa5a — keep brand identity but use our accent var. */
.search_area .list_autocomplete strong { color: var(--wt-accent) !important; }
.search_area .list_autocomplete+.title { border-top-color: var(--wt-border) !important; }
.search_area .list_autocomplete .info .bar { background: var(--wt-border) !important; }
.search_area .list_autocomplete .pic:before { border-color: var(--wt-border) !important; }
/* Creators section in search autocomplete — base hover is #f3f3f3 (white). */
.search_area .list_creator .link:hover { background: var(--wt-bg-elev2) !important; }
.search_area .list_creator .info { color: var(--wt-text-dim) !important; }
.search_area .list_creator .info .bar { background: var(--wt-border) !important; }
/* Cards / lists */
.card_lst li, .card_item, .detail_lst li, .lst_area li,
.daily_lst li, .ranking_lst li, .genre_lst li, .challenge_lst li,
._popularList li, ._dailyList li {
background-color: var(--wt-bg-elev) !important;
border-color: var(--wt-border) !important;
border-radius: 6px;
}
.card_lst li:hover, .card_item:hover, .detail_lst li:hover {
background-color: var(--wt-bg-elev2) !important;
}
/* /canvas "Weekly HOT" and "Popular By Category" grids. Each card is
<a class="discover_item"> inside <li>; base CSS paints the link with
a white background that broke through under the dark theme. */
.discover_lst li, .discover_lst .discover_item,
a.discover_item {
background: var(--wt-bg-elev) !important;
color: var(--wt-text) !important;
border-radius: 8px !important;
overflow: hidden !important;
border-color: var(--wt-border) !important;
}
a.discover_item:hover {
background: var(--wt-bg-elev2) !important;
}
a.discover_item:hover .subj,
a.discover_item:hover .title,
.discover_lst li:hover .subj,
.discover_lst li:hover .title { color: var(--wt-accent) !important; }
/* Hover darken: when the cursor lands on a card thumbnail, dim the
artwork so the title/genre overlay (which sits on top of the image
as the card's only label) becomes readable. Scoped strictly to card
containers to avoid touching viewer panel images, which must stay
pristine. transition lives on the img so the dim eases in/out. */
.card_lst li img, .card_item img, .detail_lst li img,
.discover_lst li img, a.discover_item img,
.daily_lst li img, ._dailyList li img, ._popularList li img,
.webtoon_list li img, .webtoon_list_wrap li img,
.main_section .card_item img,
.discover_spot li img, .spot_lst li img {
transition: filter .2s ease !important;
}
.card_lst li:hover img, .card_item:hover img, .detail_lst li:hover img,
.discover_lst li:hover img, a.discover_item:hover img,
.daily_lst li:hover img, ._dailyList li:hover img, ._popularList li:hover img,
.webtoon_list li:hover img, .webtoon_list_wrap li:hover img,
.main_section .card_item:hover img,
.discover_spot li:hover img, .spot_lst li:hover img {
filter: brightness(.7) !important;
}
/* Hover darken extended to: viewer bottom episode strip + viewer sidebar
"Trending & Popular" / "Top Originals" rankings. */
.episode_lst li .thmb img, .episode_lst li img,
.ranking_lst li img, .aside .ranking_lst li img {
transition: filter .2s ease !important;
}
.episode_lst li:hover .thmb img, .episode_lst li:hover img,
.ranking_lst li:hover img, .aside .ranking_lst li:hover img {
filter: brightness(.7) !important;
}
.discover_lst .info { background: transparent !important; }
.discover_lst .subj { color: var(--wt-text) !important; }
.discover_lst .grade_num { color: var(--wt-text-dim) !important; }
.discover_lst .grade_area { color: var(--wt-text-dim) !important; }
/* /canvas genre-filtered pages (DRAMA, FANTASY, …) use a different DOM:
.challenge_cont_area > .challenge_lst > ul > li > a.challenge_item
instead of .discover_lst / .discover_item. Without parallel rules the
cards render as raw thumbnails on the page background — no card
container, no border, no rounded corners. Mirror the .discover_item
treatment so /canvas/{genre} matches /canvas home visually. */
a.challenge_item {
background: transparent !important;
color: var(--wt-text) !important;
border-radius: 6px !important;
overflow: visible !important;
border: 0 !important;
box-shadow: none !important;
display: block !important;
/* Flat tile — parent .challenge_cont_area provides elevation.
overflow: visible so the rounded image (clipped on the img/thmb
itself, not the anchor) doesn't fight a square clip box. */
transition: color .15s ease !important;
}
a.challenge_item:hover { background: transparent !important; }
.challenge_item img { transition: filter .2s ease !important; }
a.challenge_item:hover img { filter: brightness(.7) !important; }
a.challenge_item:hover .subj,
a.challenge_item:hover .title { color: var(--wt-accent) !important; }
/* Kill background/border on the parent <li> that 'Cards / lists'
rule painted — same "flat tile" reasoning. */
.challenge_lst li,
.challenge_cont_area .challenge_lst li {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
.challenge_item .info,
.challenge_item .info_area,
.challenge_item .area_genre { background: transparent !important; }
.challenge_item .subj,
.challenge_item .title { color: var(--wt-text) !important; }
.challenge_item .area_genre,
.challenge_item .genre,
.challenge_item .author { color: var(--wt-text) !important; }
/* Like / subscriber counter on canvas cards — match the green heart
icon so number + icon read as one element. */
.challenge_item .grade_num,
.challenge_item .num,
.challenge_item .like_area .num,
.challenge_item .like_area,
.challenge_item .subscribe,
.challenge_item .subscribe_count { color: var(--wt-accent) !important; }
/* Wrap the whole canvas grid in one elevated section card to match
how other listing pages group their content. box-sizing:border-box
is critical — without it, the 24 px padding adds outside the
computed width and pushes the .aside.challenge float (Top CANVAS
/ Up & Coming) down below the grid instead of beside it. */
.challenge_cont_area {
background: var(--wt-bg-elev) !important;
border: 1px solid var(--wt-border) !important;
border-radius: 12px !important;
padding: 16px 20px !important;
box-sizing: border-box !important;
overflow: visible !important;
box-shadow: var(--wt-shadow) !important;
}
/* Ensure no ancestor clips the rightmost card's 1 px border. */
.challenge_cont_area .challenge_lst,
.challenge_cont_area .challenge_lst > ul { overflow: visible !important; }
.challenge_lst,
.challenge_lst > ul,
.challenge_lst > ul > li { background: transparent !important; }
/* Grid layout with explicit gap — the base CSS lays cards out with
no breathing room, leaving them edge-to-edge. Fixed 4 columns with
minmax(0, 1fr) so a card's intrinsic min-width (cover image) can't
force the column wider than the available track, which would
otherwise push the rightmost card out of view or drop the row. */
.challenge_lst > ul {
display: grid !important;
grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
gap: 14px !important;
padding: 0 !important;
margin: 0 !important;
}
.challenge_lst > ul > li {
width: auto !important;
min-width: 0 !important;
margin: 0 !important;
padding: 0 !important;
float: none !important;
}
a.challenge_item img,
.challenge_item .thmb,
.challenge_item .thmb img {
width: 100% !important;
max-width: 100% !important;
height: auto !important;
display: block !important;
/* Soft rounding on all four corners of the thumbnail itself so
the card image reads as a discrete tile (rather than a
half-rounded slab that meets a square text strip below). */
border-radius: 6px !important;
overflow: hidden !important;
}
a.challenge_item { min-width: 0 !important; max-width: 100% !important; }
/* Base CSS draws a 1 px light separator at the bottom of multiple
levels in the challenge_* tree. Cast a wider net to kill it. */
.challenge_cont_area,
.challenge_cont_area *,
.challenge_lst,
.challenge_lst > ul,
.challenge_lst > ul > li {
border-bottom: 0 !important;
}
.challenge_cont_area::after,
.challenge_lst::after,
.challenge_lst > ul::after {
display: none !important;
content: none !important;
border: 0 !important;
}
/* Right-rail sidebar on /canvas (Top CANVAS, Up & Coming). Each is
a separate .lst_area inside .aside.challenge .ranking_lst.viewer
(a flex column). Card each .lst_area individually so the two
sections render as two distinct stacked cards, not one big block. */
/* Shrink the floated sidebar slightly so the grid section gets more
horizontal room (the rightmost card column was being shaved). */
.aside.challenge { width: 280px !important; }
/* Card-style outer wrapper for Top CANVAS (#challengeGenreRanking)
and Up & Coming (#upcomingChallengeRanking). Match background and
padding across both so they read as a matched pair. Extra
padding-bottom guarantees the last ranking-row tile's bottom
border has clearance from the panel edge. */
.aside.challenge .lst_area,
#challengeGenreRanking,
#upcomingChallengeRanking,
.ranking_lst.viewer > .lst_area,
.ranking_lst.viewer .lst_area {
background: var(--wt-bg-elev2) !important;
background-color: var(--wt-bg-elev2) !important;
border: 1px solid rgba(255,255,255,.4) !important;
border-radius: 12px !important;
padding: 14px !important;
box-sizing: border-box !important;
box-shadow:
inset 0 0 0 1px rgba(255,255,255,.08),
0 4px 12px rgba(0,0,0,.55),
0 12px 28px rgba(0,0,0,.45) !important;
margin: 0 !important;
}
/* Flat ranking rows inside Top CANVAS / Up & Coming — no per-row
border or background ("volume"). Hover only turns the title green. */
.aside.challenge .lst_type1 > li,
#challengeGenreRanking .lst_type1 > li,
#upcomingChallengeRanking .lst_type1 > li,
.ranking_lst.viewer .lst_type1 > li {
border: 0 !important;
background: transparent !important;
padding: 6px 0 !important;
margin: 0 !important;
transition: color .15s ease !important;
}
.aside.challenge .lst_type1 > li:hover,
#challengeGenreRanking .lst_type1 > li:hover,
#upcomingChallengeRanking .lst_type1 > li:hover,
.ranking_lst.viewer .lst_type1 > li:hover {
background: transparent !important;
}
.aside.challenge .lst_type1 > li:hover .subj,
#challengeGenreRanking .lst_type1 > li:hover .subj,
#upcomingChallengeRanking .lst_type1 > li:hover .subj,
.ranking_lst.viewer .lst_type1 > li:hover .subj {
color: var(--wt-accent) !important;
}
/* Header arrow (.ico_arr1) next to "Top CANVAS" / "Up & Coming" —
force inline-flex alignment so the chevron sits beside the title
text, not on the line below it. Base CSS often gives ico_arr1
display:block or width:14px (sprite). */
#challengeGenreRanking .ico_arr1,
#upcomingChallengeRanking .ico_arr1,
.ranking_lst.viewer .title_area .ico_arr1,
.aside.challenge .title_area .ico_arr1,
.title_area h2 .ico_arr1 {
background-image: none !important;
background: none !important;
color: var(--wt-text-dim) !important;
font-size: 18px !important;
line-height: 1 !important;
font-style: normal !important;
font-weight: 400 !important;
text-indent: 0 !important;
overflow: visible !important;
white-space: nowrap !important;
filter: none !important;
width: auto !important;
height: auto !important;
min-width: 0 !important;
display: inline-flex !important;
align-items: center !important;
margin: 0 0 0 6px !important;
padding: 0 !important;
vertical-align: middle !important;
position: static !important;
top: auto !important;
}
/* Make sure the parent h2 lays children out inline. */
#challengeGenreRanking .title_area h2,
#upcomingChallengeRanking .title_area h2,
.aside.challenge .title_area h2 {
display: inline-flex !important;
align-items: center !important;
gap: 0 !important;
}
#challengeGenreRanking .title_area h2 span,
#upcomingChallengeRanking .title_area h2 span,
.aside.challenge .title_area h2 span {
display: inline !important;
}
/* Tight stacking: kill the flex column gap entirely and zero any
top margin on the second .lst_area so Up & Coming sits directly
under Top CANVAS with only a hairline gap. */
.aside.challenge .ranking_lst {
gap: 0 !important;
row-gap: 0 !important;
}
.aside.challenge .lst_area + .lst_area { margin-top: 8px !important; }
.aside.challenge .lst_type1 { border-bottom: none !important; }
.aside.challenge h2, .aside.challenge h3,
.aside.challenge .title_area { color: var(--wt-text) !important; }
/* Subscriber-count badge overlaid on each carousel card thumbnail.
DOM: <span class="badge_discover num">7K</span> inside .discover_badge_area */
.badge_discover {
background: var(--wt-bg-elev2) !important;
color: var(--wt-accent) !important;
border: 1px solid rgba(0,213,100,.35) !important;
border-radius: 9999px !important;
}
/* Sections — #content and #container are the actual IDs in the DOM.
#wrap wraps the entire page including header so excluded here —
html/body already covers the page background.
.detail_header is intentionally excluded: it is 1200px centered and
sits ON TOP of the full-width .detail_bg artwork element. Setting its
background-color to dark would paint over the artwork in the center
while leaving the artwork visible on the sides — the opposite of
what we want. .detail_header background defaults to transparent, which
lets the .detail_bg artwork show through in the header area. */
#content, #container, .cont_area, .cont_box, .detail_body {
background-color: var(--wt-bg) !important;
color: var(--wt-text) !important;
}
/* detail_body children are floated, so detail_body collapses to height 0
and its background paints nothing — artwork bleeds through card corners.
display:flow-root forces detail_body to contain its floats (proper height).
overflow:hidden clips the artwork at the rounded boundary.
background:--wt-bg matches the page so the container is invisible below
the shorter sidebar card, and card corners show the page colour naturally. */
.detail_body {
display: flow-root !important;
overflow: hidden !important;
border-radius: 16px !important;
background: var(--wt-bg) !important;
padding-top: 0 !important;
}
.detail_header { color: var(--wt-text) !important; }
/* Popups / modals */
.layer_popup, ._popupLayer, .layer_box, .pop_layer,
.modal, .dialog, .tooltip, .balloon, .ly_box {
background-color: var(--wt-bg-elev) !important;
color: var(--wt-text) !important;
border: 1px solid var(--wt-border) !important;
box-shadow: 0 8px 24px rgba(0,0,0,.5) !important;
}
/* Tone down the top marketing banner */
.header_bn {
background: var(--wt-bg-elev) !important;
filter: brightness(.85);
}
/* Promotional banner on /canvas ("Try the New CANVAS Creator Dashboard!").
Ships as <a class="contest_banner" style="background-color: #bdffdb">
with an inline mint-green PNG inside. Override the inline style with
!important and tone the embedded image down so it blends with dark. */
/* Promotional banners on /canvas. The <a class="contest_banner"> ships
with inline style="background-color: #bdffdb" (mint green) and an
<img> child whose pixels are also mint green. We override the inline
bg and clip the image so its mint-green padding doesn't bleed past
the dark anchor — image stretches to fill the full anchor width
via object-fit, with the mint-green centre portion heavily
desaturated so it blends with the dark page. */
.contest_banner, a.contest_banner {
background-color: var(--wt-bg-elev) !important;
border-radius: 0 !important;
overflow: hidden !important;
display: block !important;
position: relative !important;
}
.contest_banner img {
display: block !important;
margin: 0 auto !important;
filter: brightness(.32) saturate(.35) contrast(1.05) !important;
transition: filter .2s !important;
}
.contest_banner:hover img {
filter: brightness(.5) saturate(.55) contrast(1.05) !important;
}
/* Sub-nav (snb): day-of-week picker AND genre tabs share this component */
.snb_wrap, .snb_inner, .snb {
background-color: var(--wt-bg) !important;
border-color: var(--wt-border) !important;
}
/* Force the bottom underline color so the strip reads continuously
on dark — base CSS uses .5px solid #e0e0e0 which is invisible.
padding-bottom:0 removes the height gap between snb_inner and
snb_wrap. border-bottom alone gets covered by snb_inner
(position:relative paints above its parent's border), so we draw
the line via ::after with z-index:10 to paint over snb_inner. */
.snb_wrap, .snb_wrap.type_sub {
padding-bottom: 0 !important;
position: relative !important;
border-bottom: none !important;
z-index: 10000 !important;
}
.snb_wrap::after {
content: '' !important;
position: absolute !important;
bottom: 0 !important;
left: 0 !important;
right: 0 !important;
height: 1px !important;
background-color: var(--wt-border) !important;
z-index: 10 !important;
pointer-events: none !important;
}
/* Snb scroll arrow buttons (← / → on long tab strips, e.g. /canvas
genre row that runs past HORROR). Base CSS draws the arrow as a
dark sprite (background-image) on a #fff button — invisible on
dark. Strip the sprite and draw a white unicode chevron via a
pseudo-element so the glyph is always readable. */
.snb_inner .btn_snb_prev, .snb_inner .btn_snb_next {
background-color: var(--wt-bg-elev) !important;
background-image: none !important;
border-bottom: 1px solid var(--wt-border) !important;
border-right-color: var(--wt-border) !important;
border-left-color: var(--wt-border) !important;
box-shadow: inset 0 0 0 1px rgba(255,255,255,.07) !important;
}
/* Suppress the base sprite that's drawn via ::before — without this we
render both the dark sprite AND our white chevron (doubled arrow). */
.snb_inner .btn_snb_prev::before, .snb_inner .btn_snb_next::before {
content: none !important;
background-image: none !important;
background: none !important;
}
/* Heavy guillemets (❮ ❯) at large size for clear readability. */
.snb_inner .btn_snb_prev::after, .snb_inner .btn_snb_next::after {
position: absolute !important;
inset: 0 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
color: var(--wt-text) !important;
font-size: 40px !important;
line-height: 1 !important;
font-weight: 300 !important;
pointer-events: none !important;
}
.snb_inner .btn_snb_prev::after { content: '\\276E' !important; }
.snb_inner .btn_snb_next::after { content: '\\276F' !important; }
.snb_inner .btn_snb_prev:hover, .snb_inner .btn_snb_next:hover {
background-color: var(--wt-bg-hover) !important;
}
.snb_inner .btn_snb_prev:hover::after,
.snb_inner .btn_snb_next:hover::after {
color: var(--wt-accent) !important;
}
.snb_item, .snb_tab, ._snb_tab_a {
background-color: transparent !important;
color: var(--wt-text) !important;
border-color: var(--wt-border) !important;
}
.snb_item:hover .snb_tab, .snb_tab:hover {
color: var(--wt-accent-soft) !important;
background-color: var(--wt-bg-elev2) !important;
}
.snb_item.is_selected .snb_tab,
.snb_tab[aria-current="true"],
.snb_tab[aria-current="page"] {
color: var(--wt-accent) !important;
transform: none !important;
}
.btn_snb_prev, .btn_snb_next {
background-color: var(--wt-bg-elev) !important;
color: var(--wt-text) !important;
border: 1px solid var(--wt-border) !important;
}
/* === Homepage / listing pages: Option B elevation design ===
Three-level hierarchy: page (--wt-bg) → section card (--wt-bg-elev)
→ comic card (--wt-bg-elev2 + shadow). */
/* Section containers become elevated cards with rounded corners.
.main_section = "Trending & Popular Series" carousel block.
.webtoon_list_wrap = "Popular Series by Category", "Newly Released", etc. */
.main_section, .webtoon_list_wrap {
background: var(--wt-bg-elev) !important;
border-radius: 16px !important;
padding: 24px 24px 28px !important;
box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 8px 32px rgba(0,0,0,.35) !important;
color: var(--wt-text) !important;
}
/* Faint accent line below each section header to anchor the title. */
.main_section .section_header,
.webtoon_list_wrap .section_header {
border-bottom: 1px solid rgba(0, 213, 100, .18) !important;
margin-bottom: 16px !important;
}
/* "View all ›" link in section header. */
.section_header .button_view_all { color: var(--wt-text-dim) !important; }
.section_header .button_view_all:hover { color: var(--wt-accent-soft) !important; }
/* "more ›" link — two element variants render this:
- .button_view_all (homepage sections) — chevron via ::after sprite
- a.lk_more (canvas / popular-by-category) — chevron via a
child <span class="ico_arr"> sprite
Both inherit text colour from our a/h rules, but the chevron sprite
ships as a dark glyph. Strip the sprite and either inject our own
text chevron (::after) or invert the inline span. */
a.lk_more, .lk_more {
color: var(--wt-text-dim) !important;
}
a.lk_more:hover, .lk_more:hover {
color: var(--wt-accent-soft) !important;
}
.lk_more .ico_arr {
background-image: none !important;
background: none !important;
width: auto !important;
height: auto !important;
text-indent: 0 !important;
overflow: visible !important;
white-space: normal !important;
display: inline-block !important;
vertical-align: middle !important;
margin-left: 4px !important;
}
.lk_more .ico_arr::after {
content: '\\203A' !important;
color: inherit !important;
font-size: 18px !important;
line-height: 1 !important;
}
.button_view_all::after,
.section_header .button_view_all::after {
background-image: none !important;
background: none !important;
content: '\\203A' !important;
color: inherit !important;
font-size: 18px !important;
line-height: 1 !important;
width: auto !important;
height: auto !important;
margin-left: 4px !important;
text-indent: 0 !important;
overflow: visible !important;
white-space: normal !important;
}
/* Comic cards within section containers: flat tiles. The parent
section already provides elevation, so per-card shadow + lift
created a "double volume" effect. Hover = image darken (handled by
the generic .card_item img rule above) + title turns accent green. */
.main_section .card_item,
.main_section .card_lst li,
.main_section .webtoon_list li,
.webtoon_list_wrap .card_item,
.webtoon_list_wrap .card_lst li,
.webtoon_list_wrap ._popularList li,
.webtoon_list_wrap ._dailyList li,
.webtoon_list_wrap .webtoon_list li {
background: transparent !important;
border-color: transparent !important;
border-radius: 10px !important;
box-shadow: none !important;
transform: none !important;
transition: color .15s ease !important;
}
.main_section .card_item:hover .title,
.main_section .card_item:hover .subj,
.main_section .card_lst li:hover .title,
.main_section .card_lst li:hover .subj,
.main_section .webtoon_list li:hover .title,
.main_section .webtoon_list li:hover .subj,
.webtoon_list_wrap .card_item:hover .title,
.webtoon_list_wrap .card_item:hover .subj,
.webtoon_list_wrap .card_lst li:hover .title,
.webtoon_list_wrap .card_lst li:hover .subj,
.webtoon_list_wrap ._popularList li:hover .title,
.webtoon_list_wrap ._popularList li:hover .subj,
.webtoon_list_wrap ._dailyList li:hover .title,
.webtoon_list_wrap ._dailyList li:hover .subj,
.webtoon_list_wrap .webtoon_list li:hover .title,
.webtoon_list_wrap .webtoon_list li:hover .subj {
color: var(--wt-accent) !important;
}
/* Card text area: title sits on its own row; genre + like/view sit
on a single row beneath. flex-wrap allows fallback to two rows on
very narrow cards. Removing the previous .view_count margin-top is
what brings the count onto the same line as .genre. */
.webtoon_list .info_text {
margin-top: 10px !important;
padding: 0 4px !important;
display: flex !important;
flex-direction: column !important;
gap: 2px !important;
}
.webtoon_list .info_text .title {
color: var(--wt-text) !important;
}
.webtoon_list .info_text > .genre,
.webtoon_list .info_text > .view_count,
.webtoon_list .info_text > .like_count,
.webtoon_list .info_text > .count_like {
display: inline-block !important;
margin: 0 !important;
}
/* Heart / view counter inherits the brand-green heart-icon colour so
number and icon read as one element. */
.webtoon_list .view_count,
.webtoon_list .like_count,
.webtoon_list .count_like {
color: var(--wt-accent) !important;
}
/* Pair genre with the heart/view stat on one row. Wraps both children
in a flex row when both exist. Uses :has() so cards with only one
child fall back gracefully. */
.webtoon_list .info_text:has(.genre + .view_count),
.webtoon_list .info_text:has(.genre + .like_count),
.webtoon_list .info_text:has(.genre + .count_like) {
display: grid !important;
grid-template-columns: 1fr auto !important;
grid-template-areas:
"title title"
"genre stat" !important;
column-gap: 8px !important;
}
.webtoon_list .info_text > .title { grid-area: title !important; }
.webtoon_list .info_text > .genre { grid-area: genre !important; }
.webtoon_list .info_text > .view_count,
.webtoon_list .info_text > .like_count,
.webtoon_list .info_text > .count_like { grid-area: stat !important; justify-self: end !important; }
/* Green hover on the heart/view number. */
.main_section .card_item:hover .view_count,
.main_section .card_item:hover .like_count,
.main_section .card_item:hover .count_like,
.webtoon_list_wrap li:hover .view_count,
.webtoon_list_wrap li:hover .like_count,
.webtoon_list_wrap li:hover .count_like,
.webtoon_list li:hover .view_count,
.webtoon_list li:hover .like_count,
.webtoon_list li:hover .count_like {
color: var(--wt-accent) !important;
}
/* Section header text. */
.section_header { color: var(--wt-text) !important; }
.series_count, .series_count .number, .series_count span {
color: var(--wt-text-dim) !important;
}
.sort_area, .sort_by_area {
background-color: transparent !important;
}
.sort_by, ._sort_by_a {
color: var(--wt-text-dim) !important;
background-color: transparent !important;
}
.sort_by[aria-current="true"], ._sort_by_a[aria-current="true"] {
color: var(--wt-text) !important;
}
/* /canvas sort dropdown ("Sort by Date ▾"). Trigger is .sort_area .checked,
panel is .sort_box. Base ships a white panel with a sprite checkmark
— both invisible on dark. Render the trigger as a soft pill with a
subtle chevron, and the panel as an elevated card with hover rows. */
/* Trigger pill — best-practice sort/filter button:
- Clear affordance: icon prefix + label + caret suffix
- Distinct open state via [aria-expanded="true"]
- Generous touch target, focus-visible safe (--wt-border-strong) */
.sort_area .checked {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
text-align: center !important;
position: relative !important;
background: var(--wt-bg-elev2) !important;
color: var(--wt-text) !important;
border: 1px solid rgba(255,255,255,.22) !important;
border-radius: 999px !important;
padding: 8px 32px 8px 30px !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 16px !important;
white-space: nowrap !important;
cursor: pointer !important;
box-shadow: 0 1px 0 rgba(255,255,255,.04) !important;
transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease !important;
}
/* Sort-icon glyph (⇅) prefix — communicates the button's purpose. */
.sort_area .checked::before {
content: '\\21F5' !important;
position: absolute !important;
left: 12px !important;
top: 50% !important;
transform: translateY(-50%) !important;
font-size: 13px !important;
color: var(--wt-text-dim) !important;
line-height: 1 !important;
transition: color .15s ease !important;
}
.sort_area .checked:hover {
background: var(--wt-bg-hover) !important;
border-color: var(--wt-accent) !important;
color: var(--wt-accent) !important;
box-shadow: 0 0 0 3px rgba(0,213,100,.12) !important;
}
.sort_area .checked:hover::before { color: var(--wt-accent) !important; }
/* Open state — solid accent border ring + brighter bg so it reads
clearly as "active/pressed". Mirrors common dropdown patterns. */
.sort_area .checked[aria-expanded="true"] {
background: var(--wt-bg-hover) !important;
border-color: var(--wt-accent) !important;
color: var(--wt-accent) !important;
box-shadow: 0 0 0 3px rgba(0,213,100,.18) !important;
}
.sort_area .checked[aria-expanded="true"]::before { color: var(--wt-accent) !important; }
/* Outer page sort (.sort_area._sorting) on /canvas/list — lift it
ABOVE the cards section block entirely using negative top so the
pill sits as a free-standing control, not overlapping the grid.
The section card has 16px+ padding so position:absolute relative
to the section card with top:-48px clears the top edge. */
.challenge_cont_area { position: relative !important; }
.sort_area._sorting {
position: absolute !important;
right: 4px !important;
top: -52px !important;
left: auto !important;
margin: 0 !important;
display: inline-block !important;
float: none !important;
z-index: 50 !important;
}
.sort_area._sorting .checked {
padding: 11px 32px !important;
font-size: 15px !important;
letter-spacing: .02em !important;
min-width: 160px !important;
}
.sort_area._sorting .sort_box {
right: 0 !important;
top: calc(100% + 6px) !important;
min-width: 200px !important;
z-index: 200 !important;
}
/* Inner Top-CANVAS filter (.sort_area._filterArea) — shares the
.title_area row with the "Top CANVAS" h2. Keep it compact so long
labels (HEARTWARMING, SUPERNATURAL) don't push the row. */
.sort_area._filterArea {
position: relative !important;
top: auto !important;
right: auto !important;
margin-left: auto !important;
flex-shrink: 0 !important;
z-index: 5 !important;
}
.sort_area._filterArea .checked {
padding: 5px 14px !important;
font-size: 11px !important;
letter-spacing: .04em !important;
min-width: 90px !important;
max-width: 140px !important;
text-overflow: ellipsis !important;
overflow: hidden !important;
}
/* Compact filter pill: no leading ⇅ icon, no trailing caret — the
label alone is sufficient in this context, and removing both
glyphs frees space for long category names. */
.sort_area._filterArea .checked::before { content: none !important; display: none !important; }
.sort_area._filterArea .checked .ico_chk,
.sort_area._filterArea .checked .ico_chk::after { display: none !important; content: none !important; }
.sort_area._filterArea .sort_box._filterLayer {
right: 0 !important;
top: calc(100% + 4px) !important;
min-width: 160px !important;
max-height: 280px !important;
overflow-y: auto !important;
/* High z-index so the panel paints above the ranking-number
sprites (.ico_nN) AND the body::before vignette gradient
(z-index 9999). 10001 clears both unconditionally. */
z-index: 10001 !important;
background: var(--wt-bg-elev) !important;
background-color: var(--wt-bg-elev) !important;
isolation: isolate !important;
}
/* Lift the filter pill's stacking context above sibling card rows
so the panel it spawns isn't trapped beneath them. */
.sort_area._filterArea { z-index: 10000 !important; }