summaryrefslogtreecommitdiff
path: root/.config/firefox/userContent.css
blob: 43cb5d04e845d1a463ea5500fb4237f1e80e17f1 (plain)
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
/* To enable:
 * - set toolkit.legacyUserProfileCustomizations.stylesheets
 * - move this file to $profiledir/chrome
 *
 * References:
 * https://web.archive.org/web/20211023121642/https://kb.mozillazine.org/UserContent.css
 * https://developer.mozilla.org/en-US/docs/Web/CSS/@document
 */

@-moz-document domain(danluu.com) {
    body {
        max-width: 40em;
        margin: auto;
    }
}

@-moz-document domain(martinfowler.com) {
    body {
        max-width: fit-content;
        margin: auto !important;
    }
}

@-moz-document domain(lwn.net) {
    /* Colors. */

    body {
        color: white !important;
        background-color: black !important;
    }

    td select, select[name=viewtimes] {
        color: black !important;
    }

    .AnnLine > span, table.OddEven tr:nth-child(2n), table.OddEven th {
        background-color: black !important;
    }
    #menu, .navmenu ul, .topnav-container, .Form, .FeatureByline, .IndexEntries,
    .AnnLine:nth-child(2n) > span, .Even, table.OddEven tr:nth-child(2n+1),
    .MLThread {
        background-color: #222 !important;
    }
    .logo, .logobl {
        color: #090 !important;
    }

    .Subscription {
        color: #0c0 !important;
    }

    a {
        color: deepskyblue !important;
    }
    a:hover {
        background-color: #222 !important;
    }

    .Headline, .Cat2HL, .Cat3HL, .CommentTitle {
        background-color: #421 !important;
    }
    .CommentBox {
        border-color: #421 !important;
    }
    .OldCommentBox .CommentTitle {
        background-color: #222 !important;
    }
    .OldCommentBox {
        border-color: #222 !important;
    }

    BLOCKQUOTE.bq, p > span, div:not(.AnnLine) > span, .BigQuote {
        color: pink !important;
        background-color: black !important;
    }
    .QuotedText {
        color: pink !important;
    }

    .AnnLine span, .PageHeadline h1 {
        color: white !important;
    }

    /* Layout. */
    .maincolumn {
        max-width: 60em;
        margin: auto;
        padding-left: 0 !important;
    }
}

@-moz-document domain(reddit.com) {
    #siteTable, .commentarea {
        max-width: 80em;
        margin: auto !important;
    }

    section.listingsignupbar, section.commentsignupbar,
    aside.read-next.active {
        display: none !important;
    }
}