aboutsummaryrefslogtreecommitdiffstats
path: root/src/wwwroot/index.css
blob: 02960365eb9186e4c9e4248585a93440cc4bef4f (plain) (blame)
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
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 5vh clamp(1rem, 5vw, 3rem) 1rem;
    font-family: system-ui, sans-serif;
    line-height: 1.5;
    color: #222;
    background: white;
}

body > * {
    --layout-spacing: max(8vh, 3rem);
    --max-width: 70ch;
    width: min(100%, var(--max-width));
    margin-left: auto;
    margin-right: auto;
}

main {
    margin-top: var(--layout-spacing);
}

footer {
    margin-top: auto;
    padding-top: var(--layout-spacing);
}

footer p {
    border-top: 1px solid #ccc;
    padding-top: 0.25em;
    font-size: 0.9rem;
    color: #767676;
}

:is(h1, h2, h3) {
    line-height: 1.2;
}

:is(h2, h3):not(:first-child) {
    margin-top: 2em;
}

article * + * {
    margin-top: 1em;
}

.quote-text {
    padding: 5px 15px 0 0;
    font-style: italic;
    background: #e9e9e9;
}

.quote-source {
    padding-left: 20px;
}