summaryrefslogtreecommitdiff
path: root/src/main.css
blob: 2c539654a57125ef06f6c5056391f0995efef242 (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
html, body {
    margin: 0;
    padding: 0;
    border: 0;
    background-color: grey;
}
footer {
    border-top: 2px solid black;
    font-weight: bold;
}
footer > center > p {
    margin: 0;
}
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}
#content {
    flex-grow: 1;
    max-width: 70vw;
    margin: auto;
    display: flex;
    flex-direction: column;
}
form {
    display: flex;
    flex-direction: column;
    max-width: 40vw;
    align-self: center;
}
form > label {
    margin-top: 6px;
}

input:invalid {
    border: 2px dotted red;
}

bold {
    font-weight: bold;
    color: red;
    background-color: black;
}

:root {
    --primary: #efefef;
    --text-primary: #222;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #222;
        --text-primary: #eee;
    }
}

@media screen and (max-width: 500px) {
    #content {
        max-width: unset;
    }
}