blob: f126140799603cabbc1083c17faa0fdc01f32462 (
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 {
font-family: sans-serif;
color-scheme: light dark;
/* theme colours */
--primary: #055;
--secondary: #dee;
--negative: #a01;
--background: #eff;
--foreground: #022;
--behind: #dee;
--header-bg: var(--primary);
@media (prefers-color-scheme: dark) {
--primary: #8cc;
--secondary: #122;
--negative: #e78;
--background: #233;
--foreground: #eff;
--behind: #011;
--header-bg: var(--secondary);
}
/* dimensions */
--page-width: 800px;
--is-wide: 1;
@media (width < 800px) {
--is-wide: 0;
}
}
body {
margin: 0;
padding: 0;
background-color: var(--behind);
}
header {
background: linear-gradient(
to bottom,
color-mix(in oklab, var(--header-bg), var(--behind)),
var(--header-bg)
);
color: contrast-color(var(--header-bg));
padding: 1em;
max-width: var(--page-width);
margin: calc(var(--is-wide) * 1em) auto;
height: 100px;
display: flex;
align-items: end;
site-name {
font-weight: bold;
font-size: xx-large;
}
}
footer {
font-size: small;
text-align: center;
margin: 1lh;
color: color-mix(in oklab, var(--foreground), var(--behind));
a {
color: inherit;
text-decoration-style: dotted;
}
}
main {
padding: 1em;
max-width: var(--page-width);
margin: auto;
background-color: var(--background);
color: var(--foreground);
&.challenge-page {
display: flex;
flex-direction: column;
align-items: center;
}
}
error-message {
background-color: var(--negative);
color: contrast-color(var(--negative));
margin: 1em 0;
padding: 1em;
border-radius: 4px;
display: flex;
flex-direction: column;
gap: 0.5lh;
width: max-content;
max-width: 100%;
box-sizing: border-box;
box-label {
font-weight: bold;
}
}
.challenge-message {
border: 1px solid var(--negative);
padding: 1em;
width: max-content;
max-width: 100%;
box-sizing: border-box;
}
form {
display: grid;
grid-template-columns: max-content max-content;
gap: 1em;
background-color: var(--behind);
margin: 1em 0;
padding: 1em;
width: max-content;
max-width: 100%;
box-sizing: border-box;
button {
grid-column: 1 / 3;
width: max-content;
justify-self: center;
}
p {
grid-column: 1 / 3;
}
}
challenge-separator {
&::before, &::after {
content: "—";
padding: 0 1ex;
}
}
|