summaryrefslogtreecommitdiff
path: root/assets/css/vars.css
blob: 7f9a8a9c3a538229d6c8263def1cc647539a5c68 (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
:root {
    --main-width: 780px;
    --main-padding: 1.4em;
    --main-padding-bottom: 3rem;

    --caption-padding: calc(.25 * var(--main-padding));

    /* header settings */
    --header-top-gap: 2rem;
    --header-bottom-gap: 2rem;
    --header-menu-side-gap: .5rem;
    --header-menu-top-gap: 1rem;

    /* Typography */
    --font-body: 'Literata', Georgia, Cambria, 'Noto Serif', 'Droif Serif', ui-serif, serif;
    --font-mono: "Monaspace", ui-monospace, monospace;

    --h1-margin-top: 2rem;
    --h1-margin-bottom: 1.5rem;
    --h2-margin-top: 2rem;
    --h2-margin-bottom: 1.5rem;
    --hx-margin-top: 1.5rem;
    --hx-margin-bottom: 1rem;
    --p-margin-top: 1rem;
    --p-margin-bottom: 1rem;
    --code-margin-top: 2rem;
    --code-margin-bottom: 2rem;

    --h1-font-size: 2em;
    --h2-font-size: 1.8em;
    --hx-font-size: 1.3em;
    --p-font-size: 1em;
    --p-line-height: 1.5em;
    --caption-font-size: .8em;

    /* Lists */
    --li-indent: 2rem;
    --ul-margin-top: 1rem;
    --ul-margin-bottom: 1rem;
    --li-checkbox-size: 0.8em;

    /* TOC */

    --toc-margin-top: 2rem;
    --toc-margin-bottom: 3rem;

    /* Code */
    --code-padding: 1.5rem;
    --code-border-radius: 10px;
    --copy-code-button-border-radius: 7px;

    /* Social section */
    --social-icons-bottom-margin: 3rem;

    /* Footer */
    --footer-height: 3rem;

    /* Content */
    --content-height: calc(100vh - var(--footer-height));
    --figure-img-max-height: 800px;

    /* Tables */
    --table-cell-padding: .5rem;
    --table-margin-top: 2rem;
    --table-margin-bottom: 2rem;
}

@media screen and (max-width: 1024px) {
    :root {
        --main-width: 750px;
        --header-top-gap: 1rem;
        --caption-padding: calc(.25 * var(--main-padding));
    }
}

@media screen and (max-width: 640px) {
    :root {
        --header-top-gap: 1rem;
        --social-icons-bottom-margin: 0rem;
        --caption-padding: calc(2 * var(--main-padding));
    }
}