-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresetti.css
164 lines (144 loc) · 2.32 KB
/
resetti.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
/* Make some useful variables available in the global scope */
:root {
--system-fonts: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
code,
pre,
ol,
ul,
li,
dl,
dt,
dd,
img,
figure,
figcaption,
audio,
video,
canvas,
iframe,
details,
summary,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
margin: 0;
}
html {
font-size: var(--root-font-size);
line-height: 1.5;
scroll-behavior: smooth;
}
*,
::before,
::after {
box-sizing: border-box;
}
/* Elements
* *********************************** */
/* Taken from CSS Remedy (https://github.com/mozdevs/cssremedy):
> Some user agents stylesheets customize header styles when they are within elements like aside, article, nav, or section. This switches to rem units for headings. The initial values are based on existing browser defaults.
*/
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.17rem; }
h4 { font-size: 1.00rem; }
h5 { font-size: 0.83rem; }
h6 { font-size: 0.67rem; }
abbr[title] {
text-decoration: underline;
text-decoration: underline dotted;
cursor: help;
border-bottom: 0;
}
hr {
border-style: solid;
border-width: 1px 0 0;
color: inherit;
height: 0;
overflow: visible;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
vertical-align: middle;
max-width: 100%;
}
img,
svg,
video,
canvas {
height: auto;
}
summary {
display: list-item;
cursor: pointer;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
pre {
white-space: pre-wrap;
}
/* Forms
* *********************************** */
[type='search']::-webkit-search-decoration {
appearance: none;
}
/* Attributes & states
* *********************************** */
[hidden] {
display: none !important;
}
:focus:not(:focus-visible) {
outline: none;
}
/* User interaction
* *********************************** */
/* Pointer cursor for buttons */
input[type='button'],
button {
cursor: pointer;
}
[disabled] {
cursor: not-allowed;
}
/* Remove the tapping delay on clickable elements in all browsers. */
a,
area,
button,
input,
label,
select,
summary,
textarea,
details,
[tabindex] {
-ms-touch-action: manipulation;
touch-action: manipulation;
}