-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
164 lines (124 loc) · 2.66 KB
/
styles.css
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/* ========== Colour Variables ========== */
:root {
color-scheme: light dark;
--height: 30vw;
/* your light theme colours */
--debug: hsl(360, 100%, 84%);
--color-bg: hsl(0, 0%, 94%);
--color-bg-box: hsl(0, 0%, 75%);
--color-border: hsl(0, 0%, 50%);
--color-text: hsl(0, 0%, 16%);
--color-link: hsl(0, 0%, 39%);
--color-alert: 155,17,30;
--color-info: 16,98,155;
--color-success: 16,155,73;
--radius: 4px;
}
@media (prefers-color-scheme: dark) {
:root {
/* your dark theme colours; overwrites the light theme colours */
--color-bg: hsla(0, 0%, 20%, 1);
--color-bg-box: rgb(51, 51, 51);
--color-text: rgb(217, 217, 217);
--color-link: rgb(191, 191, 191);
}
}
@media (forced-colors) {
:root {
/* your high contrast theme colours; overwrites the light and dark theme colours */
--color-bg: Canvas;
--color-bg-box: Canvas;
--color-text: CanvasText;
--color-link: ActiveText;
}
}
/* ========== Basic Styles ========== */
* { box-sizing: border-box }
body {
background-color: var(--color-bg);
font: normal 400 100%/1.4 sans-serif;
/* iPhone nodge hack */
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
h1 {
font-size: 125%;
}
h2 {
font-size: 110%;
}
h3 {
font-size: 100%;
}
a {
color: var(--color-link);
}
button {
font-size: 100%;
padding: .25rem;
}
.header {}
.header--logo {}
details {
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: .5em .5em 0;
}
summary {
font-weight: bold;
margin: -.5em -.5em 0;
padding: .5em;
}
summary:hover{
cursor: pointer
}
details[open] {
padding: .5em;
}
details[open] summary {
border-bottom: 1px solid var(--color-border);
margin-bottom: .5em;
}
/* === form */
form {}
fieldset {
border: 1px solid var(--color-border);
border-radius: var(--radius);
}
legend {}
label {}
label:has(input) {}
div:has(p)
label[for]{
cursor:pointer;
}
label span {
font-style: italic;
}
input {}
.input-hint {font-style: italic}
.input-field-wrapper {
/* background: var(--debug); */
margin-bottom: .5rem;
}
.input-field-wrapper label {
padding-right: .25rem;
display: inline-block;
width: 100%;
}
@media screen and (min-width: 500px) {
.input-field-wrapper label {
/* background: var(--debug); */
width: 40%;
}
}
abbr {
/* TODO debug */
/* color: red; */
}
@media (prefers-color-scheme: dark) {}
@media (forced-colors) {}
/* ========== Layout & Design ========== */
section,
.section {
margin-bottom: 1rem;
}