-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathreset.css
More file actions
107 lines (91 loc) · 1.61 KB
/
Copy pathreset.css
File metadata and controls
107 lines (91 loc) · 1.61 KB
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
@layer reset {
/*
* Modern CSS Reset
* @link https://github.com/hankchizljaw/modern-css-reset
*/
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
}
p,
li,
h1,
h2,
h3,
h4 {
/* Help prevent overflow of long words/names/URLs */
word-break: break-word;
/* Optional, not supported for all languages */
/* hyphens: auto; */
}
html,
body {
overflow-x: clip;
}
html {
/* scroll-behavior: smooth; */
}
/* Set core body defaults */
body {
min-height: 100dvh;
font-family: sans-serif;
font-size: 100%;
line-height: 1.5;
text-rendering: optimizeSpeed;
}
/* Make images easier to work with */
img {
display: block;
max-inline-size: 100%;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font: inherit;
}
button {
cursor: pointer;
}
summary {
&::-webkit-details-marker {
display: none;
}
&::marker {
content: "";
}
}
/* Remove all animations and transitions for people that prefer not to see them */
html[data-motion="reduce"] {
& *,
& *::before,
& *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
scroll-behavior: initial;
}
dialog {
border: 0;
padding: 0;
&:where(:focus-visible):focus,
&:where(:focus-visible):active {
outline: 0;
}
}
}