@eqtylab/equality 2.5.0 → 3.0.0
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/dist/global-theme-config.css +9 -1
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/theme-preflight-global.css +229 -222
- package/dist/theme-preflight-scoped.css +229 -223
- package/dist/theme.module.css +1 -1
- package/dist/theme.module.module.css.module.css +37 -37
- package/package.json +6 -3
|
@@ -1,259 +1,265 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
/* =========================================================
|
|
2
|
+
SCOPED PREFLIGHT — CANONICAL SOURCE
|
|
3
|
+
|
|
4
|
+
Edit this file. `theme-preflight-global.css` is generated from it by
|
|
5
|
+
`src/scripts/build-preflight.js`, which swaps `[data-equality-root]` for
|
|
6
|
+
`html`. Run `pnpm build:preflight` after changing anything here.
|
|
7
|
+
|
|
8
|
+
Deliberately carries no `@layer` wrapper: the importer assigns the layer,
|
|
9
|
+
so a consumer can place the reset wherever their cascade needs it.
|
|
10
|
+
|
|
11
|
+
@import '@eqtylab/equality/preflight-scoped.css' layer(base);
|
|
12
|
+
========================================================= */
|
|
13
|
+
|
|
14
|
+
/* 1) Box model + resets + border-color */
|
|
15
|
+
[data-equality-root],
|
|
16
|
+
[data-equality-root] *,
|
|
17
|
+
[data-equality-root] ::after,
|
|
18
|
+
[data-equality-root] ::before,
|
|
19
|
+
[data-equality-root] ::backdrop,
|
|
20
|
+
[data-equality-root] ::file-selector-button {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
border: 0 solid;
|
|
25
|
+
border-color: var(--color-border);
|
|
26
|
+
}
|
|
19
27
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
/* Cursor for buttons */
|
|
29
|
+
[data-equality-root] button {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
24
32
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
/* Typography + platform defaults */
|
|
34
|
+
[data-equality-root] {
|
|
35
|
+
line-height: 1.5;
|
|
36
|
+
-webkit-text-size-adjust: 100%;
|
|
37
|
+
tab-size: 4;
|
|
38
|
+
font-family: var(--font-sans);
|
|
39
|
+
-webkit-tap-highlight-color: transparent;
|
|
40
|
+
font-synthesis: none;
|
|
41
|
+
text-rendering: optimizeLegibility;
|
|
42
|
+
-webkit-font-smoothing: antialiased;
|
|
43
|
+
-moz-osx-font-smoothing: grayscale;
|
|
44
|
+
}
|
|
37
45
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
/* Horizontal rule */
|
|
47
|
+
[data-equality-root] hr {
|
|
48
|
+
height: 0;
|
|
49
|
+
color: inherit;
|
|
50
|
+
border-top-width: 1px;
|
|
51
|
+
}
|
|
44
52
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
/* Abbr */
|
|
54
|
+
[data-equality-root] abbr:where([title]) {
|
|
55
|
+
-webkit-text-decoration: underline dotted;
|
|
56
|
+
text-decoration: underline dotted;
|
|
57
|
+
}
|
|
50
58
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
/* Headings reset */
|
|
60
|
+
[data-equality-root] h1,
|
|
61
|
+
[data-equality-root] h2,
|
|
62
|
+
[data-equality-root] h3,
|
|
63
|
+
[data-equality-root] h4,
|
|
64
|
+
[data-equality-root] h5,
|
|
65
|
+
[data-equality-root] h6 {
|
|
66
|
+
font-size: inherit;
|
|
67
|
+
font-weight: inherit;
|
|
68
|
+
}
|
|
61
69
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
/* Links */
|
|
71
|
+
[data-equality-root] a {
|
|
72
|
+
color: inherit;
|
|
73
|
+
-webkit-text-decoration: inherit;
|
|
74
|
+
text-decoration: inherit;
|
|
75
|
+
}
|
|
68
76
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
/* Strong */
|
|
78
|
+
[data-equality-root] b,
|
|
79
|
+
[data-equality-root] strong {
|
|
80
|
+
font-weight: bolder;
|
|
81
|
+
}
|
|
74
82
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
/* Code fonts */
|
|
84
|
+
[data-equality-root] code,
|
|
85
|
+
[data-equality-root] kbd,
|
|
86
|
+
[data-equality-root] samp,
|
|
87
|
+
[data-equality-root] pre {
|
|
88
|
+
font-family: var(--font-mono), monospace;
|
|
89
|
+
font-size: 1em;
|
|
90
|
+
}
|
|
83
91
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
/* Small */
|
|
93
|
+
[data-equality-root] small {
|
|
94
|
+
font-size: 80%;
|
|
95
|
+
}
|
|
88
96
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
/* Sub/Sup */
|
|
98
|
+
[data-equality-root] sub,
|
|
99
|
+
[data-equality-root] sup {
|
|
100
|
+
font-size: 75%;
|
|
101
|
+
line-height: 0;
|
|
102
|
+
position: relative;
|
|
103
|
+
vertical-align: baseline;
|
|
104
|
+
}
|
|
105
|
+
[data-equality-root] sub {
|
|
106
|
+
bottom: -0.25em;
|
|
107
|
+
}
|
|
108
|
+
[data-equality-root] sup {
|
|
109
|
+
top: -0.5em;
|
|
110
|
+
}
|
|
103
111
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
112
|
+
/* Tables */
|
|
113
|
+
[data-equality-root] table {
|
|
114
|
+
text-indent: 0;
|
|
115
|
+
border-color: inherit;
|
|
116
|
+
border-collapse: collapse;
|
|
117
|
+
}
|
|
110
118
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
119
|
+
/* Firefox focus */
|
|
120
|
+
[data-equality-root] :-moz-focusring {
|
|
121
|
+
outline: auto;
|
|
122
|
+
}
|
|
115
123
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
124
|
+
/* Progress baseline */
|
|
125
|
+
[data-equality-root] progress {
|
|
126
|
+
vertical-align: baseline;
|
|
127
|
+
}
|
|
120
128
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
129
|
+
/* Summary display */
|
|
130
|
+
[data-equality-root] summary {
|
|
131
|
+
display: list-item;
|
|
132
|
+
}
|
|
125
133
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
134
|
+
/* Lists unstyled */
|
|
135
|
+
[data-equality-root] ol,
|
|
136
|
+
[data-equality-root] ul,
|
|
137
|
+
[data-equality-root] menu {
|
|
138
|
+
list-style: none;
|
|
139
|
+
}
|
|
132
140
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
/* Replaced elements */
|
|
142
|
+
[data-equality-root] img,
|
|
143
|
+
[data-equality-root] svg,
|
|
144
|
+
[data-equality-root] video,
|
|
145
|
+
[data-equality-root] canvas,
|
|
146
|
+
[data-equality-root] audio,
|
|
147
|
+
[data-equality-root] iframe,
|
|
148
|
+
[data-equality-root] embed,
|
|
149
|
+
[data-equality-root] object {
|
|
150
|
+
display: block;
|
|
151
|
+
vertical-align: middle;
|
|
152
|
+
}
|
|
145
153
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
154
|
+
/* Media constraints */
|
|
155
|
+
[data-equality-root] img,
|
|
156
|
+
[data-equality-root] video {
|
|
157
|
+
max-width: 100%;
|
|
158
|
+
height: auto;
|
|
159
|
+
}
|
|
152
160
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
161
|
+
/* Form element normalizations */
|
|
162
|
+
[data-equality-root] button,
|
|
163
|
+
[data-equality-root] input,
|
|
164
|
+
[data-equality-root] select,
|
|
165
|
+
[data-equality-root] optgroup,
|
|
166
|
+
[data-equality-root] textarea,
|
|
167
|
+
[data-equality-root] ::file-selector-button {
|
|
168
|
+
font: inherit;
|
|
169
|
+
font-feature-settings: inherit;
|
|
170
|
+
font-variation-settings: inherit;
|
|
171
|
+
letter-spacing: inherit;
|
|
172
|
+
color: inherit;
|
|
173
|
+
border-radius: 0;
|
|
174
|
+
background-color: transparent;
|
|
175
|
+
opacity: 1;
|
|
176
|
+
}
|
|
169
177
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
178
|
+
/* Select optgroup weight */
|
|
179
|
+
[data-equality-root] :where(select:is([multiple], [size])) optgroup {
|
|
180
|
+
font-weight: bolder;
|
|
181
|
+
}
|
|
174
182
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
183
|
+
/* Select optgroup option indent */
|
|
184
|
+
[data-equality-root] :where(select:is([multiple], [size])) optgroup option {
|
|
185
|
+
padding-inline-start: 20px;
|
|
186
|
+
}
|
|
179
187
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
188
|
+
/* File button spacing */
|
|
189
|
+
[data-equality-root] ::file-selector-button {
|
|
190
|
+
margin-inline-end: 4px;
|
|
191
|
+
}
|
|
184
192
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
193
|
+
/* Placeholder */
|
|
194
|
+
[data-equality-root] ::placeholder {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
}
|
|
189
197
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
198
|
+
@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
|
|
199
|
+
[data-equality-root] ::placeholder {
|
|
200
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
194
201
|
}
|
|
202
|
+
}
|
|
195
203
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
204
|
+
/* Textarea resize */
|
|
205
|
+
[data-equality-root] textarea {
|
|
206
|
+
resize: vertical;
|
|
207
|
+
}
|
|
200
208
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
209
|
+
/* WebKit search decoration */
|
|
210
|
+
[data-equality-root] ::-webkit-search-decoration {
|
|
211
|
+
-webkit-appearance: none;
|
|
212
|
+
}
|
|
205
213
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
214
|
+
/* iOS date/time */
|
|
215
|
+
[data-equality-root] ::-webkit-date-and-time-value {
|
|
216
|
+
min-height: 1lh;
|
|
217
|
+
text-align: inherit;
|
|
218
|
+
}
|
|
211
219
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
220
|
+
[data-equality-root] ::-webkit-datetime-edit {
|
|
221
|
+
display: inline-flex;
|
|
222
|
+
}
|
|
215
223
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
224
|
+
[data-equality-root] ::-webkit-datetime-edit-fields-wrapper {
|
|
225
|
+
padding: 0;
|
|
226
|
+
}
|
|
219
227
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
[data-equality-root] ::-webkit-datetime-edit,
|
|
229
|
+
[data-equality-root] ::-webkit-datetime-edit-year-field,
|
|
230
|
+
[data-equality-root] ::-webkit-datetime-edit-month-field,
|
|
231
|
+
[data-equality-root] ::-webkit-datetime-edit-day-field,
|
|
232
|
+
[data-equality-root] ::-webkit-datetime-edit-hour-field,
|
|
233
|
+
[data-equality-root] ::-webkit-datetime-edit-minute-field,
|
|
234
|
+
[data-equality-root] ::-webkit-datetime-edit-second-field,
|
|
235
|
+
[data-equality-root] ::-webkit-datetime-edit-millisecond-field,
|
|
236
|
+
[data-equality-root] ::-webkit-datetime-edit-meridiem-field {
|
|
237
|
+
padding-block: 0;
|
|
238
|
+
}
|
|
231
239
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
240
|
+
[data-equality-root] ::-webkit-calendar-picker-indicator {
|
|
241
|
+
line-height: 1;
|
|
242
|
+
}
|
|
235
243
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
244
|
+
/* Firefox invalid */
|
|
245
|
+
[data-equality-root] :-moz-ui-invalid {
|
|
246
|
+
box-shadow: none;
|
|
247
|
+
}
|
|
240
248
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
:
|
|
246
|
-
|
|
247
|
-
}
|
|
249
|
+
/* Button appearances */
|
|
250
|
+
[data-equality-root] button,
|
|
251
|
+
[data-equality-root] input:where([type='button'], [type='reset'], [type='submit']),
|
|
252
|
+
[data-equality-root] ::file-selector-button {
|
|
253
|
+
appearance: button;
|
|
254
|
+
}
|
|
248
255
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
256
|
+
/* Safari spin buttons */
|
|
257
|
+
[data-equality-root] ::-webkit-inner-spin-button,
|
|
258
|
+
[data-equality-root] ::-webkit-outer-spin-button {
|
|
259
|
+
height: auto;
|
|
260
|
+
}
|
|
254
261
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
262
|
+
/* Hidden */
|
|
263
|
+
[data-equality-root] [hidden]:where(:not([hidden='until-found'])) {
|
|
264
|
+
display: none !important;
|
|
259
265
|
}
|
package/dist/theme.module.css
CHANGED