@plexui/styles 0.3.3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/Alert/Alert.module.css +0 -2
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +338 -31
- package/dist/es/components/Dialog/Dialog.module.css +136 -12
- package/dist/es/components/Input/Input.module.css +14 -14
- package/dist/es/components/Page/Page.module.css +267 -14
- package/dist/es/components/Slider/Slider.module.css +25 -19
- package/dist/es/components/TabBar/TabBar.module.css +54 -2
- package/dist/es/components/Tabs/Tabs.module.css +24 -8
- package/dist/es/components/Toolbar/Toolbar.module.css +516 -163
- package/dist/es/styles/touch.css +35 -21
- package/dist/es/styles/variables-components.css +51 -6
- package/package.json +1 -1
|
@@ -144,13 +144,13 @@
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/* The 2xs ghost button stands as high as the value field beside it; its glyph is the reset arrow alone.
|
|
147
|
-
The data attribute wins over the Button's own size rules. */
|
|
148
|
-
.Reset[data-size="2xs"] {
|
|
147
|
+
The data attribute wins over the Button's own size rules. A phone's reset is uniform, and the Button sizes it. */
|
|
148
|
+
.Reset[data-size="2xs"]:not([data-uniform]) {
|
|
149
149
|
width: var(--slider-reset-size, var(--control-size-2xs));
|
|
150
150
|
height: var(--slider-reset-size, var(--control-size-2xs));
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.Reset[data-size="2xs"] svg {
|
|
153
|
+
.Reset[data-size="2xs"]:not([data-uniform]) svg {
|
|
154
154
|
width: var(--slider-reset-icon-size, 14px);
|
|
155
155
|
height: var(--slider-reset-icon-size, 14px);
|
|
156
156
|
}/* The value is an outline field of the 2xs size (24px, 6px gutter, the Input's outline borders) that shows
|
|
@@ -248,20 +248,23 @@
|
|
|
248
248
|
margin-inline-end: 0;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
+
/* The value is as wide as its digits, so the reset stands 8px from them whatever their count; it stays 44px
|
|
252
|
+
tall, and the row's label focuses it too. */
|
|
251
253
|
.ValueInput {
|
|
252
|
-
min-width: 44px;
|
|
253
254
|
height: 44px;
|
|
254
255
|
}
|
|
255
256
|
|
|
256
|
-
/* The reset
|
|
257
|
-
|
|
258
|
-
.
|
|
259
|
-
|
|
257
|
+
/* The reset, the kit's small round gray button (Slider.tsx), stands 8px before the value, its 44px target
|
|
258
|
+
reaching to the digits and no further. Hidden, it keeps its place, so the value does not move. */
|
|
259
|
+
.SliderLabel {
|
|
260
|
+
gap: 8px;
|
|
260
261
|
}
|
|
261
262
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
/* With touch.css the circle is 28px and its target reaches 8px past it, to the digits. A smaller circle (the
|
|
264
|
+
standard 24px without touch.css) stands farther off, so its target never takes a tap on the value. */
|
|
265
|
+
.Reset[data-uniform] {
|
|
266
|
+
margin-inline-end: max(0px, calc((44px - var(--button-uniform-size, 28px)) / 2 - 8px));
|
|
267
|
+
}
|
|
265
268
|
|
|
266
269
|
.SliderWrap[data-orientation="vertical"] .Slider {
|
|
267
270
|
width: max(44px, var(--slider-control-height, 44px));
|
|
@@ -334,20 +337,23 @@
|
|
|
334
337
|
margin-inline-end: 0;
|
|
335
338
|
}
|
|
336
339
|
|
|
340
|
+
/* The value is as wide as its digits, so the reset stands 8px from them whatever their count; it stays 44px
|
|
341
|
+
tall, and the row's label focuses it too. */
|
|
337
342
|
:where([data-plex-layout="phone"]) .ValueInput {
|
|
338
|
-
min-width: 44px;
|
|
339
343
|
height: 44px;
|
|
340
344
|
}
|
|
341
345
|
|
|
342
|
-
/* The reset
|
|
343
|
-
|
|
344
|
-
:where([data-plex-layout="phone"]) .
|
|
345
|
-
|
|
346
|
+
/* The reset, the kit's small round gray button (Slider.tsx), stands 8px before the value, its 44px target
|
|
347
|
+
reaching to the digits and no further. Hidden, it keeps its place, so the value does not move. */
|
|
348
|
+
:where([data-plex-layout="phone"]) .SliderLabel {
|
|
349
|
+
gap: 8px;
|
|
346
350
|
}
|
|
347
351
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
352
|
+
/* With touch.css the circle is 28px and its target reaches 8px past it, to the digits. A smaller circle (the
|
|
353
|
+
standard 24px without touch.css) stands farther off, so its target never takes a tap on the value. */
|
|
354
|
+
:where([data-plex-layout="phone"]) .Reset[data-uniform] {
|
|
355
|
+
margin-inline-end: max(0px, calc((44px - var(--button-uniform-size, 28px)) / 2 - 8px));
|
|
356
|
+
}
|
|
351
357
|
|
|
352
358
|
:where([data-plex-layout="phone"]) .SliderWrap[data-orientation="vertical"] .Slider {
|
|
353
359
|
width: max(44px, var(--slider-control-height, 44px));
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.TabBar[data-background="hard"]::before {
|
|
44
|
-
border-top:
|
|
44
|
+
border-top: 0.5px solid transparent;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.TabBar[data-background="glass"]::before {
|
|
@@ -59,6 +59,32 @@
|
|
|
59
59
|
opacity: 1;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
/* Blur: the blur background of a bottom Toolbar (--page-bar-blur-*), while content continues below. */
|
|
63
|
+
.TabBar[data-background="blur"]::before {
|
|
64
|
+
inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
|
|
65
|
+
background: none;
|
|
66
|
+
backdrop-filter: blur(var(--page-bar-blur-light));
|
|
67
|
+
-webkit-mask-image: var(--page-bar-blur-bottom-mask);
|
|
68
|
+
mask-image: var(--page-bar-blur-bottom-mask);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.TabBar[data-background="blur"]::after {
|
|
72
|
+
position: absolute;
|
|
73
|
+
z-index: -1;
|
|
74
|
+
inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
|
|
75
|
+
backdrop-filter: blur(var(--page-bar-blur-heavy));
|
|
76
|
+
content: "";
|
|
77
|
+
-webkit-mask-image: var(--page-bar-blur-bottom-heavy-mask);
|
|
78
|
+
mask-image: var(--page-bar-blur-bottom-heavy-mask);
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
transition: opacity var(--transition-duration-basic);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.TabBar[data-background="blur"]:not([data-content-below])::before,
|
|
84
|
+
.TabBar[data-background="blur"]:not([data-content-below])::after {
|
|
85
|
+
opacity: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
62
88
|
/* Soft is no band: native iOS 26 lets the list run under and around the tab bar's capsule at full
|
|
63
89
|
contrast (Phone, IMG_5615; plan 172, owner 08.11), and the capsule's glass sets it off. */
|
|
64
90
|
.TabBar[data-background="soft"]::before {
|
|
@@ -336,7 +362,7 @@
|
|
|
336
362
|
}
|
|
337
363
|
|
|
338
364
|
:where([data-plex-layout="phone"]) .TabBar[data-background="hard"]::before {
|
|
339
|
-
border-top:
|
|
365
|
+
border-top: 0.5px solid transparent;
|
|
340
366
|
}
|
|
341
367
|
|
|
342
368
|
:where([data-plex-layout="phone"]) .TabBar[data-background="glass"]::before {
|
|
@@ -354,6 +380,32 @@
|
|
|
354
380
|
opacity: 1;
|
|
355
381
|
}
|
|
356
382
|
|
|
383
|
+
/* Blur: the blur background of a bottom Toolbar (--page-bar-blur-*), while content continues below. */
|
|
384
|
+
:where([data-plex-layout="phone"]) .TabBar[data-background="blur"]::before {
|
|
385
|
+
inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
|
|
386
|
+
background: none;
|
|
387
|
+
backdrop-filter: blur(var(--page-bar-blur-light));
|
|
388
|
+
-webkit-mask-image: var(--page-bar-blur-bottom-mask);
|
|
389
|
+
mask-image: var(--page-bar-blur-bottom-mask);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
:where([data-plex-layout="phone"]) .TabBar[data-background="blur"]::after {
|
|
393
|
+
position: absolute;
|
|
394
|
+
z-index: -1;
|
|
395
|
+
inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
|
|
396
|
+
backdrop-filter: blur(var(--page-bar-blur-heavy));
|
|
397
|
+
content: "";
|
|
398
|
+
-webkit-mask-image: var(--page-bar-blur-bottom-heavy-mask);
|
|
399
|
+
mask-image: var(--page-bar-blur-bottom-heavy-mask);
|
|
400
|
+
pointer-events: none;
|
|
401
|
+
transition: opacity var(--transition-duration-basic);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
:where([data-plex-layout="phone"]) .TabBar[data-background="blur"]:not([data-content-below])::before,
|
|
405
|
+
:where([data-plex-layout="phone"]) .TabBar[data-background="blur"]:not([data-content-below])::after {
|
|
406
|
+
opacity: 0;
|
|
407
|
+
}
|
|
408
|
+
|
|
357
409
|
/* Soft is no band: native iOS 26 lets the list run under and around the tab bar's capsule at full
|
|
358
410
|
contrast (Phone, IMG_5615; plan 172, owner 08.11), and the capsule's glass sets it off. */
|
|
359
411
|
:where([data-plex-layout="phone"]) .TabBar[data-background="soft"]::before {
|
|
@@ -711,17 +711,25 @@
|
|
|
711
711
|
in content (SwiftUI Picker .segmented, iOS 27.2) and on glass in a bar (iOS 27.2, Calendar IMG_5433);
|
|
712
712
|
it has no underline tabs and no vertical segments.
|
|
713
713
|
============================================= */@media (max-width: 767px) {
|
|
714
|
-
/* Horizontal tabs of either variant are the segmented control. Its segments share one width,
|
|
715
|
-
UISegmentedControl
|
|
716
|
-
|
|
714
|
+
/* Horizontal tabs of either variant are the segmented control. Its segments share one width, the
|
|
715
|
+
widest label's, as UISegmentedControl at its own width (iOS 27.2, every kit example is 2 to 5 equal
|
|
716
|
+
segments): the script measures it (segments.ts, asked for by --tabs-equal-segments) and sets the
|
|
717
|
+
track. Where equal segments do not fit, each takes its label and the same air around it, as
|
|
718
|
+
apportionsSegmentWidthsByContent does (ref-app segmented-hug, owner 13.11: a long label 4px from its
|
|
719
|
+
selection beside short ones floating in wide segments read as broken padding). A segment never
|
|
720
|
+
narrows below its content, so tabs that do not fit still scroll. A block control fills its
|
|
717
721
|
container, as the 370px kit examples do, and its labels shorten instead. */
|
|
718
722
|
.Tabs:where([data-orientation="horizontal"]) {
|
|
723
|
+
--tabs-equal-segments: 1;
|
|
724
|
+
|
|
719
725
|
display: inline-grid;
|
|
720
|
-
grid-auto-columns: minmax(max-content,
|
|
726
|
+
grid-auto-columns: var(--tabs-segment-track, minmax(max-content, auto));
|
|
721
727
|
grid-auto-flow: column;
|
|
722
728
|
}
|
|
723
729
|
|
|
724
730
|
.Tabs:where([data-orientation="horizontal"][data-block]) {
|
|
731
|
+
--tabs-equal-segments: 0;
|
|
732
|
+
|
|
725
733
|
display: grid;
|
|
726
734
|
grid-auto-columns: minmax(0, 1fr);
|
|
727
735
|
}
|
|
@@ -963,17 +971,25 @@
|
|
|
963
971
|
visibility: visible;
|
|
964
972
|
}
|
|
965
973
|
}
|
|
966
|
-
/* Horizontal tabs of either variant are the segmented control. Its segments share one width,
|
|
967
|
-
UISegmentedControl
|
|
968
|
-
|
|
974
|
+
/* Horizontal tabs of either variant are the segmented control. Its segments share one width, the
|
|
975
|
+
widest label's, as UISegmentedControl at its own width (iOS 27.2, every kit example is 2 to 5 equal
|
|
976
|
+
segments): the script measures it (segments.ts, asked for by --tabs-equal-segments) and sets the
|
|
977
|
+
track. Where equal segments do not fit, each takes its label and the same air around it, as
|
|
978
|
+
apportionsSegmentWidthsByContent does (ref-app segmented-hug, owner 13.11: a long label 4px from its
|
|
979
|
+
selection beside short ones floating in wide segments read as broken padding). A segment never
|
|
980
|
+
narrows below its content, so tabs that do not fit still scroll. A block control fills its
|
|
969
981
|
container, as the 370px kit examples do, and its labels shorten instead. */
|
|
970
982
|
:where([data-plex-layout="phone"]) .Tabs:where([data-orientation="horizontal"]) {
|
|
983
|
+
--tabs-equal-segments: 1;
|
|
984
|
+
|
|
971
985
|
display: inline-grid;
|
|
972
|
-
grid-auto-columns: minmax(max-content,
|
|
986
|
+
grid-auto-columns: var(--tabs-segment-track, minmax(max-content, auto));
|
|
973
987
|
grid-auto-flow: column;
|
|
974
988
|
}
|
|
975
989
|
|
|
976
990
|
:where([data-plex-layout="phone"]) .Tabs:where([data-orientation="horizontal"][data-block]) {
|
|
991
|
+
--tabs-equal-segments: 0;
|
|
992
|
+
|
|
977
993
|
display: grid;
|
|
978
994
|
grid-auto-columns: minmax(0, 1fr);
|
|
979
995
|
}
|