-
Notifications
You must be signed in to change notification settings - Fork 0
/
reset.css
140 lines (118 loc) · 2.58 KB
/
reset.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
/*
--------------------------------------
Brian Poblete's CSS Reset
Inspired by Josh Comeau's CSS Reset, Andy Bell's CSS Reset,
and Kevin Powell's recommendations.
https://www.joshwcomeau.com/css/custom-css-reset/
https://andy-bell.co.uk/a-modern-css-reset/
https://piccalil.li/blog/a-more-modern-css-reset/
https://www.youtube.com/watch?v=cCAtD_BAHNw
CDN Links:
https://cdn.jsdelivr.net/gh/brian-pob/utilities/reset.min.css
https://cdn.jsdelivr.net/gh/brian-pob/utilities/reset.css
---------------------------------------
*/
/* Set border-box for more consistent sizing */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Nuke default margins. */
* {
margin: 0;
}
/* You may want to remove paddings and set min-width for everything too. */
/* * {
padding: 0;
min-width: 0;
} */
/* Inherit fonts for input related elements. */
input, button, textarea, select {
font: inherit;
}
/* Set a min-height as small viewport height for mobile browser.*/
/* Fallbacks for unsupported browsers. */
html,
body {
min-height: 100%;
min-height: 100dvh;
min-height: 100svh;
}
/* Enabled color scheme. Enable hanging punctuation for supported browsers. */
html {
color-scheme: dark light;
hanging-punctuation: first last;
}
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeSpeed;
}
/* 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;
}
/* Set core root defaults */
html:focus-within {
scroll-behavior: smooth;
}
/* Make styling media more consistent */
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
/* Allow breaking in middle of long words. */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/* Multi-line headers have even lines. */
h1,
h2,
h3,
h4,
h5,
h6 {
text-wrap: balance;
}
/* Prevent orphans in normal text. */
li,
p {
text-wrap: pretty;
}
/* Smooth scroll for jumping within a page. */
@media (prefers-reduced-motion: no-preference) {
:has(:target) {
scroll-behavior: smooth;
}
}
/* 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 {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* Creates a new stacking context. */
#root,
#__next {
isolation: isolate;
}