-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreflight.css
More file actions
137 lines (116 loc) · 2.19 KB
/
preflight.css
File metadata and controls
137 lines (116 loc) · 2.19 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/**
* LINCD Custom Preflight
*
* A modified version of Tailwind's preflight that excludes the problematic
* #\# specificity hack selectors, making it compatible with legacy CSS.
*
* Based on Tailwind v4 preflight but with sensible :not() exclusions
* to preserve inline element styles.
*/
@layer base {
/* Reset all elements except common inline tags and semantic containers */
*:not(code):not(pre):not(kbd):not(samp):not(mark):not(q):not(ins):not(del):not(span):not(a):not(b):not(i):not(em):not(u):not(s):not(small):not(strong):not(sub):not(sup),
::before,
::after {
box-sizing: border-box;
margin: 0;
padding: 0;
border-width: 0;
border-style: solid;
border-color: currentColor;
}
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
font-family: system-ui, sans-serif;
}
body {
margin: 0;
line-height: inherit;
background-color: white;
}
hr {
height: 0;
color: inherit;
border-top-width: 1px;
}
abbr {
text-decoration: underline dotted;
}
b,
strong {
font-weight: bolder;
}
code,
kbd,
samp,
pre {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 1em;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
table {
text-indent: 0;
border-color: inherit;
border-collapse: collapse;
}
button,
input,
optgroup,
select,
textarea {
font: inherit;
color: inherit;
margin: 0;
padding: 0;
line-height: inherit;
background-color: transparent;
border-color: inherit;
}
button,
select {
text-transform: none;
}
button,
[type='button'],
[type='reset'],
[type='submit'] {
-webkit-appearance: button;
appearance: button;
}
::-moz-focus-inner {
border-style: none;
padding: 0;
}
:-moz-focusring {
outline: auto;
}
:-moz-ui-invalid {
box-shadow: none;
}
fieldset {
margin: 0;
padding: 0;
border: 0;
}
legend {
padding: 0;
}
}