typewritingclass 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -3
- package/preflight.css +203 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typewritingclass",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -137,13 +137,15 @@
|
|
|
137
137
|
"types": "./dist/rule.d.cts",
|
|
138
138
|
"default": "./dist/rule.cjs"
|
|
139
139
|
}
|
|
140
|
-
}
|
|
140
|
+
},
|
|
141
|
+
"./preflight.css": "./preflight.css"
|
|
141
142
|
},
|
|
142
143
|
"main": "./dist/index.cjs",
|
|
143
144
|
"module": "./dist/index.js",
|
|
144
145
|
"types": "./dist/index.d.ts",
|
|
145
146
|
"files": [
|
|
146
|
-
"dist"
|
|
147
|
+
"dist",
|
|
148
|
+
"preflight.css"
|
|
147
149
|
],
|
|
148
150
|
"devDependencies": {
|
|
149
151
|
"vitest": "^3.0.4",
|
package/preflight.css
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* typewritingclass preflight
|
|
3
|
+
* A comprehensive CSS reset inspired by Tailwind's preflight.
|
|
4
|
+
* Import: import 'typewritingclass/preflight.css'
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
*,
|
|
8
|
+
*::before,
|
|
9
|
+
*::after {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
border-width: 0;
|
|
12
|
+
border-style: solid;
|
|
13
|
+
border-color: currentColor;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
* {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
html {
|
|
22
|
+
line-height: 1.5;
|
|
23
|
+
-webkit-text-size-adjust: 100%;
|
|
24
|
+
-moz-tab-size: 4;
|
|
25
|
+
tab-size: 4;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
body {
|
|
29
|
+
line-height: inherit;
|
|
30
|
+
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
hr {
|
|
34
|
+
height: 0;
|
|
35
|
+
color: inherit;
|
|
36
|
+
border-top-width: 1px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
h1,
|
|
40
|
+
h2,
|
|
41
|
+
h3,
|
|
42
|
+
h4,
|
|
43
|
+
h5,
|
|
44
|
+
h6 {
|
|
45
|
+
font-size: inherit;
|
|
46
|
+
font-weight: inherit;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
a {
|
|
50
|
+
color: inherit;
|
|
51
|
+
text-decoration: inherit;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
b,
|
|
55
|
+
strong {
|
|
56
|
+
font-weight: bolder;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
code,
|
|
60
|
+
kbd,
|
|
61
|
+
samp,
|
|
62
|
+
pre {
|
|
63
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
64
|
+
font-size: 1em;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
small {
|
|
68
|
+
font-size: 80%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
sub,
|
|
72
|
+
sup {
|
|
73
|
+
font-size: 75%;
|
|
74
|
+
line-height: 0;
|
|
75
|
+
position: relative;
|
|
76
|
+
vertical-align: baseline;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
sub {
|
|
80
|
+
bottom: -0.25em;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
sup {
|
|
84
|
+
top: -0.5em;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
table {
|
|
88
|
+
text-indent: 0;
|
|
89
|
+
border-color: inherit;
|
|
90
|
+
border-collapse: collapse;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
button,
|
|
94
|
+
input,
|
|
95
|
+
optgroup,
|
|
96
|
+
select,
|
|
97
|
+
textarea {
|
|
98
|
+
font-family: inherit;
|
|
99
|
+
font-feature-settings: inherit;
|
|
100
|
+
font-variation-settings: inherit;
|
|
101
|
+
font-size: 100%;
|
|
102
|
+
font-weight: inherit;
|
|
103
|
+
line-height: inherit;
|
|
104
|
+
letter-spacing: inherit;
|
|
105
|
+
color: inherit;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
button,
|
|
109
|
+
select {
|
|
110
|
+
text-transform: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
button,
|
|
114
|
+
input:where([type='button']),
|
|
115
|
+
input:where([type='reset']),
|
|
116
|
+
input:where([type='submit']) {
|
|
117
|
+
-webkit-appearance: button;
|
|
118
|
+
appearance: button;
|
|
119
|
+
background-color: transparent;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:-moz-focusring {
|
|
123
|
+
outline: auto;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:-moz-ui-invalid {
|
|
127
|
+
box-shadow: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
progress {
|
|
131
|
+
vertical-align: baseline;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
::-webkit-inner-spin-button,
|
|
135
|
+
::-webkit-outer-spin-button {
|
|
136
|
+
height: auto;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[type='search'] {
|
|
140
|
+
-webkit-appearance: textfield;
|
|
141
|
+
appearance: textfield;
|
|
142
|
+
outline-offset: -2px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
::-webkit-search-decoration {
|
|
146
|
+
-webkit-appearance: none;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
::-webkit-file-upload-button {
|
|
150
|
+
-webkit-appearance: button;
|
|
151
|
+
font: inherit;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
summary {
|
|
155
|
+
display: list-item;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
ol,
|
|
159
|
+
ul,
|
|
160
|
+
menu {
|
|
161
|
+
list-style: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
textarea {
|
|
165
|
+
resize: vertical;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
input::placeholder,
|
|
169
|
+
textarea::placeholder {
|
|
170
|
+
opacity: 1;
|
|
171
|
+
color: #9ca3af;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
button,
|
|
175
|
+
[role='button'] {
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
:disabled {
|
|
180
|
+
cursor: default;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
img,
|
|
184
|
+
svg,
|
|
185
|
+
video,
|
|
186
|
+
canvas,
|
|
187
|
+
audio,
|
|
188
|
+
iframe,
|
|
189
|
+
embed,
|
|
190
|
+
object {
|
|
191
|
+
display: block;
|
|
192
|
+
vertical-align: middle;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
img,
|
|
196
|
+
video {
|
|
197
|
+
max-width: 100%;
|
|
198
|
+
height: auto;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
[hidden] {
|
|
202
|
+
display: none !important;
|
|
203
|
+
}
|