@kreftforeningen/web-css 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/normalize.css +87 -227
- package/css/theme.css +42 -0
- package/index.css +1 -0
- package/package.json +1 -1
package/css/normalize.css
CHANGED
|
@@ -1,96 +1,56 @@
|
|
|
1
|
-
/*! normalize
|
|
1
|
+
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
2
2
|
|
|
3
|
-
/*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* 1. Correct the line height in all browsers.
|
|
8
|
-
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
html {
|
|
12
|
-
line-height: 1.15; /* 1 */
|
|
13
|
-
-webkit-text-size-adjust: 100%; /* 2 */
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/* Sections
|
|
17
|
-
========================================================================== */
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Remove the margin in all browsers.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
body {
|
|
24
|
-
margin: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Render the `main` element consistently in IE.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
main {
|
|
32
|
-
display: block;
|
|
33
|
-
}
|
|
3
|
+
/*
|
|
4
|
+
Document
|
|
5
|
+
========
|
|
6
|
+
*/
|
|
34
7
|
|
|
35
8
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
h1 {
|
|
41
|
-
font-size: 2em;
|
|
42
|
-
margin: 0.67em 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Grouping content
|
|
46
|
-
========================================================================== */
|
|
9
|
+
Use a better box model (opinionated).
|
|
10
|
+
*/
|
|
47
11
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
hr {
|
|
54
|
-
box-sizing: content-box; /* 1 */
|
|
55
|
-
height: 0; /* 1 */
|
|
56
|
-
overflow: visible; /* 2 */
|
|
12
|
+
*,
|
|
13
|
+
::before,
|
|
14
|
+
::after {
|
|
15
|
+
box-sizing: border-box;
|
|
57
16
|
}
|
|
58
17
|
|
|
59
18
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
19
|
+
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
|
|
20
|
+
2. Correct the line height in all browsers.
|
|
21
|
+
3. Prevent adjustments of font size after orientation changes in iOS.
|
|
22
|
+
4. Use a more readable tab size (opinionated).
|
|
23
|
+
*/
|
|
63
24
|
|
|
64
|
-
|
|
65
|
-
font-family:
|
|
66
|
-
|
|
25
|
+
html {
|
|
26
|
+
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
|
|
27
|
+
"Apple Color Emoji", "Segoe UI Emoji"; /* 1 */
|
|
28
|
+
line-height: 1.15; /* 2 */
|
|
29
|
+
-webkit-text-size-adjust: 100%; /* 3 */
|
|
30
|
+
tab-size: 4; /* 4 */
|
|
67
31
|
}
|
|
68
32
|
|
|
69
|
-
/*
|
|
70
|
-
|
|
33
|
+
/*
|
|
34
|
+
Sections
|
|
35
|
+
========
|
|
36
|
+
*/
|
|
71
37
|
|
|
72
38
|
/**
|
|
73
|
-
|
|
74
|
-
|
|
39
|
+
Remove the margin in all browsers.
|
|
40
|
+
*/
|
|
75
41
|
|
|
76
|
-
|
|
77
|
-
|
|
42
|
+
body {
|
|
43
|
+
margin: 0;
|
|
78
44
|
}
|
|
79
45
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
abbr[title] {
|
|
86
|
-
border-bottom: none; /* 1 */
|
|
87
|
-
text-decoration: underline; /* 2 */
|
|
88
|
-
text-decoration: underline dotted; /* 2 */
|
|
89
|
-
}
|
|
46
|
+
/*
|
|
47
|
+
Text-level semantics
|
|
48
|
+
====================
|
|
49
|
+
*/
|
|
90
50
|
|
|
91
51
|
/**
|
|
92
|
-
|
|
93
|
-
|
|
52
|
+
Add the correct font weight in Chrome and Safari.
|
|
53
|
+
*/
|
|
94
54
|
|
|
95
55
|
b,
|
|
96
56
|
strong {
|
|
@@ -98,29 +58,30 @@ strong {
|
|
|
98
58
|
}
|
|
99
59
|
|
|
100
60
|
/**
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
61
|
+
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
|
|
62
|
+
2. Correct the odd 'em' font sizing in all browsers.
|
|
63
|
+
*/
|
|
104
64
|
|
|
105
65
|
code,
|
|
106
66
|
kbd,
|
|
107
|
-
samp
|
|
108
|
-
|
|
67
|
+
samp,
|
|
68
|
+
pre {
|
|
69
|
+
font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
|
|
70
|
+
monospace; /* 1 */
|
|
109
71
|
font-size: 1em; /* 2 */
|
|
110
72
|
}
|
|
111
73
|
|
|
112
74
|
/**
|
|
113
|
-
|
|
114
|
-
|
|
75
|
+
Add the correct font size in all browsers.
|
|
76
|
+
*/
|
|
115
77
|
|
|
116
78
|
small {
|
|
117
79
|
font-size: 80%;
|
|
118
80
|
}
|
|
119
81
|
|
|
120
82
|
/**
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
*/
|
|
83
|
+
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
|
|
84
|
+
*/
|
|
124
85
|
|
|
125
86
|
sub,
|
|
126
87
|
sup {
|
|
@@ -138,24 +99,28 @@ sup {
|
|
|
138
99
|
top: -0.5em;
|
|
139
100
|
}
|
|
140
101
|
|
|
141
|
-
/*
|
|
142
|
-
|
|
102
|
+
/*
|
|
103
|
+
Tabular data
|
|
104
|
+
============
|
|
105
|
+
*/
|
|
143
106
|
|
|
144
107
|
/**
|
|
145
|
-
|
|
146
|
-
|
|
108
|
+
Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
109
|
+
*/
|
|
147
110
|
|
|
148
|
-
|
|
149
|
-
border-
|
|
111
|
+
table {
|
|
112
|
+
border-color: currentcolor;
|
|
150
113
|
}
|
|
151
114
|
|
|
152
|
-
/*
|
|
153
|
-
|
|
115
|
+
/*
|
|
116
|
+
Forms
|
|
117
|
+
=====
|
|
118
|
+
*/
|
|
154
119
|
|
|
155
120
|
/**
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
121
|
+
1. Change the font styles in all browsers.
|
|
122
|
+
2. Remove the margin in Firefox and Safari.
|
|
123
|
+
*/
|
|
159
124
|
|
|
160
125
|
button,
|
|
161
126
|
input,
|
|
@@ -169,30 +134,8 @@ textarea {
|
|
|
169
134
|
}
|
|
170
135
|
|
|
171
136
|
/**
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
*/
|
|
175
|
-
|
|
176
|
-
button,
|
|
177
|
-
input {
|
|
178
|
-
/* 1 */
|
|
179
|
-
overflow: visible;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
184
|
-
* 1. Remove the inheritance of text transform in Firefox.
|
|
185
|
-
*/
|
|
186
|
-
|
|
187
|
-
button,
|
|
188
|
-
select {
|
|
189
|
-
/* 1 */
|
|
190
|
-
text-transform: none;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Correct the inability to style clickable types in iOS and Safari.
|
|
195
|
-
*/
|
|
137
|
+
Correct the inability to style clickable types in iOS and Safari.
|
|
138
|
+
*/
|
|
196
139
|
|
|
197
140
|
button,
|
|
198
141
|
[type="button"],
|
|
@@ -202,92 +145,34 @@ button,
|
|
|
202
145
|
}
|
|
203
146
|
|
|
204
147
|
/**
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
button::-moz-focus-inner,
|
|
209
|
-
[type="button"]::-moz-focus-inner,
|
|
210
|
-
[type="reset"]::-moz-focus-inner,
|
|
211
|
-
[type="submit"]::-moz-focus-inner {
|
|
212
|
-
border-style: none;
|
|
213
|
-
padding: 0;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Restore the focus styles unset by the previous rule.
|
|
218
|
-
*/
|
|
219
|
-
|
|
220
|
-
button:-moz-focusring,
|
|
221
|
-
[type="button"]:-moz-focusring,
|
|
222
|
-
[type="reset"]:-moz-focusring,
|
|
223
|
-
[type="submit"]:-moz-focusring {
|
|
224
|
-
outline: 1px dotted ButtonText;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Correct the padding in Firefox.
|
|
229
|
-
*/
|
|
230
|
-
|
|
231
|
-
fieldset {
|
|
232
|
-
padding: 0.35em 0.75em 0.625em;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* 1. Correct the text wrapping in Edge and IE.
|
|
237
|
-
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
238
|
-
* 3. Remove the padding so developers are not caught out when they zero out
|
|
239
|
-
* `fieldset` elements in all browsers.
|
|
240
|
-
*/
|
|
148
|
+
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
|
|
149
|
+
*/
|
|
241
150
|
|
|
242
151
|
legend {
|
|
243
|
-
|
|
244
|
-
color: inherit; /* 2 */
|
|
245
|
-
display: table; /* 1 */
|
|
246
|
-
max-width: 100%; /* 1 */
|
|
247
|
-
padding: 0; /* 3 */
|
|
248
|
-
white-space: normal; /* 1 */
|
|
152
|
+
padding: 0;
|
|
249
153
|
}
|
|
250
154
|
|
|
251
155
|
/**
|
|
252
|
-
|
|
253
|
-
|
|
156
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
157
|
+
*/
|
|
254
158
|
|
|
255
159
|
progress {
|
|
256
160
|
vertical-align: baseline;
|
|
257
161
|
}
|
|
258
162
|
|
|
259
163
|
/**
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
textarea {
|
|
264
|
-
overflow: auto;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* 1. Add the correct box sizing in IE 10.
|
|
269
|
-
* 2. Remove the padding in IE 10.
|
|
270
|
-
*/
|
|
271
|
-
|
|
272
|
-
[type="checkbox"],
|
|
273
|
-
[type="radio"] {
|
|
274
|
-
box-sizing: border-box; /* 1 */
|
|
275
|
-
padding: 0; /* 2 */
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
280
|
-
*/
|
|
164
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
165
|
+
*/
|
|
281
166
|
|
|
282
|
-
|
|
283
|
-
|
|
167
|
+
::-webkit-inner-spin-button,
|
|
168
|
+
::-webkit-outer-spin-button {
|
|
284
169
|
height: auto;
|
|
285
170
|
}
|
|
286
171
|
|
|
287
172
|
/**
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
173
|
+
1. Correct the odd appearance in Chrome and Safari.
|
|
174
|
+
2. Correct the outline style in Safari.
|
|
175
|
+
*/
|
|
291
176
|
|
|
292
177
|
[type="search"] {
|
|
293
178
|
-webkit-appearance: textfield; /* 1 */
|
|
@@ -295,57 +180,32 @@ textarea {
|
|
|
295
180
|
}
|
|
296
181
|
|
|
297
182
|
/**
|
|
298
|
-
|
|
299
|
-
|
|
183
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
184
|
+
*/
|
|
300
185
|
|
|
301
|
-
|
|
186
|
+
::-webkit-search-decoration {
|
|
302
187
|
-webkit-appearance: none;
|
|
303
188
|
}
|
|
304
189
|
|
|
305
190
|
/**
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
191
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
|
192
|
+
2. Change font properties to 'inherit' in Safari.
|
|
193
|
+
*/
|
|
309
194
|
|
|
310
195
|
::-webkit-file-upload-button {
|
|
311
196
|
-webkit-appearance: button; /* 1 */
|
|
312
197
|
font: inherit; /* 2 */
|
|
313
198
|
}
|
|
314
199
|
|
|
315
|
-
/* Interactive
|
|
316
|
-
========================================================================== */
|
|
317
|
-
|
|
318
200
|
/*
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
details {
|
|
323
|
-
display: block;
|
|
324
|
-
}
|
|
201
|
+
Interactive
|
|
202
|
+
===========
|
|
203
|
+
*/
|
|
325
204
|
|
|
326
205
|
/*
|
|
327
|
-
|
|
328
|
-
|
|
206
|
+
Add the correct display in Chrome and Safari.
|
|
207
|
+
*/
|
|
329
208
|
|
|
330
209
|
summary {
|
|
331
210
|
display: list-item;
|
|
332
211
|
}
|
|
333
|
-
|
|
334
|
-
/* Misc
|
|
335
|
-
========================================================================== */
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Add the correct display in IE 10+.
|
|
339
|
-
*/
|
|
340
|
-
|
|
341
|
-
template {
|
|
342
|
-
display: none;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Add the correct display in IE 10.
|
|
347
|
-
*/
|
|
348
|
-
|
|
349
|
-
[hidden] {
|
|
350
|
-
display: none;
|
|
351
|
-
}
|
package/css/theme.css
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* Base styles */
|
|
2
|
+
|
|
3
|
+
body {
|
|
4
|
+
font-family: var(--kf-font-sans);
|
|
5
|
+
font-size: var(--kf-font-size-md);
|
|
6
|
+
line-height: 1.5;
|
|
7
|
+
color: var(--kf-color-gray-950);
|
|
8
|
+
background-color: var(--kf-color-gray-50);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dark body {
|
|
12
|
+
color: var(--kf-color-gray-50);
|
|
13
|
+
background-color: var(--kf-color-gray-950);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Link styles */
|
|
17
|
+
|
|
18
|
+
a {
|
|
19
|
+
color: var(--kf-color-blue-700);
|
|
20
|
+
text-decoration: underline;
|
|
21
|
+
transition: color 0.2s ease-in-out;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
a:hover {
|
|
25
|
+
color: var(--kf-color-blue-800);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a:active {
|
|
29
|
+
color: var(--kf-color-blue-800);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dark a {
|
|
33
|
+
color: var(--kf-color-blue-200);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.dark a:hover {
|
|
37
|
+
color: var(--kf-color-blue-100);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dark a:active {
|
|
41
|
+
color: var(--kf-color-blue-100);
|
|
42
|
+
}
|
package/index.css
CHANGED