@yewdiel21/motion-kit 0.14.0 → 0.15.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/README.md +174 -155
- package/bin/motion-kit.mjs +3 -3
- package/dist/auto/index.d.ts +6 -3
- package/dist/auto/index.js +8 -2
- package/dist/auto/index.js.map +1 -1
- package/dist/{chunk-EY4BJKC4.js → chunk-6IRJYXJU.js} +2 -2
- package/dist/{chunk-CU6SXW3E.js → chunk-A6QQCF6V.js} +1309 -310
- package/dist/chunk-A6QQCF6V.js.map +1 -0
- package/dist/chunk-JXRS3OEA.js +3638 -0
- package/dist/chunk-JXRS3OEA.js.map +1 -0
- package/dist/css/components/add-to-cart.css +72 -0
- package/dist/css/components/bidirectional-slider.css +168 -0
- package/dist/css/components/data-table.css +121 -26
- package/dist/css/components/filter-builder.css +10 -15
- package/dist/css/components/heatmap-chart.css +391 -0
- package/dist/css/components/hover-card.css +8 -2
- package/dist/css/components/image-preview.css +90 -2
- package/dist/css/components/json-viewer.css +33 -1
- package/dist/css/components/nav.css +102 -102
- package/dist/css/components/orbit-menu.css +130 -0
- package/dist/css/components/pagination.css +10 -5
- package/dist/css/components/pie-chart.css +390 -0
- package/dist/css/components/pill-button.css +135 -0
- package/dist/css/components/radar-chart.css +370 -0
- package/dist/css/components/radial-chart.css +398 -0
- package/dist/css/components/sankey-chart.css +358 -0
- package/dist/css/components/scroll-island.css +111 -0
- package/dist/css/components/select.css +136 -0
- package/dist/css/components/toolbar.css +122 -0
- package/dist/css/components/tree-view.css +79 -0
- package/dist/css/components/voice-dots.css +70 -0
- package/dist/elements/index.d.ts +180 -7
- package/dist/elements/index.js +287 -6
- package/dist/elements/index.js.map +1 -1
- package/dist/{engine-Cn6IhE3z.d.ts → engine-5zRIssTO.d.ts} +11 -1
- package/dist/index.css +1832 -168
- package/dist/index.d.ts +4 -4
- package/dist/index.js +33 -3
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +117 -11
- package/dist/react/index.js +314 -13
- package/dist/react/index.js.map +1 -1
- package/dist/{reduced-BBUusld6.d.ts → reduced-6X_bns60.d.ts} +1 -1
- package/dist/{reveal-DEvp6U6T.d.ts → reveal-BfyKKsw4.d.ts} +97 -4
- package/dist/store-CA2Qcun_.d.ts +453 -0
- package/package.json +9 -16
- package/registry.json +1096 -948
- package/src/auto/auto-init.ts +6 -0
- package/src/components/add-to-cart/README.md +34 -0
- package/src/components/add-to-cart/add-to-cart.css +71 -0
- package/src/components/add-to-cart/element.ts +20 -0
- package/src/components/add-to-cart/engine.ts +206 -0
- package/src/components/add-to-cart/react.tsx +29 -0
- package/src/components/bidirectional-slider/README.md +46 -0
- package/src/components/bidirectional-slider/bidirectional-slider.css +167 -0
- package/src/components/bidirectional-slider/element.ts +42 -0
- package/src/components/bidirectional-slider/engine.ts +289 -0
- package/src/components/bidirectional-slider/react.tsx +45 -0
- package/src/components/chart/README.md +10 -0
- package/src/components/chart/element.ts +2 -0
- package/src/components/chart/engine.ts +50 -23
- package/src/components/chart/parts.ts +237 -0
- package/src/components/chart/react.tsx +2 -2
- package/src/components/chart/use-chart.ts +55 -0
- package/src/components/data-table/README.md +3 -3
- package/src/components/data-table/data-table.css +121 -26
- package/src/components/data-table/engine.ts +81 -29
- package/src/components/editable-table/engine.ts +67 -11
- package/src/components/filter-builder/engine.ts +33 -2
- package/src/components/filter-builder/filter-builder.css +10 -15
- package/src/components/heatmap-chart/README.md +48 -0
- package/src/components/heatmap-chart/element.ts +21 -0
- package/src/components/heatmap-chart/engine.ts +281 -0
- package/src/components/heatmap-chart/heatmap-chart.css +93 -0
- package/src/components/heatmap-chart/react.tsx +14 -0
- package/src/components/hover-card/engine.ts +30 -1
- package/src/components/hover-card/hover-card.css +8 -2
- package/src/components/image-preview/element.ts +1 -1
- package/src/components/image-preview/engine.ts +95 -15
- package/src/components/image-preview/image-preview.css +90 -2
- package/src/components/image-preview/react.tsx +3 -3
- package/src/components/json-viewer/engine.ts +11 -2
- package/src/components/json-viewer/json-viewer.css +33 -1
- package/src/components/nav/README.md +12 -10
- package/src/components/nav/element.ts +5 -5
- package/src/components/nav/engine.ts +21 -14
- package/src/components/nav/nav.css +102 -102
- package/src/components/nav/react.tsx +4 -4
- package/src/components/orbit-menu/README.md +46 -0
- package/src/components/orbit-menu/element.ts +27 -0
- package/src/components/orbit-menu/engine.ts +179 -0
- package/src/components/orbit-menu/orbit-menu.css +129 -0
- package/src/components/orbit-menu/react.tsx +44 -0
- package/src/components/pagination/README.md +1 -1
- package/src/components/pagination/engine.ts +50 -4
- package/src/components/pagination/pagination.css +10 -5
- package/src/components/pie-chart/README.md +48 -0
- package/src/components/pie-chart/element.ts +30 -0
- package/src/components/pie-chart/engine.ts +283 -0
- package/src/components/pie-chart/pie-chart.css +92 -0
- package/src/components/pie-chart/react.tsx +14 -0
- package/src/components/pill-button/README.md +46 -0
- package/src/components/pill-button/element.ts +16 -0
- package/src/components/pill-button/engine.ts +77 -0
- package/src/components/pill-button/pill-button.css +134 -0
- package/src/components/pill-button/react.tsx +32 -0
- package/src/components/radar-chart/README.md +48 -0
- package/src/components/radar-chart/element.ts +30 -0
- package/src/components/radar-chart/engine.ts +327 -0
- package/src/components/radar-chart/radar-chart.css +72 -0
- package/src/components/radar-chart/react.tsx +14 -0
- package/src/components/radial-chart/README.md +48 -0
- package/src/components/radial-chart/element.ts +30 -0
- package/src/components/radial-chart/engine.ts +290 -0
- package/src/components/radial-chart/radial-chart.css +100 -0
- package/src/components/radial-chart/react.tsx +14 -0
- package/src/components/sankey-chart/README.md +48 -0
- package/src/components/sankey-chart/element.ts +31 -0
- package/src/components/sankey-chart/engine.ts +401 -0
- package/src/components/sankey-chart/react.tsx +14 -0
- package/src/components/sankey-chart/sankey-chart.css +60 -0
- package/src/components/scroll-island/README.md +34 -0
- package/src/components/scroll-island/element.ts +16 -0
- package/src/components/scroll-island/engine.ts +252 -0
- package/src/components/scroll-island/react.tsx +26 -0
- package/src/components/scroll-island/scroll-island.css +110 -0
- package/src/components/select/README.md +34 -0
- package/src/components/select/element.ts +26 -0
- package/src/components/select/engine.ts +267 -0
- package/src/components/select/react.tsx +33 -0
- package/src/components/select/select.css +135 -0
- package/src/components/toolbar/README.md +46 -0
- package/src/components/toolbar/element.ts +30 -0
- package/src/components/toolbar/engine.ts +230 -0
- package/src/components/toolbar/react.tsx +34 -0
- package/src/components/toolbar/toolbar.css +121 -0
- package/src/components/tree-view/element.ts +1 -1
- package/src/components/tree-view/engine.ts +174 -0
- package/src/components/tree-view/react.tsx +7 -3
- package/src/components/tree-view/tree-view.css +79 -0
- package/src/components/voice-dots/README.md +48 -0
- package/src/components/voice-dots/element.ts +45 -0
- package/src/components/voice-dots/engine.ts +243 -0
- package/src/components/voice-dots/react.tsx +52 -0
- package/src/components/voice-dots/voice-dots.css +69 -0
- package/src/elements/index.ts +39 -0
- package/src/index.ts +16 -0
- package/src/motion/liquid.ts +14 -4
- package/src/react/index.ts +14 -1
- package/dist/chunk-6P4P7NU6.js +0 -1401
- package/dist/chunk-6P4P7NU6.js.map +0 -1
- package/dist/chunk-CU6SXW3E.js.map +0 -1
- package/dist/store-DjkTBX7f.d.ts +0 -195
- /package/dist/{chunk-EY4BJKC4.js.map → chunk-6IRJYXJU.js.map} +0 -0
|
@@ -132,12 +132,12 @@
|
|
|
132
132
|
order: -1;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
/* 1 ·
|
|
136
|
-
.mk-shell:has(> .mk-nav--
|
|
135
|
+
/* 1 · sidebar: a bordered sidebar, a filled pill for the current page. */
|
|
136
|
+
.mk-shell:has(> .mk-nav--sidebar) > .mk-shell__view {
|
|
137
137
|
border-right: 1px solid var(--md-sys-color-surface-container);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
.mk-nav--
|
|
140
|
+
.mk-nav--sidebar {
|
|
141
141
|
display: flex;
|
|
142
142
|
flex-direction: column;
|
|
143
143
|
min-width: 270px;
|
|
@@ -146,26 +146,26 @@
|
|
|
146
146
|
z-index: 1;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
.mk-nav--
|
|
149
|
+
.mk-nav--sidebar .mk-nav__buttons {
|
|
150
150
|
display: flex;
|
|
151
151
|
flex-direction: column;
|
|
152
152
|
gap: 4px;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
.mk-nav--
|
|
155
|
+
.mk-nav--sidebar .mk-nav__actions {
|
|
156
156
|
margin-top: auto;
|
|
157
157
|
display: flex;
|
|
158
158
|
flex-direction: column;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.mk-nav--
|
|
161
|
+
.mk-nav--sidebar .mk-nav__options {
|
|
162
162
|
display: flex;
|
|
163
163
|
flex-direction: column;
|
|
164
164
|
gap: 4px;
|
|
165
165
|
margin-top: 24px;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
.mk-nav--
|
|
168
|
+
.mk-nav--sidebar .mk-nav__label {
|
|
169
169
|
display: flex;
|
|
170
170
|
align-items: center;
|
|
171
171
|
height: 40px;
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
font-weight: 500;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
.mk-nav--
|
|
179
|
+
.mk-nav--sidebar .mk-nav__button {
|
|
180
180
|
display: flex;
|
|
181
181
|
align-items: center;
|
|
182
182
|
gap: 8px;
|
|
@@ -193,34 +193,34 @@
|
|
|
193
193
|
0.15s background;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
.mk-nav--
|
|
196
|
+
.mk-nav--sidebar .mk-nav__button:hover {
|
|
197
197
|
color: var(--md-sys-color-primary);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
.mk-nav--
|
|
200
|
+
.mk-nav--sidebar .mk-nav__button[aria-current='page'] {
|
|
201
201
|
background: var(--md-sys-color-surface-container-high);
|
|
202
202
|
color: var(--md-sys-color-primary);
|
|
203
203
|
animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
|
|
204
204
|
font-variation-settings: 'FILL' 1;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
.mk-nav--
|
|
207
|
+
.mk-nav--sidebar.mk-nav--accent .mk-nav__button[aria-current='page'] {
|
|
208
208
|
background: var(--md-sys-color-primary-container);
|
|
209
209
|
color: var(--md-sys-color-on-primary-container);
|
|
210
210
|
box-shadow: 0 0 32px -10px var(--md-sys-color-primary-container);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
.mk-nav--
|
|
213
|
+
.mk-nav--sidebar .mk-nav__button.mk-nav__button--first {
|
|
214
214
|
color: var(--md-sys-color-on-background);
|
|
215
215
|
margin-bottom: 32px;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.mk-nav--
|
|
218
|
+
.mk-nav--sidebar .mk-nav__button--first .mk-nav__name {
|
|
219
219
|
display: flex;
|
|
220
220
|
flex-grow: 1;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
.mk-nav--
|
|
223
|
+
.mk-nav--sidebar .mk-nav__button--first::after {
|
|
224
224
|
content: '';
|
|
225
225
|
position: absolute;
|
|
226
226
|
left: -16px;
|
|
@@ -230,8 +230,8 @@
|
|
|
230
230
|
background: var(--md-sys-color-surface-container);
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
/* 2 ·
|
|
234
|
-
.mk-nav--
|
|
233
|
+
/* 2 · pills: centred text pills that widen on hover and when current (spring padding). */
|
|
234
|
+
.mk-nav--pills {
|
|
235
235
|
display: flex;
|
|
236
236
|
flex-direction: column;
|
|
237
237
|
justify-content: center;
|
|
@@ -240,20 +240,20 @@
|
|
|
240
240
|
z-index: 1;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
.mk-nav--
|
|
243
|
+
.mk-nav--pills .mk-nav__buttons {
|
|
244
244
|
display: flex;
|
|
245
245
|
flex-direction: column;
|
|
246
246
|
gap: 4px;
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
.mk-nav--
|
|
249
|
+
.mk-nav--pills .mk-nav__actions {
|
|
250
250
|
position: absolute;
|
|
251
251
|
bottom: 16px;
|
|
252
252
|
display: flex;
|
|
253
253
|
gap: 8px;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
.mk-nav--
|
|
256
|
+
.mk-nav--pills .mk-nav__button {
|
|
257
257
|
display: flex;
|
|
258
258
|
align-items: center;
|
|
259
259
|
gap: 8px;
|
|
@@ -273,16 +273,16 @@
|
|
|
273
273
|
0.3s padding var(--mk-ease-swatch);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
.mk-nav--
|
|
276
|
+
.mk-nav--pills .mk-nav__icon {
|
|
277
277
|
display: none;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
.mk-nav--
|
|
280
|
+
.mk-nav--pills .mk-nav__button:hover {
|
|
281
281
|
color: var(--md-sys-color-primary);
|
|
282
282
|
padding: 0 26px;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
.mk-nav--
|
|
285
|
+
.mk-nav--pills .mk-nav__button[aria-current='page'] {
|
|
286
286
|
background: var(--md-sys-color-surface-container-highest);
|
|
287
287
|
color: var(--md-sys-color-on-background);
|
|
288
288
|
animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
|
|
@@ -290,22 +290,22 @@
|
|
|
290
290
|
padding: 0 32px;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
.mk-nav--
|
|
293
|
+
.mk-nav--pills.mk-nav--accent .mk-nav__button[aria-current='page'] {
|
|
294
294
|
background: var(--md-sys-color-primary-container);
|
|
295
295
|
color: var(--md-sys-color-on-primary-container);
|
|
296
296
|
box-shadow: 0 0 32px -10px var(--md-sys-color-primary-container);
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
.mk-nav--
|
|
299
|
+
.mk-nav--pills .mk-nav__name {
|
|
300
300
|
display: flex;
|
|
301
301
|
flex-grow: 1;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
.mk-nav--
|
|
304
|
+
.mk-nav--pills .mk-nav__button.mk-nav__button--first {
|
|
305
305
|
display: none;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
/* 3 ·
|
|
308
|
+
/* 3 · dock: a floating glass bar centred at the bottom. */
|
|
309
309
|
.mk-shell:has(> .mk-nav--dock) {
|
|
310
310
|
flex-direction: column;
|
|
311
311
|
overflow: auto;
|
|
@@ -410,23 +410,23 @@
|
|
|
410
410
|
color: var(--md-sys-color-on-primary-container);
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
/* 4 ·
|
|
414
|
-
.mk-shell:has(> .mk-nav--
|
|
413
|
+
/* 4 · card: the view is a raised card on a tinted shell; the current page is a white chip. */
|
|
414
|
+
.mk-shell:has(> .mk-nav--card) {
|
|
415
415
|
background: var(--md-sys-color-surface-container-low);
|
|
416
416
|
padding: 8px 8px 8px 0;
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
.mk-shell:has(> .mk-nav--
|
|
419
|
+
.mk-shell:has(> .mk-nav--card) > .mk-shell__view {
|
|
420
420
|
background: var(--md-sys-color-background);
|
|
421
421
|
border-radius: 24px;
|
|
422
422
|
box-shadow: 0 0.5px 2.5px #0000001f;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
.mk-shell:has(> .mk-nav--
|
|
425
|
+
.mk-shell:has(> .mk-nav--card) > .mk-shell__view:not(:last-of-type) {
|
|
426
426
|
margin-right: 8px;
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
-
.mk-nav--
|
|
429
|
+
.mk-nav--card {
|
|
430
430
|
display: flex;
|
|
431
431
|
flex-direction: column;
|
|
432
432
|
min-width: 270px;
|
|
@@ -434,24 +434,24 @@
|
|
|
434
434
|
z-index: 1;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
-
.mk-nav--
|
|
437
|
+
.mk-nav--card .mk-nav__buttons {
|
|
438
438
|
display: flex;
|
|
439
439
|
flex-direction: column;
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
-
.mk-nav--
|
|
442
|
+
.mk-nav--card .mk-nav__actions {
|
|
443
443
|
margin-top: auto;
|
|
444
444
|
display: flex;
|
|
445
445
|
flex-direction: column;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
.mk-nav--
|
|
448
|
+
.mk-nav--card .mk-nav__options {
|
|
449
449
|
display: flex;
|
|
450
450
|
flex-direction: column;
|
|
451
451
|
margin-top: 24px;
|
|
452
452
|
}
|
|
453
453
|
|
|
454
|
-
.mk-nav--
|
|
454
|
+
.mk-nav--card .mk-nav__label {
|
|
455
455
|
display: flex;
|
|
456
456
|
align-items: center;
|
|
457
457
|
height: 40px;
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
font-weight: 500;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
.mk-nav--
|
|
465
|
+
.mk-nav--card .mk-nav__button {
|
|
466
466
|
--mk-nav-icon-size: 16px;
|
|
467
467
|
display: flex;
|
|
468
468
|
align-items: center;
|
|
@@ -480,11 +480,11 @@
|
|
|
480
480
|
0.15s background;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
.mk-nav--
|
|
483
|
+
.mk-nav--card .mk-nav__button:hover {
|
|
484
484
|
color: var(--md-sys-color-primary);
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
.mk-nav--
|
|
487
|
+
.mk-nav--card .mk-nav__button[aria-current='page'] {
|
|
488
488
|
background: var(--md-sys-color-background);
|
|
489
489
|
color: color-mix(in srgb, var(--md-sys-color-primary) 80%, var(--md-sys-color-primary-container) 90%);
|
|
490
490
|
box-shadow:
|
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
font-variation-settings: 'FILL' 1;
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
.mk-nav--
|
|
497
|
+
.mk-nav--card.mk-nav--accent .mk-nav__button[aria-current='page'] {
|
|
498
498
|
background: linear-gradient(
|
|
499
499
|
color-mix(in srgb, var(--md-sys-color-primary-container) 100%, var(--md-sys-color-background) 40%),
|
|
500
500
|
var(--md-sys-color-primary-container)
|
|
@@ -506,30 +506,30 @@
|
|
|
506
506
|
inset 0 1.8px #ffffff4d;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
.mk-nav--
|
|
509
|
+
.mk-nav--card .mk-nav__button.mk-nav__button--first {
|
|
510
510
|
color: var(--md-sys-color-on-background);
|
|
511
511
|
margin-bottom: 16px;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
.mk-nav--
|
|
514
|
+
.mk-nav--card .mk-nav__button--first .mk-nav__name {
|
|
515
515
|
display: flex;
|
|
516
516
|
flex-grow: 1;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
/* 5 ·
|
|
520
|
-
.mk-shell:has(> .mk-nav--
|
|
519
|
+
/* 5 · rail: a rail of round 56 px buttons; the current one squares off (springy radius). */
|
|
520
|
+
.mk-shell:has(> .mk-nav--rail) {
|
|
521
521
|
padding: 8px;
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
.mk-shell:has(> .mk-nav--
|
|
524
|
+
.mk-shell:has(> .mk-nav--rail) > .mk-shell__view {
|
|
525
525
|
background: var(--md-sys-color-background);
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
-
.mk-shell:has(> .mk-nav--
|
|
528
|
+
.mk-shell:has(> .mk-nav--rail) > .mk-shell__view:not(:last-of-type) .mk-shell__content {
|
|
529
529
|
padding-right: 0 !important;
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
-
.mk-nav--
|
|
532
|
+
.mk-nav--rail {
|
|
533
533
|
display: flex;
|
|
534
534
|
flex-direction: column;
|
|
535
535
|
width: auto;
|
|
@@ -537,19 +537,19 @@
|
|
|
537
537
|
z-index: 1;
|
|
538
538
|
}
|
|
539
539
|
|
|
540
|
-
.mk-nav--
|
|
540
|
+
.mk-nav--rail .mk-nav__buttons {
|
|
541
541
|
display: flex;
|
|
542
542
|
flex-direction: column;
|
|
543
543
|
gap: 0;
|
|
544
544
|
}
|
|
545
545
|
|
|
546
|
-
.mk-nav--
|
|
546
|
+
.mk-nav--rail .mk-nav__actions {
|
|
547
547
|
margin-top: auto;
|
|
548
548
|
display: flex;
|
|
549
549
|
flex-direction: column;
|
|
550
550
|
}
|
|
551
551
|
|
|
552
|
-
.mk-nav--
|
|
552
|
+
.mk-nav--rail .mk-nav__button {
|
|
553
553
|
display: flex;
|
|
554
554
|
align-items: center;
|
|
555
555
|
justify-content: center;
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
background 0.25s;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
.mk-nav--
|
|
571
|
+
.mk-nav--rail .mk-nav__name {
|
|
572
572
|
/* Hidden from sight, not from screen readers: the button keeps its name. */
|
|
573
573
|
position: absolute;
|
|
574
574
|
width: 1px;
|
|
@@ -578,11 +578,11 @@
|
|
|
578
578
|
white-space: nowrap;
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
.mk-nav--
|
|
581
|
+
.mk-nav--rail .mk-nav__button:hover {
|
|
582
582
|
color: var(--md-sys-color-primary);
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
-
.mk-nav--
|
|
585
|
+
.mk-nav--rail .mk-nav__button[aria-current='page'] {
|
|
586
586
|
background: var(--md-sys-color-surface-container-highest);
|
|
587
587
|
color: var(--md-sys-color-primary);
|
|
588
588
|
animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
|
|
@@ -590,26 +590,26 @@
|
|
|
590
590
|
border-radius: 12px;
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
-
.mk-nav--
|
|
593
|
+
.mk-nav--rail.mk-nav--accent .mk-nav__button[aria-current='page'] {
|
|
594
594
|
background: var(--md-sys-color-primary-container);
|
|
595
595
|
color: var(--md-sys-color-on-primary-container);
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
.mk-nav--
|
|
598
|
+
.mk-nav--rail .mk-nav__button.mk-nav__button--first {
|
|
599
599
|
color: var(--md-sys-color-on-background);
|
|
600
600
|
margin-bottom: 8px;
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
.mk-nav--
|
|
603
|
+
.mk-nav--rail .mk-nav__button--first .mk-nav__icon {
|
|
604
604
|
display: none;
|
|
605
605
|
}
|
|
606
606
|
|
|
607
|
-
/* 6 ·
|
|
608
|
-
.mk-shell:has(> .mk-nav--
|
|
607
|
+
/* 6 · wash: a soft sidebar with a faint primary wash on the current page. */
|
|
608
|
+
.mk-shell:has(> .mk-nav--wash) > .mk-shell__view {
|
|
609
609
|
border-right: 1px solid var(--md-sys-color-surface-container);
|
|
610
610
|
}
|
|
611
611
|
|
|
612
|
-
.mk-nav--
|
|
612
|
+
.mk-nav--wash {
|
|
613
613
|
display: flex;
|
|
614
614
|
flex-direction: column;
|
|
615
615
|
min-width: 270px;
|
|
@@ -617,24 +617,24 @@
|
|
|
617
617
|
z-index: 1;
|
|
618
618
|
}
|
|
619
619
|
|
|
620
|
-
.mk-nav--
|
|
620
|
+
.mk-nav--wash .mk-nav__buttons {
|
|
621
621
|
display: flex;
|
|
622
622
|
flex-direction: column;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
|
-
.mk-nav--
|
|
625
|
+
.mk-nav--wash .mk-nav__actions {
|
|
626
626
|
margin-top: auto;
|
|
627
627
|
display: flex;
|
|
628
628
|
flex-direction: column;
|
|
629
629
|
}
|
|
630
630
|
|
|
631
|
-
.mk-nav--
|
|
631
|
+
.mk-nav--wash .mk-nav__options {
|
|
632
632
|
display: flex;
|
|
633
633
|
flex-direction: column;
|
|
634
634
|
margin-top: 24px;
|
|
635
635
|
}
|
|
636
636
|
|
|
637
|
-
.mk-nav--
|
|
637
|
+
.mk-nav--wash .mk-nav__label {
|
|
638
638
|
display: flex;
|
|
639
639
|
align-items: center;
|
|
640
640
|
height: 40px;
|
|
@@ -645,7 +645,7 @@
|
|
|
645
645
|
font-weight: 500;
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
-
.mk-nav--
|
|
648
|
+
.mk-nav--wash .mk-nav__button {
|
|
649
649
|
display: flex;
|
|
650
650
|
align-items: center;
|
|
651
651
|
gap: 8px;
|
|
@@ -662,18 +662,18 @@
|
|
|
662
662
|
0.15s background;
|
|
663
663
|
}
|
|
664
664
|
|
|
665
|
-
.mk-nav--
|
|
665
|
+
.mk-nav--wash .mk-nav__button:hover {
|
|
666
666
|
color: var(--md-sys-color-primary);
|
|
667
667
|
}
|
|
668
668
|
|
|
669
|
-
.mk-nav--
|
|
669
|
+
.mk-nav--wash .mk-nav__button[aria-current='page'] {
|
|
670
670
|
background: color-mix(in srgb, var(--md-sys-color-primary-container) 10%, var(--md-sys-color-background) 90%);
|
|
671
671
|
color: var(--md-sys-color-primary);
|
|
672
672
|
animation: mk-nav-icon 125ms cubic-bezier(0.48, 0, 0, 1);
|
|
673
673
|
font-variation-settings: 'FILL' 1;
|
|
674
674
|
}
|
|
675
675
|
|
|
676
|
-
.mk-nav--
|
|
676
|
+
.mk-nav--wash.mk-nav--accent .mk-nav__button {
|
|
677
677
|
--mk-nav-icon-size: 16px;
|
|
678
678
|
padding: 8px 12px;
|
|
679
679
|
transition:
|
|
@@ -681,11 +681,11 @@
|
|
|
681
681
|
0.15s background;
|
|
682
682
|
}
|
|
683
683
|
|
|
684
|
-
.mk-nav--
|
|
684
|
+
.mk-nav--wash.mk-nav--accent .mk-nav__label {
|
|
685
685
|
padding: 0 12px;
|
|
686
686
|
}
|
|
687
687
|
|
|
688
|
-
.mk-nav--
|
|
688
|
+
.mk-nav--wash.mk-nav--accent .mk-nav__button[aria-current='page'] {
|
|
689
689
|
background: var(--md-sys-color-background);
|
|
690
690
|
color: color-mix(in srgb, var(--md-sys-color-primary) 80%, var(--md-sys-color-primary-container) 90%);
|
|
691
691
|
box-shadow:
|
|
@@ -693,22 +693,22 @@
|
|
|
693
693
|
0 0.5px 2.5px #00000014;
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
-
.mk-nav--
|
|
696
|
+
.mk-nav--wash .mk-nav__button.mk-nav__button--first {
|
|
697
697
|
color: var(--md-sys-color-on-background);
|
|
698
698
|
margin-bottom: 16px;
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
-
.mk-nav--
|
|
701
|
+
.mk-nav--wash .mk-nav__button--first .mk-nav__name {
|
|
702
702
|
display: flex;
|
|
703
703
|
flex-grow: 1;
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
/* 7 ·
|
|
707
|
-
.mk-shell:has(> .mk-nav--
|
|
706
|
+
/* 7 · magnify: big words; the hovered one and its neighbours grow like a dock. */
|
|
707
|
+
.mk-shell:has(> .mk-nav--magnify) > .mk-shell__view {
|
|
708
708
|
border-right: 1px solid var(--md-sys-color-surface-container);
|
|
709
709
|
}
|
|
710
710
|
|
|
711
|
-
.mk-nav--
|
|
711
|
+
.mk-nav--magnify {
|
|
712
712
|
display: flex;
|
|
713
713
|
flex-direction: column;
|
|
714
714
|
min-width: 270px;
|
|
@@ -717,25 +717,25 @@
|
|
|
717
717
|
z-index: 1;
|
|
718
718
|
}
|
|
719
719
|
|
|
720
|
-
.mk-nav--
|
|
720
|
+
.mk-nav--magnify .mk-nav__buttons {
|
|
721
721
|
display: flex;
|
|
722
722
|
flex-direction: column;
|
|
723
723
|
}
|
|
724
724
|
|
|
725
|
-
.mk-nav--
|
|
725
|
+
.mk-nav--magnify .mk-nav__actions {
|
|
726
726
|
margin-top: auto;
|
|
727
727
|
display: flex;
|
|
728
728
|
flex-direction: column;
|
|
729
729
|
}
|
|
730
730
|
|
|
731
|
-
.mk-nav--
|
|
731
|
+
.mk-nav--magnify .mk-nav__options {
|
|
732
732
|
display: flex;
|
|
733
733
|
flex-direction: column;
|
|
734
734
|
gap: 4px;
|
|
735
735
|
margin-top: 24px;
|
|
736
736
|
}
|
|
737
737
|
|
|
738
|
-
.mk-nav--
|
|
738
|
+
.mk-nav--magnify .mk-nav__label {
|
|
739
739
|
display: flex;
|
|
740
740
|
align-items: center;
|
|
741
741
|
height: 40px;
|
|
@@ -745,7 +745,7 @@
|
|
|
745
745
|
font-weight: 500;
|
|
746
746
|
}
|
|
747
747
|
|
|
748
|
-
.mk-nav--
|
|
748
|
+
.mk-nav--magnify .mk-nav__button {
|
|
749
749
|
display: flex;
|
|
750
750
|
align-items: center;
|
|
751
751
|
gap: 8px;
|
|
@@ -765,35 +765,35 @@
|
|
|
765
765
|
transform-origin: left;
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
-
.mk-nav--
|
|
768
|
+
.mk-nav--magnify .mk-nav__icon {
|
|
769
769
|
display: none;
|
|
770
770
|
}
|
|
771
771
|
|
|
772
|
-
.mk-nav--
|
|
772
|
+
.mk-nav--magnify .mk-nav__button:hover {
|
|
773
773
|
color: var(--md-sys-color-primary-container);
|
|
774
774
|
}
|
|
775
775
|
|
|
776
|
-
.mk-nav--
|
|
776
|
+
.mk-nav--magnify .mk-nav__button:not(.mk-nav__button--first):has(+ * + *:hover) {
|
|
777
777
|
transform: scale(1.03);
|
|
778
778
|
}
|
|
779
779
|
|
|
780
|
-
.mk-nav--
|
|
780
|
+
.mk-nav--magnify .mk-nav__button:not(.mk-nav__button--first):has(+ *:hover) {
|
|
781
781
|
transform: scale(1.09);
|
|
782
782
|
}
|
|
783
783
|
|
|
784
|
-
.mk-nav--
|
|
784
|
+
.mk-nav--magnify .mk-nav__button:hover {
|
|
785
785
|
transform: scale(1.2);
|
|
786
786
|
}
|
|
787
787
|
|
|
788
|
-
.mk-nav--
|
|
788
|
+
.mk-nav--magnify .mk-nav__button:not(.mk-nav__button--first):hover + * {
|
|
789
789
|
transform: scale(1.09);
|
|
790
790
|
}
|
|
791
791
|
|
|
792
|
-
.mk-nav--
|
|
792
|
+
.mk-nav--magnify .mk-nav__button:not(.mk-nav__button--first):hover + * + * {
|
|
793
793
|
transform: scale(1.03);
|
|
794
794
|
}
|
|
795
795
|
|
|
796
|
-
.mk-nav--
|
|
796
|
+
.mk-nav--magnify .mk-nav__button[aria-current='page'] {
|
|
797
797
|
color: var(--md-sys-color-primary);
|
|
798
798
|
font-size: 28px;
|
|
799
799
|
font-weight: 600;
|
|
@@ -801,13 +801,13 @@
|
|
|
801
801
|
font-variation-settings: 'FILL' 1;
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
-
.mk-nav--
|
|
804
|
+
.mk-nav--magnify.mk-nav--accent .mk-nav__button[aria-current='page'] {
|
|
805
805
|
background: var(--md-sys-color-primary-container);
|
|
806
806
|
color: var(--md-sys-color-on-primary-container);
|
|
807
807
|
box-shadow: 0 0 32px -10px var(--md-sys-color-primary-container);
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
-
.mk-nav--
|
|
810
|
+
.mk-nav--magnify .mk-nav__button.mk-nav__button--first {
|
|
811
811
|
color: var(--md-sys-color-on-background);
|
|
812
812
|
width: 40px;
|
|
813
813
|
padding: 0;
|
|
@@ -819,7 +819,7 @@
|
|
|
819
819
|
margin: 8px;
|
|
820
820
|
}
|
|
821
821
|
|
|
822
|
-
.mk-nav--
|
|
822
|
+
.mk-nav--magnify .mk-nav__button--first .mk-nav__name {
|
|
823
823
|
/* Hidden from sight, not from screen readers: the button keeps its name. */
|
|
824
824
|
position: absolute;
|
|
825
825
|
width: 1px;
|
|
@@ -829,7 +829,7 @@
|
|
|
829
829
|
white-space: nowrap;
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
.mk-nav--
|
|
832
|
+
.mk-nav--magnify .mk-nav__button--first .mk-nav__icon {
|
|
833
833
|
display: none;
|
|
834
834
|
}
|
|
835
835
|
}
|
|
@@ -955,11 +955,11 @@
|
|
|
955
955
|
}
|
|
956
956
|
|
|
957
957
|
/* Each style's view header. */
|
|
958
|
-
.mk-shell:has(> .mk-nav--
|
|
958
|
+
.mk-shell:has(> .mk-nav--sidebar) .mk-shell__title {
|
|
959
959
|
font-size: var(--md-sys-typescale-headline-small-size);
|
|
960
960
|
}
|
|
961
961
|
|
|
962
|
-
.mk-shell:has(> .mk-nav--
|
|
962
|
+
.mk-shell:has(> .mk-nav--sidebar) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
|
|
963
963
|
position: sticky;
|
|
964
964
|
top: 0;
|
|
965
965
|
z-index: 1;
|
|
@@ -970,13 +970,13 @@
|
|
|
970
970
|
padding-top: max(16px, env(safe-area-inset-top));
|
|
971
971
|
}
|
|
972
972
|
|
|
973
|
-
.mk-shell:has(> .mk-nav--
|
|
974
|
-
.mk-shell:has(> .mk-nav--
|
|
973
|
+
.mk-shell:has(> .mk-nav--pills) .mk-shell__title,
|
|
974
|
+
.mk-shell:has(> .mk-nav--rail) .mk-shell__title {
|
|
975
975
|
font-size: var(--md-sys-typescale-title-small-size);
|
|
976
976
|
}
|
|
977
977
|
|
|
978
|
-
.mk-shell:has(> .mk-nav--
|
|
979
|
-
.mk-shell:has(> .mk-nav--
|
|
978
|
+
.mk-shell:has(> .mk-nav--pills) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header,
|
|
979
|
+
.mk-shell:has(> .mk-nav--rail) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
|
|
980
980
|
display: flex;
|
|
981
981
|
align-items: center;
|
|
982
982
|
margin: 16px 16px -8px;
|
|
@@ -991,7 +991,7 @@
|
|
|
991
991
|
padding: 0;
|
|
992
992
|
}
|
|
993
993
|
|
|
994
|
-
.mk-shell:has(> .mk-nav--
|
|
994
|
+
.mk-shell:has(> .mk-nav--pills) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
|
|
995
995
|
padding-top: env(safe-area-inset-top);
|
|
996
996
|
}
|
|
997
997
|
|
|
@@ -999,11 +999,11 @@
|
|
|
999
999
|
margin-bottom: -24px;
|
|
1000
1000
|
}
|
|
1001
1001
|
|
|
1002
|
-
.mk-shell:has(> .mk-nav--
|
|
1002
|
+
.mk-shell:has(> .mk-nav--card) .mk-shell__title {
|
|
1003
1003
|
font-size: var(--md-sys-typescale-title-large-size);
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
|
-
.mk-shell:has(> .mk-nav--
|
|
1006
|
+
.mk-shell:has(> .mk-nav--card) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
|
|
1007
1007
|
position: sticky;
|
|
1008
1008
|
top: 0;
|
|
1009
1009
|
z-index: 1;
|
|
@@ -1017,11 +1017,11 @@
|
|
|
1017
1017
|
padding-top: max(12px, env(safe-area-inset-top));
|
|
1018
1018
|
}
|
|
1019
1019
|
|
|
1020
|
-
.mk-shell:has(> .mk-nav--
|
|
1020
|
+
.mk-shell:has(> .mk-nav--wash) .mk-shell__title {
|
|
1021
1021
|
font-size: var(--md-sys-typescale-headline-small-size);
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
1024
|
-
.mk-shell:has(> .mk-nav--
|
|
1024
|
+
.mk-shell:has(> .mk-nav--wash) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
|
|
1025
1025
|
position: sticky;
|
|
1026
1026
|
top: 0;
|
|
1027
1027
|
z-index: 1;
|
|
@@ -1032,7 +1032,7 @@
|
|
|
1032
1032
|
}
|
|
1033
1033
|
|
|
1034
1034
|
@media only screen and (max-width: 679.98px) {
|
|
1035
|
-
.mk-shell:has(> .mk-nav--
|
|
1035
|
+
.mk-shell:has(> .mk-nav--rail) .mk-shell__view:has(> .mk-shell__content) > .mk-shell__header {
|
|
1036
1036
|
margin: 0;
|
|
1037
1037
|
border-radius: 0;
|
|
1038
1038
|
background: none;
|