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
|
/* Red is a low-luminance color, and luminance is what we need
* for reading and for detecting fine details. Saturated Red,
* Orange, Purple should generally be paired with white, and
* not black. This is true for standard vision but it's doubly
* true for individuals with certain color vision deficiencies
* (color blind) particularly protanopia, who see reds much darker.
*/
html {
color-scheme: dark;
--background-color: #0D1B1E;
--foreground-color: #D5D5D5;
--red-color: #FFADD6;
--yellow-color: #FFFF00;
--green-color: #00FF7F;
--blue-color: #00FFFF;
--purple-color: #DCC6E0;
--fs-tfc: clamp(2.25rem, 2vw + 1.5rem, 3.25rem);
--fs-tfb: clamp(1.25rem, 2vw + 0.2rem, 2rem);
--fs-tfa: clamp(1rem, 2vw + 0.1rem, 1.5rem);
--fs-tf: 1rem;
--fs-tfx: .75rem;
font-size: var(--fs-tf);
font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica, "Helvetica Neue", sans-serif;
font-variant-numeric: oldstyle-nums;
}
@media (prefers-color-scheme: light) {
html {
color-scheme: light;
--background-color: #D5D5D5;
--foreground-color: #0D1B1E;
--red-color: #AA0000;
--yellow-color: #804600;
--green-color: #205E3B;
--blue-color: #1B365D;
--purple-color: #360036;
}
}
body {
max-width: 100%;
min-height: 99dvh;
display: flex;
flex-direction: column;
justify-content: space-between;
grid-template-rows: auto 1fr auto;
}
main {
max-width: 46rem;
margin: clamp(1rem, 8vw, 5rem);
}
a {
color: var(--blue-color);
}
a:visited {
color: var(--yellow-color);
}
a[href$=".pdf"]::after {
content: " (PDF)";
vertical-align: super;
font-size: var(--fs-tfx);
}
abbr {
font-variant-caps: all-small-caps;
text-transform: lowercase;
}
footer {
height: 1rem;
font-size: var(--fs-tfx);
margin-left: clamp(1rem, 8vw, 5rem);
}
h1 {
color: var(--green-color);
font-size: var(--fs-tfc);
font-weight: bold;
}
h2 {
color: var(--blue-color);
font-size: var(--fs-tfb);
font-weight: bold;
}
h3 {
font-size: var(--fs-tfa);
}
.smallcaps {
font-variant-caps: all-small-caps;
text-transform: lowercase;
}
.hello {
color: var(--blue-color);
}
.name {
display: block;
margin: 10px 0;
color: var(--green-color);
font-size: var(--fs-tfc);
font-weight:bold;
}
.description {
font-size: var(--fs-tfc);
font-weight: normal;
color: var(--foreground-color);
}
|