Repository navigation
Expand file tree
/
Copy pathOldRedditKit.user.js
More file actions
3077 lines (2946 loc) · 154 KB
/
Copy pathOldRedditKit.user.js
File metadata and controls
3077 lines (2946 loc) · 154 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 Old Reddit Kit (ORK)
// @namespace https://github.com/gridoe/old-reddit-kit
// @version 0.1.0
// @description Tweaks for Old Reddit, ideal for Safari but works in any browser. Adds a www-to-old redirect, dark/light/custom themes with palette presets, fixed infinite scroll, inline media expando, keyboard navigation, collapse tools, user tagging, per-subreddit style toggle, custom fonts, and custom CSS. No GM_* APIs required.
// @author gridoe
// @match *://www.reddit.com/*
// @match *://old.reddit.com/*
// @run-at document-start
// @grant none
// @noframes
// ==/UserScript==
(function () {
'use strict';
/* ============================================================
* 0. Redirect module (runs on www.reddit.com only)
* ============================================================ */
if (location.hostname === 'www.reddit.com') {
// Swap only the hostname via the URL API (a string replace could hit a
// matching substring inside the query/hash instead of the real host).
try {
const u = new URL(location.href);
// Leave /media alone: old reddit reads "/media" as a post shortlink (an old
// r/funny thread), so swapping the host just strands you there.
// unwrapMediaViewerAnchor keeps normal browsing off this page.
if (u.pathname === '/media') return;
u.hostname = 'old.reddit.com';
location.replace(u.href);
} catch (e) {
location.replace(location.href.replace('://www.reddit.com', '://old.reddit.com'));
}
return;
}
// Everything below only runs on old.reddit.com.
if (location.hostname !== 'old.reddit.com') return;
/* ============================================================
* Shared settings helpers (localStorage, JSON-encoded)
* ============================================================ */
const PREFIX = 'ork-';
const DEFAULTS = {
'appearance': 'dark', // 'dark' | 'light' | 'custom' (Custom reveals the colorscheme picker)
'infinite-scroll': true,
'infinite-trim': false, // trim old posts to save memory (scroll-anchored)
'expando': true,
'user-tags': false,
'highlight-new': true, // highlight comments newer than your last visit
'comment-visits': {}, // { postId: lastVisitMs } - drives highlight-new
'keynav': true, // single toggle for both comment + post keyboard nav
'back-to-top': false, // floating back-to-top button; off by default
'jump-new': false, // floating "jump to newest comment" button (comments pages); off by default
'keynav-parents': false, // when on, keynav j/k jump between top-level comments only
'custom-css': '',
'page-scale': 110, // percent: 100/110/120/125/150
'auto-expand-media': true, // auto-open native media expandos on load
'font': 'system-ui, -apple-system, sans-serif', // default to the OS system font; '' = reddit default
'font-custom': '', // free-form font-family when font === '__custom__'
'custom-logo-on': true, // replace the header logo with custom text
'custom-logo': 'reddit', // the custom logo text (when custom-logo-on)
'hide-listing-chooser': true, // hide the left front-page listing-chooser panel
'hide-sr-header': false, // hide the top subreddit bar (#sr-header-area)
'hide-account-activity': false,// hide the sidebar "account activity" box
'hide-create-sub': false, // hide the "create your own subreddit" promo/button
'hide-submit-text': false, // hide the sidebar "submit a new text post" button
'hide-submit-link': false, // hide the sidebar "submit a new link" button
'srbar-order': '', // top-bar entries to add to the front (one per line)
'srbar-blank': false, // top bar: show ONLY the listed entries (drop reddit's defaults)
'theme': 'default', // palette preset id (see THEMES) or 'custom'
'theme-custom': {}, // { '--ork-bg': '#...', ... } overrides when theme === 'custom'
'usertags': {} // { username: { text, color } } - managed by the tagging UI
};
// Object-typed defaults (comment-visits/usertags/theme-custom) must never be
// handed back by reference - callers mutate-then-persist the returned object in
// place, and without cloning, that mutation would land on DEFAULTS itself.
function cloneDefault(v) {
if (v === null || typeof v !== 'object') return v;
if (typeof structuredClone === 'function') {
try { return structuredClone(v); } catch (e) {}
}
try { return JSON.parse(JSON.stringify(v)); } catch (e) { return v; }
}
function getSetting(key) {
try {
const raw = localStorage.getItem(PREFIX + key);
if (raw === null) return cloneDefault(DEFAULTS[key]);
return JSON.parse(raw);
} catch (e) {
return cloneDefault(DEFAULTS[key]);
}
}
function setSetting(key, val) {
try { localStorage.setItem(PREFIX + key, JSON.stringify(val)); } catch (e) { console.debug('ORK setSetting failed:', e); }
}
// One-time migration from the previous brand prefix ("ors-") to "ork-", so a
// user upgrading from "Old Reddit Suite" keeps their saved settings/tags.
(function migrateLegacyPrefix() {
try {
if (localStorage.getItem('ork-migrated') === '1') return; // one-time; skip the scan after
for (let i = localStorage.length - 1; i >= 0; i--) {
const k = localStorage.key(i);
if (k && k.indexOf('ors-') === 0) {
const nk = 'ork-' + k.slice(4);
if (localStorage.getItem(nk) === null) localStorage.setItem(nk, localStorage.getItem(k));
localStorage.removeItem(k);
}
}
localStorage.setItem('ork-migrated', '1');
} catch (e) {}
})();
// Export/import every ORK setting (and per-subreddit toggles) as JSON, for
// backup or moving between machines. Values are already JSON-encoded in storage,
// so we copy them verbatim and write them back the same way.
function exportSettings() {
const out = {};
for (let i = 0; i < localStorage.length; i++) {
const k = localStorage.key(i);
if (k && (k.indexOf(PREFIX) === 0 || k.indexOf('srstyle_') === 0)) out[k] = localStorage.getItem(k);
}
return JSON.stringify(out, null, 2);
}
function importSettings(text) {
const obj = JSON.parse(text); // throws on invalid JSON - caller catches this
Object.keys(obj).forEach(k => {
if (k.indexOf('srstyle_') === 0) { localStorage.setItem(k, obj[k]); return; }
if (k.indexOf(PREFIX) !== 0) return;
const settingKey = k.slice(PREFIX.length);
if (!(settingKey in DEFAULTS)) return; // unknown key - skip silently
let val;
try { val = JSON.parse(obj[k]); } catch (e) { return; } // not valid JSON - skip
const def = DEFAULTS[settingKey];
const defIsPlainObject = def !== null && typeof def === 'object' && !Array.isArray(def);
if (defIsPlainObject) {
if (val === null || typeof val !== 'object' || Array.isArray(val)) return;
} else if (typeof val !== typeof def) {
return; // scalar defaults: require the same primitive type
}
localStorage.setItem(k, obj[k]);
});
}
/* ============================================================
* 1. Dark mode (injected at document-start, no flash)
* ============================================================ */
// Shared z-index tiers - one point below the 32-bit signed-int max, so ORK's own
// floating chrome always wins over the host page but stays ordered among itself:
// fab < floating popups/fallbacks < the settings panel (always topmost).
const Z_FAB = 2147483640;
const Z_FLOATING = 2147483645; // tag-editor popup + gear fallback position
const Z_PANEL = 2147483646; // settings panel
const DARK_CSS = `
/* Stock palette. DEFAULT_COLORS further down is parsed out of this block
automatically (it seeds the Custom theme swatches from these same values). */
:root.ork-dark {
--ork-bg: #1a1a1b; /* the one consistent surface tone for the whole page */
--ork-bg-elev: #272729; /* lighter tone - reserved for overlays (menus, panel) */
--ork-bg-input: #202021; /* barely lifted so text fields stay legible */
--ork-border: #343536;
--ork-text: #d7dadc;
--ork-text-dim: #909294;
--ork-link: #6cb1ff;
--ork-link-visited: #b58cff;
--ork-op: #ff8b60; /* OP username (reddit's native submitter highlight) */
--ork-accent: #4a7dbf;
--ork-up: #ff8b60; /* upvote arrow / score */
--ork-down: #9494ff; /* downvote arrow / score */
--ork-sticky: #66cc99; /* stickied/announcement post title */
--ork-arrow-color: #818384; /* resting (unvoted) vote arrow */
}
:root.ork-dark, :root.ork-dark body {
background: var(--ork-bg) !important;
color: var(--ork-text) !important;
}
:root.ork-dark a, :root.ork-dark .title a { color: var(--ork-link) !important; }
:root.ork-dark a:visited, :root.ork-dark .title.loggedin.click { color: var(--ork-link-visited) !important; }
:root.ork-dark .title.visited a { color: var(--ork-link-visited) !important; }
:root.ork-dark #header,
:root.ork-dark #header-bottom-left,
:root.ork-dark #header-bottom-right {
background: var(--ork-bg-elev) !important;
border-color: var(--ork-border) !important;
color: var(--ork-text) !important;
}
:root.ork-dark #sr-header-area,
:root.ork-dark #sr-more-link {
background: var(--ork-bg-elev) !important;
border-color: var(--ork-border) !important;
color: var(--ork-text-dim) !important;
}
:root.ork-dark .tabmenu li a {
background: var(--ork-bg-elev) !important;
color: var(--ork-text) !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark .tabmenu li.selected a {
background: var(--ork-bg) !important;
color: var(--ork-text) !important;
border-bottom-color: var(--ork-bg) !important;
}
:root.ork-dark .side,
:root.ork-dark .side .spacer,
:root.ork-dark .sidecontentbox .content,
:root.ork-dark .titlebox,
:root.ork-dark .linkinfo {
background: var(--ork-bg) !important;
color: var(--ork-text) !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark .sidecontentbox .title h1,
:root.ork-dark .titlebox h1,
:root.ork-dark .linkinfo .date,
:root.ork-dark .titlebox .word { color: var(--ork-text) !important; }
/* Sidebar action buttons reddit ships with light gradients: the "submit a new
link/post" buttons, the subscribe button, and the "show my flair" toggle. */
:root.ork-dark .morelink,
:root.ork-dark .morelink .nub,
:root.ork-dark .fancy-toggle-button .add,
:root.ork-dark .fancy-toggle-button .remove {
background: var(--ork-bg-input) !important;
border: 1px solid var(--ork-border) !important; /* same outline as the search bar */
border-radius: 6px !important;
color: var(--ork-text) !important;
}
/* the .sidebox wrappers around those buttons must NOT also draw a border, or the
button shows a doubled/heavier outline instead of the clean single one. */
:root.ork-dark .sidebox.submit,
:root.ork-dark .sidebox.create {
background: transparent !important;
border: 0 !important;
color: var(--ork-text) !important;
}
/* the "Show my flair on this subreddit" box: blend it into the sidebar instead
of rendering it as its own card - transparent, no border, plain text. The
little "edit" button (.flairselectbtn) stays a real button. */
:root.ork-dark .flairtoggle,
:root.ork-dark .flairselector,
:root.ork-dark .flairselector .title,
:root.ork-dark .flairselector .content {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
color: var(--ork-text) !important;
}
:root.ork-dark .flairselectbtn {
background: transparent !important;
border: none !important;
padding: 0 !important;
color: var(--ork-link) !important;
text-decoration: underline !important;
}
:root.ork-dark .morelink .nub { display: none !important; }
:root.ork-dark .morelink a,
:root.ork-dark .morelink .nub,
:root.ork-dark .fancy-toggle-button a,
:root.ork-dark .flairtoggle,
:root.ork-dark .flairtoggle label,
:root.ork-dark .flairtoggle .title,
:root.ork-dark .sidebox.submit a,
:root.ork-dark .sidebox.create a { color: var(--ork-text) !important; }
/* the small descriptive lines under "Create your own subreddit" - reddit renders
them as .subtitle elements that are SIBLINGS of the link (direct children of
.spacer), not inside the box, in a too-dark gray. Match the button text tone. */
:root.ork-dark .subtitle,
:root.ork-dark .side .subtitle,
:root.ork-dark .spacer .subtitle,
:root.ork-dark .sidebox.create,
:root.ork-dark .sidebox.create *,
:root.ork-dark .sidebox.submit,
:root.ork-dark .sidebox.submit * {
color: var(--ork-text) !important;
opacity: 1 !important; /* reddit dims .subtitle via opacity, not colour */
}
/* Optional sidebar hides (toggled in the panel). The create one also covers the
promo quips/image spacer ("...for your favorite subject / why not Zoidberg?"). */
:root.ork-hide-account-activity .account-activity-box { display: none !important; }
:root.ork-hide-create-sub .sidebox.create,
:root.ork-hide-create-sub .spacer:has(> a[href*="/subreddits/create"]) { display: none !important; }
:root.ork-hide-submit-text .sidebox.submit-text { display: none !important; }
:root.ork-hide-submit-link .sidebox.submit-link { display: none !important; }
/* ...and give these sidebar buttons lighter, more elegant (non-bold) labels */
.sidebox.create a,
.sidebox.submit a,
.morelink a,
.morelink .nub { font-weight: 400 !important; }
:root.ork-dark .thing,
:root.ork-dark .link,
:root.ork-dark .entry { background: transparent !important; color: var(--ork-text) !important; }
/* "Submit a crosspost" modal (bright-white by default). :has scopes it so other
modals are untouched. */
:root.ork-dark .modal:has(.crosspost-content),
:root.ork-dark .modal-content:has(.crosspost-content),
:root.ork-dark .modal-body:has(.crosspost-content) {
background: var(--ork-bg-elev) !important;
color: var(--ork-text) !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark .crosspost-header-title,
:root.ork-dark .crosspost-label,
:root.ork-dark .crosspost-thing-preview-title { color: var(--ork-text) !important; }
:root.ork-dark .crosspost-description,
:root.ork-dark .crosspost-thing-preview-tagline,
:root.ork-dark .crosspost-warning,
:root.ork-dark .crosspost-subreddit-rules { color: var(--ork-text-dim) !important; }
:root.ork-dark .crosspost-link,
:root.ork-dark .crosspost-recent-sr-list a,
:root.ork-dark .crosspost-warning a { color: var(--ork-link) !important; }
:root.ork-dark .crosspost-thing-preview {
background: var(--ork-bg-input) !important;
border: 1px solid var(--ork-border) !important;
border-radius: 8px !important;
}
:root.ork-dark .crosspost-field,
:root.ork-dark .crosspost-title-fake {
background: var(--ork-bg-input) !important;
color: var(--ork-text) !important;
border: 1px solid var(--ork-border) !important;
}
:root.ork-dark .crosspost-fieldset { border-color: var(--ork-border) !important; }
:root.ork-dark .crosspost-button {
background: transparent !important;
border: none !important;
color: var(--ork-text) !important;
}
/* The crosspost preview rendered on a post (not the modal above): a hardcoded white
card with dark title and light dividers. */
:root.ork-dark .crosspost-preview {
background: var(--ork-bg-elev) !important;
border: 1px solid var(--ork-border) !important;
color: var(--ork-text) !important;
}
:root.ork-dark .crosspost-preview .title { color: var(--ork-text) !important; }
:root.ork-dark .crosspost-preview.video .crosspost-preview-content { background: transparent !important; }
:root.ork-dark .crosspost-preview-tagline,
:root.ork-dark .crosspost-preview-tagline .score,
:root.ork-dark .crosspost-preview-tagline .comments,
:root.ork-dark .crosspost-preview-tagline .dot,
:root.ork-dark .crosspost-preview-comment-parent,
:root.ork-dark .crosspost-preview-comment-parent a,
:root.ork-dark .crosspost-preview-comment-parent .md { color: var(--ork-text-dim) !important; }
:root.ork-dark .crosspost-preview a,
:root.ork-dark .crosspost-preview-tagline a { color: var(--ork-link) !important; }
:root.ork-dark .crosspost-preview .self-divider { border-top-color: var(--ork-border) !important; }
:root.ork-dark .crosspost-preview-comments .child { border-left-color: var(--ork-border) !important; }
/* "c-" modal close button (the top-right X). c-hide-text hides the label and draws
reddit's own icon, which is large and tints oddly. Throw it away and draw a clean,
theme-coloured X with a CSS mask (same technique as the expando/arrow icons).
Exclude .dismiss-pinnable: that shares .c-close but is the pinned-window dismiss
control, which we do not want to render as a prominent stray X. */
:root.ork-dark .c-close:not(.dismiss-pinnable) {
display: inline-block !important;
width: 18px !important; height: 18px !important;
padding: 0 !important;
filter: none !important;
background: var(--ork-text) !important;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 16px 16px no-repeat !important;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 16px 16px no-repeat !important;
opacity: .7 !important;
}
:root.ork-dark .c-close:not(.dismiss-pinnable):hover { opacity: 1 !important; }
:root.ork-dark .thing.stickied .title a { color: var(--ork-sticky, #66cc99) !important; }
:root.ork-dark .thing .tagline,
:root.ork-dark .tagline,
:root.ork-dark .tagline a,
:root.ork-dark .flat-list li a,
:root.ork-dark .thing .flat-list.buttons li a,
:root.ork-dark p.tagline,
:root.ork-dark .comment .tagline { color: var(--ork-text-dim) !important; }
/* OP's username stays visually distinct from other commenters, same as stock
reddit's .author.submitter - more specific than the .tagline a / a rules above
so it wins regardless of link-visited state. */
:root.ork-dark .author.submitter { color: var(--ork-op) !important; }
:root.ork-dark .midcol,
:root.ork-dark .score,
:root.ork-dark .score.unvoted { color: var(--ork-text-dim) !important; }
:root.ork-dark .score.likes { color: var(--ork-up, #ff8b60) !important; } /* match vote colour */
:root.ork-dark .score.dislikes { color: var(--ork-down, #9494ff) !important; }
/* Light mode: reddit's unvoted score is a near-invisible pale gray - nudge it to a
readable medium gray (not as heavy as body text; dark mode handles its own). */
:root:not(.ork-dark) .score.unvoted { color: #888 !important; }
/* Vote arrows (both themes): replace reddit's sprite with a soft, ROUNDED triangle
drawn via CSS mask - crisp at any zoom, colour set by background-color, and no grey
sprite bleed that the dark background otherwise exposed. */
:root {
--ork-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 16c3 0 5.7 1.6 7.2 4.2l34 59c3 5.2-.8 11.8-7.2 11.8H16c-6.4 0-10.2-6.6-7.2-11.8l34-59C44.3 17.6 47 16 50 16z'/%3E%3C/svg%3E");
--ork-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath transform='rotate(180 50 50)' d='M50 16c3 0 5.7 1.6 7.2 4.2l34 59c3 5.2-.8 11.8-7.2 11.8H16c-6.4 0-10.2-6.6-7.2-11.8l34-59C44.3 17.6 47 16 50 16z'/%3E%3C/svg%3E");
--ork-expand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
--ork-collapse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 14l5-5 5 5'/%3E%3C/svg%3E");
--ork-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='M19.5 19.5l-5-5'/%3E%3C/svg%3E");
}
.arrow {
background-image: none !important;
background-color: var(--ork-arrow-color, #818384) !important;
width: 15px !important; height: 14px !important;
border: 0 !important;
-webkit-mask: var(--ork-arrow) center / 13px 13px no-repeat;
mask: var(--ork-arrow) center / 13px 13px no-repeat;
}
/* Down arrow gets its OWN mask (rotation baked into the SVG) instead of CSS
transform: rotate(180deg). Under the body zoom page scale, Safari pixel-snaps
transformed and untransformed elements differently, which shifted the up arrow
sideways relative to the down arrow at certain indentation offsets. */
.arrow.down, .arrow.downmod {
-webkit-mask-image: var(--ork-arrow-down);
mask-image: var(--ork-arrow-down);
}
.arrow.upmod { background-color: var(--ork-up, #ff8b60) !important; }
.arrow.downmod { background-color: var(--ork-down, #9494ff) !important; }
.arrow.up:hover { background-color: var(--ork-up, #ff8b60) !important; }
.arrow.down:hover { background-color: var(--ork-down, #9494ff) !important; }
/* Post rank number (the index left of each post). Infinite scroll loads past post
100, where reddit's narrow rank column clips the 3rd digit. Size it to its digits. */
.rank { width: auto !important; min-width: 1.6em !important; padding-right: 5px !important; white-space: nowrap !important; overflow: visible !important; text-align: right !important; }
/* Archived posts can't be voted on - make the arrows clearly inert so clicking
them doesn't pop the bright "this is archived" interstitial. */
.thing.archived .arrow, .arrow.archived {
pointer-events: none !important;
opacity: .35 !important;
cursor: default !important;
}
.thing.archived .arrow:hover, .arrow.archived:hover { background-color: var(--ork-arrow-color, #818384) !important; }
:root.ork-dark .usertext-body,
:root.ork-dark .md,
:root.ork-dark .md-container,
:root.ork-dark .commentarea .usertext-body {
background: transparent !important;
color: var(--ork-text) !important;
}
:root.ork-dark .md blockquote,
:root.ork-dark .md del { color: var(--ork-text-dim) !important; }
/* Quotes (both themes): a rounded bar that's actually visible - uses --ork-text-dim
(a mid tone) rather than the near-invisible border colour, palette-aware. */
.md blockquote {
border-left: 3px solid var(--ork-text-dim, #888) !important;
border-radius: 3px !important;
padding-left: 9px !important;
}
:root.ork-dark .md h1, :root.ork-dark .md h2, :root.ork-dark .md h3,
:root.ork-dark .md h4, :root.ork-dark .md h5, :root.ork-dark .md strong { color: var(--ork-text) !important; }
:root.ork-dark .md code,
:root.ork-dark .md pre {
background: #0d0d0d !important;
color: #e6e6e6 !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark .comment .child,
:root.ork-dark .comment .midcol { border-color: var(--ork-border) !important; }
:root.ork-dark .commentarea .comment,
:root.ork-dark .commentarea > .sitetable > .comment { border-color: var(--ork-border) !important; }
:root.ork-dark .comment.collapsed .tagline { color: var(--ork-text-dim) !important; }
:root.ork-dark .menuarea,
:root.ork-dark .panestack-title { background: transparent !important; border-color: var(--ork-border) !important; color: var(--ork-text-dim) !important; }
:root.ork-dark .drop-choices,
:root.ork-dark .drop-choices a.choice {
background: var(--ork-bg-elev) !important;
color: var(--ork-text) !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark .drop-choices a.choice:hover { background: var(--ork-accent) !important; color: #fff !important; }
/* Flair-selection popup on the submit page. Scope to .drop-choices so we don't touch
the sidebar flair toggle, which shares the .flairselector class. */
.flairselector.drop-choices,
.flairselector.drop-choices .title { font-size: 12px !important; }
:root.ork-dark .flairselector.drop-choices {
background: var(--ork-bg-elev) !important;
border: 1px solid var(--ork-border) !important;
box-shadow: 0 8px 28px rgba(0,0,0,.45) !important;
color: var(--ork-text) !important;
}
:root.ork-dark .flairselector.drop-choices h2 {
background: var(--ork-bg) !important;
color: var(--ork-text) !important;
border-radius: 0 !important;
}
:root.ork-dark .flairselector.drop-choices li { border-color: transparent !important; }
:root.ork-dark .flairselector.drop-choices li a { color: var(--ork-text) !important; }
:root.ork-dark .flairselector.drop-choices li:hover {
background: var(--ork-bg-input) !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark .flairselector.drop-choices li.selected { border: 1px dashed var(--ork-accent) !important; }
:root.ork-dark .flairselector.drop-choices form { border-top-color: var(--ork-border) !important; }
/* Inline "share" popup that drops out of a post's share button. Reddit renders it
bright-white by default; theme it like the other overlay menus. NOTE: do not use a
bare .share selector - that matches the li.share button in the post action row,
not the popup, and would draw a box around the "share" link. */
:root.ork-dark .share-button.active .new-share,
:root.ork-dark .post-sharing {
background: var(--ork-bg-elev) !important;
color: var(--ork-text) !important;
border: 1px solid var(--ork-border) !important;
border-radius: 8px !important;
}
:root.ork-dark .post-sharing .clearleft,
:root.ork-dark .post-sharing-label { color: var(--ork-text-dim) !important; }
:root.ork-dark .post-sharing input[type=text],
:root.ork-dark .post-sharing .c-form-control {
background: var(--ork-bg-input) !important;
color: var(--ork-text) !important;
border: 1px solid var(--ork-border) !important;
border-radius: 6px !important;
}
:root.ork-dark .post-sharing button,
:root.ork-dark .post-sharing .btn {
background: var(--ork-bg-input) !important;
color: var(--ork-text) !important;
border: 1px solid var(--ork-border) !important;
border-radius: 6px !important;
}
/* the sort-by selector ("best/top", profile/listing "sorted by: new"): reddit's shared
lightdrop rule otherwise reads as a boxed value - render it as a plain link, matching
the search sort menus below. */
:root.ork-dark .dropdown.lightdrop .selected {
background: transparent !important;
border: 1px solid transparent !important;
color: var(--ork-link) !important;
}
/* the "my subreddits" srdrop in the top bar renders its label black by default */
:root.ork-dark .dropdown.srdrop .selected,
:root.ork-dark .dropdown.srdrop .selected.title,
:root.ork-dark .drop-choices.srdrop a.choice {
color: var(--ork-text) !important;
}
/* replace reddit's sprite caret on the "my subreddits" dropdown with the same
chevron the expando/fab use, drawn as a mask so it picks up the theme colour */
:root.ork-dark .dropdown.srdrop .selected,
:root.ork-dark .dropdown.srdrop .selected.title {
background-image: none !important; /* drop reddit's sprite arrow */
position: relative !important;
display: inline-block !important;
padding-right: 18px !important;
}
:root.ork-dark .dropdown.srdrop .selected::after {
content: '' !important;
position: absolute !important; right: 2px; top: 50%; margin-top: -6px;
width: 12px; height: 12px;
background-color: var(--ork-text-dim) !important;
-webkit-mask: var(--ork-expand) center / 12px 12px no-repeat;
mask: var(--ork-expand) center / 12px 12px no-repeat;
}
/* ===== Top "my subreddits" bar polish. Line ~250 paints every .flat-list link
dim, so these are scoped with the #sr-header-area ID to win. ===== */
:root.ork-dark #sr-header-area { line-height: 1.6 !important; padding: 3px 8px !important; }
:root.ork-dark #sr-header-area .sr-list a,
:root.ork-dark #sr-header-area .sr-bar a,
:root.ork-dark #sr-header-area a.choice {
color: var(--ork-text-dim) !important;
padding: 2px 3px !important;
border-radius: 4px !important;
text-decoration: none !important;
transition: background .12s ease, color .12s ease !important;
}
:root.ork-dark #sr-header-area .sr-list a:hover,
:root.ork-dark #sr-header-area .sr-bar a:hover,
:root.ork-dark #sr-header-area a.choice:hover {
color: var(--ork-text) !important;
background: var(--ork-bg-input) !important;
}
:root.ork-dark #sr-header-area .sr-bar li a.choice.selected,
:root.ork-dark #sr-header-area .sr-list a.selected {
color: var(--ork-text) !important;
background: var(--ork-accent) !important;
}
:root.ork-dark #sr-header-area .separator { color: var(--ork-border) !important; padding: 0 1px !important; }
:root.ork-dark #sr-more-link:hover { color: var(--ork-text) !important; background: var(--ork-bg-input) !important; }
/* ===== Modern geometry - applies in BOTH light and dark (radius/size only) ===== */
/* Reddit's "last clicked" post marker (the dashed box on the post you last opened,
for finding your place after the back button). Reddit draws it as a BORDER
(.last-clicked { border: 1px dashed gray }), so restyle that same border - an
added outline would render as a second ring. Rounded and theme-toned. */
.thing.last-clicked {
border: 1px dashed var(--ork-text-dim, #999) !important;
border-radius: 8px !important;
}
.drop-choices { border-radius: 8px !important; overflow: hidden; padding: 4px 0 !important; }
.side .spacer,
.linkinfo,
.titlebox,
.sidecontentbox .content,
.usertext-edit,
.infobar,
.reddit-infobar,
.md pre,
.md code,
.crosspost-preview,
.roundfield { border-radius: 8px !important; }
/* the "best / top / new" comment-sort control + the hot/new/top tabs */
.tabmenu li a { border-radius: 6px 6px 0 0 !important; }
/* the little media-toggle ("expando") button under a post title - drop reddit's
dated sprite entirely and draw a clean rounded box with a chevron glyph that
flips down->up when open (CSS mask, crisp at any zoom), plus an accent hover.
Both themes. */
.expando-button {
background-image: none !important;
background-color: rgba(128,128,128,.10) !important;
border: 1px solid rgba(128,128,128,.35) !important;
border-radius: 6px !important;
width: 23px !important; height: 23px !important;
position: relative !important; box-shadow: none !important;
transition: background-color .12s ease, border-color .12s ease, transform .08s ease !important;
}
.expando-button::after {
content: '' !important; position: absolute !important; inset: 0 !important;
background-color: #888 !important;
-webkit-mask: var(--ork-expand) center / 14px 14px no-repeat;
mask: var(--ork-expand) center / 14px 14px no-repeat;
}
.expando-button.expanded::after {
-webkit-mask-image: var(--ork-collapse) !important;
mask-image: var(--ork-collapse) !important;
}
.expando-button:hover { border-color: var(--ork-accent, #4a7dbf) !important; background-color: var(--ork-bg-input, #f0f0f0) !important; }
.expando-button:hover::after { background-color: var(--ork-accent, #4a7dbf) !important; }
.expando-button:active { transform: scale(.92) !important; }
:root.ork-dark .expando-button { background-color: var(--ork-bg-input) !important; border-color: var(--ork-border) !important; }
:root.ork-dark .expando-button::after { background-color: var(--ork-text-dim) !important; }
#search input[type=text] { padding: 5px 10px !important; } /* radius via the shared geometry rule below */
/* "submit a new link" buttons: just round them, keep reddit's own size (no inner gap) */
.morelink { border-radius: 6px !important; overflow: hidden; }
.morelink a { border-radius: 6px !important; }
:root.ork-dark input[type=text],
:root.ork-dark input[type=search],
:root.ork-dark input[type=password],
:root.ork-dark input[type=url],
:root.ork-dark input[type=number],
:root.ork-dark textarea,
:root.ork-dark select,
:root.ork-dark #search input[type=text] {
background: var(--ork-bg-input) !important;
color: var(--ork-text) !important;
border: 1px solid var(--ork-border) !important;
/* radius comes from the shared geometry rule (both themes) */
}
/* The search button has no text (value="") - its only visual was reddit's own
magnifier sprite, which the button-flattening below kills via background-image:
none !important. The #search id gives this rule enough specificity to win that
fight, so draw our own icon instead (same mask+background-color technique as the
vote arrows/expando chevron above), and strip the forced border/padding that
would otherwise wrap it in an unwanted box. */
#search input[type=submit] {
background-image: none !important;
background-color: #818384 !important;
-webkit-mask: var(--ork-search) center / 14px 14px no-repeat !important;
mask: var(--ork-search) center / 14px 14px no-repeat !important;
border: 0 !important;
padding: 0 !important;
box-shadow: none !important;
width: 20px !important;
height: 20px !important;
}
#search input[type=submit]:hover { background-color: var(--ork-accent, #4a7dbf) !important; }
:root.ork-dark .usertext-edit textarea { background: var(--ork-bg-elev) !important; color: var(--ork-text) !important; }
/* Comment reply / "add a comment" form container (not just the textarea) */
/* Only the textarea (inside the comment box) is the lighter gray - everything
around it stays the consistent dark tone. */
:root.ork-dark .usertext-edit,
:root.ork-dark .usertext-edit .md,
:root.ork-dark .commentarea > .usertext,
:root.ork-dark .usertext-edit .bottom-area,
:root.ork-dark .usertext-edit .help-toggle,
:root.ork-dark .markhelp {
background: transparent !important;
color: var(--ork-text) !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark .markdownhelp,
:root.ork-dark .markhelp td,
:root.ork-dark .markhelp th,
:root.ork-dark .markhelp tr {
background: var(--ork-bg-input) !important;
color: var(--ork-text) !important;
border-color: var(--ork-border) !important;
}
/* Hide the whole left "listing chooser" panel (front-page only) and let the post
list reclaim the space. Theme-agnostic; the class is only set on the home page. */
:root.ork-hide-listing-chooser .listing-chooser { display: none !important; }
:root.ork-hide-listing-chooser .content[role=main] { margin-left: 0 !important; }
/* Hide the top subreddit bar (the "my subreddits" dropdown + quick-nav row). */
:root.ork-hide-sr-header #sr-header-area { display: none !important; }
/* Always hide the "GET NEW REDDIT" beta opt-in button. */
.redesign-beta-optin, #redesign-beta-optin-btn { display: none !important; }
/* Front-page left "listing chooser" panel (front / all / random / multireddits) */
:root.ork-dark .listing-chooser,
:root.ork-dark .listing-chooser .contents,
:root.ork-dark .listing-chooser .grippy {
background: var(--ork-bg) !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark .listing-chooser li { border-color: var(--ork-border) !important; }
:root.ork-dark .listing-chooser li.selected { background: var(--ork-bg) !important; }
:root.ork-dark .listing-chooser h3,
:root.ork-dark .listing-chooser .description,
:root.ork-dark .listing-chooser .whats-this,
:root.ork-dark .listing-chooser .public-description { color: var(--ork-text-dim) !important; }
:root.ork-dark .listing-chooser a,
:root.ork-dark .listing-chooser .title { color: var(--ork-link) !important; }
/* kill stray white borders/lines and theme the create/bottom buttons */
:root.ork-dark .listing-chooser,
:root.ork-dark .listing-chooser * { border-color: var(--ork-border) !important; }
:root.ork-dark .listing-chooser button,
:root.ork-dark .listing-chooser .bottom-option,
:root.ork-dark .listing-chooser .create,
:root.ork-dark .listing-chooser .create-multireddit,
:root.ork-dark .listing-chooser input[type=text] {
background: var(--ork-bg-input) !important;
color: var(--ork-text) !important;
}
:root.ork-dark button,
:root.ork-dark .btn,
:root.ork-dark .save-button button,
:root.ork-dark .morecomments a {
background: var(--ork-bg-input) !important;
color: var(--ork-text) !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark .morecomments a { background: transparent !important; }
/* Modern button geometry - BOTH themes (colours stay theme-specific below) */
button, .btn, a.btn, .c-btn, .save-button button, button[type=submit], .usertext-buttons button,
input[type=text], input[type=search], input[type=password], input[type=url], input[type=number],
textarea, select {
border-radius: 6px !important;
}
button, .btn, a.btn, .c-btn, .save-button button, button[type=submit],
input[type=submit], input[type=button], input[type=reset],
.usertext-buttons button, .usertext-buttons .save, .usertext-buttons .cancel {
padding: 4px 11px !important;
box-shadow: none !important;
background-image: none !important; /* kill reddit's glossy gradient -> flat & modern */
text-shadow: none !important;
border-style: solid !important; /* UA default is outset -> a 3D bevel; force flat */
border-width: 1px !important;
-webkit-appearance: none !important; /* Safari draws a native 3D bezel otherwise */
appearance: none !important;
transition: filter .12s ease, background .12s ease, border-color .12s ease !important;
}
/* the comment "save" button (and any standalone .save submit): a clean filled
accent button in BOTH themes - light mode otherwise leaves it flat/colourless.
var(--ork-accent) resolves to the theme accent in dark/custom, falls back to the
default blue in light. */
.usertext-buttons .save, button.save {
background: var(--ork-accent, #4a7dbf) !important;
border: 1px solid var(--ork-accent, #4a7dbf) !important;
color: #fff !important;
font-weight: 600 !important;
}
.usertext-buttons .save:hover, button.save:hover { filter: brightness(1.08) !important; }
:root.ork-dark button:hover,
:root.ork-dark .btn:hover,
:root.ork-dark a.btn:hover,
:root.ork-dark .save-button button:hover,
:root.ork-dark button[type=submit]:hover {
filter: brightness(1.3) !important;
border-color: var(--ork-accent) !important;
}
:root.ork-dark button[type=submit],
:root.ork-dark .usertext-buttons .save,
:root.ork-dark .save-button .btn {
background: var(--ork-accent) !important;
border-color: var(--ork-accent) !important;
color: #fff !important;
}
/* "message the mods" and other c-btn buttons reddit leaves light */
:root.ork-dark .c-btn {
background: var(--ork-bg-input) !important;
color: var(--ork-text) !important;
border: 1px solid var(--ork-border) !important;
}
/* ===== Native reddit search UI (subreddit + combined search) =====
Reddit ships the search pane with a glossy gradient, an unstyled outlined facet
box ("links from: past month"), and very dim result text. Re-tone all of it. */
:root.ork-dark .searchpane,
:root.ork-dark .combined-search-page,
:root.ork-dark .search-result-listing,
:root.ork-dark .contents > .search-result-group {
background: var(--ork-bg) !important;
background-image: none !important; /* the gradient lives on background-image */
color: var(--ork-text) !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark .search-summary,
:root.ork-dark .search-result-group-header,
:root.ork-dark .searchpane .infobar {
background: transparent !important;
background-image: none !important;
color: var(--ork-text) !important;
border-color: var(--ork-border) !important;
}
/* the "limit my search to / links from: past month" facet box */
:root.ork-dark .searchfacets,
:root.ork-dark .search-facets,
:root.ork-dark .searchfacet {
background: var(--ork-bg-elev) !important;
background-image: none !important;
border: 1px solid var(--ork-border) !important;
border-radius: 8px !important;
color: var(--ork-text) !important;
}
:root.ork-dark .searchfacets a,
:root.ork-dark .searchfacet a,
:root.ork-dark .search-facets a { color: var(--ork-link) !important; }
:root.ork-dark .searchfacet .selected,
:root.ork-dark .searchfacets .selected { color: var(--ork-text) !important; font-weight: 600 !important; }
/* lift the dim/low-contrast result text */
:root.ork-dark .search-result,
:root.ork-dark .search-result-link,
:root.ork-dark .search-result .search-result-body,
:root.ork-dark .search-result-group .search-result { color: var(--ork-text) !important; }
:root.ork-dark .search-result-link .search-title,
:root.ork-dark .search-result .search-title,
:root.ork-dark .search-result a.search-title { color: var(--ork-link) !important; }
:root.ork-dark .search-result-link a.search-title:visited,
:root.ork-dark .search-result a.search-title:visited { color: var(--ork-link-visited) !important; }
:root.ork-dark .search-result-meta,
:root.ork-dark .search-result-header,
:root.ork-dark .search-result .search-time,
:root.ork-dark .search-result .search-author,
:root.ork-dark .search-result-footer,
:root.ork-dark .search-result-footer * {
color: var(--ork-text-dim) !important;
opacity: 1 !important; /* reddit dims these via opacity */
}
:root.ork-dark .search-result .search-subreddit-link,
:root.ork-dark .search-result-meta a { color: var(--ork-link) !important; }
/* collapsed search-result selftext: reddit fades it out with a white gradient
overlay. Make the body transparent (page bg shows) and fade to the theme bg. */
:root.ork-dark .search-expando,
:root.ork-dark .search-expando.collapsed,
:root.ork-dark .search-expando .search-result-body,
:root.ork-dark .search-expando .md {
background: transparent !important;
background-image: none !important;
box-shadow: none !important;
-webkit-mask: none !important;
mask: none !important;
color: var(--ork-text) !important;
}
:root.ork-dark .search-expando::after,
:root.ork-dark .search-expando::before,
:root.ork-dark .search-expando.collapsed::after,
:root.ork-dark .search-expando.collapsed::before,
:root.ork-dark .search-result-body::after,
:root.ork-dark .search-result-body::before {
display: none !important; /* the fade overlay is a decorative pseudo - remove it */
background: none !important;
background-image: none !important;
box-shadow: none !important;
}
/* search sort / time menus ("sorted by", "links from"): the shared lightdrop rule
gives the current value a boxy border - render it as a plain link instead. */
:root.ork-dark .search-header-menus .dropdown-title { color: var(--ork-text-dim) !important; }
:root.ork-dark .search-header-menus .dropdown.lightdrop .selected {
background: transparent !important;
border: 1px solid transparent !important;
color: var(--ork-link) !important;
}
/* Reddit's open_menu JS sets an absolute top/left on the opened menu using document
coordinates, which the Content Area Scale zoom throws off (the menu lands way below
the button). Anchor it under its own .search-menu with plain CSS instead, overriding
the inline top/left. */
:root.ork-dark .search-header-menus .search-menu { position: relative !important; }
:root.ork-dark .search-header-menus .drop-choices.lightdrop {
position: absolute !important;
top: 100% !important;
left: 60px !important; /* nudge right so it sits under the value, not the label */
}
/* "view more: next" footer under a search result group (kept visible for the
communities group - see the infinite-scroll exception). Geometry both themes,
colours dark-scoped: the link becomes a small rounded button. */
.search-result-listing footer .nav-buttons .nextprev a {
display: inline-block; padding: 3px 11px; margin-left: 5px;
border: 1px solid var(--ork-border, #ccc); border-radius: 6px;
text-decoration: none !important;
transition: border-color .12s ease, background .12s ease;
}
:root.ork-dark .search-result-listing footer .nav-buttons { color: var(--ork-text-dim) !important; }
:root.ork-dark .search-result-listing footer .nav-buttons .nextprev a {
background: var(--ork-bg-input) !important;
color: var(--ork-text) !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark .search-result-listing footer .nav-buttons .nextprev a:hover {
border-color: var(--ork-accent) !important;
background: var(--ork-bg-elev) !important;
}
:root.ork-dark .c-btn-primary {
background: var(--ork-accent) !important;
border-color: var(--ork-accent) !important;
color: #fff !important;
}
:root.ork-dark table,
:root.ork-dark .md table td,
:root.ork-dark .md table th {
border-color: var(--ork-border) !important;
background: var(--ork-bg) !important;
color: var(--ork-text) !important;
}
/* Moderator / contributor tables (/about/moderators). Reddit's pale-blue row hover
washes out the light text, and the permission summary has a white border box. */
:root.ork-dark .usertable tr:hover { background-color: var(--ork-bg-elev) !important; }
:root.ork-dark .usertable tr:hover td,
:root.ork-dark .usertable tr:hover .user a { color: var(--ork-text) !important; }
:root.ork-dark .permission-summary { border-color: transparent !important; }
:root.ork-dark .permission-summary.edited { border-color: var(--ork-text-dim) !important; }
:root.ork-dark .footer-parent,
:root.ork-dark .footer,
:root.ork-dark .footer .col { background: var(--ork-bg) !important; border-color: var(--ork-border) !important; }
:root.ork-dark .footer a, :root.ork-dark .bottommenu a { color: var(--ork-text-dim) !important; }
:root.ork-dark .gold-accent,
:root.ork-dark .login-form,
:root.ork-dark .content.submit .formtabs-content,
:root.ork-dark .roundfield {
background: var(--ork-bg) !important;
color: var(--ork-text) !important;
border-color: var(--ork-border) !important;
}
/* ===== Submit page: the bits the generic field/button rules miss ===== */
:root.ork-dark .info-notice {
background: var(--ork-bg-elev) !important;
border-color: var(--ork-border) !important;
color: var(--ork-text-dim) !important;
}
:root.ork-dark .info-notice a { color: var(--ork-link) !important; }
:root.ork-dark .submit_text h1,
:root.ork-dark .submit_text h1 .sr,
:root.ork-dark #suggested-reddits h3 { color: var(--ork-text) !important; }
:root.ork-dark #items-required { color: var(--ork-text-dim) !important; }
/* image / video upload drop zone */
:root.ork-dark .image-upload-drop-target,
:root.ork-dark .image-post-upload,
:root.ork-dark .c-image-upload-preview-container {
background: var(--ork-bg-input) !important;
border-color: var(--ork-border) !important;
color: var(--ork-text) !important;
}
:root.ork-dark .file-drop-label,
:root.ork-dark .select-thumbnail-heading,
:root.ork-dark .media-uploading-label,
:root.ork-dark .media-upload-complete-message,
:root.ork-dark .video-preview-heading { color: var(--ork-text-dim) !important; }
/* subreddit autocomplete dropdown */
:root.ork-dark #sr-drop-down {
background: var(--ork-bg-elev) !important;
border-color: var(--ork-border) !important;
}
:root.ork-dark #sr-drop-down .sr-name-row { color: var(--ork-text) !important; }
:root.ork-dark #sr-drop-down .sr-name-row:hover,
:root.ork-dark #sr-drop-down .sr-name-row.over { background: var(--ork-bg-input) !important; }
/* layout & scale (both themes): indent the form, shrink reddit's oversized fonts */
body.submit-page .content[role=main] { padding-left: 8px !important; }
.content.submit,
.content.submit .roundfield,
.content.submit .tabmenu.formtab,
.content.submit .info-notice,
.content.submit .submit_text { font-size: 13px !important; }
.content.submit > h1 { font-size: 18px !important; }
.content.submit .submit_text h1 { font-size: 14px !important; }
/* every field spans the full width */
.content.submit .roundfield .roundfield-content input.input,
.content.submit .roundfield .roundfield-content input[type=url],
.content.submit .roundfield .roundfield-content input[type=text],
.content.submit .roundfield .roundfield-content textarea {
width: 100% !important;
box-sizing: border-box !important;
}
/* match the title textarea to the input height (still resizable by its handle) */
.content.submit .roundfield-content input.input,
.content.submit .roundfield-content input[type=url],
.content.submit .roundfield-content input[type=text],
.content.submit textarea[name=title] {
height: 36px !important;
min-height: 36px !important;
padding: 7px 9px !important;
}
.content.submit .roundfield .roundfield-content .c-form-group { display: block !important; width: 100% !important; }
/* link/text tabs: flat underline style, both the same size, accent underline on the
selected one (reddit's default inverted this and resized the active tab) */
.tabmenu.formtab li a {
border: none !important;
border-bottom: 2px solid transparent !important;
border-radius: 0 !important;
padding: 5px 14px !important;
font-size: 13px !important;
font-weight: 600 !important;
background: transparent !important;
box-shadow: none !important;
-webkit-appearance: none !important;
appearance: none !important;
}
.tabmenu.formtab li.selected a {
background: transparent !important;
border-bottom-color: var(--ork-accent, #4a7dbf) !important;
color: var(--ork-text, #1a1a1b) !important;
}
:root.ork-dark .tabmenu.formtab li a {
color: var(--ork-text-dim) !important;