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