-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.scss
399 lines (301 loc) · 12.8 KB
/
index.scss
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
/*----------------------------------------------------------------------------*\
#REBOOT BROWSER STYLES
- Version: 2.0.0
- Author: Matt Pilott && Darby Manning && Chris Myers
- Site: https://github.com/neuekit/reboot
- Copyright: 2022, Matt Pilott
– License: MIT | http://goo.gl/p3bexl
\*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*\
1. Remove repeating backgrounds in all browsers (opinion).
2. Set background position to center apart from to pseudos (opinion).
3. Set background size to cover in all browsers (opinion).
4. Add box sizing in all browsers (opinion).
5. Add relative positioning (opinion).
\*----------------------------------------------------------------------------*/
*,
::before,
::after {
background-repeat: no-repeat; /* 1 */
background-position: center; /* 2 */
background-size: cover; /* 3 */
box-sizing: border-box; /* 4 */
position: relative; /* 5 */
}
/*----------------------------------------------------------------------------*\
1. Add text decoration inheritance in all browsers (opinion).
2. Add vertical alignment inheritance in all browsers (opinion).
\*----------------------------------------------------------------------------*/
::before,
::after {
text-decoration: inherit; /* 1 */
vertical-align: inherit; /* 2 */
}
/*----------------------------------------------------------------------------*\
1. Add the default cursor in all browsers (opinion).
2. Add a flattened line height in all browsers (opinion).
3. Use a 3-space tab width in all browsers (opinion).
4. Remove iOS tap highlight (opinion).
5. Prevent font size adjustments after orientation changes in iOS.
\*----------------------------------------------------------------------------*/
html {
cursor: default; /* 1 */
line-height: 1.4; /* 2 */
-moz-tab-size: 3; /* 3 */
tab-size: 3; /* 3 */
-webkit-tap-highlight-color: transparent; /* 4 */
-ms-text-size-adjust: 100%; /* 5 */
-webkit-text-size-adjust: 100%; /* 5 */
}
/*----------------------------------------------------------------------------*\
1. Set default font stack to leverage systom font (opinion)
2. Remove margin in all browsers. (opinion)
\*----------------------------------------------------------------------------*/
body {
font-family: system-ui,
-apple-system,
'Segoe UI',
Roboto,
Helvetica,
Arial,
sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji'; /* 1 */
margin: 0; /* 2 */
}
/*----------------------------------------------------------------------------*\
Correct the font sizes and margins on `h1` elements within `section` and
`article` contexts in Chrome, Firefox, and Safari
\*----------------------------------------------------------------------------*/
h1 {
font-size: 2em;
margin: 0.6875em 0;
}
/*----------------------------------------------------------------------------*\
1. Correct the inheritance of border color in Firefox.
2. Add the correct box sizing in Firefox.
\*----------------------------------------------------------------------------*/
hr {
color: inherit; /* 1 */
height: 0; /* 2 */
}
/*----------------------------------------------------------------------------*\
Remove the list style on navigation lists in all browsers (opinion).
\*----------------------------------------------------------------------------*/
nav ol,
nav ul {
list-style: none;
padding: 0;
}
/*----------------------------------------------------------------------------*\
1. Set default font stack to leverage systom font (opinion)
2. Correct the odd `em` font sizing in all browsers.
\*----------------------------------------------------------------------------*/
code,
kbd,
pre,
samp {
font-family: ui-monospace,
SFMono-Regular,
Consolas,
'Liberation Mono',
Menlo,
monospace; /* 1 */
font-size: 1em; /* 2 */
}
/*----------------------------------------------------------------------------*\
Add the correct text decoration in Edge, Opera, and Safari.
\*----------------------------------------------------------------------------*/
abbr[title] {
text-decoration: underline dotted;
}
/*----------------------------------------------------------------------------*\
Add the correct font weight in Chrome, Edge, and Safari.
\*----------------------------------------------------------------------------*/
b,
strong {
font-weight: bolder;
}
/*----------------------------------------------------------------------------*\
Correct the font size in all browsers.
\*----------------------------------------------------------------------------*/
small {
font-size: 83.3333%;
}
/*----------------------------------------------------------------------------*\
Stop 'sub' and 'sup' elements affecting line height in all browsers.
\*----------------------------------------------------------------------------*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/*----------------------------------------------------------------------------*\
Change the alignment on media elements in all browers (opinion).
\*----------------------------------------------------------------------------*/
audio,
canvas,
iframe,
img,
svg,
video {
vertical-align: middle;
}
/*----------------------------------------------------------------------------*\
Remove the border on iframes in all browsers (opinion).
\*----------------------------------------------------------------------------*/
img,
iframe {
border-style: none;
}
/*----------------------------------------------------------------------------*\
Set sensible defaults for img, svg (opinion/m).
\*----------------------------------------------------------------------------*/
img,
picture,
svg {
display: block;
max-width: 100%;
}
img {
height: auto;
}
figure {
margin: 0;
}
/*----------------------------------------------------------------------------*\
1. Remove border spacing in all browsers (opinion).
2. Correct table border color inheritance
3. Remove text indentation from table contents
\*----------------------------------------------------------------------------*/
table {
border-collapse: collapse; /* 1 */
border-color: inherit; /* 2 */
text-indent: 0; /* 3 */
}
/*----------------------------------------------------------------------------*\
1. Remove default styling (opinion).
2. Change the font styles in all browsers.
3. Remove the margin in Firefox and Safari.
4. Restore natural behaviour for inputs (opinion)
\*----------------------------------------------------------------------------*/
button,
input,
optgroup,
select,
textarea {
background-color: transparent; /* 1 */
border-style: none; /* 1 */
font-family: inherit; /* 2 */
font-size: inherit; /* 2 */
line-height: inherit; /* 2 */
margin: 0; /* 3 */
word-break: normal; /* 4 */
}
/*----------------------------------------------------------------------------*\
Remove the inheritance in Edge, Firefox.
\*----------------------------------------------------------------------------*/
button,
select {
text-transform: none;
}
/*----------------------------------------------------------------------------*\
1. Add cursor pointer by default (opinion).
2. Correct the inability to style clickable types in iOS and Safari.
\*----------------------------------------------------------------------------*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
cursor: pointer; /* 1 */
-webkit-appearance: button; /* 2 */
}
/*----------------------------------------------------------------------------*\
1. Change the inconsistent appearance in all browsers (opinion).
2. Correct the padding in Firefox.
\*----------------------------------------------------------------------------*/
fieldset {
border: 1px solid #c0c0c0; /* 1 */
padding: 0.35em 0.75em 0.625em; /* 2 */
}
/*----------------------------------------------------------------------------*\
Remove the padding so developers are not caught out when they zero out
`fieldset` elements in all browsers.
\*----------------------------------------------------------------------------*/
legend {
padding: 0;
}
/*----------------------------------------------------------------------------*\
Add the correct vertical alignment in Chrome, Firefox, and Opera.
\*----------------------------------------------------------------------------*/
progress {
vertical-align: baseline;
}
/*----------------------------------------------------------------------------*\
Change the resize direction on textareas in all browsers (opinion).
\*----------------------------------------------------------------------------*/
textarea {
resize: vertical;
}
/*----------------------------------------------------------------------------*\
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari
\*----------------------------------------------------------------------------*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/*----------------------------------------------------------------------------*\
Correct the cursor style on increment and decrement buttons in Chrome.
\*----------------------------------------------------------------------------*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
height: auto;
}
/*----------------------------------------------------------------------------*\
Remove the inner padding and cancel buttons in Chrome and Safari for macOS.
\*----------------------------------------------------------------------------*/
::-webkit-search-decoration {
-webkit-appearance: none;
}
/*----------------------------------------------------------------------------*\
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
\*----------------------------------------------------------------------------*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/*----------------------------------------------------------------------------*\
Remove the inner border and padding in Firefox.
\*----------------------------------------------------------------------------*/
::-moz-focus-inner {
border-style: none;
padding: 0;
}
/*----------------------------------------------------------------------------*\
1. Correct the focus styles unset by the previous rule.
\*----------------------------------------------------------------------------*/
:-moz-focusring {
outline: 1px dotted ButtonText;
}
/*----------------------------------------------------------------------------*\
Remove the additional :invalid styles in Firefox.
\*----------------------------------------------------------------------------*/
:-moz-ui-invalid {
box-shadow: none;
}
/*----------------------------------------------------------------------------*\
Add the correct display in all browsers.
\*----------------------------------------------------------------------------*/
summary {
display: list-item;
}