@eqtylab/equality 5.1.1 → 5.3.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/CHANGELOG.md +63 -0
- package/dist/button.module.module.css.module.css +5 -0
- package/dist/index.cjs +198 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -19
- package/dist/index.d.ts +60 -19
- package/dist/index.js +197 -54
- package/dist/index.js.map +1 -1
- package/dist/nav-list.module.module.css.module.css +210 -16
- package/dist/nav.module.module.css.module.css +18 -12
- package/dist/theme-decisions-scoped.css +13 -0
- package/dist/theme-decisions.css +13 -0
- package/dist/theme.module.module.css.module.css +10 -0
- package/package.json +1 -1
|
@@ -2,22 +2,20 @@
|
|
|
2
2
|
.nav-list {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
+
gap: var(--eq-list-gap);
|
|
5
6
|
background-color: inherit;
|
|
6
7
|
}
|
|
7
8
|
.nav-list-group {
|
|
8
9
|
display: flex;
|
|
9
10
|
flex-direction: column;
|
|
10
11
|
gap: var(--eq-list-label-gap);
|
|
11
|
-
padding-top: var(--eq-list-group-gap);
|
|
12
|
-
}
|
|
13
|
-
.nav-list-group--unlabelled {
|
|
14
|
-
padding-top: calc(0.25rem * 0);
|
|
15
12
|
}
|
|
16
13
|
.nav-list-group-label {
|
|
17
14
|
display: flex;
|
|
18
15
|
align-items: center;
|
|
19
16
|
gap: calc(0.25rem * 2);
|
|
20
17
|
padding-inline: var(--eq-list-item-padding-x);
|
|
18
|
+
padding-top: calc(var(--eq-list-group-gap) - var(--eq-list-gap));
|
|
21
19
|
font-size: var(--eq-list-label-font-size);
|
|
22
20
|
--tw-font-weight: 500;
|
|
23
21
|
font-weight: 500;
|
|
@@ -43,14 +41,17 @@
|
|
|
43
41
|
border-left-width: 1px;
|
|
44
42
|
border-color: var(--color-border-raised, color(display-p3 0.7383 0.7441 0.751));
|
|
45
43
|
}
|
|
46
|
-
.nav-list-items:has(
|
|
44
|
+
.nav-list-items:has(
|
|
45
|
+
> li
|
|
46
|
+
> :is([data-slot='nav-list-item'], [data-slot='nav-list-expandable-trigger'])
|
|
47
|
+
> .nav-list-item-prefix
|
|
48
|
+
)
|
|
47
49
|
> li
|
|
48
|
-
.nav-list-items[data-depth='1'] {
|
|
50
|
+
.nav-list-items[data-depth='1']:not(.nav-list-expandable-items) {
|
|
49
51
|
margin-left: calc(var(--eq-list-item-icon-size) + var(--eq-list-item-gap));
|
|
50
52
|
}
|
|
51
53
|
.nav-list-separator {
|
|
52
54
|
margin: calc(0.25rem * 0);
|
|
53
|
-
margin-top: var(--eq-list-group-gap);
|
|
54
55
|
height: calc(0.25rem * 0);
|
|
55
56
|
flex-shrink: 0;
|
|
56
57
|
border-style: var(--tw-border-style);
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
border-top-style: var(--tw-border-style);
|
|
59
60
|
border-top-width: 1px;
|
|
60
61
|
border-color: var(--color-border-raised, color(display-p3 0.7383 0.7441 0.751));
|
|
62
|
+
margin-top: calc(var(--eq-list-group-gap) - var(--eq-list-gap));
|
|
61
63
|
}
|
|
62
64
|
.nav-list-separator:first-child,
|
|
63
65
|
.nav-list-separator:last-child {
|
|
@@ -117,9 +119,17 @@
|
|
|
117
119
|
flex-shrink: 0;
|
|
118
120
|
align-items: center;
|
|
119
121
|
}
|
|
120
|
-
.nav-list-item
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
.nav-list-item-muted {
|
|
123
|
+
color: var(--eq-list-item-muted-color);
|
|
124
|
+
}
|
|
125
|
+
@media (hover: hover) {
|
|
126
|
+
.nav-list-item:hover {
|
|
127
|
+
background-color: var(--color-list-item-hover);
|
|
128
|
+
color: var(--color-text-primary, color(display-p3 0 0 0));
|
|
129
|
+
}
|
|
130
|
+
.nav-list-item:hover .nav-list-item-muted {
|
|
131
|
+
color: currentColor;
|
|
132
|
+
}
|
|
123
133
|
}
|
|
124
134
|
.nav-list-item[aria-current='page'],
|
|
125
135
|
.nav-list-item[data-current='page'] {
|
|
@@ -128,10 +138,133 @@
|
|
|
128
138
|
font-weight: 500;
|
|
129
139
|
color: var(--color-text-primary, color(display-p3 0 0 0));
|
|
130
140
|
}
|
|
141
|
+
.nav-list-item[aria-current='page'] .nav-list-item-muted,
|
|
142
|
+
.nav-list-item[data-current='page'] .nav-list-item-muted,
|
|
143
|
+
.nav-list-expandable[data-state='closed']:has(:is([aria-current='page'], [data-current='page']))
|
|
144
|
+
> .nav-list-expandable-trigger
|
|
145
|
+
.nav-list-item-muted {
|
|
146
|
+
color: currentColor;
|
|
147
|
+
}
|
|
131
148
|
.nav-list-item:focus-visible {
|
|
132
149
|
outline: 2px solid var(--color-focus-ring);
|
|
133
150
|
outline-offset: 2px;
|
|
134
151
|
}
|
|
152
|
+
.nav-list-expandable-panel {
|
|
153
|
+
margin: calc(0.25rem * -1);
|
|
154
|
+
display: grid;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
padding: calc(0.25rem * 1);
|
|
157
|
+
grid-template-rows: 1fr;
|
|
158
|
+
transition: grid-template-rows var(--eq-nav-motion-duration) var(--eq-nav-motion-ease),
|
|
159
|
+
visibility 0s;
|
|
160
|
+
}
|
|
161
|
+
.nav-list-expandable[data-state='closed'] > .nav-list-expandable-panel {
|
|
162
|
+
grid-template-rows: 0fr;
|
|
163
|
+
visibility: hidden;
|
|
164
|
+
transition: grid-template-rows var(--eq-nav-motion-duration) var(--eq-nav-motion-ease),
|
|
165
|
+
visibility 0s var(--eq-nav-motion-duration);
|
|
166
|
+
}
|
|
167
|
+
.nav-list-expandable-content > .nav-list-items {
|
|
168
|
+
transition: opacity var(--eq-nav-motion-duration) var(--eq-nav-motion-ease),
|
|
169
|
+
translate var(--eq-nav-motion-duration) var(--eq-nav-motion-ease);
|
|
170
|
+
}
|
|
171
|
+
.nav-list-expandable[data-state='closed']
|
|
172
|
+
> .nav-list-expandable-panel
|
|
173
|
+
> .nav-list-expandable-content
|
|
174
|
+
> .nav-list-items {
|
|
175
|
+
opacity: 0;
|
|
176
|
+
translate: 0 calc(var(--eq-nav-motion-nudge) * -1);
|
|
177
|
+
transition: opacity calc(var(--eq-nav-motion-duration) * 0.35) linear,
|
|
178
|
+
translate var(--eq-nav-motion-duration) var(--eq-nav-motion-ease);
|
|
179
|
+
}
|
|
180
|
+
.nav-list-expandable[data-instant] > .nav-list-expandable-panel,
|
|
181
|
+
.nav-list-expandable[data-instant]
|
|
182
|
+
> .nav-list-expandable-panel
|
|
183
|
+
> .nav-list-expandable-content
|
|
184
|
+
> .nav-list-items,
|
|
185
|
+
.nav-list-expandable[data-instant] > .nav-list-expandable-trigger,
|
|
186
|
+
.nav-list-expandable[data-instant] > .nav-list-expandable-trigger .nav-list-expandable-chevron {
|
|
187
|
+
transition: none;
|
|
188
|
+
}
|
|
189
|
+
@media (prefers-reduced-motion: reduce) {
|
|
190
|
+
.nav-list-expandable-trigger .nav-list-expandable-chevron,
|
|
191
|
+
.nav-list-expandable-panel,
|
|
192
|
+
.nav-list-expandable[data-state='closed'] > .nav-list-expandable-panel,
|
|
193
|
+
.nav-list-expandable-content > .nav-list-items,
|
|
194
|
+
.nav-list-expandable[data-state='closed']
|
|
195
|
+
> .nav-list-expandable-panel
|
|
196
|
+
> .nav-list-expandable-content
|
|
197
|
+
> .nav-list-items {
|
|
198
|
+
transition: none;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
.nav-list-expandable-content {
|
|
202
|
+
min-height: calc(0.25rem * 0);
|
|
203
|
+
}
|
|
204
|
+
.nav-list-expandable-content > .nav-list-items {
|
|
205
|
+
margin-top: var(--eq-list-gap);
|
|
206
|
+
}
|
|
207
|
+
.nav-list-items[data-depth='0'] {
|
|
208
|
+
--nav-list-child-indent: var(--eq-list-indent);
|
|
209
|
+
}
|
|
210
|
+
.nav-list-items[data-depth='0']:has(
|
|
211
|
+
> li
|
|
212
|
+
> :is([data-slot='nav-list-item'], [data-slot='nav-list-expandable-trigger'])
|
|
213
|
+
> .nav-list-item-prefix
|
|
214
|
+
) {
|
|
215
|
+
--nav-list-child-indent: calc(var(--eq-list-item-icon-size) + var(--eq-list-item-gap));
|
|
216
|
+
}
|
|
217
|
+
.nav-list-items.nav-list-expandable-items {
|
|
218
|
+
margin-left: calc(0.25rem * 0);
|
|
219
|
+
border-left-style: var(--tw-border-style);
|
|
220
|
+
border-left-width: 0px;
|
|
221
|
+
}
|
|
222
|
+
.nav-list-expandable-items > li > .nav-list-item {
|
|
223
|
+
padding-left: calc(var(--eq-list-item-padding-x) + var(--nav-list-child-indent));
|
|
224
|
+
}
|
|
225
|
+
.nav-list-expandable-items .nav-list-items.nav-list-expandable-items {
|
|
226
|
+
border-left-style: var(--tw-border-style);
|
|
227
|
+
border-left-width: 1px;
|
|
228
|
+
border-color: var(--color-border-raised, color(display-p3 0.7383 0.7441 0.751));
|
|
229
|
+
margin-left: calc(
|
|
230
|
+
var(--eq-list-item-padding-x) + var(--nav-list-child-indent) + var(--eq-list-item-icon-size) / 2
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
.nav-list-expandable-items .nav-list-expandable-items .nav-list-items.nav-list-expandable-items {
|
|
234
|
+
margin-left: calc(var(--eq-list-item-padding-x) + var(--eq-list-item-icon-size) / 2);
|
|
235
|
+
}
|
|
236
|
+
.nav-list-expandable-items .nav-list-expandable-items > li > .nav-list-item {
|
|
237
|
+
padding-left: var(--eq-list-item-padding-x);
|
|
238
|
+
}
|
|
239
|
+
.nav-list-items[data-depth='0'] > .nav-list-expandable > .nav-list-expandable-trigger {
|
|
240
|
+
--tw-font-weight: 500;
|
|
241
|
+
font-weight: 500;
|
|
242
|
+
color: var(--color-text-primary, color(display-p3 0 0 0));
|
|
243
|
+
}
|
|
244
|
+
.nav-list-items[data-depth='0']:has(> .nav-list-expandable) > li > .nav-list-item {
|
|
245
|
+
color: var(--color-text-primary, color(display-p3 0 0 0));
|
|
246
|
+
}
|
|
247
|
+
.nav-list-expandable-chevron {
|
|
248
|
+
display: flex;
|
|
249
|
+
flex-shrink: 0;
|
|
250
|
+
align-items: center;
|
|
251
|
+
transition: rotate var(--eq-nav-motion-duration) var(--eq-nav-motion-ease),
|
|
252
|
+
color 150ms;
|
|
253
|
+
}
|
|
254
|
+
.nav-list-expandable-chevron svg {
|
|
255
|
+
width: var(--eq-list-item-icon-size);
|
|
256
|
+
height: var(--eq-list-item-icon-size);
|
|
257
|
+
}
|
|
258
|
+
.nav-list-expandable-trigger[data-state='open'] .nav-list-expandable-chevron {
|
|
259
|
+
rotate: 180deg;
|
|
260
|
+
}
|
|
261
|
+
.nav-list-expandable[data-state='closed']:has(:is([aria-current='page'], [data-current='page']))
|
|
262
|
+
> .nav-list-expandable-trigger {
|
|
263
|
+
background-color: var(--color-list-item-current);
|
|
264
|
+
--tw-font-weight: 500;
|
|
265
|
+
font-weight: 500;
|
|
266
|
+
color: var(--color-text-primary, color(display-p3 0 0 0));
|
|
267
|
+
}
|
|
135
268
|
.nav-drill {
|
|
136
269
|
margin-inline: calc(0.25rem * -1);
|
|
137
270
|
display: grid;
|
|
@@ -143,6 +276,7 @@
|
|
|
143
276
|
display: flex;
|
|
144
277
|
min-width: calc(0.25rem * 0);
|
|
145
278
|
flex-direction: column;
|
|
279
|
+
gap: var(--eq-list-gap);
|
|
146
280
|
grid-area: 1 / 1;
|
|
147
281
|
z-index: 1;
|
|
148
282
|
background-color: inherit;
|
|
@@ -158,18 +292,14 @@
|
|
|
158
292
|
z-index: 2;
|
|
159
293
|
}
|
|
160
294
|
.nav-list-item--back {
|
|
161
|
-
margin-top: calc(0.25rem * 0.5);
|
|
162
295
|
--tw-font-weight: 400;
|
|
163
296
|
font-weight: 400;
|
|
164
297
|
color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
|
|
165
298
|
}
|
|
166
|
-
.nav-list-item--back .nav-list-item-prefix {
|
|
167
|
-
color: var(--color-text-tertiary, color(display-p3 0.5021 0.5021 0.5021));
|
|
168
|
-
}
|
|
169
299
|
.nav-drill-rule {
|
|
170
300
|
margin: calc(0.25rem * 0);
|
|
171
|
-
margin-top: calc(0.25rem *
|
|
172
|
-
margin-bottom: calc(0.25rem *
|
|
301
|
+
margin-top: calc(0.25rem * 1.5);
|
|
302
|
+
margin-bottom: calc(0.25rem * 0.5);
|
|
173
303
|
height: calc(0.25rem * 0);
|
|
174
304
|
flex-shrink: 0;
|
|
175
305
|
border-style: var(--tw-border-style);
|
|
@@ -178,6 +308,70 @@
|
|
|
178
308
|
border-top-width: 1px;
|
|
179
309
|
border-color: var(--color-border-raised, color(display-p3 0.7383 0.7441 0.751));
|
|
180
310
|
}
|
|
311
|
+
.nav-list-item-new-tab {
|
|
312
|
+
position: absolute;
|
|
313
|
+
width: 1px;
|
|
314
|
+
height: 1px;
|
|
315
|
+
padding: 0;
|
|
316
|
+
margin: -1px;
|
|
317
|
+
overflow: hidden;
|
|
318
|
+
clip-path: inset(50%);
|
|
319
|
+
white-space: nowrap;
|
|
320
|
+
border-width: 0;
|
|
321
|
+
}
|
|
322
|
+
@media (forced-colors: active) {
|
|
323
|
+
.nav-list-item {
|
|
324
|
+
border-color: Canvas;
|
|
325
|
+
}
|
|
326
|
+
.nav-list-item[aria-current='page'],
|
|
327
|
+
.nav-list-item[data-current='page'],
|
|
328
|
+
.nav-list-expandable[data-state='closed']:has(:is([aria-current='page'], [data-current='page']))
|
|
329
|
+
> .nav-list-expandable-trigger {
|
|
330
|
+
border-color: Highlight;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
@media (scripting: none) {
|
|
334
|
+
.nav-list-items > .nav-list-expandable[data-state='closed'] > .nav-list-expandable-panel {
|
|
335
|
+
grid-template-rows: 1fr;
|
|
336
|
+
visibility: visible;
|
|
337
|
+
}
|
|
338
|
+
.nav-list-items
|
|
339
|
+
> .nav-list-expandable[data-state='closed']
|
|
340
|
+
> .nav-list-expandable-panel
|
|
341
|
+
> .nav-list-expandable-content
|
|
342
|
+
> .nav-list-items {
|
|
343
|
+
opacity: 1;
|
|
344
|
+
translate: none;
|
|
345
|
+
}
|
|
346
|
+
.nav-list-expandable-trigger .nav-list-expandable-chevron {
|
|
347
|
+
display: none;
|
|
348
|
+
}
|
|
349
|
+
.nav-list-items
|
|
350
|
+
> .nav-list-expandable[data-state='closed']:has(
|
|
351
|
+
:is([aria-current='page'], [data-current='page'])
|
|
352
|
+
)
|
|
353
|
+
> .nav-list-expandable-trigger {
|
|
354
|
+
background-color: transparent;
|
|
355
|
+
}
|
|
356
|
+
.nav-list-items:not([data-depth='0'])
|
|
357
|
+
> .nav-list-expandable[data-state='closed']:has(
|
|
358
|
+
:is([aria-current='page'], [data-current='page'])
|
|
359
|
+
)
|
|
360
|
+
> .nav-list-expandable-trigger {
|
|
361
|
+
--tw-font-weight: 400;
|
|
362
|
+
font-weight: 400;
|
|
363
|
+
color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
@media (scripting: none) and (forced-colors: active) {
|
|
367
|
+
.nav-list-items
|
|
368
|
+
> .nav-list-expandable[data-state='closed']:has(
|
|
369
|
+
:is([aria-current='page'], [data-current='page'])
|
|
370
|
+
)
|
|
371
|
+
> .nav-list-expandable-trigger {
|
|
372
|
+
border-color: Canvas;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
181
375
|
@property --tw-font-weight {
|
|
182
376
|
syntax: "*";
|
|
183
377
|
inherits: false;
|
|
@@ -30,12 +30,10 @@
|
|
|
30
30
|
padding-block: calc(0.25rem * 4);
|
|
31
31
|
}
|
|
32
32
|
.nav-panel .nav-scroller {
|
|
33
|
+
gap: var(--eq-list-gap);
|
|
33
34
|
padding-inline: calc(0.25rem * 2);
|
|
34
35
|
padding-block: calc(0.25rem * 4);
|
|
35
36
|
}
|
|
36
|
-
.nav-scroller:has([data-slot='nav-drill-back']:not([inert] *)) > .nav-panel-header {
|
|
37
|
-
padding-bottom: calc(0.25rem * 0);
|
|
38
|
-
}
|
|
39
37
|
.nav-rail-list {
|
|
40
38
|
margin: calc(0.25rem * 0);
|
|
41
39
|
display: flex;
|
|
@@ -79,7 +77,7 @@
|
|
|
79
77
|
text-overflow: ellipsis;
|
|
80
78
|
white-space: nowrap;
|
|
81
79
|
padding-inline: calc(0.25rem * 2);
|
|
82
|
-
padding-
|
|
80
|
+
padding-block: calc(0.25rem * 1.5);
|
|
83
81
|
font-size: 0.875rem;
|
|
84
82
|
line-height: var(--tw-leading, calc(1.25 / 0.875));
|
|
85
83
|
--tw-font-weight: 600;
|
|
@@ -88,8 +86,7 @@
|
|
|
88
86
|
}
|
|
89
87
|
.nav-panel-header:has(> .nav-switcher-heading) {
|
|
90
88
|
overflow: visible;
|
|
91
|
-
padding
|
|
92
|
-
padding-bottom: calc(0.25rem * 0);
|
|
89
|
+
padding: calc(0.25rem * 0);
|
|
93
90
|
}
|
|
94
91
|
.nav-switcher-heading {
|
|
95
92
|
margin: calc(0.25rem * 0);
|
|
@@ -171,11 +168,7 @@
|
|
|
171
168
|
line-height: var(--tw-leading, calc(1.25 / 0.875));
|
|
172
169
|
--tw-font-weight: 600;
|
|
173
170
|
font-weight: 600;
|
|
174
|
-
background-image:
|
|
175
|
-
to right,
|
|
176
|
-
var(--color-text-primary),
|
|
177
|
-
var(--color-text-secondary)
|
|
178
|
-
);
|
|
171
|
+
background-image: var(--eq-switcher-name-fade);
|
|
179
172
|
background-clip: text;
|
|
180
173
|
-webkit-background-clip: text;
|
|
181
174
|
color: transparent;
|
|
@@ -191,7 +184,7 @@
|
|
|
191
184
|
width: calc(0.25rem * 4);
|
|
192
185
|
height: calc(0.25rem * 4);
|
|
193
186
|
flex-shrink: 0;
|
|
194
|
-
color: var(--
|
|
187
|
+
color: var(--eq-list-item-muted-color);
|
|
195
188
|
}
|
|
196
189
|
.nav-switcher > :global(.lucide-chevron-down) {
|
|
197
190
|
display: none;
|
|
@@ -200,6 +193,11 @@
|
|
|
200
193
|
border-color: transparent;
|
|
201
194
|
background-color: var(--color-list-item-hover);
|
|
202
195
|
}
|
|
196
|
+
@media (hover: hover) {
|
|
197
|
+
.nav-switcher-heading .nav-switcher:hover:not(:disabled) .nav-switcher-icon {
|
|
198
|
+
color: currentColor;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
203
201
|
.nav-switcher-heading .nav-switcher[data-state='open']:not(:disabled) {
|
|
204
202
|
border-color: var(--color-brand-primary, color(display-p3 0.7319 0.6108 0.8873));
|
|
205
203
|
background-color: var(--color-background, color(display-p3 1 1 1));
|
|
@@ -287,6 +285,14 @@
|
|
|
287
285
|
outline: 2px solid var(--color-focus-ring);
|
|
288
286
|
outline-offset: 2px;
|
|
289
287
|
}
|
|
288
|
+
@media (forced-colors: active) {
|
|
289
|
+
.nav-rail-item {
|
|
290
|
+
border-color: Canvas;
|
|
291
|
+
}
|
|
292
|
+
.nav-rail-item[aria-current='page'] {
|
|
293
|
+
border-color: Highlight;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
290
296
|
@property --tw-border-style {
|
|
291
297
|
syntax: "*";
|
|
292
298
|
inherits: false;
|
|
@@ -13,12 +13,25 @@
|
|
|
13
13
|
--eq-list-item-gap: calc(var(--spacing) * 2); /* 8, icon to text */
|
|
14
14
|
--eq-list-item-icon-size: calc(var(--spacing) * 4); /* 16 */
|
|
15
15
|
--eq-list-item-font-size: var(--text-sm); /* 14 */
|
|
16
|
+
--eq-list-item-muted-color: var(--color-text-tertiary);
|
|
16
17
|
/* list: the rows together */
|
|
17
18
|
--eq-list-gap: calc(var(--spacing) * 0.5); /* 2, between items */
|
|
18
19
|
--eq-list-group-gap: calc(var(--spacing) * 3); /* 12, above a group label */
|
|
19
20
|
--eq-list-label-gap: calc(var(--spacing) * 1); /* 4, label to its first item */
|
|
20
21
|
--eq-list-label-font-size: var(--text-xs); /* 12 */
|
|
21
22
|
--eq-list-indent: calc(var(--spacing) * 3); /* 12, child indent when items have no icons */
|
|
23
|
+
/* nav-motion: a drill-in and a folder opening share one motion. NavDrill reads these in
|
|
24
|
+
JavaScript, folder groups in CSS */
|
|
25
|
+
--eq-nav-motion-duration: 300ms;
|
|
26
|
+
--eq-nav-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
27
|
+
--eq-nav-motion-nudge: 12px;
|
|
28
|
+
/* switcher: the fade on its name. It ends at secondary text, so the name is never dimmer than the
|
|
29
|
+
rows below it. A site can set its own: the docs do */
|
|
30
|
+
--eq-switcher-name-fade: linear-gradient(
|
|
31
|
+
to right,
|
|
32
|
+
var(--color-text-primary),
|
|
33
|
+
var(--color-text-secondary)
|
|
34
|
+
);
|
|
22
35
|
/* control: a stand-alone element */
|
|
23
36
|
--eq-control-height: calc(var(--spacing) * 10); /* 40: rail item; later Button, Input */
|
|
24
37
|
/* touch: the minimum tap target */
|
package/dist/theme-decisions.css
CHANGED
|
@@ -11,12 +11,25 @@ html {
|
|
|
11
11
|
--eq-list-item-gap: calc(var(--spacing) * 2); /* 8, icon to text */
|
|
12
12
|
--eq-list-item-icon-size: calc(var(--spacing) * 4); /* 16 */
|
|
13
13
|
--eq-list-item-font-size: var(--text-sm); /* 14 */
|
|
14
|
+
--eq-list-item-muted-color: var(--color-text-tertiary);
|
|
14
15
|
/* list: the rows together */
|
|
15
16
|
--eq-list-gap: calc(var(--spacing) * 0.5); /* 2, between items */
|
|
16
17
|
--eq-list-group-gap: calc(var(--spacing) * 3); /* 12, above a group label */
|
|
17
18
|
--eq-list-label-gap: calc(var(--spacing) * 1); /* 4, label to its first item */
|
|
18
19
|
--eq-list-label-font-size: var(--text-xs); /* 12 */
|
|
19
20
|
--eq-list-indent: calc(var(--spacing) * 3); /* 12, child indent when items have no icons */
|
|
21
|
+
/* nav-motion: a drill-in and a folder opening share one motion. NavDrill reads these in
|
|
22
|
+
JavaScript, folder groups in CSS */
|
|
23
|
+
--eq-nav-motion-duration: 300ms;
|
|
24
|
+
--eq-nav-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
25
|
+
--eq-nav-motion-nudge: 12px;
|
|
26
|
+
/* switcher: the fade on its name. It ends at secondary text, so the name is never dimmer than the
|
|
27
|
+
rows below it. A site can set its own: the docs do */
|
|
28
|
+
--eq-switcher-name-fade: linear-gradient(
|
|
29
|
+
to right,
|
|
30
|
+
var(--color-text-primary),
|
|
31
|
+
var(--color-text-secondary)
|
|
32
|
+
);
|
|
20
33
|
/* control: a stand-alone element */
|
|
21
34
|
--eq-control-height: calc(var(--spacing) * 10); /* 40: rail item; later Button, Input */
|
|
22
35
|
/* touch: the minimum tap target */
|
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
--color-text-link: color(display-p3 0.4045 0.2306 0.6077);
|
|
128
128
|
--color-text-primary: color(display-p3 0 0 0);
|
|
129
129
|
--color-text-secondary: color(display-p3 0.1792 0.1792 0.1792);
|
|
130
|
+
--color-text-tertiary: color(display-p3 0.5021 0.5021 0.5021);
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
133
|
@layer utilities {
|
|
@@ -945,11 +946,20 @@
|
|
|
945
946
|
--eq-list-item-gap: calc(var(--spacing) * 2);
|
|
946
947
|
--eq-list-item-icon-size: calc(var(--spacing) * 4);
|
|
947
948
|
--eq-list-item-font-size: var(--text-sm);
|
|
949
|
+
--eq-list-item-muted-color: var(--color-text-tertiary);
|
|
948
950
|
--eq-list-gap: calc(var(--spacing) * 0.5);
|
|
949
951
|
--eq-list-group-gap: calc(var(--spacing) * 3);
|
|
950
952
|
--eq-list-label-gap: calc(var(--spacing) * 1);
|
|
951
953
|
--eq-list-label-font-size: var(--text-xs);
|
|
952
954
|
--eq-list-indent: calc(var(--spacing) * 3);
|
|
955
|
+
--eq-nav-motion-duration: 300ms;
|
|
956
|
+
--eq-nav-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
957
|
+
--eq-nav-motion-nudge: 12px;
|
|
958
|
+
--eq-switcher-name-fade: linear-gradient(
|
|
959
|
+
to right,
|
|
960
|
+
var(--color-text-primary),
|
|
961
|
+
var(--color-text-secondary)
|
|
962
|
+
);
|
|
953
963
|
--eq-control-height: calc(var(--spacing) * 10);
|
|
954
964
|
--eq-touch-target: 0px;
|
|
955
965
|
--color-list-item-current: color-mix(in srgb, color(display-p3 0 0 0) 10%, transparent);
|