Skip to content

Commit 2ff87bf

Browse files
committed
build
1 parent 0e32d00 commit 2ff87bf

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

flexbox-reset.css

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ video {
9898
text-decoration: none;
9999
vertical-align: baseline;
100100
}
101+
*,
102+
*::before,
103+
*::after {
104+
box-sizing: border-box;
105+
}
101106
a,
102107
abbr,
103108
acronym,
@@ -154,7 +159,6 @@ textarea {
154159
display: none;
155160
}
156161
a,
157-
a:link,
158162
a:visited,
159163
a:hover,
160164
a:active {
@@ -184,6 +188,12 @@ q::after {
184188
content: '';
185189
content: none;
186190
}
191+
caption {
192+
display: table-caption;
193+
}
194+
html:focus-within {
195+
scroll-behavior: smooth;
196+
}
187197
input[type=date],
188198
input[type=datetime-local],
189199
input[type=file],
@@ -193,11 +203,15 @@ input[type=week],
193203
select {
194204
flex-direction: row;
195205
}
196-
ol,
197-
ul {
206+
picture {
207+
display: block;
208+
}
209+
ol[role='list'],
210+
ul[role='list'] {
198211
list-style: none;
199212
}
200213
table {
214+
border-collapse: collapse;
201215
border-spacing: 0;
202216
display: table;
203217
}
@@ -214,3 +228,17 @@ thead {
214228
tr {
215229
display: table-row;
216230
}
231+
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
232+
@media (prefers-reduced-motion: reduce) {
233+
html:focus-within {
234+
scroll-behavior: auto;
235+
}
236+
*,
237+
*::before,
238+
*::after {
239+
animation-duration: 0.01ms !important;
240+
animation-iteration-count: 1 !important;
241+
scroll-behavior: auto !important;
242+
transition-duration: 0.01ms !important;
243+
}
244+
}

0 commit comments

Comments
 (0)