1mpacto-sass 0.0.2 → 0.0.3
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/_preflight.scss +94 -48
- package/package.json +1 -1
package/_preflight.scss
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
@mixin preflight($font-family-map: (), $border-color: #e5e7eb) {
|
|
5
5
|
// RESOLVE FONTS
|
|
6
6
|
$sans-font: map.get($font-family-map, 'sans');
|
|
7
|
+
|
|
7
8
|
@if not $sans-font {
|
|
8
9
|
$sans-font: (ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
$mono-font: map.get($font-family-map, 'mono');
|
|
13
|
+
|
|
12
14
|
@if not $mono-font {
|
|
13
15
|
$mono-font: (ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
|
|
14
16
|
}
|
|
@@ -26,10 +28,14 @@
|
|
|
26
28
|
*,
|
|
27
29
|
::before,
|
|
28
30
|
::after {
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
|
|
31
|
-
border-
|
|
32
|
-
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
/* 1 */
|
|
33
|
+
border-width: 0;
|
|
34
|
+
/* 2 */
|
|
35
|
+
border-style: solid;
|
|
36
|
+
/* 2 */
|
|
37
|
+
border-color: #{$border-color};
|
|
38
|
+
/* 2 */
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
::before,
|
|
@@ -49,14 +55,22 @@
|
|
|
49
55
|
|
|
50
56
|
html,
|
|
51
57
|
:host {
|
|
52
|
-
line-height: 1.5;
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
line-height: 1.5;
|
|
59
|
+
/* 1 */
|
|
60
|
+
-webkit-text-size-adjust: 100%;
|
|
61
|
+
/* 2 */
|
|
62
|
+
-moz-tab-size: 4;
|
|
63
|
+
/* 3 */
|
|
64
|
+
tab-size: 4;
|
|
65
|
+
/* 3 */
|
|
66
|
+
font-family: $sans-font;
|
|
67
|
+
/* 4 */
|
|
68
|
+
font-feature-settings: normal;
|
|
69
|
+
/* 5 */
|
|
70
|
+
font-variation-settings: normal;
|
|
71
|
+
/* 6 */
|
|
72
|
+
-webkit-tap-highlight-color: transparent;
|
|
73
|
+
/* 7 */
|
|
60
74
|
}
|
|
61
75
|
|
|
62
76
|
/*
|
|
@@ -65,8 +79,10 @@
|
|
|
65
79
|
*/
|
|
66
80
|
|
|
67
81
|
body {
|
|
68
|
-
margin: 0;
|
|
69
|
-
|
|
82
|
+
margin: 0;
|
|
83
|
+
/* 1 */
|
|
84
|
+
line-height: inherit;
|
|
85
|
+
/* 2 */
|
|
70
86
|
}
|
|
71
87
|
|
|
72
88
|
/*
|
|
@@ -76,9 +92,12 @@
|
|
|
76
92
|
*/
|
|
77
93
|
|
|
78
94
|
hr {
|
|
79
|
-
height: 0;
|
|
80
|
-
|
|
81
|
-
|
|
95
|
+
height: 0;
|
|
96
|
+
/* 1 */
|
|
97
|
+
color: inherit;
|
|
98
|
+
/* 2 */
|
|
99
|
+
border-top-width: 1px;
|
|
100
|
+
/* 3 */
|
|
82
101
|
}
|
|
83
102
|
|
|
84
103
|
/*
|
|
@@ -132,10 +151,14 @@
|
|
|
132
151
|
kbd,
|
|
133
152
|
samp,
|
|
134
153
|
pre {
|
|
135
|
-
font-family: $mono-font;
|
|
136
|
-
|
|
137
|
-
font-
|
|
138
|
-
|
|
154
|
+
font-family: $mono-font;
|
|
155
|
+
/* 1 */
|
|
156
|
+
font-feature-settings: normal;
|
|
157
|
+
/* 2 */
|
|
158
|
+
font-variation-settings: normal;
|
|
159
|
+
/* 3 */
|
|
160
|
+
font-size: 1em;
|
|
161
|
+
/* 4 */
|
|
139
162
|
}
|
|
140
163
|
|
|
141
164
|
/*
|
|
@@ -173,9 +196,12 @@
|
|
|
173
196
|
*/
|
|
174
197
|
|
|
175
198
|
table {
|
|
176
|
-
text-indent: 0;
|
|
177
|
-
|
|
178
|
-
border-
|
|
199
|
+
text-indent: 0;
|
|
200
|
+
/* 1 */
|
|
201
|
+
border-color: inherit;
|
|
202
|
+
/* 2 */
|
|
203
|
+
border-collapse: collapse;
|
|
204
|
+
/* 3 */
|
|
179
205
|
}
|
|
180
206
|
|
|
181
207
|
/*
|
|
@@ -189,15 +215,24 @@
|
|
|
189
215
|
optgroup,
|
|
190
216
|
select,
|
|
191
217
|
textarea {
|
|
192
|
-
font-family: inherit;
|
|
193
|
-
|
|
194
|
-
font-
|
|
195
|
-
|
|
196
|
-
font-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
218
|
+
font-family: inherit;
|
|
219
|
+
/* 1 */
|
|
220
|
+
font-feature-settings: inherit;
|
|
221
|
+
/* 1 */
|
|
222
|
+
font-variation-settings: inherit;
|
|
223
|
+
/* 1 */
|
|
224
|
+
font-size: 100%;
|
|
225
|
+
/* 1 */
|
|
226
|
+
font-weight: inherit;
|
|
227
|
+
/* 1 */
|
|
228
|
+
line-height: inherit;
|
|
229
|
+
/* 1 */
|
|
230
|
+
color: inherit;
|
|
231
|
+
/* 1 */
|
|
232
|
+
margin: 0;
|
|
233
|
+
/* 2 */
|
|
234
|
+
padding: 0;
|
|
235
|
+
/* 3 */
|
|
201
236
|
}
|
|
202
237
|
|
|
203
238
|
/*
|
|
@@ -215,12 +250,15 @@
|
|
|
215
250
|
*/
|
|
216
251
|
|
|
217
252
|
button,
|
|
218
|
-
[type='button'],
|
|
219
|
-
[type='reset'],
|
|
220
|
-
[type='submit'] {
|
|
221
|
-
-webkit-appearance: button;
|
|
222
|
-
|
|
223
|
-
background-
|
|
253
|
+
input:where([type='button']),
|
|
254
|
+
input:where([type='reset']),
|
|
255
|
+
input:where([type='submit']) {
|
|
256
|
+
-webkit-appearance: button;
|
|
257
|
+
/* 1 */
|
|
258
|
+
background-color: transparent;
|
|
259
|
+
/* 2 */
|
|
260
|
+
background-image: none;
|
|
261
|
+
/* 2 */
|
|
224
262
|
}
|
|
225
263
|
|
|
226
264
|
/*
|
|
@@ -262,8 +300,10 @@
|
|
|
262
300
|
*/
|
|
263
301
|
|
|
264
302
|
[type='search'] {
|
|
265
|
-
-webkit-appearance: textfield;
|
|
266
|
-
|
|
303
|
+
-webkit-appearance: textfield;
|
|
304
|
+
/* 1 */
|
|
305
|
+
outline-offset: -2px;
|
|
306
|
+
/* 2 */
|
|
267
307
|
}
|
|
268
308
|
|
|
269
309
|
/*
|
|
@@ -280,8 +320,10 @@
|
|
|
280
320
|
*/
|
|
281
321
|
|
|
282
322
|
::-webkit-file-upload-button {
|
|
283
|
-
-webkit-appearance: button;
|
|
284
|
-
|
|
323
|
+
-webkit-appearance: button;
|
|
324
|
+
/* 1 */
|
|
325
|
+
font: inherit;
|
|
326
|
+
/* 2 */
|
|
285
327
|
}
|
|
286
328
|
|
|
287
329
|
/*
|
|
@@ -351,8 +393,10 @@
|
|
|
351
393
|
|
|
352
394
|
input::placeholder,
|
|
353
395
|
textarea::placeholder {
|
|
354
|
-
opacity: 1;
|
|
355
|
-
|
|
396
|
+
opacity: 1;
|
|
397
|
+
/* 1 */
|
|
398
|
+
color: #9ca3af;
|
|
399
|
+
/* 2 */
|
|
356
400
|
}
|
|
357
401
|
|
|
358
402
|
/*
|
|
@@ -386,8 +430,10 @@
|
|
|
386
430
|
iframe,
|
|
387
431
|
embed,
|
|
388
432
|
object {
|
|
389
|
-
display: block;
|
|
390
|
-
|
|
433
|
+
display: block;
|
|
434
|
+
/* 1 */
|
|
435
|
+
vertical-align: middle;
|
|
436
|
+
/* 2 */
|
|
391
437
|
}
|
|
392
438
|
|
|
393
439
|
/*
|
|
@@ -404,4 +450,4 @@
|
|
|
404
450
|
[hidden] {
|
|
405
451
|
display: none;
|
|
406
452
|
}
|
|
407
|
-
}
|
|
453
|
+
}
|