@mrpelz/uikit-ish 7.13.1 → 7.26.2
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/components/accordion/style.css +1 -1
- package/dist/components/action-sheet/main.d.ts.map +1 -1
- package/dist/components/action-sheet/main.js +9 -6
- package/dist/components/action-sheet/main.js.map +1 -1
- package/dist/components/action-sheet/props.d.ts +2 -1
- package/dist/components/action-sheet/props.d.ts.map +1 -1
- package/dist/components/alert/main.d.ts.map +1 -1
- package/dist/components/alert/main.js +12 -4
- package/dist/components/alert/main.js.map +1 -1
- package/dist/components/alert/props.d.ts +2 -1
- package/dist/components/alert/props.d.ts.map +1 -1
- package/dist/components/alert/style.css +27 -5
- package/dist/components/button/main.js +1 -1
- package/dist/components/button/main.js.map +1 -1
- package/dist/components/button/props.d.ts +3 -2
- package/dist/components/button/props.d.ts.map +1 -1
- package/dist/components/button/style.css +6 -17
- package/dist/components/card/main.d.ts +53 -0
- package/dist/components/card/main.d.ts.map +1 -0
- package/dist/components/card/main.js +286 -0
- package/dist/components/card/main.js.map +1 -0
- package/dist/components/card/props.d.ts +83 -0
- package/dist/components/card/props.d.ts.map +1 -0
- package/dist/components/card/props.js +2 -0
- package/dist/components/card/props.js.map +1 -0
- package/dist/components/card/style.css +900 -0
- package/dist/components/collapsible/style.css +1 -1
- package/dist/components/color-picker/main.d.ts.map +1 -1
- package/dist/components/color-picker/main.js +20 -33
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/style.css +4 -23
- package/dist/components/contextual-menu/main.d.ts +6 -2
- package/dist/components/contextual-menu/main.d.ts.map +1 -1
- package/dist/components/contextual-menu/main.js +67 -43
- package/dist/components/contextual-menu/main.js.map +1 -1
- package/dist/components/contextual-menu/props.d.ts +2 -1
- package/dist/components/contextual-menu/props.d.ts.map +1 -1
- package/dist/components/contextual-menu/style.css +64 -2
- package/dist/components/control-cards/main.d.ts +49 -0
- package/dist/components/control-cards/main.d.ts.map +1 -0
- package/dist/components/control-cards/main.js +835 -0
- package/dist/components/control-cards/main.js.map +1 -0
- package/dist/components/control-cards/props.d.ts +409 -0
- package/dist/components/control-cards/props.d.ts.map +1 -0
- package/dist/components/control-cards/props.js +2 -0
- package/dist/components/control-cards/props.js.map +1 -0
- package/dist/components/control-cards/style.css +492 -0
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +3 -2
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/style.css +1 -1
- package/dist/components/drawer/style.css +6 -0
- package/dist/components/edit-menu/main.d.ts +2 -1
- package/dist/components/edit-menu/main.d.ts.map +1 -1
- package/dist/components/edit-menu/main.js +8 -4
- package/dist/components/edit-menu/main.js.map +1 -1
- package/dist/components/glass/backdrop.d.ts +75 -0
- package/dist/components/glass/backdrop.d.ts.map +1 -0
- package/dist/components/glass/backdrop.js +608 -0
- package/dist/components/glass/backdrop.js.map +1 -0
- package/dist/components/glass/gradient.d.ts +17 -0
- package/dist/components/glass/gradient.d.ts.map +1 -0
- package/dist/components/glass/gradient.js +233 -0
- package/dist/components/glass/gradient.js.map +1 -0
- package/dist/components/glass/main.d.ts +60 -6
- package/dist/components/glass/main.d.ts.map +1 -1
- package/dist/components/glass/main.js +100 -122
- package/dist/components/glass/main.js.map +1 -1
- package/dist/components/glass/marker.d.ts +66 -0
- package/dist/components/glass/marker.d.ts.map +1 -0
- package/dist/components/glass/marker.js +268 -0
- package/dist/components/glass/marker.js.map +1 -0
- package/dist/components/glass/props.d.ts +33 -7
- package/dist/components/glass/props.d.ts.map +1 -1
- package/dist/components/glass/style.css +139 -75
- package/dist/components/grid/dashes.d.ts +15 -0
- package/dist/components/grid/dashes.d.ts.map +1 -0
- package/dist/components/grid/dashes.js +37 -0
- package/dist/components/grid/dashes.js.map +1 -0
- package/dist/components/grid/edit.d.ts +11 -0
- package/dist/components/grid/edit.d.ts.map +1 -0
- package/dist/components/grid/edit.js +1066 -0
- package/dist/components/grid/edit.js.map +1 -0
- package/dist/components/grid/handle.d.ts +123 -0
- package/dist/components/grid/handle.d.ts.map +1 -0
- package/dist/components/grid/handle.js +194 -0
- package/dist/components/grid/handle.js.map +1 -0
- package/dist/components/grid/icons.d.ts +40 -0
- package/dist/components/grid/icons.d.ts.map +1 -0
- package/dist/components/grid/icons.js +140 -0
- package/dist/components/grid/icons.js.map +1 -0
- package/dist/components/grid/layout.d.ts +111 -0
- package/dist/components/grid/layout.d.ts.map +1 -0
- package/dist/components/grid/layout.js +1257 -0
- package/dist/components/grid/layout.js.map +1 -0
- package/dist/components/grid/main.d.ts +63 -0
- package/dist/components/grid/main.d.ts.map +1 -0
- package/dist/components/grid/main.js +1894 -0
- package/dist/components/grid/main.js.map +1 -0
- package/dist/components/grid/overlay.d.ts +24 -0
- package/dist/components/grid/overlay.d.ts.map +1 -0
- package/dist/components/grid/overlay.js +312 -0
- package/dist/components/grid/overlay.js.map +1 -0
- package/dist/components/grid/plan.d.ts +78 -0
- package/dist/components/grid/plan.d.ts.map +1 -0
- package/dist/components/grid/plan.js +249 -0
- package/dist/components/grid/plan.js.map +1 -0
- package/dist/components/grid/props.d.ts +509 -0
- package/dist/components/grid/props.d.ts.map +1 -0
- package/dist/components/grid/props.js +2 -0
- package/dist/components/grid/props.js.map +1 -0
- package/dist/components/grid/reshape.d.ts +60 -0
- package/dist/components/grid/reshape.d.ts.map +1 -0
- package/dist/components/grid/reshape.js +214 -0
- package/dist/components/grid/reshape.js.map +1 -0
- package/dist/components/grid/style.css +1293 -0
- package/dist/components/header/main.d.ts.map +1 -1
- package/dist/components/header/main.js +97 -10
- package/dist/components/header/main.js.map +1 -1
- package/dist/components/header/props.d.ts +2 -2
- package/dist/components/header/props.d.ts.map +1 -1
- package/dist/components/header/style.css +28 -43
- package/dist/components/index.d.ts +10 -6
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/island/main.d.ts +2 -2
- package/dist/components/island/main.d.ts.map +1 -1
- package/dist/components/island/main.js +193 -41
- package/dist/components/island/main.js.map +1 -1
- package/dist/components/island/props.d.ts +4 -2
- package/dist/components/island/props.d.ts.map +1 -1
- package/dist/components/island/style.css +50 -3
- package/dist/components/layout/main.d.ts +3 -6
- package/dist/components/layout/main.d.ts.map +1 -1
- package/dist/components/layout/main.js +225 -56
- package/dist/components/layout/main.js.map +1 -1
- package/dist/components/layout/props.d.ts +43 -2
- package/dist/components/layout/props.d.ts.map +1 -1
- package/dist/components/layout/style.css +84 -23
- package/dist/components/list/main.d.ts +3 -3
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +90 -19
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +20 -0
- package/dist/components/list/props.d.ts.map +1 -1
- package/dist/components/list/reorder.d.ts +16 -2
- package/dist/components/list/reorder.d.ts.map +1 -1
- package/dist/components/list/reorder.js.map +1 -1
- package/dist/components/list/style.css +60 -3
- package/dist/components/menu/main.d.ts +9 -5
- package/dist/components/menu/main.d.ts.map +1 -1
- package/dist/components/menu/main.js +87 -9
- package/dist/components/menu/main.js.map +1 -1
- package/dist/components/menu/props.d.ts +14 -0
- package/dist/components/menu/props.d.ts.map +1 -1
- package/dist/components/menu/style.css +3 -1
- package/dist/components/page/main.d.ts.map +1 -1
- package/dist/components/page/main.js +6 -3
- package/dist/components/page/main.js.map +1 -1
- package/dist/components/page/props.d.ts +3 -2
- package/dist/components/page/props.d.ts.map +1 -1
- package/dist/components/page/style.css +8 -4
- package/dist/components/page-control/props.d.ts +3 -3
- package/dist/components/popover/main.d.ts +10 -4
- package/dist/components/popover/main.d.ts.map +1 -1
- package/dist/components/popover/main.js +30 -19
- package/dist/components/popover/main.js.map +1 -1
- package/dist/components/popover/props.d.ts +2 -0
- package/dist/components/popover/props.d.ts.map +1 -1
- package/dist/components/popover/style.css +6 -2
- package/dist/components/progress/style.css +2 -2
- package/dist/components/roll/main.d.ts.map +1 -1
- package/dist/components/roll/main.js +5 -3
- package/dist/components/roll/main.js.map +1 -1
- package/dist/components/segmented/main.d.ts.map +1 -1
- package/dist/components/segmented/main.js +4 -4
- package/dist/components/segmented/main.js.map +1 -1
- package/dist/components/segmented/props.d.ts +5 -2
- package/dist/components/segmented/props.d.ts.map +1 -1
- package/dist/components/segmented/style.css +1 -1
- package/dist/components/settings/main.d.ts +13 -0
- package/dist/components/settings/main.d.ts.map +1 -1
- package/dist/components/settings/main.js +16 -0
- package/dist/components/settings/main.js.map +1 -1
- package/dist/components/settings/props.d.ts +1 -0
- package/dist/components/settings/props.d.ts.map +1 -1
- package/dist/components/sheet/main.d.ts.map +1 -1
- package/dist/components/sheet/main.js +156 -45
- package/dist/components/sheet/main.js.map +1 -1
- package/dist/components/sheet/props.d.ts +4 -2
- package/dist/components/sheet/props.d.ts.map +1 -1
- package/dist/components/sheet/snap.d.ts +54 -0
- package/dist/components/sheet/snap.d.ts.map +1 -1
- package/dist/components/sheet/snap.js +253 -23
- package/dist/components/sheet/snap.js.map +1 -1
- package/dist/components/sheet/style.css +126 -20
- package/dist/components/sidebar/main.d.ts +2 -1
- package/dist/components/sidebar/main.d.ts.map +1 -1
- package/dist/components/sidebar/main.js +18 -6
- package/dist/components/sidebar/main.js.map +1 -1
- package/dist/components/sidebar/props.d.ts +2 -1
- package/dist/components/sidebar/props.d.ts.map +1 -1
- package/dist/components/sidebar/style.css +78 -0
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +51 -9
- package/dist/components/slider/main.js.map +1 -1
- package/dist/components/slider/props.d.ts +1 -0
- package/dist/components/slider/props.d.ts.map +1 -1
- package/dist/components/slider/style.css +9 -0
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +4 -2
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/symbol/main.d.ts.map +1 -1
- package/dist/components/symbol/main.js +5 -1
- package/dist/components/symbol/main.js.map +1 -1
- package/dist/components/symbol/props.d.ts +10 -0
- package/dist/components/symbol/props.d.ts.map +1 -1
- package/dist/components/symbol/style.css +21 -3
- package/dist/components/tab-bar/main.d.ts.map +1 -1
- package/dist/components/tab-bar/main.js +8 -5
- package/dist/components/tab-bar/main.js.map +1 -1
- package/dist/components/tab-bar/props.d.ts +16 -12
- package/dist/components/tab-bar/props.d.ts.map +1 -1
- package/dist/components/tab-bar/style.css +3 -9
- package/dist/components/text-field/main.d.ts.map +1 -1
- package/dist/components/text-field/main.js +6 -3
- package/dist/components/text-field/main.js.map +1 -1
- package/dist/components/text-field/style.css +1 -1
- package/dist/components/toolbar/main.js +1 -1
- package/dist/components/toolbar/main.js.map +1 -1
- package/dist/components/toolbar/props.d.ts +3 -3
- package/dist/components/toolbar/style.css +1 -1
- package/dist/components/tooltip/main.d.ts +6 -1
- package/dist/components/tooltip/main.d.ts.map +1 -1
- package/dist/components/tooltip/main.js +13 -7
- package/dist/components/tooltip/main.js.map +1 -1
- package/dist/components/utils/main.d.ts +31 -2
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +60 -3
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/viewport/current.d.ts +15 -0
- package/dist/components/viewport/current.d.ts.map +1 -0
- package/dist/components/viewport/current.js +74 -0
- package/dist/components/viewport/current.js.map +1 -0
- package/dist/components/viewport/edge-effect.d.ts.map +1 -1
- package/dist/components/viewport/edge-effect.js +52 -24
- package/dist/components/viewport/edge-effect.js.map +1 -1
- package/dist/components/viewport/edge.d.ts +7 -4
- package/dist/components/viewport/edge.d.ts.map +1 -1
- package/dist/components/viewport/edge.js +21 -7
- package/dist/components/viewport/edge.js.map +1 -1
- package/dist/components/viewport/focus-scroll.d.ts +21 -0
- package/dist/components/viewport/focus-scroll.d.ts.map +1 -0
- package/dist/components/viewport/focus-scroll.js +272 -0
- package/dist/components/viewport/focus-scroll.js.map +1 -0
- package/dist/components/viewport/input.d.ts +39 -1
- package/dist/components/viewport/input.d.ts.map +1 -1
- package/dist/components/viewport/input.js +122 -13
- package/dist/components/viewport/input.js.map +1 -1
- package/dist/components/viewport/main.d.ts +16 -1
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +243 -49
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/padding.d.ts +1 -1
- package/dist/components/viewport/padding.d.ts.map +1 -1
- package/dist/components/viewport/padding.js +2 -2
- package/dist/components/viewport/props.d.ts +12 -2
- package/dist/components/viewport/props.d.ts.map +1 -1
- package/dist/components/viewport/status-bar.d.ts +9 -0
- package/dist/components/viewport/status-bar.d.ts.map +1 -0
- package/dist/components/viewport/status-bar.js +131 -0
- package/dist/components/viewport/status-bar.js.map +1 -0
- package/dist/components/viewport/style.css +62 -5
- package/dist/styles.css +123 -198
- package/package.json +5 -4
|
@@ -0,0 +1,900 @@
|
|
|
1
|
+
/* Card (see main.tsx). */
|
|
2
|
+
@layer uikit-ish {
|
|
3
|
+
/* The card: glass (see the glass' `uikit-glass-medium`), the item's
|
|
4
|
+
radius, its parts on a grid of its own, laid out by its size (see
|
|
5
|
+
below): its symbol and a switch at its top, its title and value at
|
|
6
|
+
its bottom. */
|
|
7
|
+
.uikit-card-root {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: grid;
|
|
10
|
+
width: 100%;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
height: 100%;
|
|
13
|
+
min-height: 0;
|
|
14
|
+
border-radius: var(--uikit-grid-item-radius, 24px);
|
|
15
|
+
|
|
16
|
+
/* (Its wells: what's set into its glass (a list's group, see below; an
|
|
17
|
+
app's own, e.g. a bar), recessed: a translucent tint of its text's
|
|
18
|
+
color, shaded at its top, a hairline rim, lit at its bottom edge; by
|
|
19
|
+
its text's color, right on its glass in both schemes and bright.) */
|
|
20
|
+
--uikit-card-well: color-mix(in srgb, currentcolor 7%, transparent);
|
|
21
|
+
--uikit-card-well-shadow:
|
|
22
|
+
inset 0 1px 3px rgb(0 0 0 / 14%),
|
|
23
|
+
inset 0 0 0 0.5px color-mix(in srgb, currentcolor 12%, transparent),
|
|
24
|
+
inset 0 -0.5px 0 rgb(255 255 255 / 35%);
|
|
25
|
+
|
|
26
|
+
/* (Its layout's padding, also its slider's label's and value's copies'
|
|
27
|
+
in its fill, see below.) */
|
|
28
|
+
--uikit-card-padding: 12px 14px;
|
|
29
|
+
|
|
30
|
+
/* (Its hairline's width: its glass's rim, see Glass: on light glass
|
|
31
|
+
0.5px, on dark 1px; lit, 0.5px, see below. What a slider's ticks on
|
|
32
|
+
its glass stop short of, at both ends, see below.) */
|
|
33
|
+
--uikit-card-rim: 0.5px;
|
|
34
|
+
|
|
35
|
+
@media (prefers-color-scheme: dark) {
|
|
36
|
+
--uikit-card-rim: 1px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:where([data-color-scheme='light'], [data-color-scheme='light'] *) {
|
|
40
|
+
--uikit-card-rim: 0.5px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:where([data-color-scheme='dark'], [data-color-scheme='dark'] *) {
|
|
44
|
+
--uikit-card-rim: 1px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
color: var(--uikit-glass-content);
|
|
48
|
+
|
|
49
|
+
/* (Its veil (see below) stacked within it: under the grid's corner
|
|
50
|
+
symbols beside it, in its tile.) */
|
|
51
|
+
isolation: isolate;
|
|
52
|
+
text-align: start;
|
|
53
|
+
transition: background-color 200ms;
|
|
54
|
+
|
|
55
|
+
/* Its veil (editing, see main.tsx): over all of it, under the grid's
|
|
56
|
+
corner symbols (beside it, in its tile); lifted while the grid's
|
|
57
|
+
tiles are dragged or resized, as they fade (see below). */
|
|
58
|
+
&::after {
|
|
59
|
+
position: absolute;
|
|
60
|
+
z-index: 2;
|
|
61
|
+
border-radius: inherit;
|
|
62
|
+
background-color: transparent;
|
|
63
|
+
content: '';
|
|
64
|
+
inset: 0;
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
transition: background-color 200ms;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* (Pressable (an `onClick`, see main.tsx): hovered, a tint of its
|
|
70
|
+
text's color; pressed, more; by its color, no layer changing.) */
|
|
71
|
+
&[data-pressable] {
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
-webkit-tap-highlight-color: transparent;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (hover: hover) {
|
|
77
|
+
&[data-pressable]:hover::after {
|
|
78
|
+
background-color: color-mix(in srgb, currentcolor 6%, transparent);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&[data-pressable]:active::after {
|
|
83
|
+
background-color: color-mix(in srgb, currentcolor 12%, transparent);
|
|
84
|
+
transition-duration: 0s;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&[data-editing]::after {
|
|
88
|
+
/* (Over everything in it, its switch and corner buttons too (their
|
|
89
|
+
own, above a slider's fill: see below); not as its press tint.) */
|
|
90
|
+
z-index: 4;
|
|
91
|
+
background-color: var(
|
|
92
|
+
--uikit-card-veil,
|
|
93
|
+
light-dark(
|
|
94
|
+
color-mix(in srgb, var(--color-ui-system-background) 45%, transparent),
|
|
95
|
+
color-mix(in srgb, var(--color-ui-system-background) 58%, transparent)
|
|
96
|
+
)
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.uikit-grid-root[data-grid-drag] &[data-editing]::after {
|
|
101
|
+
background-color: transparent;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Flashed (a momentary card pressed, or its `flash`, see main.tsx): lit
|
|
106
|
+
as if active at once (see below), then fading back: a layer of its own
|
|
107
|
+
in the lit glass's color going clear over its glass, its text going
|
|
108
|
+
back from the lit one (colors only: its glass may be drawn as an
|
|
109
|
+
image, which doesn't fade). */
|
|
110
|
+
.uikit-card-root[data-fading] {
|
|
111
|
+
animation: 500ms uikit-card-fade-text;
|
|
112
|
+
|
|
113
|
+
&::before {
|
|
114
|
+
position: absolute;
|
|
115
|
+
border-radius: inherit;
|
|
116
|
+
animation: 500ms uikit-card-fade-glass forwards;
|
|
117
|
+
content: '';
|
|
118
|
+
inset: 0;
|
|
119
|
+
pointer-events: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:is(.uikit-card-symbol, .uikit-card-title, .uikit-card-value) {
|
|
123
|
+
animation: 500ms uikit-card-fade-text;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Its frame: what its size queries ask (see below), filling it. */
|
|
128
|
+
.uikit-card-frame {
|
|
129
|
+
position: relative;
|
|
130
|
+
display: grid;
|
|
131
|
+
width: 100%;
|
|
132
|
+
min-width: 0;
|
|
133
|
+
height: 100%;
|
|
134
|
+
min-height: 0;
|
|
135
|
+
border-radius: inherit;
|
|
136
|
+
container: uikit-card / size;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* (Off screen, what's in it skipped: not styled, laid out, painted or
|
|
140
|
+
hit-tested, so a page of many cards scrolls smoothly; its glass and
|
|
141
|
+
shadow its card's, drawn all the same (clipped by its own rounded box,
|
|
142
|
+
nothing of it past its card's edge). Its size its card's either way.
|
|
143
|
+
Not while editing: tiles moved and resized across the grid, each
|
|
144
|
+
drawn as it goes.) */
|
|
145
|
+
.uikit-card-root:not([data-editing]) > .uikit-card-frame {
|
|
146
|
+
content-visibility: auto;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* (Its tile getting to a new box (see Grid's reshape.ts): its frame at
|
|
150
|
+
the size it's getting to (its parts laid out there at once), from its
|
|
151
|
+
glass's top leading corner; what's beyond its glass clipped.) */
|
|
152
|
+
.uikit-grid-item-body[data-grid-reshaping] > .uikit-card-root {
|
|
153
|
+
overflow: clip;
|
|
154
|
+
|
|
155
|
+
> .uikit-card-frame {
|
|
156
|
+
width: var(--uikit-grid-tile-width, 100%);
|
|
157
|
+
height: var(--uikit-grid-tile-height, 100%);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Its parts' layout (inside its frame, for its size queries, see
|
|
162
|
+
below). */
|
|
163
|
+
.uikit-card-layout {
|
|
164
|
+
display: grid;
|
|
165
|
+
min-width: 0;
|
|
166
|
+
min-height: 0;
|
|
167
|
+
box-sizing: border-box;
|
|
168
|
+
padding: var(--uikit-card-padding);
|
|
169
|
+
border-radius: inherit;
|
|
170
|
+
column-gap: 10px;
|
|
171
|
+
grid-template:
|
|
172
|
+
'symbol control' auto
|
|
173
|
+
'. .' 1fr
|
|
174
|
+
'title title' auto
|
|
175
|
+
'value value' auto / 1fr auto;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* (Its tile's corner symbols in its text's color: its glass's content,
|
|
179
|
+
as the medium glass sets it on it (see Glass), beside it (in its tile's
|
|
180
|
+
body; its move sign on its item, without an area's room); veiled while
|
|
181
|
+
editing, legible on it whatever its state. Hidden, as Grid hides them;
|
|
182
|
+
fading while the grid's tiles are dragged, below.) */
|
|
183
|
+
.uikit-grid-item-body:where(:has(> .uikit-card-root))
|
|
184
|
+
> :is(.uikit-grid-corner-button, .uikit-grid-move-sign):not([data-grid-hidden]),
|
|
185
|
+
.uikit-grid-item:where(
|
|
186
|
+
:not([data-grid-room]):has(> .uikit-grid-item-body > .uikit-card-root)
|
|
187
|
+
)
|
|
188
|
+
> .uikit-grid-move-sign:not([data-grid-hidden]) {
|
|
189
|
+
color: light-dark(
|
|
190
|
+
var(--glass-ui-medium-light-content),
|
|
191
|
+
var(--glass-ui-medium-dark-content)
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* (Its tile's corner symbols fading as its veil lifts, see above: in
|
|
196
|
+
their color (as they fade, see Grid), no layer changing.) */
|
|
197
|
+
.uikit-grid-root[data-grid-drag]
|
|
198
|
+
.uikit-grid-item:has(> .uikit-grid-item-body > .uikit-card-root)
|
|
199
|
+
:is(.uikit-grid-corner-button, .uikit-grid-move-sign) {
|
|
200
|
+
color: transparent;
|
|
201
|
+
|
|
202
|
+
> .uikit-grid-corner-icon {
|
|
203
|
+
stroke: transparent;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* A corner button (see main.tsx, Grid's): in its text's color, above
|
|
208
|
+
all of its content (a slider filling it, see below): a press there is
|
|
209
|
+
its own, wherever it's rendered in it; its parts off its icon, see the
|
|
210
|
+
end. */
|
|
211
|
+
.uikit-card-corner-button {
|
|
212
|
+
z-index: 3;
|
|
213
|
+
color: inherit;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* Its symbol: at its top leading corner, a little larger than its text.
|
|
217
|
+
(Its parts' colors resolved on them: a copy over a slider's fill, in
|
|
218
|
+
the fill's color scheme, see below.) */
|
|
219
|
+
.uikit-card-symbol {
|
|
220
|
+
display: flex;
|
|
221
|
+
min-width: 0;
|
|
222
|
+
align-items: center;
|
|
223
|
+
color: var(--uikit-glass-content);
|
|
224
|
+
font-size: var(--font-ui-title3-size);
|
|
225
|
+
grid-area: symbol;
|
|
226
|
+
line-height: 1;
|
|
227
|
+
|
|
228
|
+
/* (On (`active`), though its card isn't lit: in its tint, its
|
|
229
|
+
`Symbol`'s emphasized icon (e.g. filled) shown, as when lit, see
|
|
230
|
+
below; not transitioned.) */
|
|
231
|
+
&[data-active] {
|
|
232
|
+
--uikit-symbol-emphasis: 1;
|
|
233
|
+
|
|
234
|
+
color: var(
|
|
235
|
+
--uikit-card-symbol-tint,
|
|
236
|
+
var(--uikit-switch-on-color, var(--color-ui-system-green))
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* Its title: two lines at most (its words breaking with a hyphen when
|
|
242
|
+
they don't fit), emphasized. */
|
|
243
|
+
.uikit-card-title {
|
|
244
|
+
display: -webkit-box;
|
|
245
|
+
overflow: hidden;
|
|
246
|
+
min-width: 0;
|
|
247
|
+
-webkit-box-orient: vertical;
|
|
248
|
+
color: var(--uikit-glass-content);
|
|
249
|
+
font-size: var(--font-ui-subheadline-size);
|
|
250
|
+
font-variation-settings: 'wght'
|
|
251
|
+
var(--font-ui-subheadline-weight-emphasized);
|
|
252
|
+
font-weight: round(
|
|
253
|
+
down,
|
|
254
|
+
var(--font-ui-subheadline-weight-emphasized),
|
|
255
|
+
100
|
|
256
|
+
);
|
|
257
|
+
grid-area: title;
|
|
258
|
+
hyphens: auto;
|
|
259
|
+
-webkit-line-clamp: 2;
|
|
260
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
261
|
+
overflow-wrap: anywhere;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* Its value: below its title, in the glass' secondary color, its digits
|
|
265
|
+
lined up (tabular). */
|
|
266
|
+
.uikit-card-value {
|
|
267
|
+
overflow: hidden;
|
|
268
|
+
min-width: 0;
|
|
269
|
+
color: var(--uikit-glass-content-secondary);
|
|
270
|
+
font-size: var(--font-ui-subheadline-size);
|
|
271
|
+
font-variant-numeric: tabular-nums;
|
|
272
|
+
grid-area: value;
|
|
273
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
274
|
+
text-overflow: ellipsis;
|
|
275
|
+
white-space: nowrap;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* Large (e.g. 2x2): its value large. */
|
|
279
|
+
@container uikit-card (width >= 180px) and (height >= 180px) {
|
|
280
|
+
.uikit-card-value {
|
|
281
|
+
color: var(--uikit-glass-content);
|
|
282
|
+
font-size: var(--font-ui-large-title-size);
|
|
283
|
+
font-variation-settings: 'wght'
|
|
284
|
+
var(--font-ui-large-title-weight-emphasized, 700);
|
|
285
|
+
font-weight: 700;
|
|
286
|
+
line-height: 1.1;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* (With a list in it (see below): its symbol's slot as wide as its rows'
|
|
291
|
+
symbols', its value small, whatever its size.) */
|
|
292
|
+
.uikit-card-layout:has(> .uikit-list-root) {
|
|
293
|
+
> .uikit-card-symbol {
|
|
294
|
+
min-width: var(--uikit-card-symbol-width, 28px);
|
|
295
|
+
justify-content: center;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
> .uikit-card-value {
|
|
299
|
+
color: var(--uikit-glass-content-secondary);
|
|
300
|
+
font-size: var(--font-ui-subheadline-size);
|
|
301
|
+
font-variation-settings: normal;
|
|
302
|
+
font-weight: normal;
|
|
303
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* A slider in it (see main.tsx): its control the whole card, the fill
|
|
308
|
+
its background (from its leading edge, or from its bottom upright), no
|
|
309
|
+
knob; its ticks lines across it; its label and value laid out as its
|
|
310
|
+
title and value, over it, as its symbol is (they don't take presses:
|
|
311
|
+
the slider does). */
|
|
312
|
+
.uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-slider-root) {
|
|
313
|
+
overflow: hidden;
|
|
314
|
+
|
|
315
|
+
/* (Not a corner button: its own presses, see above.) */
|
|
316
|
+
.uikit-card-layout > :not(.uikit-slider-root, .uikit-card-corner-button, .uikit-switch-root) {
|
|
317
|
+
z-index: 1;
|
|
318
|
+
pointer-events: none;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.uikit-card-layout > .uikit-slider-root {
|
|
323
|
+
position: absolute;
|
|
324
|
+
display: grid;
|
|
325
|
+
width: auto;
|
|
326
|
+
height: auto;
|
|
327
|
+
box-sizing: border-box;
|
|
328
|
+
padding: inherit;
|
|
329
|
+
border-radius: inherit;
|
|
330
|
+
|
|
331
|
+
/* (Its label right above its value, as a card's title is.) */
|
|
332
|
+
gap: 0;
|
|
333
|
+
grid-template:
|
|
334
|
+
'.' 1fr
|
|
335
|
+
'title' auto
|
|
336
|
+
'value' auto / 1fr;
|
|
337
|
+
inset: 0;
|
|
338
|
+
place-self: stretch stretch;
|
|
339
|
+
|
|
340
|
+
> .uikit-slider-control {
|
|
341
|
+
position: absolute;
|
|
342
|
+
min-width: 0;
|
|
343
|
+
min-height: 0;
|
|
344
|
+
border-radius: inherit;
|
|
345
|
+
inset: 0;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.uikit-slider-track {
|
|
349
|
+
width: 100%;
|
|
350
|
+
height: 100%;
|
|
351
|
+
border-radius: inherit;
|
|
352
|
+
background-color: transparent;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* (Straight at its end, the card's corners rounding it; in its tint,
|
|
356
|
+
opaque, above what's over it (their copies in it, see below), its
|
|
357
|
+
content clipped at its edge.) */
|
|
358
|
+
.uikit-slider-indicator {
|
|
359
|
+
z-index: 1;
|
|
360
|
+
overflow: hidden;
|
|
361
|
+
border-radius: 0;
|
|
362
|
+
background-color: var(--uikit-slider-tint);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* (The copies of what's over it (see `CardBlendScope` and ControlCards' Slider): a
|
|
366
|
+
layer in the fill, in its color scheme and text color, at the card's
|
|
367
|
+
size, from where the track starts (the fill's start back from it),
|
|
368
|
+
laid out as the card is, so each is right over its original; clipped
|
|
369
|
+
by the fill's edge, meeting them there.) */
|
|
370
|
+
.uikit-card-blend {
|
|
371
|
+
position: absolute;
|
|
372
|
+
top: 0;
|
|
373
|
+
display: grid;
|
|
374
|
+
width: 100cqw;
|
|
375
|
+
height: 100cqh;
|
|
376
|
+
box-sizing: border-box;
|
|
377
|
+
padding: var(--uikit-card-padding);
|
|
378
|
+
color: var(--uikit-glass-content);
|
|
379
|
+
column-gap: 10px;
|
|
380
|
+
grid-template:
|
|
381
|
+
'symbol control' auto
|
|
382
|
+
'. .' 1fr
|
|
383
|
+
'title title' auto
|
|
384
|
+
'value value' auto / 1fr auto;
|
|
385
|
+
inset-inline-start: 0;
|
|
386
|
+
pointer-events: none;
|
|
387
|
+
|
|
388
|
+
/* (Across it, as in the slider, see above.) */
|
|
389
|
+
> :is(.uikit-slider-label, .uikit-slider-value) {
|
|
390
|
+
grid-column: 1 / -1;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
&[data-orientation='vertical'] .uikit-card-blend {
|
|
395
|
+
top: auto;
|
|
396
|
+
bottom: 0;
|
|
397
|
+
inset-inline-start: 0;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
/* (Its thumb only for its input (keyboard, assistive technology):
|
|
402
|
+
nothing drawn.) */
|
|
403
|
+
.uikit-slider-thumb {
|
|
404
|
+
&::before,
|
|
405
|
+
&::after {
|
|
406
|
+
display: none;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/* (Behind its text, on its glass and in its fill alike: under the
|
|
411
|
+
card's (its stacking context's) content, over its glass; in the
|
|
412
|
+
fill, over the fill.) */
|
|
413
|
+
|
|
414
|
+
/* (On its glass, faint (decoration): as its border is, dark; a
|
|
415
|
+
hairline's shade, light. Its ticks', and its fill's end's while its
|
|
416
|
+
switch is off, see below.) */
|
|
417
|
+
--uikit-card-tick: light-dark(rgb(0 0 0 / 10%), var(--glass-ui-panel-rim));
|
|
418
|
+
|
|
419
|
+
.uikit-slider-ticks {
|
|
420
|
+
z-index: -1;
|
|
421
|
+
width: auto;
|
|
422
|
+
height: auto;
|
|
423
|
+
inset: 0;
|
|
424
|
+
|
|
425
|
+
/* (On its glass, inside its hairline, meeting it, not across it.) */
|
|
426
|
+
> * {
|
|
427
|
+
top: var(--uikit-card-rim);
|
|
428
|
+
width: 1px;
|
|
429
|
+
height: calc(100% - 2 * var(--uikit-card-rim));
|
|
430
|
+
border-radius: 0;
|
|
431
|
+
background-color: var(--uikit-card-tick);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/* (Upright: placed from its bottom, see Slider; not from its top.) */
|
|
436
|
+
&[data-orientation='vertical'] .uikit-slider-ticks > * {
|
|
437
|
+
top: auto;
|
|
438
|
+
left: var(--uikit-card-rim);
|
|
439
|
+
width: calc(100% - 2 * var(--uikit-card-rim));
|
|
440
|
+
height: 1px;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/* (Their copy in the fill: hairlines, a shade of its text color, edge
|
|
444
|
+
to edge, as the fill is.) */
|
|
445
|
+
.uikit-card-blend .uikit-slider-ticks > * {
|
|
446
|
+
top: 0;
|
|
447
|
+
width: 0.5px;
|
|
448
|
+
height: 100%;
|
|
449
|
+
background-color: color-mix(
|
|
450
|
+
in srgb,
|
|
451
|
+
var(--uikit-glass-content) 30%,
|
|
452
|
+
transparent
|
|
453
|
+
);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
&[data-orientation='vertical'] .uikit-card-blend .uikit-slider-ticks > * {
|
|
457
|
+
top: auto;
|
|
458
|
+
left: 0;
|
|
459
|
+
width: 100%;
|
|
460
|
+
height: 0.5px;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
> .uikit-slider-label,
|
|
464
|
+
.uikit-card-blend > .uikit-slider-label {
|
|
465
|
+
z-index: 1;
|
|
466
|
+
overflow: hidden;
|
|
467
|
+
color: var(--uikit-glass-content);
|
|
468
|
+
font-size: var(--font-ui-subheadline-size);
|
|
469
|
+
font-variation-settings: 'wght'
|
|
470
|
+
var(--font-ui-subheadline-weight-emphasized);
|
|
471
|
+
font-weight: round(
|
|
472
|
+
down,
|
|
473
|
+
var(--font-ui-subheadline-weight-emphasized),
|
|
474
|
+
100
|
|
475
|
+
);
|
|
476
|
+
grid-area: title;
|
|
477
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
478
|
+
pointer-events: none;
|
|
479
|
+
text-overflow: ellipsis;
|
|
480
|
+
white-space: nowrap;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* (On its glass, in its secondary color, as a card's value is; its
|
|
484
|
+
copy in the fill in the fill's text color, see below.) */
|
|
485
|
+
> .uikit-slider-value,
|
|
486
|
+
.uikit-card-blend > .uikit-slider-value {
|
|
487
|
+
z-index: 1;
|
|
488
|
+
color: var(--uikit-glass-content-secondary);
|
|
489
|
+
font-size: var(--font-ui-subheadline-size);
|
|
490
|
+
grid-area: value;
|
|
491
|
+
justify-items: start;
|
|
492
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
493
|
+
pointer-events: none;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.uikit-card-blend > .uikit-slider-value {
|
|
497
|
+
color: var(--uikit-glass-content);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/* (Its switch off, a slider filling it kept where it's set: its fill
|
|
502
|
+
not drawn, nor what's copied into it, the card as off as without one;
|
|
503
|
+
where it'd end, a dashed line across the card, in its ticks' color,
|
|
504
|
+
inside its hairline, telling where it's set (a tick there, hidden
|
|
505
|
+
under it); none at either end of the track (all, or nothing: as off
|
|
506
|
+
as a switch's card).) */
|
|
507
|
+
.uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-switch-root:not([data-checked]))
|
|
508
|
+
> .uikit-card-frame
|
|
509
|
+
> .uikit-card-layout
|
|
510
|
+
> .uikit-slider-root
|
|
511
|
+
.uikit-slider-indicator {
|
|
512
|
+
background-color: transparent;
|
|
513
|
+
|
|
514
|
+
> * {
|
|
515
|
+
visibility: hidden;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
&:not([data-at-min], [data-at-max])::after {
|
|
519
|
+
position: absolute;
|
|
520
|
+
width: 1px;
|
|
521
|
+
background-image: repeating-linear-gradient(
|
|
522
|
+
to bottom,
|
|
523
|
+
var(--uikit-card-tick) 0 8px,
|
|
524
|
+
transparent 8px 12px
|
|
525
|
+
);
|
|
526
|
+
content: '';
|
|
527
|
+
inset-block: var(--uikit-card-rim);
|
|
528
|
+
inset-inline-end: 0;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
[data-orientation='vertical'] &:not([data-at-min], [data-at-max])::after {
|
|
532
|
+
width: auto;
|
|
533
|
+
height: 1px;
|
|
534
|
+
background-image: repeating-linear-gradient(
|
|
535
|
+
to right,
|
|
536
|
+
var(--uikit-card-tick) 0 8px,
|
|
537
|
+
transparent 8px 12px
|
|
538
|
+
);
|
|
539
|
+
inset: 0 var(--uikit-card-rim) auto;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-switch-root:not([data-checked]))
|
|
544
|
+
> .uikit-card-frame
|
|
545
|
+
> .uikit-card-layout
|
|
546
|
+
> .uikit-slider-root
|
|
547
|
+
.uikit-slider-ticks
|
|
548
|
+
> [data-at-value] {
|
|
549
|
+
visibility: hidden;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/* A switch in it (see main.tsx): smaller, its top trailing corner; its
|
|
553
|
+
state the card's (on, lit; off, dark glass, see main.tsx), its symbol
|
|
554
|
+
in the switch's tint while on. */
|
|
555
|
+
.uikit-card-layout > .uikit-switch-root {
|
|
556
|
+
--uikit-switch-min-width: 44px;
|
|
557
|
+
--uikit-switch-min-height: 24px;
|
|
558
|
+
--uikit-switch-knob-width: 28px;
|
|
559
|
+
|
|
560
|
+
/* (Above a slider filling the card, and its fill: pressed, not the
|
|
561
|
+
slider, see below.) */
|
|
562
|
+
z-index: 3;
|
|
563
|
+
grid-area: control;
|
|
564
|
+
place-self: start end;
|
|
565
|
+
|
|
566
|
+
/* (At its size, at the end: its column may be wider, e.g. with a
|
|
567
|
+
corner button top leading, see the end.) */
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/* Its switch part (`Card.Switch`, see main.tsx): on, in the card's tint
|
|
571
|
+
(`--uikit-card-switch-tint`, its `tint`; else the switch's green). Over
|
|
572
|
+
a slider's fill (its color the same tint, else the app's), set apart
|
|
573
|
+
from it: on, a darker shade of it (off, no fill under it, see above:
|
|
574
|
+
the switch's own off color). So too in a card never lit (`active`
|
|
575
|
+
given false, e.g. a dimmer's), however it's laid out (e.g. expanded,
|
|
576
|
+
its fill a light's channels instead): its switch the same at every
|
|
577
|
+
size. */
|
|
578
|
+
.uikit-card-layout > .uikit-card-switch {
|
|
579
|
+
--uikit-switch-on-color: var(
|
|
580
|
+
--uikit-card-switch-tint,
|
|
581
|
+
var(--color-ui-system-green)
|
|
582
|
+
);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
:is(
|
|
586
|
+
.uikit-card-layout:has(> .uikit-slider-root),
|
|
587
|
+
.uikit-card-root[data-active-given]:not([data-active])
|
|
588
|
+
> .uikit-card-frame
|
|
589
|
+
> .uikit-card-layout
|
|
590
|
+
)
|
|
591
|
+
> .uikit-card-switch {
|
|
592
|
+
--uikit-card-switch-fill: var(
|
|
593
|
+
--uikit-card-switch-tint,
|
|
594
|
+
var(--color-ui-primary)
|
|
595
|
+
);
|
|
596
|
+
--uikit-switch-on-color: color-mix(
|
|
597
|
+
in oklab,
|
|
598
|
+
var(--uikit-card-switch-fill),
|
|
599
|
+
#000 28%
|
|
600
|
+
);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/* (On (`data-active`: its `active`, or a switch in it on, see main.tsx;
|
|
604
|
+
the switch's state, too, for these rules' order); a momentary card for
|
|
605
|
+
a moment as it's flashed.) */
|
|
606
|
+
.uikit-card-root:is(
|
|
607
|
+
[data-active],
|
|
608
|
+
[data-flashing],
|
|
609
|
+
:where(:not([data-active-given])):has(> .uikit-card-frame > .uikit-card-layout > .uikit-switch-root[data-checked])
|
|
610
|
+
) {
|
|
611
|
+
/* (By a part's own color scheme: one over something dark on it, see
|
|
612
|
+
above, light.) */
|
|
613
|
+
--uikit-glass-content: light-dark(
|
|
614
|
+
#000,
|
|
615
|
+
var(--glass-ui-medium-dark-content)
|
|
616
|
+
);
|
|
617
|
+
--uikit-glass-content-secondary: light-dark(
|
|
618
|
+
rgb(0 0 0 / 55%),
|
|
619
|
+
var(--glass-ui-medium-dark-content-secondary)
|
|
620
|
+
);
|
|
621
|
+
|
|
622
|
+
/* (Editing: its own scheme dropped (its veil the page's, see main.tsx),
|
|
623
|
+
its glass still bright: its text the light scheme's, whatever the
|
|
624
|
+
page's.) */
|
|
625
|
+
&[data-editing] {
|
|
626
|
+
--uikit-glass-content: #000;
|
|
627
|
+
--uikit-glass-content-secondary: rgb(0 0 0 / 55%);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/* (Opaque, lifted: apart from light glass, in the light scheme, the
|
|
631
|
+
backdrop not showing through it.) */
|
|
632
|
+
--uikit-glass-background: var(--uikit-card-on-background, #fff);
|
|
633
|
+
--uikit-glass-shadow:
|
|
634
|
+
inset 0 0 0 0.5px rgb(0 0 0 / 8%), 0 2px 6px rgb(0 0 0 / 12%),
|
|
635
|
+
0 8px 28px rgb(0 0 0 / 20%);
|
|
636
|
+
--uikit-card-rim: 0.5px;
|
|
637
|
+
|
|
638
|
+
/* (Its symbol on: in its tint, its `Symbol`'s emphasized icon (e.g.
|
|
639
|
+
filled) shown; off or not switchable, its icon (e.g. outlined).) */
|
|
640
|
+
.uikit-card-symbol {
|
|
641
|
+
--uikit-symbol-emphasis: 1;
|
|
642
|
+
|
|
643
|
+
color: var(
|
|
644
|
+
--uikit-card-symbol-tint,
|
|
645
|
+
var(--uikit-switch-on-color, var(--color-ui-system-green))
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/* (Bright, in the light scheme, whatever the page's: its controls (a
|
|
651
|
+
segmented control, a stepper) drawn for its bright glass, as within a
|
|
652
|
+
forced light scheme, see the global styles; its `active` forcing it
|
|
653
|
+
outright, see main.tsx. Not while editing: its veil, and its grid's
|
|
654
|
+
controls on it, the page's.) */
|
|
655
|
+
.uikit-card-root:is(
|
|
656
|
+
[data-active],
|
|
657
|
+
[data-flashing],
|
|
658
|
+
:where(:not([data-active-given])):has(> .uikit-card-frame > .uikit-card-layout > .uikit-switch-root[data-checked])
|
|
659
|
+
):not([data-editing]) {
|
|
660
|
+
--glass-ui-lens-shadow: var(--glass-ui-bright-lens-shadow);
|
|
661
|
+
|
|
662
|
+
color-scheme: light;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/* A list in it (List's inset grouped style, its default; as on an
|
|
666
|
+
island's glass, its groups on the glass's fill, see Glass): a well at
|
|
667
|
+
its bottom, 6px from its edges (its padding's 12px 14px given back,
|
|
668
|
+
less that), its corners concentric with the card's (its radius less
|
|
669
|
+
6px); its rows' content where the card's is (8px in from the well's
|
|
670
|
+
edge, at its padding), their symbols centered under the card's (their
|
|
671
|
+
slot as wide as it is, see below), their titles where its title is;
|
|
672
|
+
compact (in its title's size), in its glass's content colors. Its
|
|
673
|
+
group at its bottom, what's left of its room above it. Not a
|
|
674
|
+
scroller: a card shows a summary, what doesn't fit is left out (more
|
|
675
|
+
shows as it expands or opens, see ControlCards' List). */
|
|
676
|
+
.uikit-card-layout > .uikit-list-root {
|
|
677
|
+
--color-ui-label: var(--uikit-glass-content);
|
|
678
|
+
--color-ui-secondary-label: var(--uikit-glass-content-secondary);
|
|
679
|
+
|
|
680
|
+
/* (A row's chevron (it's pressed, e.g. going to its page), faint; a row
|
|
681
|
+
pressed, no tint (what it does shows at once: a page, the card
|
|
682
|
+
expanding or opening), see below.) */
|
|
683
|
+
--color-ui-tertiary-label: color-mix(
|
|
684
|
+
in srgb,
|
|
685
|
+
var(--uikit-glass-content) 30%,
|
|
686
|
+
transparent
|
|
687
|
+
);
|
|
688
|
+
--uikit-list-pressed-background: transparent;
|
|
689
|
+
--font-ui-body-size: var(--font-ui-subheadline-size);
|
|
690
|
+
--font-ui-body-line-height: var(--font-ui-subheadline-line-height);
|
|
691
|
+
--font-ui-body-tracking: var(--font-ui-subheadline-tracking);
|
|
692
|
+
--uikit-list-inset: 0px;
|
|
693
|
+
--uikit-list-radius: calc(var(--uikit-grid-item-radius, 24px) - 6px);
|
|
694
|
+
--uikit-list-section-spacing: 0px;
|
|
695
|
+
--uikit-list-row-min-height: 30px;
|
|
696
|
+
--uikit-list-row-padding-block: 0px;
|
|
697
|
+
--uikit-list-row-padding-start: 8px;
|
|
698
|
+
--uikit-list-group-background: var(--uikit-card-well);
|
|
699
|
+
|
|
700
|
+
display: flex;
|
|
701
|
+
overflow: clip;
|
|
702
|
+
min-width: 0;
|
|
703
|
+
min-height: 0;
|
|
704
|
+
flex-direction: column;
|
|
705
|
+
justify-content: flex-end;
|
|
706
|
+
margin: 10px -8px -6px;
|
|
707
|
+
|
|
708
|
+
/* (Their content, and separators, ending 8px before the well's edge,
|
|
709
|
+
as they start.) */
|
|
710
|
+
.uikit-list-row {
|
|
711
|
+
padding-inline-end: 8px;
|
|
712
|
+
|
|
713
|
+
&::before {
|
|
714
|
+
inset-inline-end: 8px;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/* (Open above the page (see Grid): its rows the List's own size; closing,
|
|
720
|
+
its tile's again from the start, as its frame is (laid out at the size
|
|
721
|
+
it's getting to, see above).) */
|
|
722
|
+
[data-grid-open='open'] .uikit-card-layout > .uikit-list-root {
|
|
723
|
+
--font-ui-body-size: inherit;
|
|
724
|
+
--font-ui-body-line-height: inherit;
|
|
725
|
+
--font-ui-body-tracking: inherit;
|
|
726
|
+
--uikit-list-row-min-height: 44px;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/* (One row only: as tall as the well's corners need (twice its radius,
|
|
730
|
+
the card's less 6px: a pill), its curves following the card's, 6px in
|
|
731
|
+
as any; its content where it is. Its row only: how many rows fit is
|
|
732
|
+
still counted by the root's row height, see ControlCards' List.) */
|
|
733
|
+
.uikit-card-layout
|
|
734
|
+
> .uikit-list-root:has(.uikit-list-group > .uikit-list-item:only-child)
|
|
735
|
+
.uikit-list-row {
|
|
736
|
+
--uikit-list-min-height: calc(
|
|
737
|
+
2 * (var(--uikit-grid-item-radius, 24px) - 6px)
|
|
738
|
+
);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/* (A row pressed (its title a button, see List): its separator, and the
|
|
742
|
+
next row's, kept, as its background is (see above); the first row's
|
|
743
|
+
still none, as ever.) */
|
|
744
|
+
.uikit-card-layout
|
|
745
|
+
> .uikit-list-root
|
|
746
|
+
.uikit-list-item:has(> * > * > * > button[data-list-part='title']:enabled:active) {
|
|
747
|
+
&:not(:first-child),
|
|
748
|
+
& + .uikit-list-item {
|
|
749
|
+
--uikit-list-separator-opacity: 1;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/* (Its groups set into its glass, see its wells above.) */
|
|
754
|
+
.uikit-card-layout > .uikit-list-root .uikit-list-group {
|
|
755
|
+
box-shadow: var(--uikit-card-well-shadow);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/* (Its rows' symbols in its text's color, as its own symbol is; their
|
|
759
|
+
slot as wide as it is, 10px before their titles, as its title is after
|
|
760
|
+
it.) */
|
|
761
|
+
.uikit-card-layout
|
|
762
|
+
> .uikit-list-root
|
|
763
|
+
[data-list-part='image'][data-variant='symbol'] {
|
|
764
|
+
width: var(--uikit-card-symbol-width, 28px);
|
|
765
|
+
color: inherit;
|
|
766
|
+
margin-inline-end: 10px;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/* (Its rows one line each: their titles and details cut short.) */
|
|
770
|
+
.uikit-card-layout
|
|
771
|
+
> .uikit-list-root
|
|
772
|
+
:is([data-list-part='title'], [data-list-part='detail']) {
|
|
773
|
+
overflow: hidden;
|
|
774
|
+
text-overflow: ellipsis;
|
|
775
|
+
white-space: nowrap;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/* (A slider's, focused by keyboard: its ring, the knob's (see Slider),
|
|
779
|
+
on the card.) */
|
|
780
|
+
.uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-slider-root):has(
|
|
781
|
+
.uikit-slider-thumb input:focus-visible
|
|
782
|
+
) {
|
|
783
|
+
outline: 2px solid var(--uikit-slider-tint, var(--color-ui-primary));
|
|
784
|
+
outline-offset: 2px;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.uikit-card-root > .uikit-card-frame > .uikit-card-layout:has(> .uikit-card-corner-button[data-grid-corner='top-trailing']:not([data-grid-hidden])) > .uikit-switch-root {
|
|
788
|
+
margin-inline-end: var(--uikit-card-corner-room, 18px);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.uikit-card-root > .uikit-card-frame > .uikit-card-layout:has(> .uikit-card-corner-button[data-grid-corner='bottom-leading']) > .uikit-card-value {
|
|
792
|
+
padding-inline-start: var(--uikit-card-corner-room, 18px);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.uikit-card-root > .uikit-card-frame > .uikit-card-layout:has(> .uikit-card-corner-button[data-grid-corner='bottom-trailing']) > .uikit-card-value {
|
|
796
|
+
padding-inline-end: var(--uikit-card-corner-room, 18px);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/* With a list in it (see above): its symbol at its top, its title beside
|
|
800
|
+
it, centered on it, its value (small, whatever its size) under the
|
|
801
|
+
title (a switch at the end); the list in all the room below. An x in
|
|
802
|
+
its top trailing corner (open above the page, see ControlCards' List):
|
|
803
|
+
its title and value clear of it (`--uikit-card-header-room`); one top
|
|
804
|
+
leading, its symbol and title in from it. */
|
|
805
|
+
.uikit-card-root > .uikit-card-frame > .uikit-card-layout:has(> .uikit-list-root) {
|
|
806
|
+
align-items: center;
|
|
807
|
+
grid-template:
|
|
808
|
+
'symbol title control' auto
|
|
809
|
+
'. value .' auto
|
|
810
|
+
'list list list' 1fr / auto 1fr auto;
|
|
811
|
+
|
|
812
|
+
> .uikit-list-root {
|
|
813
|
+
align-self: stretch;
|
|
814
|
+
grid-area: list;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.uikit-card-root > .uikit-card-frame > .uikit-card-layout:has(> .uikit-list-root):has(> .uikit-card-corner-button[data-grid-corner='top-leading']:not([data-grid-hidden])) > :is(.uikit-card-symbol, .uikit-card-title:first-child) {
|
|
819
|
+
margin-inline-start: var(--uikit-card-header-room, 28px);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.uikit-card-root > .uikit-card-frame > .uikit-card-layout:has(> .uikit-list-root):has(> .uikit-card-corner-button[data-grid-corner='top-trailing']:not([data-grid-hidden])) > :is(.uikit-card-title, .uikit-card-value) {
|
|
823
|
+
padding-inline-end: var(--uikit-card-header-room, 28px);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/* (Its parts over a slider's fill, drawn again in it (see
|
|
827
|
+
`CardBlendScope`): under the fill, covered where it is; its symbol
|
|
828
|
+
in its text's color, its emphasis telling whether it's on; a corner
|
|
829
|
+
button pressed, drawn by its copies (one on its glass, under the fill,
|
|
830
|
+
one in it), not itself.) */
|
|
831
|
+
.uikit-card-root[data-card-blend]:has(> .uikit-card-frame > .uikit-card-layout > .uikit-slider-root) > .uikit-card-frame > .uikit-card-layout {
|
|
832
|
+
> .uikit-card-symbol,
|
|
833
|
+
> .uikit-slider-root > :is(.uikit-slider-label, .uikit-slider-value) {
|
|
834
|
+
z-index: auto;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.uikit-card-symbol {
|
|
838
|
+
color: var(--uikit-glass-content);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
> .uikit-card-corner-button:not([data-card-copy]) {
|
|
842
|
+
color: transparent;
|
|
843
|
+
|
|
844
|
+
> .uikit-grid-corner-icon {
|
|
845
|
+
stroke: transparent;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.uikit-card-corner-button[data-card-copy] {
|
|
850
|
+
z-index: auto;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/* (Its parts off a corner button's icon (in from the corner as its
|
|
855
|
+
padding is): a switch at the top, its value at the bottom, by the
|
|
856
|
+
icon's width and a little more; its symbol, the top leading corner
|
|
857
|
+
taken, beside its title and value (a list's card: its own, above).) */
|
|
858
|
+
|
|
859
|
+
.uikit-card-root > .uikit-card-frame > .uikit-card-layout:not(:has(> .uikit-list-root)):has(> .uikit-card-corner-button[data-grid-corner='top-leading']:not([data-grid-hidden])) {
|
|
860
|
+
align-items: end;
|
|
861
|
+
grid-template:
|
|
862
|
+
'. control' auto
|
|
863
|
+
'. .' 1fr
|
|
864
|
+
'symbol title' auto
|
|
865
|
+
'symbol value' auto / auto 1fr;
|
|
866
|
+
|
|
867
|
+
/* (Its copies over a slider's fill, laid out as it is, see above.) */
|
|
868
|
+
.uikit-card-blend {
|
|
869
|
+
align-items: end;
|
|
870
|
+
grid-template:
|
|
871
|
+
'. control' auto
|
|
872
|
+
'. .' 1fr
|
|
873
|
+
'symbol title' auto
|
|
874
|
+
'symbol value' auto / auto 1fr;
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.uikit-card-root > .uikit-card-frame > .uikit-card-layout:not(:has(> .uikit-list-root)):has(> .uikit-card-corner-button[data-grid-corner='top-leading']:not([data-grid-hidden])) > .uikit-card-symbol,
|
|
879
|
+
.uikit-card-root > .uikit-card-frame > .uikit-card-layout:not(:has(> .uikit-list-root)):has(> .uikit-card-corner-button[data-grid-corner='top-leading']:not([data-grid-hidden])) .uikit-card-blend > .uikit-card-symbol {
|
|
880
|
+
align-self: center;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
/* A flashed card's fade (see above): from the lit glass, and its text. */
|
|
886
|
+
@keyframes uikit-card-fade-glass {
|
|
887
|
+
from {
|
|
888
|
+
background-color: var(--uikit-card-on-background, #fff);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
to {
|
|
892
|
+
background-color: transparent;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
@keyframes uikit-card-fade-text {
|
|
897
|
+
from {
|
|
898
|
+
color: #000;
|
|
899
|
+
}
|
|
900
|
+
}
|