@mrpelz/uikit-ish 7.26.2 → 7.29.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/components/accordion/style.css +0 -3
- package/dist/components/activity-view/style.css +17 -17
- package/dist/components/alert/style.css +12 -10
- package/dist/components/avatar/style.css +2 -2
- package/dist/components/badge/style.css +1 -1
- package/dist/components/button/style.css +12 -12
- package/dist/components/card/buttons.d.ts +35 -0
- package/dist/components/card/buttons.d.ts.map +1 -0
- package/dist/components/card/buttons.js +60 -0
- package/dist/components/card/buttons.js.map +1 -0
- package/dist/components/card/channels.d.ts +43 -0
- package/dist/components/card/channels.d.ts.map +1 -0
- package/dist/components/card/channels.js +321 -0
- package/dist/components/card/channels.js.map +1 -0
- package/dist/components/card/color.d.ts +21 -0
- package/dist/components/card/color.d.ts.map +1 -0
- package/dist/components/card/color.js +100 -0
- package/dist/components/card/color.js.map +1 -0
- package/dist/components/card/main.d.ts +67 -39
- package/dist/components/card/main.d.ts.map +1 -1
- package/dist/components/card/main.js +79 -274
- package/dist/components/card/main.js.map +1 -1
- package/dist/components/card/parts.css +769 -0
- package/dist/components/card/press.d.ts +25 -0
- package/dist/components/card/press.d.ts.map +1 -0
- package/dist/components/card/press.js +111 -0
- package/dist/components/card/press.js.map +1 -0
- package/dist/components/card/progress.d.ts +43 -0
- package/dist/components/card/progress.d.ts.map +1 -0
- package/dist/components/card/progress.js +122 -0
- package/dist/components/card/progress.js.map +1 -0
- package/dist/components/card/props.d.ts +324 -14
- package/dist/components/card/props.d.ts.map +1 -1
- package/dist/components/card/root.d.ts +100 -0
- package/dist/components/card/root.d.ts.map +1 -0
- package/dist/components/card/root.js +388 -0
- package/dist/components/card/root.js.map +1 -0
- package/dist/components/card/rows.d.ts +19 -0
- package/dist/components/card/rows.d.ts.map +1 -0
- package/dist/components/card/rows.js +185 -0
- package/dist/components/card/rows.js.map +1 -0
- package/dist/components/card/segmented.d.ts +61 -0
- package/dist/components/card/segmented.d.ts.map +1 -0
- package/dist/components/card/segmented.js +289 -0
- package/dist/components/card/segmented.js.map +1 -0
- package/dist/components/card/shared.d.ts +55 -0
- package/dist/components/card/shared.d.ts.map +1 -0
- package/dist/components/card/shared.js +80 -0
- package/dist/components/card/shared.js.map +1 -0
- package/dist/components/card/slider.d.ts +16 -0
- package/dist/components/card/slider.d.ts.map +1 -0
- package/dist/components/card/slider.js +48 -0
- package/dist/components/card/slider.js.map +1 -0
- package/dist/components/card/stages.d.ts +18 -0
- package/dist/components/card/stages.d.ts.map +1 -0
- package/dist/components/card/stages.js +37 -0
- package/dist/components/card/stages.js.map +1 -0
- package/dist/components/card/style.css +125 -66
- package/dist/components/checkbox/style.css +10 -5
- package/dist/components/collapsible/style.css +0 -3
- package/dist/components/color-picker/color.d.ts +2 -2
- package/dist/components/color-picker/color.d.ts.map +1 -1
- package/dist/components/color-picker/color.js +7 -7
- package/dist/components/color-picker/color.js.map +1 -1
- package/dist/components/color-picker/main.d.ts +11 -5
- package/dist/components/color-picker/main.d.ts.map +1 -1
- package/dist/components/color-picker/main.js +128 -57
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/props.d.ts +216 -6
- package/dist/components/color-picker/props.d.ts.map +1 -1
- package/dist/components/color-picker/style.css +8 -8
- package/dist/components/control-cards/main.d.ts +6 -17
- package/dist/components/control-cards/main.d.ts.map +1 -1
- package/dist/components/control-cards/main.js +119 -758
- package/dist/components/control-cards/main.js.map +1 -1
- package/dist/components/control-cards/props.d.ts +79 -250
- package/dist/components/control-cards/props.d.ts.map +1 -1
- package/dist/components/control-cards/style.css +2 -492
- package/dist/components/date-picker/main.d.ts +8 -3
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +71 -29
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/pager.d.ts.map +1 -1
- package/dist/components/date-picker/pager.js +9 -2
- package/dist/components/date-picker/pager.js.map +1 -1
- package/dist/components/date-picker/props.d.ts +81 -5
- package/dist/components/date-picker/props.d.ts.map +1 -1
- package/dist/components/date-picker/style.css +24 -16
- package/dist/components/edit-menu/style.css +2 -2
- package/dist/components/glass/style.css +38 -5
- package/dist/components/grid/main.d.ts +1 -1
- package/dist/components/grid/main.d.ts.map +1 -1
- package/dist/components/grid/main.js +104 -21
- package/dist/components/grid/main.js.map +1 -1
- package/dist/components/grid/props.d.ts +75 -5
- package/dist/components/grid/props.d.ts.map +1 -1
- package/dist/components/grid/style.css +68 -38
- package/dist/components/header/style.css +12 -6
- package/dist/components/index.d.ts +10 -8
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +6 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/style.css +0 -3
- package/dist/components/list/main.d.ts +5 -3
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +42 -5
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +5 -0
- package/dist/components/list/props.d.ts.map +1 -1
- package/dist/components/list/reorder.d.ts +34 -0
- package/dist/components/list/reorder.d.ts.map +1 -1
- package/dist/components/list/reorder.js +40 -17
- package/dist/components/list/reorder.js.map +1 -1
- package/dist/components/list/style.css +101 -73
- package/dist/components/menu/style.css +38 -30
- package/dist/components/navigation/main.d.ts.map +1 -1
- package/dist/components/navigation/main.js +35 -13
- package/dist/components/navigation/main.js.map +1 -1
- package/dist/components/navigation/style.css +7 -0
- package/dist/components/page-control/main.d.ts.map +1 -1
- package/dist/components/page-control/main.js +32 -15
- package/dist/components/page-control/main.js.map +1 -1
- package/dist/components/page-control/props.d.ts +6 -0
- package/dist/components/page-control/props.d.ts.map +1 -1
- package/dist/components/page-control/style.css +36 -0
- package/dist/components/pager/main.d.ts +12 -0
- package/dist/components/pager/main.d.ts.map +1 -0
- package/dist/components/pager/main.js +368 -0
- package/dist/components/pager/main.js.map +1 -0
- package/dist/components/pager/props.d.ts +36 -0
- package/dist/components/pager/props.d.ts.map +1 -0
- package/dist/components/pager/props.js +2 -0
- package/dist/components/pager/props.js.map +1 -0
- package/dist/components/pager/style.css +42 -0
- package/dist/components/progress/main.d.ts.map +1 -1
- package/dist/components/progress/main.js +3 -2
- package/dist/components/progress/main.js.map +1 -1
- package/dist/components/progress/style.css +4 -10
- package/dist/components/roll/style.css +2 -2
- package/dist/components/segmented/style.css +16 -7
- package/dist/components/settings/main.d.ts +35 -1
- package/dist/components/settings/main.d.ts.map +1 -1
- package/dist/components/settings/main.js +297 -68
- package/dist/components/settings/main.js.map +1 -1
- package/dist/components/settings/props.d.ts +45 -4
- package/dist/components/settings/props.d.ts.map +1 -1
- package/dist/components/settings/region.d.ts +3 -0
- package/dist/components/settings/region.d.ts.map +1 -0
- package/dist/components/settings/region.js +120 -0
- package/dist/components/settings/region.js.map +1 -0
- package/dist/components/settings/style.css +2 -2
- package/dist/components/sheet/snap.d.ts.map +1 -1
- package/dist/components/sheet/snap.js +13 -5
- package/dist/components/sheet/snap.js.map +1 -1
- package/dist/components/sheet/style.css +48 -3
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +5 -2
- package/dist/components/slider/main.js.map +1 -1
- package/dist/components/slider/style.css +6 -6
- package/dist/components/stack/main.d.ts +8 -0
- package/dist/components/stack/main.d.ts.map +1 -0
- package/dist/components/stack/main.js +25 -0
- package/dist/components/stack/main.js.map +1 -0
- package/dist/components/stack/props.d.ts +42 -0
- package/dist/components/stack/props.d.ts.map +1 -0
- package/dist/components/stack/props.js +2 -0
- package/dist/components/stack/props.js.map +1 -0
- package/dist/components/stack/style.css +68 -0
- package/dist/components/stepper/main.d.ts +3 -1
- package/dist/components/stepper/main.d.ts.map +1 -1
- package/dist/components/stepper/main.js +4 -0
- package/dist/components/stepper/main.js.map +1 -1
- package/dist/components/stepper/style.css +2 -2
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +5 -1
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/switch/props.d.ts +4 -1
- package/dist/components/switch/props.d.ts.map +1 -1
- package/dist/components/tab-bar/style.css +36 -13
- package/dist/components/text-field/style.css +28 -17
- package/dist/components/toolbar/main.d.ts +5 -2
- package/dist/components/toolbar/main.d.ts.map +1 -1
- package/dist/components/toolbar/main.js +18 -0
- package/dist/components/toolbar/main.js.map +1 -1
- package/dist/components/toolbar/props.d.ts +15 -0
- package/dist/components/toolbar/props.d.ts.map +1 -1
- package/dist/components/toolbar/style.css +126 -10
- package/dist/components/tooltip/style.css +2 -2
- package/dist/components/typography/main.d.ts +1 -0
- package/dist/components/typography/main.d.ts.map +1 -1
- package/dist/components/typography/main.js +1 -0
- package/dist/components/typography/main.js.map +1 -1
- package/dist/components/typography/sizes.css +456 -0
- package/dist/components/typography/style.css +24 -456
- package/dist/components/utils/main.d.ts +23 -6
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +60 -7
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/viewport/edge-effect.d.ts.map +1 -1
- package/dist/components/viewport/edge-effect.js +6 -2
- package/dist/components/viewport/edge-effect.js.map +1 -1
- package/dist/components/viewport/focus-scroll.d.ts.map +1 -1
- package/dist/components/viewport/focus-scroll.js +2 -1
- package/dist/components/viewport/focus-scroll.js.map +1 -1
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +34 -2
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/style.css +7 -13
- package/dist/styles.css +287 -120
- package/package.json +1 -1
|
@@ -0,0 +1,769 @@
|
|
|
1
|
+
/* Card's building blocks (see the parts: subtitle, trend, progress,
|
|
2
|
+
stages, channels, a choice, rows), after its own look (style.css). */
|
|
3
|
+
|
|
4
|
+
/* (A channel's fill's ends (see below): its part of the fill beyond its
|
|
5
|
+
share, 18px (half its thumb) between them, none at its least, 36px at
|
|
6
|
+
its greatest; registered to slide there, not inherited.) */
|
|
7
|
+
@property --uikit-card-channel-ends {
|
|
8
|
+
inherits: false;
|
|
9
|
+
initial-value: 18px;
|
|
10
|
+
syntax: '<length>';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@layer uikit-ish {
|
|
14
|
+
/* A fill's tint probe (see the parts): unseen, its color the fill's. */
|
|
15
|
+
.uikit-card-tint-probe {
|
|
16
|
+
color: var(--uikit-slider-tint);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* A card's subtitle (`Card.Subtitle`): a row of its own under its
|
|
20
|
+
title (its look below). */
|
|
21
|
+
.uikit-card-layout:where(:has(> .uikit-card-subtitle)) {
|
|
22
|
+
grid-template:
|
|
23
|
+
'symbol control' auto
|
|
24
|
+
'. .' 1fr
|
|
25
|
+
'title title' auto
|
|
26
|
+
'subtitle subtitle' auto
|
|
27
|
+
'value value' auto / 1fr auto;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* A card's channels (`Card.Channels`): at its bottom, 6px in from
|
|
31
|
+
its edges (as a list card's well), stacked, whatever its width. */
|
|
32
|
+
.uikit-card-channels {
|
|
33
|
+
display: grid;
|
|
34
|
+
min-width: 0;
|
|
35
|
+
margin: 10px -8px -6px;
|
|
36
|
+
gap: 6px;
|
|
37
|
+
grid-column: 1 / -1;
|
|
38
|
+
grid-row: -1;
|
|
39
|
+
|
|
40
|
+
&[hidden] {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* A channel (`Card.Channel`): a pill-shaped well, its thumb round
|
|
46
|
+
(a white ring), inside it at either end, filled with the light it gives
|
|
47
|
+
(see the parts). An amount's fill in its tint up to its thumb's center,
|
|
48
|
+
all the way at its ends (sliding there: its ends' part, below); a
|
|
49
|
+
scale's colors along it. Its labels placed by main.tsx (sliding, once
|
|
50
|
+
placed), each in its color scheme (on its fill, or a scale's color). */
|
|
51
|
+
.uikit-card-channel {
|
|
52
|
+
min-width: 0;
|
|
53
|
+
|
|
54
|
+
/* (Dragged, its words not selected, nor a touch's menu called.) */
|
|
55
|
+
-webkit-touch-callout: none;
|
|
56
|
+
-webkit-user-select: none;
|
|
57
|
+
user-select: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.uikit-card-channel-well {
|
|
61
|
+
position: relative;
|
|
62
|
+
overflow: clip;
|
|
63
|
+
height: 36px;
|
|
64
|
+
border-radius: 18px;
|
|
65
|
+
background-color: var(--uikit-card-well);
|
|
66
|
+
box-shadow: var(--uikit-card-well-shadow);
|
|
67
|
+
font-size: var(--font-ui-footnote-size, 13px);
|
|
68
|
+
font-variation-settings: 'wght' calc(590 + var(--uikit-font-weight-boost, 0));
|
|
69
|
+
font-weight: round(down, calc(600 + var(--uikit-font-weight-boost, 0)), 100);
|
|
70
|
+
|
|
71
|
+
.uikit-card-channel[data-scale] > & {
|
|
72
|
+
background-image: linear-gradient(
|
|
73
|
+
to right in srgb-linear,
|
|
74
|
+
var(--uikit-card-channel-scale)
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.uikit-card-channel[data-scale]:dir(rtl) > & {
|
|
79
|
+
background-image: linear-gradient(
|
|
80
|
+
to left in srgb-linear,
|
|
81
|
+
var(--uikit-card-channel-scale)
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.uikit-card-channel-fill {
|
|
87
|
+
position: absolute;
|
|
88
|
+
width: calc(
|
|
89
|
+
var(--uikit-card-channel-ends) +
|
|
90
|
+
(100% - 36px) * var(--uikit-card-channel-share)
|
|
91
|
+
);
|
|
92
|
+
background-color: var(
|
|
93
|
+
--uikit-card-channel-tint,
|
|
94
|
+
var(--color-ui-primary)
|
|
95
|
+
);
|
|
96
|
+
inset-block: 0;
|
|
97
|
+
inset-inline-start: 0;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
transition: --uikit-card-channel-ends 200ms ease-out;
|
|
100
|
+
|
|
101
|
+
&[data-edge='min'] {
|
|
102
|
+
--uikit-card-channel-ends: 0px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&[data-edge='max'] {
|
|
106
|
+
--uikit-card-channel-ends: 36px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.uikit-card-channel-label,
|
|
112
|
+
.uikit-card-channel-value {
|
|
113
|
+
position: absolute;
|
|
114
|
+
color: var(--uikit-glass-content);
|
|
115
|
+
inset-block-start: 0;
|
|
116
|
+
inset-inline-start: 0;
|
|
117
|
+
line-height: 36px;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
|
|
121
|
+
.uikit-card-channel-well[data-placed] > & {
|
|
122
|
+
transition:
|
|
123
|
+
translate 260ms cubic-bezier(0.3, 0.7, 0.2, 1),
|
|
124
|
+
color 160ms;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.uikit-card-channel-value {
|
|
130
|
+
font-variant-numeric: tabular-nums;
|
|
131
|
+
font-variation-settings: normal;
|
|
132
|
+
font-weight: round(down, calc(500 + var(--uikit-font-weight-boost, 0)), 100);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* (Its control 4px in from its well's edges: its thumb so far in at
|
|
136
|
+
either end, see the parts.) */
|
|
137
|
+
.uikit-card-channel-control {
|
|
138
|
+
position: absolute;
|
|
139
|
+
inset: 4px;
|
|
140
|
+
touch-action: pan-y;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.uikit-card-channel-track {
|
|
144
|
+
position: relative;
|
|
145
|
+
width: 100%;
|
|
146
|
+
height: 100%;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.uikit-card-channel-thumb {
|
|
150
|
+
width: 28px;
|
|
151
|
+
height: 28px;
|
|
152
|
+
border-radius: 50%;
|
|
153
|
+
background-color: var(--uikit-card-channel-light);
|
|
154
|
+
box-shadow:
|
|
155
|
+
0 0 0 3px #fff,
|
|
156
|
+
0 1px 4px 3px rgb(0 0 0 / 18%);
|
|
157
|
+
|
|
158
|
+
/* (Focused by keys: its ring in the focus color, not an outline around
|
|
159
|
+
it: clipped by its well at its ends.) */
|
|
160
|
+
&:has(:focus-visible) {
|
|
161
|
+
box-shadow:
|
|
162
|
+
0 0 0 3px var(--color-ui-primary),
|
|
163
|
+
0 1px 4px 3px rgb(0 0 0 / 18%);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* (A corner button in its bottom trailing corner (e.g. collapsing it):
|
|
168
|
+
its channels' last well ends before its target (44px from the card's
|
|
169
|
+
edges, the well 6px in), the rest of the stack as wide as ever; a bar
|
|
170
|
+
or stages end above it, beside it in a tile a row tall.) */
|
|
171
|
+
.uikit-card-root:has(> .uikit-card-frame > .uikit-card-layout > .uikit-card-corner-button[data-grid-corner='bottom-trailing']:not([data-grid-hidden]), > .uikit-card-edit-layer > .uikit-card-corner-button[data-grid-corner='bottom-trailing']:not([data-grid-hidden])) > .uikit-card-frame > .uikit-card-layout {
|
|
172
|
+
> .uikit-card-channels > :last-child {
|
|
173
|
+
margin-inline-end: 38px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
> :is(.uikit-card-progress-bar, .uikit-card-stage-list) {
|
|
177
|
+
margin-block-end: 10px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* (In a tile a row tall, no room above it: a bar or stages end before
|
|
181
|
+
its target instead, as the last channel does.) */
|
|
182
|
+
@container uikit-card (height < 180px) {
|
|
183
|
+
> :is(.uikit-card-progress-bar, .uikit-card-stage-list) {
|
|
184
|
+
margin-block-end: -6px;
|
|
185
|
+
margin-inline-end: 38px;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* (A light card's value small beside its channels, whatever its size:
|
|
191
|
+
no room for a large one.) */
|
|
192
|
+
.uikit-card-layout:where(:has(> .uikit-card-channels:not([hidden])))
|
|
193
|
+
> .uikit-card-value {
|
|
194
|
+
color: var(--uikit-glass-content-secondary);
|
|
195
|
+
font-size: var(--font-ui-subheadline-size);
|
|
196
|
+
font-variation-settings: normal;
|
|
197
|
+
font-weight: normal;
|
|
198
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* A list card's last row (`Card.Rows`): its label quiet (the
|
|
202
|
+
glass's secondary color), the corner symbol at its end in its text's
|
|
203
|
+
color, as a value would be. */
|
|
204
|
+
.uikit-card-rows [data-card-part='rows-action'] {
|
|
205
|
+
[data-list-part='title'] {
|
|
206
|
+
color: var(--uikit-glass-content-secondary);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
[data-list-part='detail'] {
|
|
210
|
+
display: flex;
|
|
211
|
+
color: var(--uikit-glass-content);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* (A list card's corner button over its last row (see the parts): its hit
|
|
216
|
+
area only, nothing drawn.) */
|
|
217
|
+
.uikit-card-rows-hit-area.uikit-card-corner-button {
|
|
218
|
+
opacity: 0;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* A card with a choice (`Card.Segmented`), by its layout (see
|
|
222
|
+
segmented.tsx): a row, its symbol and title on its top line, its
|
|
223
|
+
options across its bottom; taller, its title and value as any card's,
|
|
224
|
+
its options under them; upright, stacked in all the room below; 1x1,
|
|
225
|
+
as any card. Its value small, whatever its size (its options are
|
|
226
|
+
what's large). */
|
|
227
|
+
.uikit-card-layout:where(:has(> .uikit-card-segmented)) {
|
|
228
|
+
/* (Its symbol (a ready-made card's: the chosen option's) in a slot of
|
|
229
|
+
its own height, the same whichever it is (icons' heights differ),
|
|
230
|
+
nothing below it moving as another's chosen.) */
|
|
231
|
+
> .uikit-card-symbol {
|
|
232
|
+
height: 24px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
> .uikit-card-value {
|
|
236
|
+
color: var(--uikit-glass-content-secondary);
|
|
237
|
+
font-size: var(--font-ui-subheadline-size);
|
|
238
|
+
font-variation-settings: normal;
|
|
239
|
+
font-weight: normal;
|
|
240
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.uikit-card-layout:has(> .uikit-card-segmented[data-layout='row']) {
|
|
245
|
+
align-items: center;
|
|
246
|
+
grid-template:
|
|
247
|
+
'symbol title' auto
|
|
248
|
+
'. .' 1fr
|
|
249
|
+
'choice choice' auto / auto 1fr;
|
|
250
|
+
|
|
251
|
+
/* (An x in its top trailing corner (open above the page): its title
|
|
252
|
+
clear of it.) */
|
|
253
|
+
&:has(> .uikit-card-corner-button[data-grid-corner='top-trailing']:not([data-grid-hidden]))
|
|
254
|
+
> .uikit-card-title {
|
|
255
|
+
padding-inline-end: var(--uikit-card-header-room, 28px);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.uikit-card-layout:has(> .uikit-card-segmented[data-layout='tall']) {
|
|
260
|
+
grid-template:
|
|
261
|
+
'symbol control' auto
|
|
262
|
+
'. .' 1fr
|
|
263
|
+
'title title' auto
|
|
264
|
+
'value value' auto
|
|
265
|
+
'choice choice' auto / 1fr auto;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.uikit-card-layout:has(> .uikit-card-segmented[data-layout='upright']) {
|
|
269
|
+
grid-template:
|
|
270
|
+
'symbol control' auto
|
|
271
|
+
'title title' auto
|
|
272
|
+
'value value' auto
|
|
273
|
+
'choice choice' 1fr / 1fr auto;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* Its options (a radio group): in a well at its bottom, 6px from its
|
|
277
|
+
edges (its padding, 12px 14px, given back less that), its corners
|
|
278
|
+
concentric with the card's; side by side in equal columns, or stacked
|
|
279
|
+
in equal rows (upright). */
|
|
280
|
+
.uikit-card-segmented {
|
|
281
|
+
position: relative;
|
|
282
|
+
display: grid;
|
|
283
|
+
min-width: 0;
|
|
284
|
+
min-height: 0;
|
|
285
|
+
box-sizing: border-box;
|
|
286
|
+
padding: 3px;
|
|
287
|
+
border-radius: calc(var(--uikit-grid-item-radius, 24px) - 6px);
|
|
288
|
+
margin: 0 -8px -6px;
|
|
289
|
+
background-color: var(--uikit-card-well);
|
|
290
|
+
box-shadow: var(--uikit-card-well-shadow);
|
|
291
|
+
grid-area: choice;
|
|
292
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
293
|
+
grid-auto-flow: column;
|
|
294
|
+
|
|
295
|
+
/* (Dragged along its options (see the parts): the page scrolling across
|
|
296
|
+
them only (upright, none from it: a slim card, room around it to
|
|
297
|
+
scroll); nothing selected as it's dragged.) */
|
|
298
|
+
touch-action: pan-y;
|
|
299
|
+
-webkit-user-select: none;
|
|
300
|
+
user-select: none;
|
|
301
|
+
|
|
302
|
+
/* (None shown (1x1): there all the same, unseen, its options telling
|
|
303
|
+
the card theirs, see the parts.) */
|
|
304
|
+
&[hidden] {
|
|
305
|
+
display: none;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
&[data-layout='tall'] {
|
|
309
|
+
margin-top: 10px;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
&[data-layout='upright'] {
|
|
313
|
+
align-self: stretch;
|
|
314
|
+
margin-top: 8px;
|
|
315
|
+
grid-auto-flow: row;
|
|
316
|
+
grid-auto-rows: minmax(0, 1fr);
|
|
317
|
+
touch-action: pan-x;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* The chosen option's raised thumb: under it, at its box (see the parts),
|
|
322
|
+
its corners the well's less its padding (a pill while it's short);
|
|
323
|
+
white on light glass, a light tint on dark. Moving to another as it's
|
|
324
|
+
chosen, once placed. */
|
|
325
|
+
.uikit-card-segmented-thumb {
|
|
326
|
+
position: absolute;
|
|
327
|
+
top: 0;
|
|
328
|
+
left: 0;
|
|
329
|
+
width: var(--uikit-card-segmented-thumb-width, 0);
|
|
330
|
+
height: var(--uikit-card-segmented-thumb-height, 0);
|
|
331
|
+
border-radius: calc(var(--uikit-grid-item-radius, 24px) - 9px);
|
|
332
|
+
background-color: light-dark(#fff, rgb(255 255 255 / 22%));
|
|
333
|
+
box-shadow:
|
|
334
|
+
0 1px 3px rgb(0 0 0 / 18%),
|
|
335
|
+
0 0 0 0.5px rgb(0 0 0 / 6%);
|
|
336
|
+
pointer-events: none;
|
|
337
|
+
translate: var(--uikit-card-segmented-thumb-x, 0)
|
|
338
|
+
var(--uikit-card-segmented-thumb-y, 0);
|
|
339
|
+
|
|
340
|
+
[data-placed] > & {
|
|
341
|
+
transition-duration: 250ms;
|
|
342
|
+
transition-property: translate, width, height;
|
|
343
|
+
transition-timing-function: cubic-bezier(0.3, 0, 0.2, 1);
|
|
344
|
+
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* An option: its words (across a row), its symbol over them (taller), or
|
|
349
|
+
beside them, at the card's padding (upright: the well's 6px, its 3px
|
|
350
|
+
and its own 5px); over the thumb. Chosen, emphasized. */
|
|
351
|
+
.uikit-card-segmented-item {
|
|
352
|
+
--uikit-utils-cursor: attr(cursor type(<custom-ident>), pointer);
|
|
353
|
+
|
|
354
|
+
position: relative;
|
|
355
|
+
display: flex;
|
|
356
|
+
min-width: 0;
|
|
357
|
+
height: 30px;
|
|
358
|
+
box-sizing: border-box;
|
|
359
|
+
align-items: center;
|
|
360
|
+
justify-content: center;
|
|
361
|
+
padding: 0 6px;
|
|
362
|
+
border-radius: calc(var(--uikit-grid-item-radius, 24px) - 9px);
|
|
363
|
+
color: var(--uikit-glass-content);
|
|
364
|
+
font-size: 13px;
|
|
365
|
+
font-variation-settings: 'wght' calc(510 + var(--uikit-font-weight-boost, 0));
|
|
366
|
+
font-weight: round(down, calc(510 + var(--uikit-font-weight-boost, 0)), 100);
|
|
367
|
+
gap: 4px;
|
|
368
|
+
outline: none;
|
|
369
|
+
-webkit-tap-highlight-color: transparent;
|
|
370
|
+
|
|
371
|
+
/* (On a layer of its own throughout, as Segmented's items are: the
|
|
372
|
+
thumb sliding under it, WebKit (iOS) would otherwise move it to one
|
|
373
|
+
for the move, snapped to whole pixels, and back after, its symbol
|
|
374
|
+
jumping by a fraction of a pixel each time.) */
|
|
375
|
+
transform: translate3d(0, 0, 0);
|
|
376
|
+
|
|
377
|
+
@media (hover: hover) {
|
|
378
|
+
cursor: var(--uikit-utils-cursor);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
&[data-checked] {
|
|
382
|
+
font-variation-settings: 'wght' calc(590 + var(--uikit-font-weight-boost, 0));
|
|
383
|
+
font-weight: round(down, calc(590 + var(--uikit-font-weight-boost, 0)), 100);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
&:focus-visible {
|
|
387
|
+
outline: 2px solid var(--color-ui-primary);
|
|
388
|
+
outline-offset: -2px;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/* (Disabled: dimmed, as Segmented's; no presses (dragged past, see
|
|
392
|
+
main.tsx).) */
|
|
393
|
+
&[data-disabled] {
|
|
394
|
+
opacity: 0.55;
|
|
395
|
+
pointer-events: none;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/* (Across a row: its symbol beside its words, a little larger. In a
|
|
399
|
+
slot of its own height, its icon centered in it: icons' heights
|
|
400
|
+
differ, its words in the same place in each, whichever.) */
|
|
401
|
+
> .uikit-symbol {
|
|
402
|
+
height: 1.3em;
|
|
403
|
+
align-items: center;
|
|
404
|
+
justify-content: center;
|
|
405
|
+
font-size: 15px;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/* (Taller: its symbol over its words, at its top, the symbols of all
|
|
409
|
+
of them in a line, with a subtitle or not.) */
|
|
410
|
+
[data-layout='tall'] > & {
|
|
411
|
+
height: auto;
|
|
412
|
+
min-height: 46px;
|
|
413
|
+
flex-direction: column;
|
|
414
|
+
justify-content: flex-start;
|
|
415
|
+
font-size: 11px;
|
|
416
|
+
gap: 2px;
|
|
417
|
+
padding-block: 6px 4px;
|
|
418
|
+
|
|
419
|
+
/* (No symbol: no symbols to line up, its words centered.) */
|
|
420
|
+
&:not(:has(> .uikit-symbol)) {
|
|
421
|
+
justify-content: center;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
> .uikit-symbol {
|
|
425
|
+
font-size: 18px;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/* (Stacked: each a box its subtitle shows in only if it's tall
|
|
430
|
+
enough, see the subtitle.) */
|
|
431
|
+
[data-layout='upright'] > & {
|
|
432
|
+
height: auto;
|
|
433
|
+
justify-content: flex-start;
|
|
434
|
+
padding: 0 5px;
|
|
435
|
+
container: uikit-segment / size;
|
|
436
|
+
font-size: var(--font-ui-subheadline-size);
|
|
437
|
+
gap: 10px;
|
|
438
|
+
|
|
439
|
+
/* (Its symbol only (see `optionContent`): centered, as across.) */
|
|
440
|
+
&:not(:has(> .uikit-card-segmented-text)) {
|
|
441
|
+
justify-content: center;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
> .uikit-symbol {
|
|
445
|
+
width: var(--uikit-card-symbol-width, 28px);
|
|
446
|
+
justify-content: center;
|
|
447
|
+
font-size: 17px;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* (Stacked, one wide: its symbol over its words, centered, as taller
|
|
452
|
+
across, see above.) */
|
|
453
|
+
[data-layout='upright'][data-narrow] > & {
|
|
454
|
+
flex-direction: column;
|
|
455
|
+
justify-content: center;
|
|
456
|
+
padding: 0 4px;
|
|
457
|
+
font-size: 11px;
|
|
458
|
+
gap: 2px;
|
|
459
|
+
|
|
460
|
+
> .uikit-symbol {
|
|
461
|
+
width: auto;
|
|
462
|
+
font-size: 17px;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/* An option's words: its label, a subtitle under it (in the card's
|
|
468
|
+
value's color, as small as a stacked option's label allows; across,
|
|
469
|
+
centered, as its label). */
|
|
470
|
+
.uikit-card-segmented-text {
|
|
471
|
+
display: grid;
|
|
472
|
+
min-width: 0;
|
|
473
|
+
max-width: 100%;
|
|
474
|
+
justify-items: start;
|
|
475
|
+
|
|
476
|
+
:is([data-layout='tall'], [data-layout='upright'][data-narrow]) & {
|
|
477
|
+
justify-items: center;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.uikit-card-segmented-label,
|
|
482
|
+
.uikit-card-segmented-subtitle {
|
|
483
|
+
overflow: hidden;
|
|
484
|
+
max-width: 100%;
|
|
485
|
+
text-overflow: ellipsis;
|
|
486
|
+
white-space: nowrap;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.uikit-card-segmented-subtitle {
|
|
490
|
+
color: var(--uikit-glass-content-secondary);
|
|
491
|
+
font-size: var(--font-ui-footnote-size);
|
|
492
|
+
font-variation-settings: normal;
|
|
493
|
+
font-weight: normal;
|
|
494
|
+
line-height: var(--font-ui-footnote-line-height);
|
|
495
|
+
|
|
496
|
+
:is([data-layout='tall'], [data-layout='upright'][data-narrow]) & {
|
|
497
|
+
font-size: 10px;
|
|
498
|
+
line-height: 12px;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/* (Stacked, a subtitle only where its option is tall enough: beside its
|
|
503
|
+
symbol, its label's line and its own; one wide, under its symbol (its
|
|
504
|
+
slot's height) too, and a little room around them.) */
|
|
505
|
+
@container uikit-segment (height < 38px) {
|
|
506
|
+
.uikit-card-segmented-subtitle {
|
|
507
|
+
display: none;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
@container uikit-segment (height < 58px) {
|
|
512
|
+
[data-narrow] .uikit-card-segmented-subtitle {
|
|
513
|
+
display: none;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/* A value's trend (`Card.Trend`): an arrow after it,
|
|
518
|
+
turned by its angle (a transform, not a layer change: it may turn in a
|
|
519
|
+
scroller). */
|
|
520
|
+
.uikit-card-trend {
|
|
521
|
+
display: inline-block;
|
|
522
|
+
font-size: 0.8em;
|
|
523
|
+
line-height: 0;
|
|
524
|
+
margin-inline-start: 0.25em;
|
|
525
|
+
rotate: calc(-1deg * var(--uikit-card-trend, 0));
|
|
526
|
+
transition: rotate 600ms;
|
|
527
|
+
vertical-align: middle;
|
|
528
|
+
|
|
529
|
+
/* (Mirrored, pointing back: turned the other way to rise.) */
|
|
530
|
+
&:dir(rtl) {
|
|
531
|
+
rotate: calc(1deg * var(--uikit-card-trend, 0));
|
|
532
|
+
scale: -1 1;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/* A progress card's bar (`Card.ProgressBar`): a pill at its
|
|
537
|
+
bottom (a well, as a list card's: 6px in from its edges, its corners
|
|
538
|
+
concentric with its own), 36px, filling from its start in its tint;
|
|
539
|
+
what's on it at its padding, in its text's colors, and again on the
|
|
540
|
+
fill (a copy, as wide as the pill, clipped to the fill) in the fill's
|
|
541
|
+
color scheme (see the parts). By its clip, not its layout: nothing laid
|
|
542
|
+
out anew as it changes. */
|
|
543
|
+
.uikit-card-progress-bar {
|
|
544
|
+
position: relative;
|
|
545
|
+
overflow: clip;
|
|
546
|
+
height: 36px;
|
|
547
|
+
border-radius: calc(var(--uikit-grid-item-radius, 24px) - 6px);
|
|
548
|
+
margin: 10px -8px -6px;
|
|
549
|
+
background-color: var(--uikit-card-well);
|
|
550
|
+
box-shadow: var(--uikit-card-well-shadow);
|
|
551
|
+
font-size: var(--font-ui-subheadline-size);
|
|
552
|
+
font-variant-numeric: tabular-nums;
|
|
553
|
+
grid-column: 1 / -1;
|
|
554
|
+
grid-row: -1;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.uikit-card-progress-content {
|
|
558
|
+
display: flex;
|
|
559
|
+
height: 100%;
|
|
560
|
+
align-items: center;
|
|
561
|
+
gap: 8px;
|
|
562
|
+
padding-inline: 8px;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.uikit-card-progress-label {
|
|
566
|
+
overflow: hidden;
|
|
567
|
+
min-width: 0;
|
|
568
|
+
color: var(--uikit-glass-content);
|
|
569
|
+
font-weight: round(down, calc(500 + var(--uikit-font-weight-boost, 0)), 100);
|
|
570
|
+
text-overflow: ellipsis;
|
|
571
|
+
white-space: nowrap;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.uikit-card-progress-detail {
|
|
575
|
+
flex: none;
|
|
576
|
+
color: var(--uikit-glass-content-secondary);
|
|
577
|
+
font-size: var(--font-ui-footnote-size, 13px);
|
|
578
|
+
margin-inline-start: auto;
|
|
579
|
+
white-space: nowrap;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/* (Base UI's progress bar: over the pill, its fill in it.) */
|
|
583
|
+
.uikit-card-progress-meter {
|
|
584
|
+
position: absolute;
|
|
585
|
+
inset: 0;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.uikit-card-progress-fill {
|
|
589
|
+
position: absolute;
|
|
590
|
+
background-color: var(
|
|
591
|
+
--uikit-card-progress-tint,
|
|
592
|
+
var(--color-ui-primary)
|
|
593
|
+
);
|
|
594
|
+
clip-path: inset(
|
|
595
|
+
0 calc(100% - var(--uikit-card-progress, 0%)) 0 0
|
|
596
|
+
);
|
|
597
|
+
inset: 0;
|
|
598
|
+
transition: clip-path 300ms;
|
|
599
|
+
|
|
600
|
+
&:dir(rtl) {
|
|
601
|
+
clip-path: inset(
|
|
602
|
+
0 0 0 calc(100% - var(--uikit-card-progress, 0%))
|
|
603
|
+
);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
> .uikit-card-tint-probe {
|
|
607
|
+
color: var(--uikit-card-progress-tint, var(--color-ui-primary));
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/* (Its detail quieter as its label is drawn on it (see
|
|
611
|
+
`textSchemeOn`), not in the glass's secondary color: a gray,
|
|
612
|
+
meant for the glass, not for a colored fill.) */
|
|
613
|
+
.uikit-card-progress-detail {
|
|
614
|
+
color: color-mix(in srgb, var(--uikit-glass-content) 75%, transparent);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/* A card's subtitle (`Card.Subtitle`): small, in its secondary
|
|
620
|
+
text color, in its row (see the top). */
|
|
621
|
+
.uikit-card-subtitle {
|
|
622
|
+
overflow: hidden;
|
|
623
|
+
min-width: 0;
|
|
624
|
+
color: var(--uikit-glass-content-secondary);
|
|
625
|
+
font-size: var(--font-ui-subheadline-size);
|
|
626
|
+
grid-area: subtitle;
|
|
627
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
628
|
+
text-overflow: ellipsis;
|
|
629
|
+
white-space: nowrap;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/* (In a tile a row tall, beside a bar, stages or channels: no room under
|
|
633
|
+
its title for a subtitle or a progress's value.) */
|
|
634
|
+
@container uikit-card (height < 180px) {
|
|
635
|
+
.uikit-card-layout:has(
|
|
636
|
+
> .uikit-card-progress-bar,
|
|
637
|
+
> .uikit-card-stage-list,
|
|
638
|
+
> .uikit-card-channels:not([hidden])
|
|
639
|
+
)
|
|
640
|
+
> :is(.uikit-card-subtitle, .uikit-card-progress-value) {
|
|
641
|
+
display: none;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/* (Its bar closer under its title: the room a row-tall tile has for
|
|
645
|
+
its symbol, its title's line and the bar, none of them cut.) */
|
|
646
|
+
.uikit-card-layout > .uikit-card-progress-bar {
|
|
647
|
+
margin-top: 6px;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/* A stages card's list (`Card.StageList`): its stages along a
|
|
652
|
+
line at its bottom, each a dot (18px) and its words under it, the line
|
|
653
|
+
between their dots (clear of them, and of the current one's ring).
|
|
654
|
+
Compact: a one-row tile's room under its title (into its padding, as
|
|
655
|
+
a progress bar). Done (before the current one): its dot a pale tint, a
|
|
656
|
+
check in the tint; current: its dot the tint, a ring around it, its
|
|
657
|
+
words emphasized; to come: its dot the well's, its words quiet. The
|
|
658
|
+
line in the tint as far as the current one. */
|
|
659
|
+
.uikit-card-stage-list {
|
|
660
|
+
display: grid;
|
|
661
|
+
padding: 0;
|
|
662
|
+
margin: 4px 0 -6px;
|
|
663
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
664
|
+
grid-auto-flow: column;
|
|
665
|
+
grid-column: 1 / -1;
|
|
666
|
+
grid-row: -1;
|
|
667
|
+
list-style: none;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.uikit-card-stage {
|
|
671
|
+
position: relative;
|
|
672
|
+
display: grid;
|
|
673
|
+
min-width: 0;
|
|
674
|
+
color: var(--uikit-glass-content-secondary);
|
|
675
|
+
font-size: var(--font-ui-caption2-size, 11px);
|
|
676
|
+
gap: 2px;
|
|
677
|
+
justify-items: center;
|
|
678
|
+
line-height: 13px;
|
|
679
|
+
|
|
680
|
+
/* (The line from the one before, between their dots' edges, clear of
|
|
681
|
+
them: a pale dot doesn't show it through.) */
|
|
682
|
+
&:not(:first-child)::before {
|
|
683
|
+
position: absolute;
|
|
684
|
+
top: 8px;
|
|
685
|
+
width: calc(100% - 30px);
|
|
686
|
+
height: 2px;
|
|
687
|
+
border-radius: 1px;
|
|
688
|
+
background-color: var(--uikit-card-well);
|
|
689
|
+
content: '';
|
|
690
|
+
inset-inline-end: calc(50% + 15px);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
/* (Its check centered on it, its box larger than it: a flex box
|
|
695
|
+
centers an item overflowing it on both sides.) */
|
|
696
|
+
.uikit-card-stage-dot {
|
|
697
|
+
position: relative;
|
|
698
|
+
display: flex;
|
|
699
|
+
width: 18px;
|
|
700
|
+
height: 18px;
|
|
701
|
+
align-items: center;
|
|
702
|
+
justify-content: center;
|
|
703
|
+
border-radius: 50%;
|
|
704
|
+
background-color: var(--uikit-card-well);
|
|
705
|
+
box-shadow: var(--uikit-card-well-shadow);
|
|
706
|
+
font-size: 13px;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/* (Its check: only once done, see below.) */
|
|
710
|
+
.uikit-card-stage-check {
|
|
711
|
+
visibility: hidden;
|
|
712
|
+
|
|
713
|
+
.uikit-card-stage:has(~ [data-current]) & {
|
|
714
|
+
visibility: visible;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.uikit-card-stage-label {
|
|
719
|
+
overflow: hidden;
|
|
720
|
+
max-width: 100%;
|
|
721
|
+
text-overflow: ellipsis;
|
|
722
|
+
white-space: nowrap;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/* (Done: those before the current one.) */
|
|
726
|
+
.uikit-card-stage:has(~ [data-current]) {
|
|
727
|
+
&::before {
|
|
728
|
+
background-color: var(
|
|
729
|
+
--uikit-card-stages-tint,
|
|
730
|
+
var(--color-ui-primary)
|
|
731
|
+
);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
> .uikit-card-stage-dot {
|
|
735
|
+
background-color: color-mix(
|
|
736
|
+
in srgb,
|
|
737
|
+
var(--uikit-card-stages-tint, var(--color-ui-primary)) 25%,
|
|
738
|
+
transparent
|
|
739
|
+
);
|
|
740
|
+
box-shadow: none;
|
|
741
|
+
color: var(--uikit-card-stages-tint, var(--color-ui-primary));
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.uikit-card-stage[data-current] {
|
|
746
|
+
color: var(--uikit-glass-content);
|
|
747
|
+
font-weight: round(down, calc(600 + var(--uikit-font-weight-boost, 0)), 100);
|
|
748
|
+
|
|
749
|
+
&::before {
|
|
750
|
+
background-color: var(
|
|
751
|
+
--uikit-card-stages-tint,
|
|
752
|
+
var(--color-ui-primary)
|
|
753
|
+
);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
> .uikit-card-stage-dot {
|
|
757
|
+
background-color: var(
|
|
758
|
+
--uikit-card-stages-tint,
|
|
759
|
+
var(--color-ui-primary)
|
|
760
|
+
);
|
|
761
|
+
box-shadow: 0 0 0 3px
|
|
762
|
+
color-mix(
|
|
763
|
+
in srgb,
|
|
764
|
+
var(--uikit-card-stages-tint, var(--color-ui-primary)) 30%,
|
|
765
|
+
transparent
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|