-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathreset.css
More file actions
122 lines (100 loc) · 2.63 KB
/
reset.css
File metadata and controls
122 lines (100 loc) · 2.63 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/*https://useaxentix.com/blog/css/css-reset-complete-guide/*/
/* ===============================================
Ultimate Modern CSS Reset
Based on best practices from Eric Meyer,
Josh W. Comeau, Andy Bell, and modern standards
=============================================== */
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
box-sizing: border-box;
}
/* 2. Remove default margin and padding */
* {
margin: 0;
padding: 0;
}
/* 3. Set core body defaults */
body {
min-height: 100vh;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* 4. Remove list styles on ul, ol elements with a list role */
ul[role='list'], ol[role='list'] {
list-style: none;
}
/* 5. Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4, button, input, label {
line-height: 1.1;
}
/* 6. Balance text wrapping on headings */
h1, h2, h3, h4 {
text-wrap: balance;
}
/* 7. Improve text rendering and wrapping */
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
p {
text-wrap: pretty;
}
/* 8. A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
color: currentColor;
}
/* 9. Make images and media easier to work with */
img, picture, video, canvas, svg {
display: block;
}
/* 10. Inherit fonts for inputs and buttons */
input, button, textarea, select {
font: inherit;
}
/* 11. Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
min-height: 10em;
}
/* 12. Anything that has been anchored to should have extra scroll margin */
:target {
scroll-margin-block: 5ex;
}
/* 13. Root stacking context */
#root, #__next {
isolation: isolate;
}
/* 14. Enable keyword animations for modern browsers */
@media (prefers-reduced-motion: no-preference) {
html {
interpolate-size: allow-keywords;
}
}
/* 15. HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
/* 16. Remove quotes from blockquotes and q elements */
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
/* 17. Table border collapse */
table {
border-collapse: collapse;
border-spacing: 0;
}
/* 18. Focus management for accessibility */
:focus-visible {
outline: 2px solid currentColor;
outline-offset: 2px;
}
/* 19. Remove focus outline for mouse users */
:focus:not(:focus-visible) {
outline: none;
}