-
-
Notifications
You must be signed in to change notification settings - Fork 431
Expand file tree
/
Copy pathstyle.css
More file actions
46 lines (46 loc) · 881 Bytes
/
style.css
File metadata and controls
46 lines (46 loc) · 881 Bytes
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
:root {
--paper: oklch(7 0 0);
--ink: color-mix(in oklab, var(--color) 5%, Green);
--font: 100%/1.5 system-ui;
--space: clamp(6px, 6px + 2vw, 15px);
--container: 1280px;
}
/* ====== Base Elements ======
General rules for basic HTML elements in any context */
body {
background: var(--paper);
color: var(--ink);
font: var(--font);
}
/* ====== Site Layout ======
Setting the overall rules for page regions
https://www.w3.org/WAI/tutorials/page-structure/regions/
*/
body {
max-width: var(--container);
margin: 0 auto calc(var(--space) * 4) auto;
}
p {
margin: auto;
}
h1 {
text-align: center;
}
input:invalid {
border-color: rgb(255, 64, 0);
}
span {
font-size: smaller;
}
input:valid {
border-color: green;
}
fieldset:focus-within {
border-color: green;
}
footer {
width: var(--container);
position: fixed;
bottom: 0;
text-align: center;
}