@plexui/styles 0.1.33 → 0.1.34
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/es/components/Accordion/Accordion.module.css +14 -0
- package/dist/es/components/Alert/Alert.module.css +112 -1
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +34 -0
- package/dist/es/components/Button/Button.module.css +70 -22
- package/dist/es/components/Card/Card.module.css +22 -6
- package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
- package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
- package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -0
- package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
- package/dist/es/components/DataTable/DataTable.module.css +4 -0
- package/dist/es/components/DatePicker/Calendar.module.css +18 -5
- package/dist/es/components/DateRangePicker/Calendar.module.css +20 -2
- package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
- package/dist/es/components/Dialog/Dialog.module.css +212 -77
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +31 -0
- package/dist/es/components/Field/Field.module.css +188 -23
- package/dist/es/components/FieldGroup/FieldGroup.module.css +59 -0
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +21 -0
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +16 -0
- package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
- package/dist/es/components/Input/Input.module.css +69 -0
- package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
- package/dist/es/components/Menu/Menu.module.css +278 -28
- package/dist/es/components/Page/Page.module.css +92 -24
- package/dist/es/components/PageControl/PageControl.module.css +81 -0
- package/dist/es/components/Popover/Popover.module.css +10 -1
- package/dist/es/components/Select/Select.module.css +53 -9
- package/dist/es/components/SelectControl/SelectControl.module.css +38 -3
- package/dist/es/components/Sidebar/Sidebar.module.css +276 -57
- package/dist/es/components/Slider/Slider.module.css +52 -45
- package/dist/es/components/Sortable/Sortable.module.css +7 -3
- package/dist/es/components/Stepper/Stepper.module.css +98 -0
- package/dist/es/components/TabBar/TabBar.module.css +233 -0
- package/dist/es/components/Tabs/Tabs.module.css +149 -2
- package/dist/es/components/Toast/Toast.module.css +50 -5
- package/dist/es/components/Toolbar/Toolbar.module.css +208 -18
- package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/LICENSE +21 -0
- package/dist/es/styles/katex.min.css +666 -730
- package/dist/es/styles/mobile-materials.css +56 -14
- package/dist/es/styles/mobile-surfaces.css +39 -32
- package/dist/es/styles/touch.css +328 -90
- package/dist/es/styles/variables-components.css +232 -13
- package/package.json +1 -1
|
@@ -74,6 +74,13 @@
|
|
|
74
74
|
/* Same "item + subtitle" pattern as the pressable item below. */
|
|
75
75
|
.MenuItemContent:has(.ItemDescription) {
|
|
76
76
|
font-weight: var(--font-weight-semibold);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* A described row keeps the icons before its label beside the two lines, as a pressable row does */
|
|
80
|
+
.MenuItemContent:has(> .ItemLeading) {
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: var(--menu-item-gap);
|
|
77
84
|
}.MenuItem {
|
|
78
85
|
position: relative;
|
|
79
86
|
display: block;
|
|
@@ -90,8 +97,10 @@
|
|
|
90
97
|
|
|
91
98
|
/* An item with a description keeps its label semibold in every state, so
|
|
92
99
|
consumers never have to remember a className for the "item + subtitle"
|
|
93
|
-
pattern. The description's own rule keeps the second line normal.
|
|
94
|
-
|
|
100
|
+
pattern. The description's own rule keeps the second line normal. The
|
|
101
|
+
line under a radio item or a submenu row is its value (Newest to Oldest,
|
|
102
|
+
Manual), not a subtitle: their labels stay regular among their neighbours. */
|
|
103
|
+
.MenuItem:not(.RadioItem, .SubMenuItem):has(.ItemDescription) {
|
|
95
104
|
font-weight: var(--font-weight-semibold);
|
|
96
105
|
}
|
|
97
106
|
|
|
@@ -171,6 +180,10 @@
|
|
|
171
180
|
justify-content: inherit;
|
|
172
181
|
gap: inherit;
|
|
173
182
|
}.ItemActions {
|
|
183
|
+
/* An action keeps its xs face on a phone, where a uniform xs button is otherwise the kit's 28px circle (touch.css). */
|
|
184
|
+
--button-uniform-size-xs: var(--control-size-xs);
|
|
185
|
+
--button-icon-size-xs: var(--control-icon-size-sm);
|
|
186
|
+
|
|
174
187
|
/* Prevent adding height to the MenuItem, and horizontally center */
|
|
175
188
|
display: flex;
|
|
176
189
|
align-items: center;
|
|
@@ -187,6 +200,20 @@
|
|
|
187
200
|
}
|
|
188
201
|
}:where(:root[data-input="touch"]) .ItemActions {
|
|
189
202
|
opacity: 1;
|
|
203
|
+
}/* On a phone an action takes the 44px target of iOS around its face; the negative margin keeps the
|
|
204
|
+
row's layout and the glyph where they were. */@media (max-width: 767px) {
|
|
205
|
+
.ItemActions > button {
|
|
206
|
+
min-width: 44px;
|
|
207
|
+
min-height: 44px;
|
|
208
|
+
margin: calc((var(--button-size) - 44px) / 2);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.ItemActions > button::before,
|
|
212
|
+
.ItemActions > button::after {
|
|
213
|
+
width: var(--button-size);
|
|
214
|
+
height: var(--button-size);
|
|
215
|
+
margin: auto;
|
|
216
|
+
}
|
|
190
217
|
}.Separator {
|
|
191
218
|
height: 1px;
|
|
192
219
|
margin: var(--menu-separator-gutter);
|
|
@@ -201,9 +228,81 @@
|
|
|
201
228
|
-webkit-user-select: none;
|
|
202
229
|
-moz-user-select: none;
|
|
203
230
|
user-select: none;
|
|
231
|
+
}/* A header names what the menu acts on, above its items: the picture, name and kind of a file in Files (iOS-menu
|
|
232
|
+
IMG_5690), with a round action at its end, or the picture and name of a board in Freeform (IMG_5676). It sits on
|
|
233
|
+
the rows' inline padding on a desktop; the phone sizes are in touch.css. */.MenuHeader {
|
|
234
|
+
display: flex;
|
|
235
|
+
align-items: center;
|
|
236
|
+
gap: var(--menu-header-gap, calc(var(--spacing) * 2));
|
|
237
|
+
padding: var(--menu-header-padding, var(--menu-item-padding));
|
|
238
|
+
-webkit-user-select: none;
|
|
239
|
+
-moz-user-select: none;
|
|
240
|
+
user-select: none;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* Files leaves more room under a header that no separator closes, before the first item (IMG_5690) */
|
|
244
|
+
.MenuHeader:not(:has(+ .Separator)) {
|
|
245
|
+
margin-bottom: var(--menu-header-list-gap, 0px);
|
|
246
|
+
}.MenuHeaderMedia {
|
|
247
|
+
display: flex;
|
|
248
|
+
flex: none;
|
|
249
|
+
align-items: center;
|
|
250
|
+
justify-content: center;
|
|
251
|
+
width: var(--menu-header-media-size, var(--control-size-md));
|
|
252
|
+
height: var(--menu-header-media-size, var(--control-size-md));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.MenuHeaderMedia > :is(img, svg) {
|
|
256
|
+
width: 100%;
|
|
257
|
+
height: 100%;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* A thumbnail has the small rounded corners of a Freeform board's (IMG_5676) */
|
|
261
|
+
.MenuHeaderMedia > img {
|
|
262
|
+
border-radius: var(--menu-header-media-radius, var(--radius-sm));
|
|
263
|
+
-o-object-fit: cover;
|
|
264
|
+
object-fit: cover;
|
|
265
|
+
}.MenuHeaderText {
|
|
266
|
+
display: flex;
|
|
267
|
+
flex: 1;
|
|
268
|
+
min-width: 0;
|
|
269
|
+
flex-direction: column;
|
|
270
|
+
}.MenuHeaderTitle {
|
|
271
|
+
overflow: hidden;
|
|
272
|
+
font-size: var(--menu-header-title-font-size, var(--menu-font-size));
|
|
273
|
+
font-weight: var(--font-weight-semibold);
|
|
274
|
+
line-height: var(--menu-header-title-line-height, var(--menu-line-height));
|
|
275
|
+
text-overflow: ellipsis;
|
|
276
|
+
white-space: nowrap;
|
|
277
|
+
}.MenuHeaderDescription {
|
|
278
|
+
overflow: hidden;
|
|
279
|
+
color: var(--menu-description-color, var(--color-text-secondary));
|
|
280
|
+
font-size: var(--menu-header-description-font-size, var(--font-text-xs-size));
|
|
281
|
+
line-height: var(--menu-header-description-line-height, var(--font-text-xs-line-height));
|
|
282
|
+
text-overflow: ellipsis;
|
|
283
|
+
white-space: nowrap;
|
|
284
|
+
}.MenuHeaderAction {
|
|
285
|
+
flex: none;
|
|
286
|
+
}/* On a phone the action takes the 44px target of iOS around its 34px face, as an item's action does; the negative
|
|
287
|
+
margin keeps the face 16px from the panel's edge, centered on the picture (IMG_5690). */@media (max-width: 767px) {
|
|
288
|
+
/* Under the header, so the face's size outranks Button's own surface rule whatever order the sheets load in. */
|
|
289
|
+
.MenuHeader .MenuHeaderAction {
|
|
290
|
+
min-width: 44px;
|
|
291
|
+
min-height: 44px;
|
|
292
|
+
margin: calc((var(--button-size) - 44px) / 2);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.MenuHeader .MenuHeaderAction::before,
|
|
296
|
+
.MenuHeader .MenuHeaderAction::after {
|
|
297
|
+
width: var(--button-size);
|
|
298
|
+
height: var(--button-size);
|
|
299
|
+
margin: auto;
|
|
300
|
+
}
|
|
204
301
|
}.SubMenuItem {
|
|
205
302
|
justify-content: space-between;
|
|
206
303
|
}.SubTriggerIcon {
|
|
304
|
+
/* The chevron takes the free space, so a label stays beside its icon rather than between it and the chevron */
|
|
305
|
+
margin-inline-start: auto;
|
|
207
306
|
/* slight visual offset of svg canvas */
|
|
208
307
|
margin-right: -2px;
|
|
209
308
|
opacity: 0.75;
|
|
@@ -284,6 +383,12 @@
|
|
|
284
383
|
order: 1;
|
|
285
384
|
}
|
|
286
385
|
|
|
386
|
+
/* Beside only an icon and a label its margin, not space-between, pushes it to the end, so the icon and the label
|
|
387
|
+
stay together at the start; a row with more elements keeps space-between, which an ml-auto child relies on. */
|
|
388
|
+
:where([data-indicator-position="end"]) .PressableInner:where(:not(:has(> :not(svg, .RadioIndicator, .CheckboxIndicator)))) > .RadioIndicator {
|
|
389
|
+
margin-inline-start: auto;
|
|
390
|
+
}
|
|
391
|
+
|
|
287
392
|
[data-highlighted] .RadioIndicator {
|
|
288
393
|
box-shadow: 0 0 0 1px var(--radio-group-indicator-border-color-hover) inset;
|
|
289
394
|
}
|
|
@@ -336,6 +441,12 @@
|
|
|
336
441
|
order: 1;
|
|
337
442
|
}
|
|
338
443
|
|
|
444
|
+
/* Beside only an icon and a label its margin, not space-between, pushes it to the end, so the icon and the label
|
|
445
|
+
stay together at the start; a row with more elements keeps space-between, which an ml-auto child relies on. */
|
|
446
|
+
:where([data-indicator-position="end"]) .PressableInner:where(:not(:has(> :not(svg, .RadioIndicator, .CheckboxIndicator)))) > .CheckboxIndicator {
|
|
447
|
+
margin-inline-start: auto;
|
|
448
|
+
}
|
|
449
|
+
|
|
339
450
|
[data-indicator-variant="solid"] .CheckboxIndicator {
|
|
340
451
|
border-radius: var(--radius-full);
|
|
341
452
|
box-shadow: 0 0 0 1px var(--radio-group-indicator-border-color) inset;
|
|
@@ -357,29 +468,35 @@
|
|
|
357
468
|
[data-entering] .CheckboxCircle::before,
|
|
358
469
|
[data-entering] .CheckboxCircle::after {
|
|
359
470
|
animation-duration: 0s;
|
|
360
|
-
}
|
|
471
|
+
}/* A horizontal list, or a horizontal radio group at the top of a list: the mode switch of an iOS menu, one mode of several
|
|
472
|
+
with the chosen one on a fill (iOS-menu IMG_5665 and IMG_5666, Added and Captured over the rows of Photos; iOS 27 kit
|
|
473
|
+
Menu 492:52296, Control Group; Apps 2.4 Menu 40125:198566, Quick Actions). */:is(.MenuList, .RadioGroup)[data-layout="horizontal"] {
|
|
361
474
|
--h-icon-size: var(--menu-horizontal-icon-size, 20px);
|
|
362
475
|
--h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 2));
|
|
363
476
|
--h-gap: var(--menu-horizontal-item-gap, calc(var(--spacing) * 1));
|
|
364
477
|
|
|
365
|
-
display: flex;
|
|
478
|
+
display: var(--menu-horizontal-display, flex);
|
|
366
479
|
flex-direction: row;
|
|
367
|
-
|
|
480
|
+
/* Flex cannot size every action to the widest one; grid columns can, and a label
|
|
481
|
+
never wraps inside its fixed-height action (phone, through touch.css). */
|
|
482
|
+
grid-auto-flow: column;
|
|
483
|
+
grid-auto-columns: minmax(max-content, 1fr);
|
|
484
|
+
min-width: var(--menu-horizontal-min-width, auto);
|
|
368
485
|
gap: var(--menu-horizontal-gap, normal);
|
|
369
486
|
padding-inline: var(--menu-horizontal-padding-inline, var(--menu-gutter));
|
|
370
487
|
}
|
|
371
488
|
|
|
372
|
-
.MenuList[data-layout="horizontal"][data-size="sm"] {
|
|
489
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"][data-size="sm"] {
|
|
373
490
|
--h-icon-size: var(--menu-horizontal-icon-size, 16px);
|
|
374
491
|
--h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 1.5));
|
|
375
492
|
}
|
|
376
493
|
|
|
377
|
-
.MenuList[data-layout="horizontal"][data-size="lg"] {
|
|
494
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"][data-size="lg"] {
|
|
378
495
|
--h-icon-size: var(--menu-horizontal-icon-size, 24px);
|
|
379
496
|
--h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 2.5));
|
|
380
497
|
}
|
|
381
498
|
|
|
382
|
-
.MenuList[data-layout="horizontal"] .MenuItem {
|
|
499
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] .MenuItem {
|
|
383
500
|
--menu-item-radius: var(--menu-horizontal-item-radius, calc(var(--menu-radius) - var(--menu-gutter)));
|
|
384
501
|
display: var(--menu-horizontal-item-display, block);
|
|
385
502
|
height: var(--menu-horizontal-item-height, auto);
|
|
@@ -394,7 +511,7 @@
|
|
|
394
511
|
line-height: 1;
|
|
395
512
|
}
|
|
396
513
|
|
|
397
|
-
.MenuList[data-layout="horizontal"] .PressableInner {
|
|
514
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] .PressableInner {
|
|
398
515
|
flex-direction: column;
|
|
399
516
|
align-items: center;
|
|
400
517
|
gap: var(--h-gap);
|
|
@@ -403,11 +520,11 @@
|
|
|
403
520
|
line-height: var(--menu-horizontal-label-leading, var(--font-text-2xs-line-height));
|
|
404
521
|
}
|
|
405
522
|
|
|
406
|
-
.MenuList[data-layout="horizontal"] .PressableInner > svg {
|
|
523
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] .PressableInner > svg {
|
|
407
524
|
font-size: var(--h-icon-size);
|
|
408
525
|
}
|
|
409
526
|
|
|
410
|
-
.MenuList[data-layout="horizontal"] .MenuItemContent {
|
|
527
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] .MenuItemContent {
|
|
411
528
|
flex-direction: column;
|
|
412
529
|
align-items: center;
|
|
413
530
|
gap: var(--h-gap);
|
|
@@ -415,37 +532,92 @@
|
|
|
415
532
|
text-align: center;
|
|
416
533
|
}
|
|
417
534
|
|
|
418
|
-
|
|
535
|
+
/* Under the label of a tile, not pushed to an edge by the margin of a list row. */
|
|
536
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] :is(.RadioIndicator, .CheckboxIndicator) {
|
|
537
|
+
margin-inline-start: 0;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] .Separator {
|
|
541
|
+
display: var(--menu-horizontal-separator-display, block);
|
|
419
542
|
width: 1px;
|
|
420
543
|
height: auto;
|
|
421
544
|
align-self: stretch;
|
|
422
545
|
margin: calc(var(--spacing) * 1) 0;
|
|
546
|
+
}/* A group's options reach the horizontal gutter of the menu, not the inset of its rows: 10pt from the panel's edges in
|
|
547
|
+
the kit and Apps 2.4, where the rows are 16pt in. */.RadioGroup[data-layout="horizontal"] {
|
|
548
|
+
min-width: 0;
|
|
549
|
+
margin-inline: calc(var(--menu-horizontal-padding-inline, var(--menu-gutter)) - var(--menu-padding-inline, var(--menu-gutter)));
|
|
550
|
+
padding-inline: 0;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* The chosen mode stands on a fill, as Photos marks Added or Captured and the kit its first action; the fill tells the
|
|
554
|
+
choice, so no radio indicator is drawn. On a desktop it is 15%, apart from a highlight (8%, 10% in dark); on a phone
|
|
555
|
+
touch.css makes it the 12% of the device (IMG_5666: 222 on the 253 panel across the tile, darker only at its
|
|
556
|
+
leading edge, where the glass shades it; the kit's tertiary fill is 12% too). */
|
|
557
|
+
.RadioGroup[data-layout="horizontal"] .RadioItem[data-state="checked"] {
|
|
558
|
+
border-radius: var(--menu-item-radius);
|
|
559
|
+
background: var(--menu-horizontal-selected-background, var(--alpha-15));
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.RadioGroup[data-layout="horizontal"] .RadioItem .RadioIndicator {
|
|
563
|
+
display: none;
|
|
423
564
|
}/* The shared check icon stays hidden for desktop radio indicators. */.SelectionCheck {
|
|
424
565
|
width: 16px;
|
|
425
566
|
height: 16px;
|
|
426
567
|
}.RadioIndicator .SelectionCheck {
|
|
427
568
|
display: none;
|
|
428
569
|
}/* iPhone menu items share label/subtitle and selection geometry. */@media (max-width: 767px) {
|
|
429
|
-
.MenuList
|
|
430
|
-
|
|
570
|
+
.MenuList {
|
|
571
|
+
background: var(--menu-mobile-background, var(--color-surface-elevated));
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
:where([data-theme="dark"]) .MenuList {
|
|
575
|
+
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/* No tracking of its own: the system font tracks the labels. Nine labels of native iOS 26 menus
|
|
579
|
+
(iOS2 IMG_5524, 5525, 17/400) measure within 2px at @3x without it and 7 to 16px short with -0.43px. */
|
|
580
|
+
.MenuList:not([data-layout="horizontal"]) :is(.MenuItem, .MenuItemContent):not(:where(.RadioGroup[data-layout="horizontal"] *)) {
|
|
581
|
+
letter-spacing: var(--menu-letter-spacing, normal);
|
|
431
582
|
overflow-wrap: anywhere;
|
|
432
583
|
}
|
|
433
584
|
|
|
434
|
-
/*
|
|
435
|
-
|
|
585
|
+
/* A row is 42pt, as native iOS 26 menus space them (iOS-menu IMG_5676 and IMG_5690: labels 125 to 127px apart at
|
|
586
|
+
@3x; the iOS 27 kit draws 40), with a full-row pressed surface. */
|
|
587
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)) {
|
|
436
588
|
display: grid;
|
|
437
589
|
grid-template-columns: minmax(0, 1fr);
|
|
438
590
|
align-content: center;
|
|
439
|
-
min-height:
|
|
591
|
+
min-height: 42px;
|
|
440
592
|
padding-block: 0;
|
|
441
593
|
}
|
|
442
594
|
|
|
443
|
-
|
|
595
|
+
/* A row's press is its own (the capsule, a tile's fill): Safari's gray tap rectangle would stack on it */
|
|
596
|
+
.MenuItem {
|
|
597
|
+
-webkit-tap-highlight-color: transparent;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/* The pressed surface is the capsule iOS 26 draws under the finger (Files, the owner's shots of 08.11, @3x: 535 to
|
|
601
|
+
1224 in a 504 to 1255 panel, the whole 42pt row): 10pt from the panel's edges, not the row's 16, and round at its
|
|
602
|
+
ends (the menu's corner less the gutter, 24px, comes to a half circle on a row). iOS lights it under the finger and
|
|
603
|
+
darkens it away from it, 7 to 8% black on average (Files: 252 under the finger, 217 to 228 at the far end on the
|
|
604
|
+
255 panel); one even fill of that strength, as the owner proposed (08.11), --menu-press-background in touch.css. Every
|
|
605
|
+
row presses the same gray, a destructive one too. Without touch.css it is the highlight color. */
|
|
606
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *))::before {
|
|
444
607
|
position: absolute;
|
|
445
|
-
inset: 0;
|
|
608
|
+
inset-block: 0;
|
|
609
|
+
inset-inline: calc(var(--menu-gutter) - var(--menu-padding-inline, var(--menu-gutter)));
|
|
610
|
+
background: var(--menu-press-background, var(--menu-item-background-color));
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/* It shows the moment the finger lands and fades when it lifts. */
|
|
614
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)):not(:has(.ItemActions:active)):active::before {
|
|
615
|
+
opacity: 1;
|
|
616
|
+
transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
|
|
617
|
+
transition-duration: 0s;
|
|
446
618
|
}
|
|
447
619
|
|
|
448
|
-
.MenuList:not([data-layout="horizontal"]) .MenuItem > .PressableInner {
|
|
620
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)) > .PressableInner {
|
|
449
621
|
grid-area: 1 / 1;
|
|
450
622
|
min-width: 0;
|
|
451
623
|
padding-block: 10px;
|
|
@@ -487,25 +659,35 @@
|
|
|
487
659
|
color: var(--color-text);
|
|
488
660
|
}
|
|
489
661
|
|
|
662
|
+
/* The checkmark column of native iOS 26 menus (iOS-menu IMG_5666 Photos, IMG_5687 and IMG_5688 Files, the owner's
|
|
663
|
+
Files shots of 08.11, at @3x): 10.3 to 10.7pt of ink centred 28pt from the panel's edge, labels from 43.5pt. A row's
|
|
664
|
+
content starts 22px in, so the column is 13px and the label follows 8.5px after it (touch.css tokens). The iOS 27
|
|
665
|
+
kit draws a 15pt checkmark centred at 34 and labels from 52; the device wins. */
|
|
490
666
|
.MenuList:not([data-layout="horizontal"]) :is(.RadioItem, .CheckboxItem) {
|
|
491
|
-
gap: var(--menu-
|
|
667
|
+
gap: var(--menu-check-gap, 8.5px);
|
|
492
668
|
}
|
|
493
669
|
|
|
494
670
|
.MenuList:not([data-layout="horizontal"]) :is(.RadioIndicator, .CheckboxIndicator) {
|
|
495
|
-
width:
|
|
671
|
+
width: var(--menu-check-column, 13px);
|
|
496
672
|
height: 22px;
|
|
497
|
-
/*
|
|
673
|
+
/* A 22px selection slot beside the 20px label line. */
|
|
498
674
|
border-radius: 0;
|
|
499
675
|
box-shadow: none;
|
|
500
676
|
}
|
|
501
677
|
|
|
678
|
+
/* A menu with a checkmark column keeps it on every row: a row without a checkmark and a section title start at the
|
|
679
|
+
label column too (IMG_5666: View Options, Report a Concern and Filter:; Files: Select, New Folder, Name, Kind). */
|
|
680
|
+
.MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuItem:not(.RadioItem, .CheckboxItem, [data-submenu-collapse]):not(:where(.RadioGroup[data-layout="horizontal"] *)), .MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuItemContent, .MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuLabel {
|
|
681
|
+
padding-inline-start: var(--menu-check-label-inset, calc(8px + 13px + 8.5px));
|
|
682
|
+
}
|
|
683
|
+
|
|
502
684
|
.MenuList:not([data-layout="horizontal"]) .RadioIndicatorActive::before,
|
|
503
685
|
.MenuList:not([data-layout="horizontal"]) .RadioIndicatorActive::after {
|
|
504
686
|
display: none;
|
|
505
687
|
}
|
|
506
688
|
|
|
507
689
|
.MenuList:not([data-layout="horizontal"]) .CheckboxCircle {
|
|
508
|
-
width:
|
|
690
|
+
width: var(--menu-check-column, 13px);
|
|
509
691
|
height: 22px;
|
|
510
692
|
border-radius: 0;
|
|
511
693
|
background: none;
|
|
@@ -515,20 +697,23 @@
|
|
|
515
697
|
|
|
516
698
|
/* iOS 26 kit Menu Items (Menu has Selection): the checkmark leads the row, so the desktop end
|
|
517
699
|
position moves to the start on a phone. */
|
|
518
|
-
.MenuList:not([data-layout="horizontal"])
|
|
700
|
+
.MenuList:not([data-layout="horizontal"]) .CheckboxItem[data-indicator-position="end"],
|
|
701
|
+
.MenuList:not([data-layout="horizontal"]) [data-indicator-position="end"] .RadioItem {
|
|
519
702
|
justify-content: flex-start;
|
|
520
703
|
}
|
|
521
704
|
|
|
522
705
|
.MenuList:not([data-layout="horizontal"]) [data-indicator-position="end"] :is(.RadioIndicator, .RadioIndicatorActive, .CheckboxIndicator) {
|
|
523
706
|
order: -1;
|
|
707
|
+
margin-inline-start: 0;
|
|
524
708
|
}
|
|
525
709
|
|
|
526
|
-
/* The
|
|
710
|
+
/* The native checkmark: 10.3 to 10.7pt of ink (IMG_5666, 5687, 5688); the 18px Check icon draws 10.6 by 9.9, centred
|
|
711
|
+
in its column with the overflow on both sides. */
|
|
527
712
|
.MenuList:not([data-layout="horizontal"]) .SelectionCheck {
|
|
528
713
|
display: block;
|
|
529
714
|
flex-shrink: 0;
|
|
530
|
-
width:
|
|
531
|
-
height:
|
|
715
|
+
width: var(--menu-check-size, 18px);
|
|
716
|
+
height: var(--menu-check-size, 18px);
|
|
532
717
|
color: inherit;
|
|
533
718
|
}
|
|
534
719
|
}/* Phone submenu geometry is solved against the whole viewport/footer boundary.
|
|
@@ -545,8 +730,73 @@
|
|
|
545
730
|
max-height: min(var(--menu-max-height, 1200px), var(--menu-phone-max-height));
|
|
546
731
|
}
|
|
547
732
|
|
|
733
|
+
/* A submenu row ends in a chevron of the label's color, 6 by 10pt with its end 28pt in from the panel's
|
|
734
|
+
(iOS-menu IMG_5676, View Options: 17 by 31px at @3x, black): the 8 by 14 units of ChevronRight at 18px. */
|
|
735
|
+
.MenuList:not([data-layout="horizontal"]) .SubTriggerIcon {
|
|
736
|
+
width: 18px;
|
|
737
|
+
height: 18px;
|
|
738
|
+
opacity: 1;
|
|
739
|
+
}
|
|
740
|
+
|
|
548
741
|
.SubMenuItem[data-state="open"] > .PressableInner > .SubTriggerIcon {
|
|
549
742
|
transform: rotate(90deg);
|
|
550
743
|
}
|
|
744
|
+
|
|
745
|
+
/* iOS 26 submenus (iOS-menu IMG_5677, IMG_5678, IMG_5682): the row that opened one heads it in Semibold, with a
|
|
746
|
+
separator under it (Menu.tsx SubContent). */
|
|
747
|
+
.MenuList[data-submenu-phone] > [data-submenu-collapse] {
|
|
748
|
+
font-weight: var(--font-weight-semibold);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/* A submenu that starts with its own separator keeps only the one under its heading row */
|
|
752
|
+
[data-submenu-collapse] + .Separator + .Separator {
|
|
753
|
+
display: none;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/* While a submenu stands over it the parent steps back, as in IMG_5677 against IMG_5676: its rows at half strength
|
|
757
|
+
(the label's ink 10 shows as 131 on the 254 panel) and the panel 0.968 of its size from its top (12px narrower on
|
|
758
|
+
each side of a 753px panel, the top in place). The placement marks it (menuSubmenuPlacement.ts) and keeps the mark
|
|
759
|
+
while the whole menu leaves. The origin returns only once the panel is back to full size. */
|
|
760
|
+
.MenuList {
|
|
761
|
+
transition: scale var(--motion-enter) var(--cubic-enter), transform-origin 0s linear var(--motion-enter);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.MenuList > * {
|
|
765
|
+
transition: opacity var(--motion-enter) var(--cubic-enter);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.MenuList[data-submenu-over] {
|
|
769
|
+
scale: 0.968;
|
|
770
|
+
transform-origin: 50% 0;
|
|
771
|
+
transition: scale var(--motion-enter) var(--cubic-enter), transform-origin 0s;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.MenuList[data-submenu-over] > * {
|
|
775
|
+
opacity: 0.5;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/* A submenu grows out of the row that opened it, in step with the parent stepping back: from the middle of its top,
|
|
779
|
+
where its heading row covers that row, over the parent's --motion-enter and on its curve. The desktop's quick
|
|
780
|
+
submenu (100ms, from its corner beside the row) came in at a different time from the parent, from the corner. */
|
|
781
|
+
.MenuList[data-submenu-phone] {
|
|
782
|
+
transform-origin: 50% 0;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
.Menu[data-entering-active] .MenuList[data-submenu-phone],
|
|
786
|
+
.Menu[data-entering][data-interrupted] .MenuList[data-submenu-phone] {
|
|
787
|
+
transition-duration: var(--motion-enter);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.Menu[data-exiting-active] .MenuList[data-submenu-phone],
|
|
791
|
+
.Menu[data-exiting][data-interrupted] .MenuList[data-submenu-phone] {
|
|
792
|
+
transition-duration: var(--motion-exit);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
/* Opening and closing keep their own timing. The rule above lists a delay for the origin, and the open and close
|
|
796
|
+
rules name only their properties and durations, so without this the scale of a menu coming in or going out
|
|
797
|
+
started a whole --motion-enter late, after its fade. */
|
|
798
|
+
.Menu:is([data-entering], [data-exiting]) .MenuList {
|
|
799
|
+
transition-delay: 0s;
|
|
800
|
+
}
|
|
551
801
|
}
|
|
552
802
|
}
|
|
@@ -115,10 +115,10 @@
|
|
|
115
115
|
.Header[data-scrolled][data-divider] > .Head {
|
|
116
116
|
border-color: var(--color-border);
|
|
117
117
|
}
|
|
118
|
-
}/* One row, the height of Apple's bar. It floats over the page
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
sidebar's menu button. */@media (max-width: 767.98px) {
|
|
118
|
+
}/* One row, the height of Apple's bar. It floats over the page and meets the content scrolled under it
|
|
119
|
+
by its `background`, as a phone Toolbar does: by default the soft scroll edge of iOS 26. The material
|
|
120
|
+
sits on `::before`: on the bar itself a blur would hold the bar's children inside its own backdrop.
|
|
121
|
+
The first column keeps the place of a sidebar's menu button. */@media (max-width: 767.98px) {
|
|
122
122
|
.Page {
|
|
123
123
|
--page-top: var(--page-toolbar-height, var(--page-header-height, calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--page-bar-height-phone) + 10px)));
|
|
124
124
|
--page-bottom: var(--page-toolbar-bottom-height, var(--page-footer-height, 0px));
|
|
@@ -162,27 +162,51 @@
|
|
|
162
162
|
padding-block: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) 10px;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
/* Soft: the canvas covers content under the bar and fades out past it, as the soft edge of a top
|
|
166
|
+
Toolbar does. */
|
|
165
167
|
.Header::before {
|
|
166
168
|
position: absolute;
|
|
167
169
|
z-index: -1;
|
|
170
|
+
inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
|
|
171
|
+
background: var(--page-background);
|
|
172
|
+
backdrop-filter: blur(var(--toolbar-edge-blur-small));
|
|
173
|
+
content: "";
|
|
174
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
|
|
175
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
|
|
176
|
+
pointer-events: none;
|
|
177
|
+
transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Hard and solid are opaque, glass is translucent and shows itself once content is under the bar.
|
|
181
|
+
Hard and glass then draw a line, unless `divider` is off. */
|
|
182
|
+
.Header:not([data-background="soft"])::before {
|
|
168
183
|
inset: 0;
|
|
184
|
+
backdrop-filter: none;
|
|
185
|
+
-webkit-mask-image: none;
|
|
186
|
+
mask-image: none;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.Header[data-background="hard"]::before {
|
|
190
|
+
border-bottom: 1px solid transparent;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.Header[data-background="glass"]::before {
|
|
169
194
|
border-bottom: 0.5px solid transparent;
|
|
170
195
|
background: var(--page-bar-veil);
|
|
171
|
-
backdrop-filter:
|
|
172
|
-
content: "";
|
|
196
|
+
backdrop-filter: var(--page-bar-glass-filter);
|
|
173
197
|
opacity: 0;
|
|
174
|
-
pointer-events: none;
|
|
175
|
-
transition: opacity var(--transition-duration-basic);
|
|
176
198
|
}
|
|
177
199
|
|
|
178
|
-
.Header[data-background="
|
|
179
|
-
background: var(--page-background);
|
|
180
|
-
backdrop-filter: none;
|
|
200
|
+
.Header[data-scrolled][data-background="glass"]::before {
|
|
181
201
|
opacity: 1;
|
|
182
202
|
}
|
|
183
203
|
|
|
184
|
-
.Header[data-scrolled]::before {
|
|
185
|
-
|
|
204
|
+
.Header[data-scrolled][data-divider][data-background="hard"]::before {
|
|
205
|
+
border-bottom-color: var(--page-bar-hard-line);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.Header[data-scrolled][data-divider][data-background="glass"]::before {
|
|
209
|
+
border-bottom-color: var(--page-bar-line);
|
|
186
210
|
}
|
|
187
211
|
|
|
188
212
|
/* The bar's glass buttons cast a shadow only over content scrolled under them. */
|
|
@@ -190,10 +214,6 @@
|
|
|
190
214
|
--mobile-glass-shadow: var(--mobile-glass-shadow-raised);
|
|
191
215
|
}
|
|
192
216
|
|
|
193
|
-
.Header[data-scrolled][data-divider]::before {
|
|
194
|
-
border-bottom-color: var(--page-bar-line);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
217
|
.Bar {
|
|
198
218
|
display: grid;
|
|
199
219
|
grid-template-columns: var(--page-bar-side-width, 44px) minmax(0, 1fr) var(--page-bar-side-width, 44px);
|
|
@@ -207,8 +227,8 @@
|
|
|
207
227
|
grid-row: 1;
|
|
208
228
|
align-self: center;
|
|
209
229
|
min-width: 0;
|
|
210
|
-
/*
|
|
211
|
-
|
|
230
|
+
/* Centered in the 44px bar: native iOS 26 bars put the title's cap middle on the buttons' center
|
|
231
|
+
(IMG_5508/5511/5512/5514/5515, within 1px). The kit's text frame sits 2px lower than that. */
|
|
212
232
|
}
|
|
213
233
|
|
|
214
234
|
.Heading {
|
|
@@ -258,11 +278,17 @@
|
|
|
258
278
|
min-width: 0;
|
|
259
279
|
}
|
|
260
280
|
|
|
281
|
+
/* A bar's text button is the Liquid Glass text button of the iOS 27 kit (Button - Liquid Glass - Text
|
|
282
|
+
5473:21667): 17px Medium, the label of a Toolbar's items. */
|
|
261
283
|
.Leading > :is(button, a),
|
|
262
284
|
.Actions > :is(button, a) {
|
|
263
285
|
--button-size: 44px;
|
|
264
|
-
|
|
265
|
-
|
|
286
|
+
/* A uniform bar button is the 44px glass circle of a bar, as a Toolbar's; elsewhere on a phone a uniform
|
|
287
|
+
button is the circle of its step (touch.css) */
|
|
288
|
+
--button-uniform-size: 44px;
|
|
289
|
+
--button-font-size: var(--toolbar-label-font-size);
|
|
290
|
+
--button-line-height: var(--toolbar-label-line-height);
|
|
291
|
+
--button-font-weight: var(--toolbar-label-font-weight);
|
|
266
292
|
--button-radius: var(--radius-full);
|
|
267
293
|
}
|
|
268
294
|
|
|
@@ -271,6 +297,12 @@
|
|
|
271
297
|
--button-icon-size: 17px;
|
|
272
298
|
}
|
|
273
299
|
|
|
300
|
+
/* An icon alone in the circle is a bar symbol, as in a Toolbar: Files' More (IMG_5686) and Freeform's
|
|
301
|
+
ellipsis (IMG_5684) draw it 19.7pt wide, not at the size of a label beside text (owner 08.11). */
|
|
302
|
+
:is(.Leading, .Actions) > :is(button, a)[data-uniform]:not([data-navigation-action]) {
|
|
303
|
+
--button-icon-size: var(--toolbar-icon-size);
|
|
304
|
+
}
|
|
305
|
+
|
|
274
306
|
:is(.Leading, .Actions) > :where(button, a)[data-uniform]:where(:not([data-disabled], [data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
|
|
275
307
|
--button-mobile-material-background: var(--mobile-glass-background);
|
|
276
308
|
--button-mobile-material-sheen: var(--mobile-glass-sheen);
|
|
@@ -291,16 +323,52 @@
|
|
|
291
323
|
padding-left: 8px;
|
|
292
324
|
}
|
|
293
325
|
|
|
326
|
+
/* The footer meets the content scrolled under it by its `background`, as a bottom Toolbar does. Soft:
|
|
327
|
+
the canvas starts 27px above the actions and covers the content fully from their top (native
|
|
328
|
+
iOS 26 bottom bars, IMG_5491). */
|
|
294
329
|
.Footer {
|
|
295
330
|
position: relative;
|
|
296
331
|
z-index: 5;
|
|
297
|
-
background:
|
|
298
|
-
backdrop-filter: blur(20px) saturate(180%);
|
|
332
|
+
background: none;
|
|
299
333
|
}
|
|
300
334
|
|
|
301
|
-
.Footer
|
|
335
|
+
.Footer::before {
|
|
336
|
+
position: absolute;
|
|
337
|
+
z-index: -1;
|
|
338
|
+
inset: calc(var(--page-footer-padding-top) - 27px) 0 0;
|
|
302
339
|
background: var(--page-background);
|
|
340
|
+
backdrop-filter: blur(var(--toolbar-edge-blur-small));
|
|
341
|
+
content: "";
|
|
342
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 27px);
|
|
343
|
+
mask-image: linear-gradient(to bottom, transparent, #000 27px);
|
|
344
|
+
pointer-events: none;
|
|
345
|
+
transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.Footer:not([data-background="soft"])::before {
|
|
349
|
+
inset: 0;
|
|
303
350
|
backdrop-filter: none;
|
|
351
|
+
-webkit-mask-image: none;
|
|
352
|
+
mask-image: none;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.Footer[data-background="hard"]::before {
|
|
356
|
+
border-top: 1px solid transparent;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.Footer[data-background="glass"]::before {
|
|
360
|
+
border-top: 0.5px solid var(--page-bar-line);
|
|
361
|
+
background: var(--page-bar-veil);
|
|
362
|
+
backdrop-filter: var(--page-bar-glass-filter);
|
|
363
|
+
opacity: 0;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.Footer[data-content-below][data-background="hard"]::before {
|
|
367
|
+
border-top-color: var(--page-bar-hard-line);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.Footer[data-content-below][data-background="glass"]::before {
|
|
371
|
+
opacity: 1;
|
|
304
372
|
}
|
|
305
373
|
|
|
306
374
|
.Content {
|