summaryrefslogtreecommitdiff
path: root/static/css/styles.css
blob: ce755d71fd273783b4305f2df6589fb8499f8aa9 (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
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
:root {
    --bg: #c5c8c6;
    --bg-alt: #1d1f21;

    --fg: #1d1f21;
    --fg-alt: #c5c8c6;

    --selection-bg: #004391;
    --selection-fg: #c5c8c6;

    --nav-fg: #74a8e4;

    --link-fg: #004391;

    --codeblock-bg: #303132;
    --codeblock-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1d1f21;
        --bg-alt: #303132;

        --fg: #c5c8c6;
        --fg-alt: #c5c8c6;

        --selection-bg: #3c76bb;
        --selection-fg: #c5c8c6;

        --nav-fg: #74a8e4;

        --link-fg: #3c76bb;
    }
}

* {
    font-family: sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--fg);

    line-height: 1.5;

    margin: 0;
    padding: 0;
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-fg);
}

::-moz-selection {
    background: var(--selection-bg);
    color: var(--selection-fg);
}

a {
    color: var(--link-fg);
}

img {
    display: block;
    max-width: 100%;
    max-height: 30rem;
}

pre {
    border-radius: 4px;
}

pre code {
    overflow-x: auto;
    display: block;
}

code {
    background-color: var(--codeblock-bg);
    color: var(--codeblock-fg);
    padding: 5px 8px;
    border-radius: 4px;
}

code * {
    font-family: monospace;
    font-size: 1rem;
}

main {
    width: 95%;
    max-width: 1300px;
    margin: 4rem auto auto auto;
}

nav {
    margin-bottom: 0.3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

nav a {
    color: var(--nav-fg);
    text-decoration: none;
}

nav a.active {
    text-decoration: underline;
}

#site-header {
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-alt);
    color: var(--fg-alt);
}

#site-header h1, #site-header p, #site-header nav {
    text-align: center;
}

.release {
    border: 1px solid var(--fg);
    padding: 5px 8px;
    border-radius: 4px;
}

.release-info .release-header {
    border-bottom: 1px solid var(--fg);
    margin: 0;
    font-size: 1.7em;
}

.release-info .release-header a {
    color: var(--fg);
    text-decoration: none;
}