This repository was archived by the owner on Mar 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreset.css
More file actions
83 lines (70 loc) · 1.31 KB
/
Copy pathreset.css
File metadata and controls
83 lines (70 loc) · 1.31 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
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
padding: 0;
font: inherit;
}
html {
color-scheme: light dark;
hanging-punctuation: first last;
/* only supported in safari/webkit */
}
@supports not (hanging-punctuation: first last) {
blockquote p {
text-indent: var(--quote-width, -0.5em);
}
}
body {
min-height: 100svh;
}
img,
picture,
svg,
video {
display: block;
max-width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-wrap: balance;
/* Compatibility: https://caniuse.com/css-text-wrap-balance -> Not necessary, but nice to have */
}
p {
max-width: 75ch;
text-wrap: pretty;
/* Compatibility: https://caniuse.com/mdn-css_properties_text-wrap_pretty -> Not necessary, but nice to have */
}
a {
text-decoration: none;
color: inherit;
word-break: break-all;
}
a :not(a) {
word-break: normal;
}
@media (prefers-reduced-motion: no-preference) {
@supports not selector(:has(:target)) {
/* more compatible than :has(:target) */
html {
scroll-behavior: smooth;
scroll-padding-top: 3rem;
}
}
:has(:target) {
/* Compatibility: https://caniuse.com/css-has */
scroll-behavior: smooth;
scroll-padding-top: 3rem;
}
}
ul,
ol {
list-style: none;
}