-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.scss
120 lines (103 loc) · 2.16 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
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
/* Prevent font size inflation */
html {
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
// Remove default margin
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
margin: 0;
}
// Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed
ul[role='list'],
ol[role='list'] {
list-style: none;
}
// Reset margin and padding on lists
ul,
ol {
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
&:not([class]) {
padding-left: 1.25em;
}
}
// Bullets and numbering match text color
li::marker {
color: currentColor;
}
// Set core root defaults
html:focus-within {
scroll-behavior: smooth;
}
// Set core body defaults
body {
min-height: 100vh;
text-rendering: optimizeSpeed;
// This CSS disables the default “subpixel antialiasing” on macOS (only macOS, not iOS and no other OS) that is
// only enabled in web browsers. Text is rendered visually lighter as a result and the result is closer in weight
// to all other operating systems.
-webkit-font-smoothing: antialiased;
}
// Anchor elements that don't have a class get default styles
a:not([class]) {
text-decoration-skip-ink: auto;
}
// Make images easier to work with
img,
picture {
display: block;
max-width: 100%;
height: auto;
}
// Inherit fonts for inputs and buttons
input,
button,
textarea,
select {
font-family: inherit;
font-size: inherit;
}
// Sensible table basics
table {
width: 100%;
border: 0;
border-collapse: collapse;
border-spacing: 0;
}
// Hidden means hidden
[hidden] {
display: none !important;
}
// Remove all animations, transitions and smooth scroll for people that prefer not to see them
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behavior: auto;
}
*,
*::before,
*::after {
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
}
}