summaryrefslogtreecommitdiff
path: root/assets/css/theme-vars.css
blob: 246ebfba17278ce6504ff9a1769bb647f189abc9 (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
/* Theme
-------------------------------------------------- */
:root {
    --gap: 24px;
    --content-gap: 40px;
    --nav-width: 1024px;
    --main-width: 640px;
    --header-height: 60px;
    --footer-height: 60px;
    --radius: 8px;

    --theme: #fff;
    --entry: #fff;
    --primary: rgba(0, 0, 0, 0.88);
    --secondary: rgba(0, 0, 0, 0.56);
    --tertiary: rgba(0, 0, 0, 0.16);
    --content: rgba(0, 0, 0, 0.88);

    --hljs-bg: #1c1d21;
    --code-bg: #f5f5f5;
    --border: #eee;
}

@media screen and (max-width: 600px) {
    :root {
        --gap: 14px;
    }
}

.dark {
    --theme: #1d1e20;
    --entry: #2e2e33;
    --primary: rgba(255, 255, 255, 0.84);
    --secondary: rgba(255, 255, 255, 0.56);
    --tertiary: rgba(255, 255, 255, 0.16);
    --content: rgba(255, 255, 255, 0.64);

    --hljs-bg: #2e2e33;
    --code-bg: #37383e;
    --border: #5b5d67;
}

.list {
    background: var(--code-bg);
}

.dark.list {
    background: var(--theme);
}