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

    --selection-bg: #bf87d0;
    --selection-fg: #232627;

    --nav-fg: #edafb8;
    --nav-selected-fg: #232627;
    --nav-selected-bg: #bf87d0;

    --link-fg: #23d19b;

    --home-bg: #56355D;
    --home-fg: #ffffff;

    --listitem-bg1: #232323;
    --listitem-bg2: #272727;

    --codeblock-bg: #3f3f3f;
    --codeblock-fg: #ffffff;
}

* {
    font-family: sans-serif;
    box-sizing: border-box;
}

body {
    background-color: var(--body-bg);
    color: var(--body-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);
}

#header-img {
    width: 100%;
    max-height: auto;
}

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

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

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

main:not(#site-home-page) {
    max-width: 1000px;
    width: 95%;
    margin: auto;
}

#site-header {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

#global-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

#global-nav a {
    text-decoration: none;
    color: var(--nav-fg);
    padding: 0 6px;
}

#global-nav a#nav-link-active {
    background-color: var(--nav-selected-bg);
    color: var(--nav-selected-fg);
}

footer {
    max-width: 95%;
    margin: auto;
}

footer #copyright {
    text-align: center;
    line-height: 1.1;
}