@partrunner-ai/ui 2.0.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/LICENSE +21 -0
- package/README.md +35 -0
- package/TRADEMARKS.md +12 -0
- package/dist/index.cjs +5666 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1601 -0
- package/dist/index.d.ts +1601 -0
- package/dist/index.js +5553 -0
- package/dist/index.js.map +1 -0
- package/package.json +76 -0
- package/styles/fonts/LICENSE-Barlow.txt +93 -0
- package/styles/fonts/LICENSE-Bebas-Neue.txt +93 -0
- package/styles/fonts/barlow-latin-400-normal.woff2 +0 -0
- package/styles/fonts/barlow-latin-500-normal.woff2 +0 -0
- package/styles/fonts/barlow-latin-600-normal.woff2 +0 -0
- package/styles/fonts/barlow-latin-700-normal.woff2 +0 -0
- package/styles/fonts/bebas-neue-latin-400-normal.woff2 +0 -0
- package/styles/light.css +3390 -0
- package/styles/theme.css +3445 -0
- package/styles/ui.css +3200 -0
package/styles/light.css
ADDED
|
@@ -0,0 +1,3390 @@
|
|
|
1
|
+
/* @partrunner-ai/ui — GENERATED canonical light-mode bundle. Do not edit. */
|
|
2
|
+
|
|
3
|
+
/* Approved fonts + tokens + every component rule, in that order. */
|
|
4
|
+
|
|
5
|
+
/* @partrunner-ai/tokens — approved self-hosted brand fonts. GENERATED — do not edit. */
|
|
6
|
+
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: 'Barlow';
|
|
9
|
+
font-style: normal;
|
|
10
|
+
font-display: swap;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
src: url('./fonts/barlow-latin-400-normal.woff2') format('woff2');
|
|
13
|
+
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: 'Barlow';
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-display: swap;
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
src: url('./fonts/barlow-latin-500-normal.woff2') format('woff2');
|
|
22
|
+
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: 'Barlow';
|
|
27
|
+
font-style: normal;
|
|
28
|
+
font-display: swap;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
src: url('./fonts/barlow-latin-600-normal.woff2') format('woff2');
|
|
31
|
+
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@font-face {
|
|
35
|
+
font-family: 'Barlow';
|
|
36
|
+
font-style: normal;
|
|
37
|
+
font-display: swap;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
src: url('./fonts/barlow-latin-700-normal.woff2') format('woff2');
|
|
40
|
+
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@font-face {
|
|
44
|
+
font-family: 'Bebas Neue';
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-display: swap;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
src: url('./fonts/bebas-neue-latin-400-normal.woff2') format('woff2');
|
|
49
|
+
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* @partrunner-ai/tokens — crystal light theme. GENERATED from src/tokens.ts — do not edit. */
|
|
53
|
+
|
|
54
|
+
:root {
|
|
55
|
+
--pr-accent-hover: #f5c420;
|
|
56
|
+
--pr-accent-deep: #d69e00;
|
|
57
|
+
--pr-accent-tint: #fff6d1;
|
|
58
|
+
--pr-accent-tint-faint: #fffbeb;
|
|
59
|
+
--pr-glow-accent-sm: 0 4px 16px -2px rgba(253, 210, 56, 0.35), 0 1px 4px -1px rgba(253, 210, 56, 0.2);
|
|
60
|
+
--pr-glow-accent: 0 8px 32px -4px rgba(253, 210, 56, 0.45), 0 2px 8px -2px rgba(253, 210, 56, 0.3);
|
|
61
|
+
--pr-glow-accent-lg: 0 16px 48px -8px rgba(253, 210, 56, 0.5), 0 4px 12px -2px rgba(253, 210, 56, 0.35);
|
|
62
|
+
--pr-tracking-display: -0.022em;
|
|
63
|
+
--pr-tracking-display-tighter: -0.028em;
|
|
64
|
+
--pr-glass-blur: 24px;
|
|
65
|
+
--pr-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
|
|
66
|
+
--pr-accent: #fdd238;
|
|
67
|
+
--pr-accent-soft: #ffe573;
|
|
68
|
+
--pr-accent-strong: #f0bc00;
|
|
69
|
+
--pr-accent-ink: #1a1a1a;
|
|
70
|
+
--pr-accent-gradient: linear-gradient(135deg, var(--pr-accent-soft) 0%, var(--pr-accent) 50%, var(--pr-accent-strong) 100%);
|
|
71
|
+
--pr-accent-soft-gradient: linear-gradient(135deg, var(--pr-accent-tint) 0%, var(--pr-accent-soft) 100%);
|
|
72
|
+
--pr-shadow-accent: 0 8px 24px -4px rgba(253, 210, 56, 0.4), 0 2px 6px -1px rgba(253, 210, 56, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
|
|
73
|
+
--pr-shadow-accent-lg: 0 16px 40px -6px rgba(253, 210, 56, 0.5), 0 4px 12px -2px rgba(253, 210, 56, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
|
|
74
|
+
--pr-sidebar-bg: linear-gradient(165deg, var(--pr-accent-soft) 0%, var(--pr-accent) 45%, var(--pr-sidebar-bg-strong) 100%);
|
|
75
|
+
--pr-sidebar-bg-strong: #ecb800;
|
|
76
|
+
--pr-sidebar-fg: #1a1a1a;
|
|
77
|
+
--pr-sidebar-fg-muted: rgba(26, 26, 26, 0.6);
|
|
78
|
+
--pr-sidebar-border: rgba(26, 26, 26, 0.08);
|
|
79
|
+
--pr-sidebar-hover-bg: rgba(26, 26, 26, 0.08);
|
|
80
|
+
--pr-sidebar-active-bg: #1a1a1a;
|
|
81
|
+
--pr-sidebar-active-fg: #fdd238;
|
|
82
|
+
--pr-nav-width: 256px;
|
|
83
|
+
--pr-nav-rail-width: 72px;
|
|
84
|
+
--pr-nav-item-py: 10px;
|
|
85
|
+
--pr-nav-item-px: 14px;
|
|
86
|
+
--pr-nav-item-gap: 2px;
|
|
87
|
+
--pr-nav-brand-size: 30px;
|
|
88
|
+
--pr-nav-icon-size: 18px;
|
|
89
|
+
--pr-nav-label-size: 14px;
|
|
90
|
+
--pr-nav-section-label-size: 10.5px;
|
|
91
|
+
--pr-nav-child-indent: 20px;
|
|
92
|
+
--pr-radius-sm: 10px;
|
|
93
|
+
--pr-radius-md: 14px;
|
|
94
|
+
--pr-radius-card: 18px;
|
|
95
|
+
--pr-radius-lg: 22px;
|
|
96
|
+
--pr-radius-xl: 28px;
|
|
97
|
+
--pr-radius-nav-item: 12px;
|
|
98
|
+
--pr-font-title: 'Bebas Neue', 'Barlow', system-ui, sans-serif;
|
|
99
|
+
--pr-font-body: 'Barlow', 'Inter', system-ui, sans-serif;
|
|
100
|
+
--pr-font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
|
|
101
|
+
--pr-ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
102
|
+
--pr-focus-ring: 0 0 0 4px rgba(253, 210, 56, 0.35);
|
|
103
|
+
--pr-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
104
|
+
--pr-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
|
|
105
|
+
--pr-shadow-md: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 24px -8px rgba(15, 23, 42, 0.08);
|
|
106
|
+
--pr-shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 20px 48px -12px rgba(15, 23, 42, 0.12);
|
|
107
|
+
--pr-shadow-xl: 0 4px 6px rgba(15, 23, 42, 0.04), 0 32px 64px -16px rgba(15, 23, 42, 0.16);
|
|
108
|
+
--pr-shadow-inner-glass: inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
|
|
109
|
+
--pr-glass-bg: rgba(255, 255, 255, 0.85);
|
|
110
|
+
--pr-glass-bg-strong: rgba(255, 255, 255, 0.95);
|
|
111
|
+
--pr-glass-bg-soft: rgba(255, 255, 255, 0.6);
|
|
112
|
+
--pr-glass-border: rgba(255, 255, 255, 0.8);
|
|
113
|
+
--pr-glass-border-active: rgba(255, 255, 255, 0.9);
|
|
114
|
+
--pr-surface-gradient: linear-gradient(180deg, #fafbfd 0%, #f4f6fb 100%);
|
|
115
|
+
--pr-card-yellow-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 210, 56, 0.18) 100%);
|
|
116
|
+
--pr-card-amber-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(254, 215, 170, 0.35) 100%);
|
|
117
|
+
--pr-card-blue-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(191, 219, 254, 0.35) 100%);
|
|
118
|
+
--pr-card-purple-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(221, 214, 254, 0.35) 100%);
|
|
119
|
+
--pr-card-green-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(187, 247, 208, 0.4) 100%);
|
|
120
|
+
--pr-card-rose-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(254, 205, 211, 0.35) 100%);
|
|
121
|
+
--pr-bg: #fafbfd;
|
|
122
|
+
--pr-surface: #ffffff;
|
|
123
|
+
--pr-elevated: #ffffff;
|
|
124
|
+
--pr-fg: #1a1a1a;
|
|
125
|
+
--pr-fg-muted: #4b5563;
|
|
126
|
+
--pr-fg-faint: #6b7280;
|
|
127
|
+
--pr-border: #e5e7ee;
|
|
128
|
+
--pr-border-strong: #d1d5db;
|
|
129
|
+
--pr-scrollbar-thumb: rgb(26 26 26 / 18%);
|
|
130
|
+
--pr-scrollbar-thumb-hover: rgb(26 26 26 / 32%);
|
|
131
|
+
--pr-danger: #ef4444;
|
|
132
|
+
--pr-danger-fg: #1a1612;
|
|
133
|
+
--pr-success: #059669;
|
|
134
|
+
--pr-warning: #d97706;
|
|
135
|
+
--pr-info: #3b82f6;
|
|
136
|
+
--pr-surface-fg: #1a1a1a;
|
|
137
|
+
--pr-elevated-fg: #1a1a1a;
|
|
138
|
+
--pr-success-fg: #1a1612;
|
|
139
|
+
--pr-warning-fg: #1a1612;
|
|
140
|
+
--pr-info-fg: #1a1612;
|
|
141
|
+
--pr-shadow-elevated: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 24px -8px rgba(15, 23, 42, 0.08);
|
|
142
|
+
--pr-shadow-card: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
|
|
143
|
+
--pr-tone-yellow-bg: rgba(253, 210, 56, 0.2);
|
|
144
|
+
--pr-tone-yellow-fg: #8a6300;
|
|
145
|
+
--pr-tone-yellow-border: rgba(138, 99, 0, 0.35);
|
|
146
|
+
--pr-tone-blue-bg: rgba(59, 130, 246, 0.15);
|
|
147
|
+
--pr-tone-blue-fg: #2563eb;
|
|
148
|
+
--pr-tone-blue-border: rgba(37, 99, 235, 0.35);
|
|
149
|
+
--pr-tone-amber-bg: rgba(245, 158, 11, 0.15);
|
|
150
|
+
--pr-tone-amber-fg: #d97706;
|
|
151
|
+
--pr-tone-amber-border: rgba(217, 119, 6, 0.35);
|
|
152
|
+
--pr-tone-purple-bg: rgba(139, 92, 246, 0.15);
|
|
153
|
+
--pr-tone-purple-fg: #7c3aed;
|
|
154
|
+
--pr-tone-purple-border: rgba(124, 58, 237, 0.35);
|
|
155
|
+
--pr-tone-green-bg: rgba(16, 185, 129, 0.15);
|
|
156
|
+
--pr-tone-green-fg: #059669;
|
|
157
|
+
--pr-tone-green-border: rgba(5, 150, 105, 0.35);
|
|
158
|
+
--pr-tone-rose-bg: rgba(244, 63, 94, 0.15);
|
|
159
|
+
--pr-tone-rose-fg: #e11d48;
|
|
160
|
+
--pr-tone-rose-border: rgba(225, 29, 72, 0.35);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:root {
|
|
164
|
+
scrollbar-width: thin;
|
|
165
|
+
scrollbar-color: var(--pr-scrollbar-thumb) transparent;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
::-webkit-scrollbar {
|
|
169
|
+
width: 8px;
|
|
170
|
+
height: 8px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
::-webkit-scrollbar-track {
|
|
174
|
+
background: transparent;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
::-webkit-scrollbar-thumb {
|
|
178
|
+
background: var(--pr-scrollbar-thumb);
|
|
179
|
+
border-radius: 999px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
::-webkit-scrollbar-thumb:hover {
|
|
183
|
+
background: var(--pr-scrollbar-thumb-hover);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* Where a horizontal and a vertical bar meet; otherwise an opaque grey block. */
|
|
187
|
+
::-webkit-scrollbar-corner {
|
|
188
|
+
background: transparent;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* @partrunner-ai/ui — L1 primitives.
|
|
192
|
+
*
|
|
193
|
+
* Plain CSS over the `--pr-*` scale, not Tailwind utilities. Consumers span
|
|
194
|
+
* Tailwind v3 and v4, and shipping utilities would force each host to scan
|
|
195
|
+
* node_modules and agree on a major. This works in both, and with no Tailwind.
|
|
196
|
+
*
|
|
197
|
+
* Import a theme alongside it (`@partrunner-ai/tokens/nexus.css`), or the shell's
|
|
198
|
+
* `styles.css`, which already carries one.
|
|
199
|
+
*
|
|
200
|
+
* Keep these rules unlayered. Tailwind v3 treats third-party rules inside
|
|
201
|
+
* `@layer components` as purgeable candidates, and plain unlayered resets also
|
|
202
|
+
* outrank layered component rules. Unlayered class selectors beat element resets;
|
|
203
|
+
* consumer utilities imported later still win when specificity is equal.
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
/* A scoped reset makes package geometry independent from Tailwind Preflight or
|
|
207
|
+
whatever reset a host app happens to use. `:where` keeps specificity at zero,
|
|
208
|
+
so an intentional consumer override can still win. */
|
|
209
|
+
:where([class^='pr-'], [class*=' pr-']),
|
|
210
|
+
:where([class^='pr-'], [class*=' pr-'])::before,
|
|
211
|
+
:where([class^='pr-'], [class*=' pr-'])::after {
|
|
212
|
+
box-sizing: border-box;
|
|
213
|
+
-webkit-font-smoothing: antialiased;
|
|
214
|
+
-moz-osx-font-smoothing: grayscale;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* ───────────────────────── Button ───────────────────────── */
|
|
218
|
+
|
|
219
|
+
.pr-btn {
|
|
220
|
+
display: inline-flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
justify-content: center;
|
|
223
|
+
gap: 8px;
|
|
224
|
+
border: 1px solid transparent;
|
|
225
|
+
/* The Crystal field/button step (14px), per the v2 spec: buttons share the
|
|
226
|
+
input radius, not the chip radius. */
|
|
227
|
+
border-radius: var(--pr-radius-md, 0.5rem);
|
|
228
|
+
font-family: var(--pr-font-body, inherit);
|
|
229
|
+
font-weight: 600;
|
|
230
|
+
line-height: 1;
|
|
231
|
+
white-space: nowrap;
|
|
232
|
+
text-decoration: none;
|
|
233
|
+
cursor: pointer;
|
|
234
|
+
min-height: 40px;
|
|
235
|
+
transition:
|
|
236
|
+
background-color 160ms var(--pr-ease, ease),
|
|
237
|
+
border-color 160ms var(--pr-ease, ease),
|
|
238
|
+
box-shadow 160ms var(--pr-ease, ease),
|
|
239
|
+
transform 160ms var(--pr-ease, ease),
|
|
240
|
+
color 160ms var(--pr-ease, ease);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.pr-btn:focus-visible {
|
|
244
|
+
outline: none;
|
|
245
|
+
box-shadow: var(--pr-focus-ring);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.pr-btn:not(.pr-btn--static):active:not(:disabled):not([aria-disabled='true']) {
|
|
249
|
+
transform: scale(0.96);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* `disabled` for buttons, `aria-disabled` for the asChild anchor case, which
|
|
253
|
+
cannot carry `disabled` at all. */
|
|
254
|
+
.pr-btn:disabled,
|
|
255
|
+
.pr-btn[aria-disabled='true'] {
|
|
256
|
+
opacity: 0.6;
|
|
257
|
+
cursor: not-allowed;
|
|
258
|
+
pointer-events: none;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.pr-btn--block {
|
|
262
|
+
width: 100%;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.pr-btn__spinner {
|
|
266
|
+
animation: pr-btn-spin 900ms linear infinite;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@keyframes pr-btn-spin {
|
|
270
|
+
to {
|
|
271
|
+
transform: rotate(360deg);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
@media (prefers-reduced-motion: reduce) {
|
|
276
|
+
.pr-btn {
|
|
277
|
+
transition: none;
|
|
278
|
+
}
|
|
279
|
+
.pr-btn__spinner {
|
|
280
|
+
animation-duration: 2400ms;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* sizes */
|
|
285
|
+
.pr-btn--xs {
|
|
286
|
+
height: 40px;
|
|
287
|
+
padding: 0 12px;
|
|
288
|
+
font-size: 12px;
|
|
289
|
+
gap: 6px;
|
|
290
|
+
}
|
|
291
|
+
.pr-btn--sm {
|
|
292
|
+
height: 40px;
|
|
293
|
+
padding: 0 14px;
|
|
294
|
+
font-size: 13px;
|
|
295
|
+
gap: 6px;
|
|
296
|
+
}
|
|
297
|
+
.pr-btn--md {
|
|
298
|
+
height: 40px;
|
|
299
|
+
padding: 0 16px;
|
|
300
|
+
font-size: 14px;
|
|
301
|
+
}
|
|
302
|
+
.pr-btn--lg {
|
|
303
|
+
height: 48px;
|
|
304
|
+
padding: 0 20px;
|
|
305
|
+
font-size: 16px;
|
|
306
|
+
}
|
|
307
|
+
.pr-btn--icon {
|
|
308
|
+
height: 40px;
|
|
309
|
+
width: 40px;
|
|
310
|
+
padding: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* variants */
|
|
314
|
+
/* The Crystal v2 CTA: the brand sweep with its own elevation. The flat accent
|
|
315
|
+
stays underneath as the painted fallback for engines without the gradient. */
|
|
316
|
+
.pr-btn--primary {
|
|
317
|
+
background: var(--pr-accent);
|
|
318
|
+
background-image: var(--pr-accent-gradient);
|
|
319
|
+
color: var(--pr-accent-ink);
|
|
320
|
+
border-color: transparent;
|
|
321
|
+
box-shadow: var(--pr-shadow-accent);
|
|
322
|
+
}
|
|
323
|
+
/* The deepened glow excludes :focus-visible so the focus indicator survives a
|
|
324
|
+
pointer resting on the control — the hover shadow would otherwise win on
|
|
325
|
+
specificity and replace the ring with an unfocusable-looking glow. */
|
|
326
|
+
.pr-btn--primary:hover:not(:focus-visible):not(:disabled):not([aria-disabled='true']) {
|
|
327
|
+
box-shadow: var(--pr-shadow-accent-lg);
|
|
328
|
+
}
|
|
329
|
+
/* `:not(:active)` keeps the base press scale(0.96) in charge during a click —
|
|
330
|
+
this rule comes later in the sheet and would otherwise out-cascade it. */
|
|
331
|
+
.pr-btn--primary:not(.pr-btn--static):hover:not(:active):not(:disabled):not([aria-disabled='true']) {
|
|
332
|
+
transform: translateY(-1px);
|
|
333
|
+
}
|
|
334
|
+
.pr-btn--primary:focus-visible {
|
|
335
|
+
box-shadow: 0 0 0 2px var(--pr-surface), 0 0 0 4px var(--pr-accent-ink);
|
|
336
|
+
}
|
|
337
|
+
.pr-btn--primary:disabled,
|
|
338
|
+
.pr-btn--primary[aria-disabled='true'] {
|
|
339
|
+
background-image: none;
|
|
340
|
+
box-shadow: none;
|
|
341
|
+
transform: none;
|
|
342
|
+
}
|
|
343
|
+
@media (prefers-reduced-motion: reduce) {
|
|
344
|
+
.pr-btn--primary:not(.pr-btn--static):hover:not(:active):not(:disabled):not([aria-disabled='true']) {
|
|
345
|
+
transform: none;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.pr-btn--secondary {
|
|
350
|
+
background: var(--pr-surface);
|
|
351
|
+
color: var(--pr-fg);
|
|
352
|
+
border-color: var(--pr-border);
|
|
353
|
+
}
|
|
354
|
+
.pr-btn--secondary:hover:not(:disabled):not([aria-disabled='true']) {
|
|
355
|
+
background: var(--pr-elevated);
|
|
356
|
+
border-color: var(--pr-border-strong);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.pr-btn--outline {
|
|
360
|
+
background: transparent;
|
|
361
|
+
color: var(--pr-fg);
|
|
362
|
+
border-color: var(--pr-border-strong);
|
|
363
|
+
}
|
|
364
|
+
.pr-btn--outline:hover:not(:disabled):not([aria-disabled='true']) {
|
|
365
|
+
background: var(--pr-surface);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.pr-btn--ghost {
|
|
369
|
+
background: transparent;
|
|
370
|
+
color: var(--pr-fg-muted);
|
|
371
|
+
}
|
|
372
|
+
.pr-btn--ghost:hover:not(:disabled):not([aria-disabled='true']) {
|
|
373
|
+
background: var(--pr-surface);
|
|
374
|
+
color: var(--pr-fg);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/* A button that reads as a link: no fill and no padding of its own, underlined on
|
|
378
|
+
hover. It remains a button because it performs an action; use `asChild` when
|
|
379
|
+
the rendered control is a link. */
|
|
380
|
+
.pr-btn--link {
|
|
381
|
+
background: transparent;
|
|
382
|
+
color: var(--pr-fg-muted);
|
|
383
|
+
height: auto;
|
|
384
|
+
padding: 0;
|
|
385
|
+
text-underline-offset: 4px;
|
|
386
|
+
}
|
|
387
|
+
.pr-btn--link:hover:not(:disabled):not([aria-disabled='true']) {
|
|
388
|
+
background: transparent;
|
|
389
|
+
color: var(--pr-fg);
|
|
390
|
+
text-decoration: underline;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/* Frosted treatment expressed through semantic surfaces so it follows the
|
|
394
|
+
active theme rather than hardcoding a light fill. */
|
|
395
|
+
.pr-btn--glass {
|
|
396
|
+
background: color-mix(in srgb, var(--pr-surface) 80%, transparent);
|
|
397
|
+
color: var(--pr-fg);
|
|
398
|
+
border-color: color-mix(in srgb, var(--pr-surface) 70%, transparent);
|
|
399
|
+
backdrop-filter: blur(12px);
|
|
400
|
+
}
|
|
401
|
+
.pr-btn--glass:hover:not(:disabled):not([aria-disabled='true']) {
|
|
402
|
+
background: var(--pr-surface);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.pr-btn--danger {
|
|
406
|
+
background: var(--pr-danger);
|
|
407
|
+
color: var(--pr-danger-fg);
|
|
408
|
+
}
|
|
409
|
+
.pr-btn--danger:hover:not(:disabled):not([aria-disabled='true']) {
|
|
410
|
+
filter: brightness(0.94);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.pr-btn--success {
|
|
414
|
+
background: var(--pr-success);
|
|
415
|
+
color: var(--pr-danger-fg);
|
|
416
|
+
}
|
|
417
|
+
.pr-btn--success:hover:not(:disabled):not([aria-disabled='true']) {
|
|
418
|
+
filter: brightness(0.94);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/* ───────────────────────── Badge ───────────────────────── */
|
|
422
|
+
|
|
423
|
+
.pr-badge {
|
|
424
|
+
display: inline-flex;
|
|
425
|
+
align-items: center;
|
|
426
|
+
gap: 5px;
|
|
427
|
+
padding: 3px 8px;
|
|
428
|
+
border-radius: 999px;
|
|
429
|
+
font-family: var(--pr-font-body, inherit);
|
|
430
|
+
font-size: 11.5px;
|
|
431
|
+
font-weight: 650;
|
|
432
|
+
line-height: 1.4;
|
|
433
|
+
white-space: nowrap;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.pr-badge--neutral {
|
|
437
|
+
background: var(--pr-bg);
|
|
438
|
+
color: var(--pr-fg-muted);
|
|
439
|
+
box-shadow: inset 0 0 0 1px var(--pr-border);
|
|
440
|
+
}
|
|
441
|
+
/* `md` is identical to the base rule; xs and sm add compact options without
|
|
442
|
+
resizing existing badges. */
|
|
443
|
+
.pr-badge--xs { padding: 2px 8px; font-size: 10px; }
|
|
444
|
+
.pr-badge--sm { padding: 2px 10px; font-size: 11px; }
|
|
445
|
+
.pr-badge--md { padding: 3px 8px; font-size: 11.5px; }
|
|
446
|
+
|
|
447
|
+
/* Transparent, tone carried by the border. `currentColor` so it follows whichever
|
|
448
|
+
tone set the text, instead of needing a rule per tone. */
|
|
449
|
+
.pr-badge--outline {
|
|
450
|
+
background: transparent;
|
|
451
|
+
box-shadow: inset 0 0 0 1px currentColor;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* The dot inherits the tone's text colour for the same reason. */
|
|
455
|
+
.pr-badge__dot {
|
|
456
|
+
width: 6px;
|
|
457
|
+
height: 6px;
|
|
458
|
+
border-radius: 999px;
|
|
459
|
+
background: currentColor;
|
|
460
|
+
flex-shrink: 0;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.pr-badge--yellow {
|
|
464
|
+
background: var(--pr-tone-yellow-bg);
|
|
465
|
+
color: var(--pr-tone-yellow-fg);
|
|
466
|
+
}
|
|
467
|
+
.pr-badge--blue {
|
|
468
|
+
background: var(--pr-tone-blue-bg);
|
|
469
|
+
color: var(--pr-tone-blue-fg);
|
|
470
|
+
}
|
|
471
|
+
.pr-badge--amber {
|
|
472
|
+
background: var(--pr-tone-amber-bg);
|
|
473
|
+
color: var(--pr-tone-amber-fg);
|
|
474
|
+
}
|
|
475
|
+
.pr-badge--purple {
|
|
476
|
+
background: var(--pr-tone-purple-bg);
|
|
477
|
+
color: var(--pr-tone-purple-fg);
|
|
478
|
+
}
|
|
479
|
+
.pr-badge--green {
|
|
480
|
+
background: var(--pr-tone-green-bg);
|
|
481
|
+
color: var(--pr-tone-green-fg);
|
|
482
|
+
}
|
|
483
|
+
.pr-badge--rose {
|
|
484
|
+
background: var(--pr-tone-rose-bg);
|
|
485
|
+
color: var(--pr-tone-rose-fg);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/* Status tones tint the scale's semantic colours rather than inventing new ones. */
|
|
489
|
+
.pr-badge--danger {
|
|
490
|
+
background: color-mix(in srgb, var(--pr-danger) 14%, transparent);
|
|
491
|
+
color: var(--pr-danger);
|
|
492
|
+
}
|
|
493
|
+
.pr-badge--success {
|
|
494
|
+
background: color-mix(in srgb, var(--pr-success) 14%, transparent);
|
|
495
|
+
color: var(--pr-success);
|
|
496
|
+
}
|
|
497
|
+
.pr-badge--warning {
|
|
498
|
+
background: color-mix(in srgb, var(--pr-warning) 14%, transparent);
|
|
499
|
+
color: var(--pr-warning);
|
|
500
|
+
}
|
|
501
|
+
.pr-badge--info {
|
|
502
|
+
background: color-mix(in srgb, var(--pr-info) 14%, transparent);
|
|
503
|
+
color: var(--pr-info);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.pr-badge--solid.pr-badge--danger {
|
|
507
|
+
background: var(--pr-danger);
|
|
508
|
+
color: var(--pr-danger-fg);
|
|
509
|
+
}
|
|
510
|
+
.pr-badge--solid.pr-badge--success {
|
|
511
|
+
background: var(--pr-success);
|
|
512
|
+
color: var(--pr-danger-fg);
|
|
513
|
+
}
|
|
514
|
+
.pr-badge--solid.pr-badge--warning {
|
|
515
|
+
background: var(--pr-warning);
|
|
516
|
+
color: var(--pr-accent-ink);
|
|
517
|
+
}
|
|
518
|
+
.pr-badge--solid.pr-badge--info {
|
|
519
|
+
background: var(--pr-info);
|
|
520
|
+
color: var(--pr-danger-fg);
|
|
521
|
+
}
|
|
522
|
+
.pr-badge--solid.pr-badge--neutral {
|
|
523
|
+
background: var(--pr-fg-muted);
|
|
524
|
+
color: var(--pr-surface);
|
|
525
|
+
box-shadow: none;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/* ───────────────────────── Dialog ───────────────────────── */
|
|
529
|
+
|
|
530
|
+
.pr-dialog {
|
|
531
|
+
position: fixed;
|
|
532
|
+
inset: 0;
|
|
533
|
+
z-index: 100;
|
|
534
|
+
display: flex;
|
|
535
|
+
align-items: center;
|
|
536
|
+
justify-content: center;
|
|
537
|
+
padding: 20px;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.pr-dialog__backdrop {
|
|
541
|
+
position: absolute;
|
|
542
|
+
inset: 0;
|
|
543
|
+
background: rgba(0, 0, 0, 0.45);
|
|
544
|
+
backdrop-filter: blur(2px);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.pr-dialog__panel {
|
|
548
|
+
position: relative;
|
|
549
|
+
display: flex;
|
|
550
|
+
flex-direction: column;
|
|
551
|
+
width: 100%;
|
|
552
|
+
max-height: calc(100vh - 40px);
|
|
553
|
+
/* `elevated`, not `surface`: a dialog sits above the page, and on a dark
|
|
554
|
+
theme a shadow cannot express that — only lightness can. */
|
|
555
|
+
background: var(--pr-elevated);
|
|
556
|
+
color: var(--pr-fg);
|
|
557
|
+
border: 1px solid var(--pr-border);
|
|
558
|
+
/* Modals sit at the top of the Crystal shape scale (28px). */
|
|
559
|
+
border-radius: var(--pr-radius-xl, 1rem);
|
|
560
|
+
box-shadow: var(--pr-shadow-elevated);
|
|
561
|
+
font-family: var(--pr-font-body, inherit);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.pr-dialog__panel:focus-visible {
|
|
565
|
+
outline: none;
|
|
566
|
+
box-shadow: var(--pr-shadow-elevated), var(--pr-focus-ring);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.pr-dialog__panel--sm { max-width: 380px; }
|
|
570
|
+
.pr-dialog__panel--md { max-width: 520px; }
|
|
571
|
+
.pr-dialog__panel--lg { max-width: 720px; }
|
|
572
|
+
.pr-dialog__panel--xl { max-width: 960px; }
|
|
573
|
+
/* The widest sizes provide room for tables and other dense dialog content. */
|
|
574
|
+
.pr-dialog__panel--2xl { max-width: 1120px; }
|
|
575
|
+
.pr-dialog__panel--4xl { max-width: 1320px; }
|
|
576
|
+
|
|
577
|
+
/* A custom header owns its own padding and layout; the dialog only keeps it from
|
|
578
|
+
scrolling with the body. */
|
|
579
|
+
.pr-dialog__header--custom {
|
|
580
|
+
display: block;
|
|
581
|
+
padding: 0;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.pr-dialog__header {
|
|
585
|
+
display: flex;
|
|
586
|
+
align-items: flex-start;
|
|
587
|
+
gap: 16px;
|
|
588
|
+
padding: 20px 20px 12px;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.pr-dialog__heading {
|
|
592
|
+
flex: 1;
|
|
593
|
+
min-width: 0;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.pr-dialog__title {
|
|
597
|
+
margin: 0;
|
|
598
|
+
font-family: var(--pr-font-body, inherit);
|
|
599
|
+
font-size: 16px;
|
|
600
|
+
font-weight: 700;
|
|
601
|
+
color: var(--pr-fg);
|
|
602
|
+
text-wrap: balance;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.pr-dialog__description {
|
|
606
|
+
margin: 4px 0 0;
|
|
607
|
+
font-size: 14px;
|
|
608
|
+
color: var(--pr-fg-muted);
|
|
609
|
+
text-wrap: pretty;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.pr-dialog__close {
|
|
613
|
+
flex-shrink: 0;
|
|
614
|
+
display: inline-flex;
|
|
615
|
+
align-items: center;
|
|
616
|
+
justify-content: center;
|
|
617
|
+
height: 40px;
|
|
618
|
+
width: 40px;
|
|
619
|
+
border: none;
|
|
620
|
+
border-radius: var(--pr-radius-sm, 0.5rem);
|
|
621
|
+
background: transparent;
|
|
622
|
+
color: var(--pr-fg-muted);
|
|
623
|
+
cursor: pointer;
|
|
624
|
+
}
|
|
625
|
+
.pr-dialog__close:hover { background: var(--pr-surface); color: var(--pr-fg); }
|
|
626
|
+
.pr-dialog__close:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
627
|
+
|
|
628
|
+
.pr-dialog__body {
|
|
629
|
+
flex: 1;
|
|
630
|
+
min-height: 0;
|
|
631
|
+
overflow-y: auto;
|
|
632
|
+
padding: 8px 20px 20px;
|
|
633
|
+
font-size: 14px;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.pr-dialog__footer {
|
|
637
|
+
display: flex;
|
|
638
|
+
justify-content: flex-end;
|
|
639
|
+
gap: 8px;
|
|
640
|
+
padding: 14px 20px;
|
|
641
|
+
border-top: 1px solid var(--pr-border);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/* Compound dialogs keep behavior and chrome in the package while letting apps
|
|
645
|
+
compose their own body. The legacy Dialog above uses the same layer and stays
|
|
646
|
+
visually stable for existing consumers. */
|
|
647
|
+
.pr-dialog__panel--compound {
|
|
648
|
+
display: grid;
|
|
649
|
+
gap: 16px;
|
|
650
|
+
padding: 24px;
|
|
651
|
+
overflow-y: auto;
|
|
652
|
+
animation: pr-dialog-enter 160ms var(--pr-ease, ease) both;
|
|
653
|
+
}
|
|
654
|
+
.pr-dialog__header--compound {
|
|
655
|
+
display: flex;
|
|
656
|
+
flex-direction: column;
|
|
657
|
+
gap: 6px;
|
|
658
|
+
padding: 0 44px 0 0;
|
|
659
|
+
}
|
|
660
|
+
.pr-dialog__footer--compound {
|
|
661
|
+
padding: 16px 0 0;
|
|
662
|
+
}
|
|
663
|
+
.pr-dialog__close--floating {
|
|
664
|
+
position: absolute;
|
|
665
|
+
top: 12px;
|
|
666
|
+
right: 12px;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.pr-alert-dialog__panel { max-width: 440px; }
|
|
670
|
+
.pr-alert-dialog__header {
|
|
671
|
+
display: flex;
|
|
672
|
+
flex-direction: column;
|
|
673
|
+
gap: 6px;
|
|
674
|
+
}
|
|
675
|
+
.pr-alert-dialog__title {
|
|
676
|
+
margin: 0;
|
|
677
|
+
font-size: 18px;
|
|
678
|
+
line-height: 1.25;
|
|
679
|
+
font-weight: 700;
|
|
680
|
+
color: var(--pr-fg);
|
|
681
|
+
text-wrap: balance;
|
|
682
|
+
}
|
|
683
|
+
.pr-alert-dialog__description {
|
|
684
|
+
margin: 0;
|
|
685
|
+
font-size: 14px;
|
|
686
|
+
line-height: 1.5;
|
|
687
|
+
color: var(--pr-fg-muted);
|
|
688
|
+
text-wrap: pretty;
|
|
689
|
+
}
|
|
690
|
+
.pr-alert-dialog__footer {
|
|
691
|
+
display: flex;
|
|
692
|
+
justify-content: flex-end;
|
|
693
|
+
gap: 8px;
|
|
694
|
+
padding-top: 4px;
|
|
695
|
+
}
|
|
696
|
+
.pr-alert-dialog__media {
|
|
697
|
+
display: inline-flex;
|
|
698
|
+
align-items: center;
|
|
699
|
+
justify-content: center;
|
|
700
|
+
width: 48px;
|
|
701
|
+
height: 48px;
|
|
702
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
703
|
+
background: var(--pr-surface);
|
|
704
|
+
color: var(--pr-fg-muted);
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/* ───────────────────────── Sheet ───────────────────────── */
|
|
708
|
+
|
|
709
|
+
.pr-sheet {
|
|
710
|
+
position: fixed;
|
|
711
|
+
inset: 0;
|
|
712
|
+
z-index: 100;
|
|
713
|
+
}
|
|
714
|
+
.pr-sheet__backdrop {
|
|
715
|
+
position: absolute;
|
|
716
|
+
inset: 0;
|
|
717
|
+
background: rgba(0, 0, 0, 0.45);
|
|
718
|
+
backdrop-filter: blur(2px);
|
|
719
|
+
}
|
|
720
|
+
.pr-sheet__panel {
|
|
721
|
+
position: absolute;
|
|
722
|
+
display: flex;
|
|
723
|
+
flex-direction: column;
|
|
724
|
+
gap: 16px;
|
|
725
|
+
width: min(100%, 420px);
|
|
726
|
+
max-width: none;
|
|
727
|
+
height: 100%;
|
|
728
|
+
max-height: none;
|
|
729
|
+
padding: 24px;
|
|
730
|
+
overflow-y: auto;
|
|
731
|
+
border-radius: 0;
|
|
732
|
+
background: var(--pr-elevated);
|
|
733
|
+
color: var(--pr-fg);
|
|
734
|
+
border: 0 solid var(--pr-border);
|
|
735
|
+
box-shadow: var(--pr-shadow-elevated);
|
|
736
|
+
font-family: var(--pr-font-body, inherit);
|
|
737
|
+
}
|
|
738
|
+
.pr-sheet__panel[data-side='right'] {
|
|
739
|
+
inset: 0 0 0 auto;
|
|
740
|
+
border-left-width: 1px;
|
|
741
|
+
animation: pr-sheet-enter-right 200ms var(--pr-ease, ease) both;
|
|
742
|
+
}
|
|
743
|
+
.pr-sheet__panel[data-side='left'] {
|
|
744
|
+
inset: 0 auto 0 0;
|
|
745
|
+
border-right-width: 1px;
|
|
746
|
+
animation: pr-sheet-enter-left 200ms var(--pr-ease, ease) both;
|
|
747
|
+
}
|
|
748
|
+
.pr-sheet__panel[data-side='top'],
|
|
749
|
+
.pr-sheet__panel[data-side='bottom'] {
|
|
750
|
+
left: 0;
|
|
751
|
+
width: 100%;
|
|
752
|
+
height: auto;
|
|
753
|
+
max-height: min(80vh, 720px);
|
|
754
|
+
}
|
|
755
|
+
.pr-sheet__panel[data-side='top'] {
|
|
756
|
+
top: 0;
|
|
757
|
+
border-bottom-width: 1px;
|
|
758
|
+
animation: pr-sheet-enter-top 200ms var(--pr-ease, ease) both;
|
|
759
|
+
}
|
|
760
|
+
.pr-sheet__panel[data-side='bottom'] {
|
|
761
|
+
bottom: 0;
|
|
762
|
+
border-top-width: 1px;
|
|
763
|
+
animation: pr-sheet-enter-bottom 200ms var(--pr-ease, ease) both;
|
|
764
|
+
}
|
|
765
|
+
.pr-sheet__panel[data-width='sm'] { width: min(100%, 340px); }
|
|
766
|
+
.pr-sheet__panel[data-width='md'] { width: min(100%, 420px); }
|
|
767
|
+
.pr-sheet__panel[data-width='lg'] { width: min(100%, 560px); }
|
|
768
|
+
.pr-sheet__panel[data-width='xl'] { width: min(100%, 720px); }
|
|
769
|
+
.pr-sheet__panel[data-width='full'] { width: 100%; }
|
|
770
|
+
.pr-sheet__panel[data-side='top'],
|
|
771
|
+
.pr-sheet__panel[data-side='bottom'] { width: 100%; }
|
|
772
|
+
.pr-sheet__header {
|
|
773
|
+
display: flex;
|
|
774
|
+
flex-direction: column;
|
|
775
|
+
gap: 6px;
|
|
776
|
+
padding-right: 44px;
|
|
777
|
+
}
|
|
778
|
+
.pr-sheet__title {
|
|
779
|
+
margin: 0;
|
|
780
|
+
font-size: 18px;
|
|
781
|
+
font-weight: 700;
|
|
782
|
+
color: var(--pr-fg);
|
|
783
|
+
text-wrap: balance;
|
|
784
|
+
}
|
|
785
|
+
.pr-sheet__description {
|
|
786
|
+
margin: 0;
|
|
787
|
+
font-size: 14px;
|
|
788
|
+
line-height: 1.5;
|
|
789
|
+
color: var(--pr-fg-muted);
|
|
790
|
+
text-wrap: pretty;
|
|
791
|
+
}
|
|
792
|
+
.pr-sheet__footer {
|
|
793
|
+
display: flex;
|
|
794
|
+
justify-content: flex-end;
|
|
795
|
+
gap: 8px;
|
|
796
|
+
margin-top: auto;
|
|
797
|
+
padding-top: 16px;
|
|
798
|
+
border-top: 1px solid var(--pr-border);
|
|
799
|
+
}
|
|
800
|
+
.pr-sheet__close {
|
|
801
|
+
position: absolute;
|
|
802
|
+
top: 12px;
|
|
803
|
+
right: 12px;
|
|
804
|
+
display: inline-flex;
|
|
805
|
+
align-items: center;
|
|
806
|
+
justify-content: center;
|
|
807
|
+
width: 40px;
|
|
808
|
+
height: 40px;
|
|
809
|
+
padding: 0;
|
|
810
|
+
border: 0;
|
|
811
|
+
border-radius: var(--pr-radius-sm, 0.5rem);
|
|
812
|
+
background: transparent;
|
|
813
|
+
color: var(--pr-fg-muted);
|
|
814
|
+
cursor: pointer;
|
|
815
|
+
}
|
|
816
|
+
.pr-sheet__close:hover { background: var(--pr-surface); color: var(--pr-fg); }
|
|
817
|
+
.pr-sheet__close:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
818
|
+
|
|
819
|
+
@keyframes pr-dialog-enter {
|
|
820
|
+
from { opacity: 0; transform: translateY(4px) scale(0.985); }
|
|
821
|
+
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
822
|
+
}
|
|
823
|
+
@keyframes pr-sheet-enter-right { from { transform: translateX(24px); opacity: 0; } }
|
|
824
|
+
@keyframes pr-sheet-enter-left { from { transform: translateX(-24px); opacity: 0; } }
|
|
825
|
+
@keyframes pr-sheet-enter-top { from { transform: translateY(-24px); opacity: 0; } }
|
|
826
|
+
@keyframes pr-sheet-enter-bottom { from { transform: translateY(24px); opacity: 0; } }
|
|
827
|
+
|
|
828
|
+
@media (prefers-reduced-motion: reduce) {
|
|
829
|
+
.pr-dialog__panel--compound,
|
|
830
|
+
.pr-sheet__panel { animation: none; }
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
@media (max-width: 639px) {
|
|
834
|
+
.pr-dialog { padding: 12px; }
|
|
835
|
+
.pr-dialog__panel--compound { padding: 20px; }
|
|
836
|
+
.pr-alert-dialog__footer { flex-direction: column-reverse; }
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/* ───────────────────────── Input ───────────────────────── */
|
|
840
|
+
|
|
841
|
+
.pr-field {
|
|
842
|
+
display: inline-flex;
|
|
843
|
+
flex-direction: column;
|
|
844
|
+
gap: 6px;
|
|
845
|
+
font-family: var(--pr-font-body, inherit);
|
|
846
|
+
}
|
|
847
|
+
.pr-field--block { display: flex; width: 100%; }
|
|
848
|
+
|
|
849
|
+
.pr-label,
|
|
850
|
+
.pr-field__label {
|
|
851
|
+
display: inline-flex;
|
|
852
|
+
align-items: baseline;
|
|
853
|
+
gap: 4px;
|
|
854
|
+
font-size: 12.5px;
|
|
855
|
+
font-weight: 650;
|
|
856
|
+
color: var(--pr-fg-muted);
|
|
857
|
+
}
|
|
858
|
+
.pr-label__required { color: var(--pr-danger); }
|
|
859
|
+
|
|
860
|
+
/* `.pr-input` is the same field with nothing around it — see Input.tsx for when it
|
|
861
|
+
is used. The shared declarations are stated once so the two cannot drift. */
|
|
862
|
+
.pr-field__control,
|
|
863
|
+
.pr-input {
|
|
864
|
+
background: var(--pr-surface);
|
|
865
|
+
border: 1px solid var(--pr-border);
|
|
866
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
867
|
+
transition: border-color 160ms var(--pr-ease, ease);
|
|
868
|
+
}
|
|
869
|
+
.pr-field__control {
|
|
870
|
+
display: flex;
|
|
871
|
+
align-items: center;
|
|
872
|
+
gap: 8px;
|
|
873
|
+
}
|
|
874
|
+
.pr-field__control--sm, .pr-input--sm { height: 40px; padding: 0 10px; }
|
|
875
|
+
.pr-field__control--md, .pr-input--md { height: 40px; padding: 0 12px; }
|
|
876
|
+
.pr-field__control--lg, .pr-input--lg { height: 46px; padding: 0 14px; }
|
|
877
|
+
|
|
878
|
+
.pr-field__control:focus-within,
|
|
879
|
+
.pr-input:focus,
|
|
880
|
+
.pr-input:focus-visible {
|
|
881
|
+
border-color: var(--pr-accent-strong);
|
|
882
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
883
|
+
box-shadow: var(--pr-focus-ring);
|
|
884
|
+
outline: none;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.pr-input {
|
|
888
|
+
font-family: var(--pr-font-body, inherit);
|
|
889
|
+
font-size: 14px;
|
|
890
|
+
color: var(--pr-fg);
|
|
891
|
+
outline: none;
|
|
892
|
+
min-width: 0;
|
|
893
|
+
}
|
|
894
|
+
.pr-input--block { width: 100%; }
|
|
895
|
+
.pr-input::placeholder { color: var(--pr-fg-faint); }
|
|
896
|
+
.pr-input:disabled { cursor: not-allowed; opacity: 0.6; }
|
|
897
|
+
.pr-input[aria-invalid='true'] { border-color: var(--pr-danger); }
|
|
898
|
+
|
|
899
|
+
.pr-field--invalid .pr-field__control { border-color: var(--pr-danger); }
|
|
900
|
+
.pr-field--disabled .pr-field__control { opacity: 0.6; }
|
|
901
|
+
|
|
902
|
+
.pr-field__input {
|
|
903
|
+
flex: 1;
|
|
904
|
+
min-width: 0;
|
|
905
|
+
border: none;
|
|
906
|
+
outline: none;
|
|
907
|
+
background: transparent;
|
|
908
|
+
color: var(--pr-fg);
|
|
909
|
+
font: inherit;
|
|
910
|
+
font-size: 14px;
|
|
911
|
+
}
|
|
912
|
+
.pr-field__input:focus-visible {
|
|
913
|
+
border-radius: 0;
|
|
914
|
+
box-shadow: none;
|
|
915
|
+
outline: none;
|
|
916
|
+
}
|
|
917
|
+
.pr-field__input::placeholder { color: var(--pr-fg-faint); }
|
|
918
|
+
.pr-field__input:disabled { cursor: not-allowed; }
|
|
919
|
+
|
|
920
|
+
/* ───────────────────── File Dropzone ───────────────────── */
|
|
921
|
+
|
|
922
|
+
.pr-file-dropzone-field {
|
|
923
|
+
display: inline-flex;
|
|
924
|
+
flex-direction: column;
|
|
925
|
+
gap: 6px;
|
|
926
|
+
width: min(100%, 420px);
|
|
927
|
+
min-width: 0;
|
|
928
|
+
font-family: var(--pr-font-body, inherit);
|
|
929
|
+
}
|
|
930
|
+
.pr-file-dropzone-field--block { display: flex; width: 100%; }
|
|
931
|
+
|
|
932
|
+
.pr-file-dropzone {
|
|
933
|
+
position: relative;
|
|
934
|
+
display: flex;
|
|
935
|
+
flex-direction: column;
|
|
936
|
+
justify-content: center;
|
|
937
|
+
gap: 16px;
|
|
938
|
+
min-width: 0;
|
|
939
|
+
min-height: 160px;
|
|
940
|
+
padding: 24px;
|
|
941
|
+
overflow: hidden;
|
|
942
|
+
border: 1px dashed var(--pr-border-strong);
|
|
943
|
+
border-radius: var(--pr-radius-lg);
|
|
944
|
+
background: var(--pr-surface);
|
|
945
|
+
color: var(--pr-fg);
|
|
946
|
+
cursor: pointer;
|
|
947
|
+
transition:
|
|
948
|
+
background-color 160ms var(--pr-ease, ease),
|
|
949
|
+
border-color 160ms var(--pr-ease, ease),
|
|
950
|
+
box-shadow 160ms var(--pr-ease, ease);
|
|
951
|
+
}
|
|
952
|
+
.pr-file-dropzone:hover:not([data-state='disabled']):not([data-state='invalid']) {
|
|
953
|
+
border-color: var(--pr-accent-strong);
|
|
954
|
+
}
|
|
955
|
+
.pr-file-dropzone:has(.pr-file-dropzone__input:focus-visible) {
|
|
956
|
+
border-color: var(--pr-accent-strong);
|
|
957
|
+
box-shadow: var(--pr-focus-ring);
|
|
958
|
+
outline: none;
|
|
959
|
+
}
|
|
960
|
+
.pr-file-dropzone[data-state='drag-active'] {
|
|
961
|
+
background: var(--pr-tone-yellow-bg);
|
|
962
|
+
border-color: var(--pr-tone-yellow-border);
|
|
963
|
+
border-style: solid;
|
|
964
|
+
}
|
|
965
|
+
.pr-file-dropzone[data-state='invalid'] { border-color: var(--pr-danger); }
|
|
966
|
+
.pr-file-dropzone[data-state='disabled'] {
|
|
967
|
+
cursor: not-allowed;
|
|
968
|
+
opacity: 0.6;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.pr-file-dropzone__input {
|
|
972
|
+
position: absolute;
|
|
973
|
+
z-index: 3;
|
|
974
|
+
inset: 0;
|
|
975
|
+
width: 100%;
|
|
976
|
+
height: 100%;
|
|
977
|
+
margin: 0;
|
|
978
|
+
opacity: 0;
|
|
979
|
+
cursor: pointer;
|
|
980
|
+
}
|
|
981
|
+
.pr-file-dropzone__input:disabled { cursor: not-allowed; }
|
|
982
|
+
|
|
983
|
+
.pr-file-dropzone__content {
|
|
984
|
+
display: flex;
|
|
985
|
+
flex-direction: column;
|
|
986
|
+
align-items: center;
|
|
987
|
+
gap: 8px;
|
|
988
|
+
min-width: 0;
|
|
989
|
+
text-align: center;
|
|
990
|
+
pointer-events: none;
|
|
991
|
+
}
|
|
992
|
+
.pr-file-dropzone__icon {
|
|
993
|
+
display: inline-flex;
|
|
994
|
+
align-items: center;
|
|
995
|
+
justify-content: center;
|
|
996
|
+
width: 44px;
|
|
997
|
+
height: 44px;
|
|
998
|
+
border-radius: var(--pr-radius-md);
|
|
999
|
+
background: var(--pr-tone-yellow-bg);
|
|
1000
|
+
color: var(--pr-tone-yellow-fg);
|
|
1001
|
+
box-shadow: inset 0 0 0 1px var(--pr-tone-yellow-border);
|
|
1002
|
+
}
|
|
1003
|
+
.pr-file-dropzone__browse {
|
|
1004
|
+
color: var(--pr-fg);
|
|
1005
|
+
font-size: 14px;
|
|
1006
|
+
font-weight: 650;
|
|
1007
|
+
line-height: 1.35;
|
|
1008
|
+
}
|
|
1009
|
+
.pr-file-dropzone__description {
|
|
1010
|
+
color: var(--pr-fg-muted);
|
|
1011
|
+
font-size: 14px;
|
|
1012
|
+
line-height: 1.45;
|
|
1013
|
+
text-wrap: pretty;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.pr-file-dropzone__files {
|
|
1017
|
+
display: grid;
|
|
1018
|
+
gap: 6px;
|
|
1019
|
+
min-width: 0;
|
|
1020
|
+
margin: 0;
|
|
1021
|
+
padding: 0;
|
|
1022
|
+
list-style: none;
|
|
1023
|
+
pointer-events: none;
|
|
1024
|
+
}
|
|
1025
|
+
.pr-file-dropzone__file {
|
|
1026
|
+
display: flex;
|
|
1027
|
+
align-items: center;
|
|
1028
|
+
gap: 8px;
|
|
1029
|
+
min-width: 0;
|
|
1030
|
+
min-height: 40px;
|
|
1031
|
+
padding: 8px 10px;
|
|
1032
|
+
border-radius: var(--pr-radius-md);
|
|
1033
|
+
background: var(--pr-elevated);
|
|
1034
|
+
color: var(--pr-fg-muted);
|
|
1035
|
+
box-shadow: inset 0 0 0 1px var(--pr-border);
|
|
1036
|
+
}
|
|
1037
|
+
.pr-file-dropzone__file-name {
|
|
1038
|
+
min-width: 0;
|
|
1039
|
+
overflow: hidden;
|
|
1040
|
+
color: var(--pr-fg);
|
|
1041
|
+
font-size: 14px;
|
|
1042
|
+
font-weight: 600;
|
|
1043
|
+
text-overflow: ellipsis;
|
|
1044
|
+
white-space: nowrap;
|
|
1045
|
+
}
|
|
1046
|
+
.pr-file-dropzone__file-size {
|
|
1047
|
+
margin-left: auto;
|
|
1048
|
+
color: var(--pr-fg-muted);
|
|
1049
|
+
font-size: 12px;
|
|
1050
|
+
font-variant-numeric: tabular-nums;
|
|
1051
|
+
white-space: nowrap;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.pr-file-dropzone-field__message {
|
|
1055
|
+
margin: 0;
|
|
1056
|
+
color: var(--pr-fg-muted);
|
|
1057
|
+
font-size: 14px;
|
|
1058
|
+
line-height: 1.4;
|
|
1059
|
+
}
|
|
1060
|
+
.pr-file-dropzone-field__message--error { color: var(--pr-danger); }
|
|
1061
|
+
|
|
1062
|
+
@media (max-width: 480px) {
|
|
1063
|
+
.pr-file-dropzone { padding: 20px 16px; }
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1067
|
+
.pr-file-dropzone { transition: none; }
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
/* ─────────────────────── Select ─────────────────────── */
|
|
1071
|
+
|
|
1072
|
+
/* The box is the same box as the Input's, stated once so a select and a text field
|
|
1073
|
+
sitting next to each other in a form cannot drift apart. */
|
|
1074
|
+
.pr-select { display: inline-flex; flex-direction: column; gap: 6px; font-family: var(--pr-font-body, inherit); }
|
|
1075
|
+
.pr-select--block { display: flex; width: 100%; }
|
|
1076
|
+
|
|
1077
|
+
.pr-select__control {
|
|
1078
|
+
position: relative;
|
|
1079
|
+
display: flex;
|
|
1080
|
+
align-items: center;
|
|
1081
|
+
background: var(--pr-surface);
|
|
1082
|
+
border: 1px solid var(--pr-border);
|
|
1083
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
1084
|
+
transition: border-color 160ms var(--pr-ease, ease);
|
|
1085
|
+
}
|
|
1086
|
+
.pr-select__control--sm { height: 40px; }
|
|
1087
|
+
.pr-select__control--md { height: 40px; }
|
|
1088
|
+
.pr-select__control--lg { height: 46px; }
|
|
1089
|
+
|
|
1090
|
+
.pr-select__control:focus-within {
|
|
1091
|
+
border-color: var(--pr-accent-strong);
|
|
1092
|
+
box-shadow: var(--pr-focus-ring);
|
|
1093
|
+
}
|
|
1094
|
+
.pr-field--invalid .pr-select__control { border-color: var(--pr-danger); }
|
|
1095
|
+
.pr-select--disabled .pr-select__control { opacity: 0.6; }
|
|
1096
|
+
|
|
1097
|
+
.pr-select__input {
|
|
1098
|
+
flex: 1;
|
|
1099
|
+
min-width: 0;
|
|
1100
|
+
height: 100%;
|
|
1101
|
+
/* Room for the chevron on the right; the native arrow is removed because it sits
|
|
1102
|
+
at a different offset per platform and would double up with ours. */
|
|
1103
|
+
padding: 0 34px 0 12px;
|
|
1104
|
+
border: none;
|
|
1105
|
+
outline: none;
|
|
1106
|
+
background: transparent;
|
|
1107
|
+
color: var(--pr-fg);
|
|
1108
|
+
font: inherit;
|
|
1109
|
+
font-size: 14px;
|
|
1110
|
+
appearance: none;
|
|
1111
|
+
cursor: pointer;
|
|
1112
|
+
}
|
|
1113
|
+
.pr-select__input:focus-visible {
|
|
1114
|
+
border-radius: 0;
|
|
1115
|
+
box-shadow: none;
|
|
1116
|
+
outline: none;
|
|
1117
|
+
}
|
|
1118
|
+
.pr-select__input:disabled { cursor: not-allowed; }
|
|
1119
|
+
/* An unchosen placeholder should read as placeholder text, not as a value. */
|
|
1120
|
+
.pr-select__input:has(option[value='']:checked) { color: var(--pr-fg-faint); }
|
|
1121
|
+
|
|
1122
|
+
/* The open menu is drawn by the browser, but it takes its ink and paper from the
|
|
1123
|
+
element: the `background: transparent` above leaves Chrome painting the popup
|
|
1124
|
+
on its own white sheet while the options keep `--pr-fg`, which in dark mode is
|
|
1125
|
+
near-white text on white. Stating the pair per option is what carries the theme
|
|
1126
|
+
into the popup — Chrome on Windows/Linux honors it; macOS draws a system menu
|
|
1127
|
+
that ignores it and is legible either way. */
|
|
1128
|
+
.pr-select__input option,
|
|
1129
|
+
.pr-select__input optgroup {
|
|
1130
|
+
background-color: var(--pr-surface);
|
|
1131
|
+
color: var(--pr-fg);
|
|
1132
|
+
}
|
|
1133
|
+
/* Only the empty-value placeholder, to mirror exactly what the `:has()` rule above
|
|
1134
|
+
scopes. Every other disabled option keeps the normal ink and takes the dimming
|
|
1135
|
+
the UA already applies — two dimmings compound into something unreadable, and a
|
|
1136
|
+
Select whose value happens to be disabled would read as an unfilled field. */
|
|
1137
|
+
.pr-select__input option[value='']:disabled { color: var(--pr-fg-faint); }
|
|
1138
|
+
|
|
1139
|
+
.pr-select__chevron {
|
|
1140
|
+
position: absolute;
|
|
1141
|
+
right: 10px;
|
|
1142
|
+
color: var(--pr-fg-faint);
|
|
1143
|
+
pointer-events: none;
|
|
1144
|
+
flex-shrink: 0;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
/* ─────────────────────── Rich Select ─────────────────────── */
|
|
1148
|
+
|
|
1149
|
+
.pr-rich-select__trigger {
|
|
1150
|
+
display: inline-flex;
|
|
1151
|
+
align-items: center;
|
|
1152
|
+
justify-content: space-between;
|
|
1153
|
+
gap: 8px;
|
|
1154
|
+
min-width: 180px;
|
|
1155
|
+
padding: 0 12px;
|
|
1156
|
+
border: 1px solid var(--pr-border);
|
|
1157
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
1158
|
+
background: var(--pr-surface);
|
|
1159
|
+
color: var(--pr-fg);
|
|
1160
|
+
font: inherit;
|
|
1161
|
+
font-family: var(--pr-font-body, inherit);
|
|
1162
|
+
font-size: 14px;
|
|
1163
|
+
text-align: left;
|
|
1164
|
+
cursor: pointer;
|
|
1165
|
+
transition-property: border-color, box-shadow;
|
|
1166
|
+
transition-duration: 160ms;
|
|
1167
|
+
transition-timing-function: var(--pr-ease, ease);
|
|
1168
|
+
}
|
|
1169
|
+
.pr-rich-select__trigger--sm,
|
|
1170
|
+
.pr-rich-select__trigger--md { min-height: 40px; }
|
|
1171
|
+
.pr-rich-select__trigger--lg { min-height: 46px; }
|
|
1172
|
+
.pr-rich-select__trigger--block { width: 100%; }
|
|
1173
|
+
.pr-rich-select__trigger:hover:not(:disabled) { border-color: var(--pr-border-strong); }
|
|
1174
|
+
.pr-rich-select__trigger:focus-visible,
|
|
1175
|
+
.pr-rich-select__trigger--open {
|
|
1176
|
+
outline: none;
|
|
1177
|
+
border-color: var(--pr-accent-strong);
|
|
1178
|
+
box-shadow: var(--pr-focus-ring);
|
|
1179
|
+
}
|
|
1180
|
+
.pr-rich-select__trigger[aria-invalid='true'] { border-color: var(--pr-danger); }
|
|
1181
|
+
.pr-rich-select__trigger:disabled { cursor: not-allowed; opacity: 0.6; }
|
|
1182
|
+
|
|
1183
|
+
.pr-rich-select__value {
|
|
1184
|
+
flex: 1;
|
|
1185
|
+
min-width: 0;
|
|
1186
|
+
overflow: hidden;
|
|
1187
|
+
text-overflow: ellipsis;
|
|
1188
|
+
white-space: nowrap;
|
|
1189
|
+
}
|
|
1190
|
+
.pr-rich-select__value--placeholder { color: var(--pr-fg-faint); }
|
|
1191
|
+
.pr-rich-select__chevron {
|
|
1192
|
+
flex: 0 0 auto;
|
|
1193
|
+
color: var(--pr-fg-faint);
|
|
1194
|
+
transition: transform 160ms var(--pr-ease, ease);
|
|
1195
|
+
}
|
|
1196
|
+
.pr-rich-select__trigger--open .pr-rich-select__chevron { transform: rotate(180deg); }
|
|
1197
|
+
|
|
1198
|
+
.pr-rich-select__content {
|
|
1199
|
+
z-index: 60;
|
|
1200
|
+
display: flex;
|
|
1201
|
+
flex-direction: column;
|
|
1202
|
+
overflow: hidden;
|
|
1203
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
1204
|
+
background: var(--pr-elevated);
|
|
1205
|
+
color: var(--pr-fg);
|
|
1206
|
+
box-shadow: var(--pr-shadow-elevated), inset 0 0 0 1px var(--pr-border);
|
|
1207
|
+
font-family: var(--pr-font-body, inherit);
|
|
1208
|
+
}
|
|
1209
|
+
.pr-rich-select__search-shell {
|
|
1210
|
+
display: flex;
|
|
1211
|
+
align-items: center;
|
|
1212
|
+
gap: 8px;
|
|
1213
|
+
min-height: 40px;
|
|
1214
|
+
padding: 8px 12px;
|
|
1215
|
+
border-bottom: 1px solid var(--pr-border);
|
|
1216
|
+
color: var(--pr-fg-faint);
|
|
1217
|
+
}
|
|
1218
|
+
.pr-rich-select__search-shell:focus-within {
|
|
1219
|
+
box-shadow: inset 0 -2px 0 var(--pr-accent-strong);
|
|
1220
|
+
}
|
|
1221
|
+
.pr-rich-select__search {
|
|
1222
|
+
width: 100%;
|
|
1223
|
+
min-width: 0;
|
|
1224
|
+
border: 0;
|
|
1225
|
+
outline: 0;
|
|
1226
|
+
background: transparent;
|
|
1227
|
+
color: var(--pr-fg);
|
|
1228
|
+
font: inherit;
|
|
1229
|
+
font-size: 14px;
|
|
1230
|
+
appearance: none;
|
|
1231
|
+
}
|
|
1232
|
+
.pr-rich-select__search::-webkit-search-cancel-button { display: none; }
|
|
1233
|
+
.pr-rich-select__search::placeholder { color: var(--pr-fg-faint); }
|
|
1234
|
+
.pr-rich-select__search:focus-visible { outline: none; box-shadow: none; }
|
|
1235
|
+
|
|
1236
|
+
.pr-rich-select__list {
|
|
1237
|
+
overflow-y: auto;
|
|
1238
|
+
overscroll-behavior: contain;
|
|
1239
|
+
padding: 4px;
|
|
1240
|
+
outline: none;
|
|
1241
|
+
}
|
|
1242
|
+
.pr-rich-select__group:not(:has(.pr-rich-select__item:not([hidden]))) { display: none; }
|
|
1243
|
+
.pr-rich-select__label {
|
|
1244
|
+
padding: 8px 8px 4px;
|
|
1245
|
+
color: var(--pr-fg-muted);
|
|
1246
|
+
font-size: 11px;
|
|
1247
|
+
font-weight: 650;
|
|
1248
|
+
letter-spacing: 0.06em;
|
|
1249
|
+
text-transform: uppercase;
|
|
1250
|
+
}
|
|
1251
|
+
.pr-rich-select__separator {
|
|
1252
|
+
height: 1px;
|
|
1253
|
+
margin: 4px;
|
|
1254
|
+
background: var(--pr-border);
|
|
1255
|
+
}
|
|
1256
|
+
.pr-rich-select__item {
|
|
1257
|
+
display: flex;
|
|
1258
|
+
align-items: center;
|
|
1259
|
+
gap: 10px;
|
|
1260
|
+
min-height: 40px;
|
|
1261
|
+
padding: 8px;
|
|
1262
|
+
border-radius: var(--pr-radius-sm, 0.625rem);
|
|
1263
|
+
color: var(--pr-fg);
|
|
1264
|
+
font-size: 14px;
|
|
1265
|
+
cursor: pointer;
|
|
1266
|
+
user-select: none;
|
|
1267
|
+
}
|
|
1268
|
+
.pr-rich-select__item[hidden] { display: none; }
|
|
1269
|
+
.pr-rich-select__item[data-highlighted],
|
|
1270
|
+
.pr-rich-select__item:hover:not([data-disabled]) { background: var(--pr-surface); }
|
|
1271
|
+
.pr-rich-select__item[data-state='checked'] { font-weight: 650; }
|
|
1272
|
+
.pr-rich-select__item[data-disabled] { cursor: not-allowed; opacity: 0.5; }
|
|
1273
|
+
.pr-rich-select__item-content {
|
|
1274
|
+
display: flex;
|
|
1275
|
+
flex: 1;
|
|
1276
|
+
min-width: 0;
|
|
1277
|
+
align-items: center;
|
|
1278
|
+
gap: 8px;
|
|
1279
|
+
}
|
|
1280
|
+
.pr-rich-select__indicator {
|
|
1281
|
+
display: inline-flex;
|
|
1282
|
+
flex: 0 0 20px;
|
|
1283
|
+
align-items: center;
|
|
1284
|
+
justify-content: center;
|
|
1285
|
+
color: var(--pr-accent-strong);
|
|
1286
|
+
}
|
|
1287
|
+
.pr-rich-select__empty {
|
|
1288
|
+
margin: 0;
|
|
1289
|
+
padding: 12px;
|
|
1290
|
+
color: var(--pr-fg-muted);
|
|
1291
|
+
font-size: 14px;
|
|
1292
|
+
text-wrap: pretty;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/* ───────────────────── Calendar / DatePicker ───────────────────── */
|
|
1296
|
+
|
|
1297
|
+
.pr-calendar {
|
|
1298
|
+
width: min(100%, 348px);
|
|
1299
|
+
padding: 12px;
|
|
1300
|
+
border: 1px solid var(--pr-border);
|
|
1301
|
+
border-radius: var(--pr-radius-lg, 1rem);
|
|
1302
|
+
background: var(--pr-surface);
|
|
1303
|
+
color: var(--pr-fg);
|
|
1304
|
+
box-shadow: var(--pr-shadow-sm);
|
|
1305
|
+
font-family: var(--pr-font-body, inherit);
|
|
1306
|
+
}
|
|
1307
|
+
.pr-calendar[aria-disabled='true'] { opacity: 0.62; }
|
|
1308
|
+
|
|
1309
|
+
.pr-calendar__header {
|
|
1310
|
+
display: grid;
|
|
1311
|
+
grid-template-columns: 40px 40px minmax(0, 1fr) 40px 40px;
|
|
1312
|
+
align-items: center;
|
|
1313
|
+
gap: 2px;
|
|
1314
|
+
margin-bottom: 8px;
|
|
1315
|
+
}
|
|
1316
|
+
.pr-calendar__month {
|
|
1317
|
+
min-width: 0;
|
|
1318
|
+
margin: 0;
|
|
1319
|
+
color: var(--pr-fg);
|
|
1320
|
+
font-family: var(--pr-font-body, inherit);
|
|
1321
|
+
font-size: 14px;
|
|
1322
|
+
font-weight: 700;
|
|
1323
|
+
text-align: center;
|
|
1324
|
+
}
|
|
1325
|
+
.pr-calendar__nav,
|
|
1326
|
+
.pr-calendar__action {
|
|
1327
|
+
display: inline-flex;
|
|
1328
|
+
min-width: 40px;
|
|
1329
|
+
min-height: 40px;
|
|
1330
|
+
align-items: center;
|
|
1331
|
+
justify-content: center;
|
|
1332
|
+
border: 0;
|
|
1333
|
+
border-radius: var(--pr-radius-sm, 0.625rem);
|
|
1334
|
+
background: transparent;
|
|
1335
|
+
color: var(--pr-fg-muted);
|
|
1336
|
+
font: inherit;
|
|
1337
|
+
cursor: pointer;
|
|
1338
|
+
transition-property: background-color, color, box-shadow;
|
|
1339
|
+
transition-duration: 150ms;
|
|
1340
|
+
transition-timing-function: var(--pr-ease, ease);
|
|
1341
|
+
}
|
|
1342
|
+
.pr-calendar__nav:hover:not(:disabled),
|
|
1343
|
+
.pr-calendar__action:hover:not(:disabled) {
|
|
1344
|
+
background: var(--pr-elevated);
|
|
1345
|
+
color: var(--pr-fg);
|
|
1346
|
+
}
|
|
1347
|
+
.pr-calendar__nav:focus-visible,
|
|
1348
|
+
.pr-calendar__action:focus-visible,
|
|
1349
|
+
.pr-calendar__day:focus-visible {
|
|
1350
|
+
position: relative;
|
|
1351
|
+
z-index: 2;
|
|
1352
|
+
outline: none;
|
|
1353
|
+
box-shadow: var(--pr-focus-ring);
|
|
1354
|
+
}
|
|
1355
|
+
.pr-calendar__nav:disabled,
|
|
1356
|
+
.pr-calendar__action:disabled { cursor: not-allowed; opacity: 0.42; }
|
|
1357
|
+
|
|
1358
|
+
.pr-calendar__grid { outline: none; }
|
|
1359
|
+
.pr-calendar__weekdays,
|
|
1360
|
+
.pr-calendar__week {
|
|
1361
|
+
display: grid;
|
|
1362
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
1363
|
+
gap: 2px;
|
|
1364
|
+
}
|
|
1365
|
+
.pr-calendar__weekdays { margin-bottom: 2px; }
|
|
1366
|
+
.pr-calendar__weekday {
|
|
1367
|
+
display: flex;
|
|
1368
|
+
min-height: 32px;
|
|
1369
|
+
align-items: center;
|
|
1370
|
+
justify-content: center;
|
|
1371
|
+
color: var(--pr-fg-faint);
|
|
1372
|
+
font-size: 11px;
|
|
1373
|
+
font-weight: 650;
|
|
1374
|
+
letter-spacing: 0.04em;
|
|
1375
|
+
text-transform: uppercase;
|
|
1376
|
+
user-select: none;
|
|
1377
|
+
}
|
|
1378
|
+
.pr-calendar__days { display: grid; gap: 2px; }
|
|
1379
|
+
.pr-calendar__day,
|
|
1380
|
+
.pr-calendar__day-placeholder {
|
|
1381
|
+
display: inline-flex;
|
|
1382
|
+
min-width: 0;
|
|
1383
|
+
min-height: 40px;
|
|
1384
|
+
align-items: center;
|
|
1385
|
+
justify-content: center;
|
|
1386
|
+
border: 0;
|
|
1387
|
+
border-radius: var(--pr-radius-sm, 0.625rem);
|
|
1388
|
+
}
|
|
1389
|
+
.pr-calendar__day {
|
|
1390
|
+
background: transparent;
|
|
1391
|
+
color: var(--pr-fg);
|
|
1392
|
+
font: inherit;
|
|
1393
|
+
font-size: 13px;
|
|
1394
|
+
cursor: pointer;
|
|
1395
|
+
transition-property: background-color, color, box-shadow;
|
|
1396
|
+
transition-duration: 140ms;
|
|
1397
|
+
transition-timing-function: var(--pr-ease, ease);
|
|
1398
|
+
}
|
|
1399
|
+
.pr-calendar__day:hover:not(:disabled):not([data-selected]) { background: var(--pr-elevated); }
|
|
1400
|
+
.pr-calendar__day[data-outside] { color: var(--pr-fg-faint); opacity: 0.62; }
|
|
1401
|
+
.pr-calendar__day[data-today] { box-shadow: inset 0 0 0 2px var(--pr-accent-strong); }
|
|
1402
|
+
.pr-calendar__day[data-selected] {
|
|
1403
|
+
background: color-mix(in srgb, var(--pr-accent) 24%, transparent);
|
|
1404
|
+
color: var(--pr-fg);
|
|
1405
|
+
}
|
|
1406
|
+
.pr-calendar[data-mode='single'] .pr-calendar__day[data-selected],
|
|
1407
|
+
.pr-calendar__day[data-range-start],
|
|
1408
|
+
.pr-calendar__day[data-range-end] {
|
|
1409
|
+
background: var(--pr-accent);
|
|
1410
|
+
color: var(--pr-accent-ink);
|
|
1411
|
+
font-weight: 700;
|
|
1412
|
+
}
|
|
1413
|
+
.pr-calendar__day[data-range-middle] { border-radius: var(--pr-radius-xs, 0.375rem); }
|
|
1414
|
+
.pr-calendar__day:disabled { cursor: not-allowed; opacity: 0.35; }
|
|
1415
|
+
.pr-calendar__actions {
|
|
1416
|
+
display: flex;
|
|
1417
|
+
justify-content: flex-end;
|
|
1418
|
+
gap: 4px;
|
|
1419
|
+
margin-top: 8px;
|
|
1420
|
+
padding-top: 8px;
|
|
1421
|
+
border-top: 1px solid var(--pr-border);
|
|
1422
|
+
}
|
|
1423
|
+
.pr-calendar__action {
|
|
1424
|
+
padding: 0 10px;
|
|
1425
|
+
color: var(--pr-fg-muted);
|
|
1426
|
+
font-size: 13px;
|
|
1427
|
+
font-weight: 650;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
.pr-date-picker { display: inline-flex; min-width: 0; }
|
|
1431
|
+
.pr-date-picker--block { display: flex; width: 100%; }
|
|
1432
|
+
.pr-date-picker__trigger {
|
|
1433
|
+
display: inline-flex;
|
|
1434
|
+
min-width: 190px;
|
|
1435
|
+
align-items: center;
|
|
1436
|
+
gap: 8px;
|
|
1437
|
+
padding: 0 12px;
|
|
1438
|
+
border: 1px solid var(--pr-border);
|
|
1439
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
1440
|
+
background: var(--pr-surface);
|
|
1441
|
+
color: var(--pr-fg);
|
|
1442
|
+
font: inherit;
|
|
1443
|
+
font-family: var(--pr-font-body, inherit);
|
|
1444
|
+
font-size: 14px;
|
|
1445
|
+
text-align: left;
|
|
1446
|
+
cursor: pointer;
|
|
1447
|
+
transition-property: border-color, box-shadow;
|
|
1448
|
+
transition-duration: 160ms;
|
|
1449
|
+
transition-timing-function: var(--pr-ease, ease);
|
|
1450
|
+
}
|
|
1451
|
+
.pr-date-picker--block .pr-date-picker__trigger { width: 100%; }
|
|
1452
|
+
.pr-date-picker__trigger--sm,
|
|
1453
|
+
.pr-date-picker__trigger--md { min-height: 40px; }
|
|
1454
|
+
.pr-date-picker__trigger--lg { min-height: 46px; }
|
|
1455
|
+
.pr-date-picker__trigger:hover:not(:disabled) { border-color: var(--pr-border-strong); }
|
|
1456
|
+
.pr-date-picker__trigger:focus-visible,
|
|
1457
|
+
.pr-date-picker__trigger--open {
|
|
1458
|
+
outline: none;
|
|
1459
|
+
border-color: var(--pr-accent-strong);
|
|
1460
|
+
box-shadow: var(--pr-focus-ring);
|
|
1461
|
+
}
|
|
1462
|
+
.pr-date-picker__trigger[aria-invalid='true'] { border-color: var(--pr-danger); }
|
|
1463
|
+
.pr-date-picker__trigger:disabled { cursor: not-allowed; opacity: 0.6; }
|
|
1464
|
+
.pr-date-picker__trigger[data-placeholder] .pr-date-picker__value { color: var(--pr-fg-faint); }
|
|
1465
|
+
.pr-date-picker__icon,
|
|
1466
|
+
.pr-date-picker__chevron { flex: 0 0 auto; color: var(--pr-fg-faint); }
|
|
1467
|
+
.pr-date-picker__value {
|
|
1468
|
+
flex: 1;
|
|
1469
|
+
min-width: 0;
|
|
1470
|
+
overflow: hidden;
|
|
1471
|
+
text-overflow: ellipsis;
|
|
1472
|
+
white-space: nowrap;
|
|
1473
|
+
}
|
|
1474
|
+
.pr-date-picker__range-separator { margin: 0 5px; color: var(--pr-fg-faint); }
|
|
1475
|
+
.pr-date-picker__chevron { transition: transform 160ms var(--pr-ease, ease); }
|
|
1476
|
+
.pr-date-picker__trigger--open .pr-date-picker__chevron { transform: rotate(180deg); }
|
|
1477
|
+
|
|
1478
|
+
.pr-date-picker__content {
|
|
1479
|
+
z-index: 60;
|
|
1480
|
+
width: min(348px, calc(100vw - 16px));
|
|
1481
|
+
overflow: auto;
|
|
1482
|
+
overscroll-behavior: contain;
|
|
1483
|
+
border-radius: var(--pr-radius-lg, 1rem);
|
|
1484
|
+
background: var(--pr-elevated);
|
|
1485
|
+
color: var(--pr-fg);
|
|
1486
|
+
box-shadow: var(--pr-shadow-elevated), inset 0 0 0 1px var(--pr-border);
|
|
1487
|
+
font-family: var(--pr-font-body, inherit);
|
|
1488
|
+
}
|
|
1489
|
+
.pr-date-picker__content .pr-calendar {
|
|
1490
|
+
width: 100%;
|
|
1491
|
+
border: 0;
|
|
1492
|
+
background: transparent;
|
|
1493
|
+
box-shadow: none;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
.pr-field__affix {
|
|
1497
|
+
display: inline-flex;
|
|
1498
|
+
align-items: center;
|
|
1499
|
+
color: var(--pr-fg-faint);
|
|
1500
|
+
flex-shrink: 0;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
.pr-field__message { margin: 0; font-size: 12px; color: var(--pr-fg-muted); }
|
|
1504
|
+
.pr-field__message--error { color: var(--pr-danger); }
|
|
1505
|
+
|
|
1506
|
+
/* ─────────────────────── Textarea ─────────────────────── */
|
|
1507
|
+
|
|
1508
|
+
.pr-textarea {
|
|
1509
|
+
display: block;
|
|
1510
|
+
min-width: 0;
|
|
1511
|
+
padding: 10px 12px;
|
|
1512
|
+
background: var(--pr-surface);
|
|
1513
|
+
border: 1px solid var(--pr-border);
|
|
1514
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
1515
|
+
color: var(--pr-fg);
|
|
1516
|
+
font-family: var(--pr-font-body, inherit);
|
|
1517
|
+
font-size: 14px;
|
|
1518
|
+
line-height: 1.5;
|
|
1519
|
+
outline: none;
|
|
1520
|
+
resize: vertical;
|
|
1521
|
+
transition:
|
|
1522
|
+
border-color 160ms var(--pr-ease, ease),
|
|
1523
|
+
box-shadow 160ms var(--pr-ease, ease);
|
|
1524
|
+
}
|
|
1525
|
+
.pr-textarea--sm { min-height: 80px; }
|
|
1526
|
+
.pr-textarea--md { min-height: 104px; }
|
|
1527
|
+
.pr-textarea--lg { min-height: 132px; }
|
|
1528
|
+
.pr-textarea--block { width: 100%; }
|
|
1529
|
+
.pr-textarea::placeholder { color: var(--pr-fg-faint); }
|
|
1530
|
+
.pr-textarea:focus-visible {
|
|
1531
|
+
border-color: var(--pr-accent-strong);
|
|
1532
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
1533
|
+
box-shadow: var(--pr-focus-ring);
|
|
1534
|
+
outline: none;
|
|
1535
|
+
}
|
|
1536
|
+
.pr-textarea:disabled { cursor: not-allowed; opacity: 0.6; }
|
|
1537
|
+
.pr-textarea[aria-invalid='true'] { border-color: var(--pr-danger); }
|
|
1538
|
+
|
|
1539
|
+
/* ─────────────────── Selection controls ─────────────────── */
|
|
1540
|
+
|
|
1541
|
+
/* The native input remains the source of form, keyboard, checked and disabled
|
|
1542
|
+
behaviour. The label supplies a dependable 40px target around the smaller
|
|
1543
|
+
visual control, so apps never have to rebuild the interaction layer. */
|
|
1544
|
+
.pr-choice {
|
|
1545
|
+
position: relative;
|
|
1546
|
+
display: flex;
|
|
1547
|
+
align-items: flex-start;
|
|
1548
|
+
gap: 10px;
|
|
1549
|
+
min-height: 40px;
|
|
1550
|
+
padding: 8px 0;
|
|
1551
|
+
color: var(--pr-fg);
|
|
1552
|
+
font-family: var(--pr-font-body, inherit);
|
|
1553
|
+
cursor: pointer;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
.pr-choice__input {
|
|
1557
|
+
position: absolute;
|
|
1558
|
+
width: 1px;
|
|
1559
|
+
height: 1px;
|
|
1560
|
+
margin: -1px;
|
|
1561
|
+
padding: 0;
|
|
1562
|
+
overflow: hidden;
|
|
1563
|
+
clip: rect(0 0 0 0);
|
|
1564
|
+
clip-path: inset(50%);
|
|
1565
|
+
white-space: nowrap;
|
|
1566
|
+
border: 0;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
.pr-choice__visual {
|
|
1570
|
+
position: relative;
|
|
1571
|
+
display: inline-flex;
|
|
1572
|
+
align-items: center;
|
|
1573
|
+
justify-content: center;
|
|
1574
|
+
flex: 0 0 auto;
|
|
1575
|
+
width: 20px;
|
|
1576
|
+
height: 20px;
|
|
1577
|
+
border: 1px solid var(--pr-border-strong);
|
|
1578
|
+
background: var(--pr-surface);
|
|
1579
|
+
transition:
|
|
1580
|
+
background-color 160ms var(--pr-ease, ease),
|
|
1581
|
+
border-color 160ms var(--pr-ease, ease),
|
|
1582
|
+
box-shadow 160ms var(--pr-ease, ease);
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
.pr-choice--checkbox .pr-choice__visual { border-radius: 5px; }
|
|
1586
|
+
.pr-choice--radio .pr-choice__visual { border-radius: 999px; }
|
|
1587
|
+
|
|
1588
|
+
.pr-choice__mark {
|
|
1589
|
+
display: block;
|
|
1590
|
+
opacity: 0;
|
|
1591
|
+
transition:
|
|
1592
|
+
opacity 120ms var(--pr-ease, ease),
|
|
1593
|
+
transform 120ms var(--pr-ease, ease);
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
.pr-choice--checkbox .pr-choice__mark {
|
|
1597
|
+
width: 6px;
|
|
1598
|
+
height: 11px;
|
|
1599
|
+
margin-top: -2px;
|
|
1600
|
+
border: solid var(--pr-accent-ink);
|
|
1601
|
+
border-width: 0 2px 2px 0;
|
|
1602
|
+
transform: rotate(45deg) scale(0.7);
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
.pr-choice--radio .pr-choice__mark {
|
|
1606
|
+
width: 8px;
|
|
1607
|
+
height: 8px;
|
|
1608
|
+
border-radius: 999px;
|
|
1609
|
+
background: var(--pr-accent-ink);
|
|
1610
|
+
transform: scale(0.7);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
.pr-choice--checkbox .pr-choice__input:checked + .pr-choice__visual,
|
|
1614
|
+
.pr-choice--checkbox .pr-choice__input[aria-checked='mixed'] + .pr-choice__visual,
|
|
1615
|
+
.pr-choice--radio .pr-choice__input:checked + .pr-choice__visual {
|
|
1616
|
+
border-color: var(--pr-accent-strong);
|
|
1617
|
+
background: var(--pr-accent);
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
.pr-choice--checkbox .pr-choice__input:checked + .pr-choice__visual .pr-choice__mark,
|
|
1621
|
+
.pr-choice--radio .pr-choice__input:checked + .pr-choice__visual .pr-choice__mark {
|
|
1622
|
+
opacity: 1;
|
|
1623
|
+
transform: rotate(45deg) scale(1);
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
.pr-choice--radio .pr-choice__input:checked + .pr-choice__visual .pr-choice__mark {
|
|
1627
|
+
transform: scale(1);
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
.pr-choice--checkbox .pr-choice__input[aria-checked='mixed'] + .pr-choice__visual .pr-choice__mark {
|
|
1631
|
+
width: 10px;
|
|
1632
|
+
height: 2px;
|
|
1633
|
+
margin: 0;
|
|
1634
|
+
border: 0;
|
|
1635
|
+
border-radius: 999px;
|
|
1636
|
+
background: var(--pr-accent-ink);
|
|
1637
|
+
opacity: 1;
|
|
1638
|
+
transform: none;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
.pr-choice--switch .pr-choice__visual {
|
|
1642
|
+
width: 38px;
|
|
1643
|
+
height: 22px;
|
|
1644
|
+
border-radius: 999px;
|
|
1645
|
+
background: var(--pr-border);
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
.pr-choice--switch .pr-choice__mark {
|
|
1649
|
+
position: absolute;
|
|
1650
|
+
top: 2px;
|
|
1651
|
+
left: 2px;
|
|
1652
|
+
width: 16px;
|
|
1653
|
+
height: 16px;
|
|
1654
|
+
border-radius: 999px;
|
|
1655
|
+
background: var(--pr-surface);
|
|
1656
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 0.22);
|
|
1657
|
+
opacity: 1;
|
|
1658
|
+
transform: translateX(0);
|
|
1659
|
+
transition:
|
|
1660
|
+
background-color 160ms var(--pr-ease, ease),
|
|
1661
|
+
transform 160ms var(--pr-ease, ease);
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
.pr-choice--switch .pr-choice__input:checked + .pr-choice__visual {
|
|
1665
|
+
border-color: var(--pr-accent-strong);
|
|
1666
|
+
background: var(--pr-accent);
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
.pr-choice--switch .pr-choice__input:checked + .pr-choice__visual .pr-choice__mark {
|
|
1670
|
+
background: var(--pr-accent-ink);
|
|
1671
|
+
transform: translateX(16px);
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
.pr-choice__input:focus-visible {
|
|
1675
|
+
border-radius: 0;
|
|
1676
|
+
box-shadow: none;
|
|
1677
|
+
outline: none;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
.pr-choice__input:focus-visible + .pr-choice__visual {
|
|
1681
|
+
outline: none;
|
|
1682
|
+
border-color: var(--pr-accent-strong);
|
|
1683
|
+
box-shadow: var(--pr-focus-ring);
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
.pr-choice--invalid .pr-choice__visual { border-color: var(--pr-danger); }
|
|
1687
|
+
.pr-choice--disabled { opacity: 0.6; cursor: not-allowed; }
|
|
1688
|
+
|
|
1689
|
+
.pr-choice__copy {
|
|
1690
|
+
display: flex;
|
|
1691
|
+
flex-direction: column;
|
|
1692
|
+
gap: 2px;
|
|
1693
|
+
min-width: 0;
|
|
1694
|
+
padding-top: 1px;
|
|
1695
|
+
}
|
|
1696
|
+
.pr-choice__label { font-size: 14px; font-weight: 600; line-height: 1.3; }
|
|
1697
|
+
.pr-choice__required,
|
|
1698
|
+
.pr-choice-group__required { margin-left: 3px; color: var(--pr-danger); }
|
|
1699
|
+
.pr-choice__message,
|
|
1700
|
+
.pr-choice-group__message { margin: 0; color: var(--pr-fg-muted); font-size: 12px; line-height: 1.4; }
|
|
1701
|
+
.pr-choice__message--error,
|
|
1702
|
+
.pr-choice-group__message--error { color: var(--pr-danger); }
|
|
1703
|
+
|
|
1704
|
+
.pr-choice-group {
|
|
1705
|
+
min-width: 0;
|
|
1706
|
+
margin: 0;
|
|
1707
|
+
padding: 0;
|
|
1708
|
+
border: 0;
|
|
1709
|
+
color: var(--pr-fg);
|
|
1710
|
+
font-family: var(--pr-font-body, inherit);
|
|
1711
|
+
}
|
|
1712
|
+
.pr-choice-group__legend { margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
|
|
1713
|
+
.pr-choice-group__message { margin-top: 4px; }
|
|
1714
|
+
.pr-choice-group__options { display: flex; margin-top: 4px; }
|
|
1715
|
+
.pr-choice-group__options--vertical { flex-direction: column; }
|
|
1716
|
+
.pr-choice-group__options--horizontal { flex-flow: row wrap; column-gap: 24px; }
|
|
1717
|
+
.pr-choice-group--disabled { opacity: 0.6; }
|
|
1718
|
+
.pr-choice-group--disabled .pr-choice { opacity: 1; }
|
|
1719
|
+
|
|
1720
|
+
/* ─────────────────── Validation summary ─────────────────── */
|
|
1721
|
+
|
|
1722
|
+
.pr-validation-summary {
|
|
1723
|
+
padding: 16px;
|
|
1724
|
+
border: 1px solid var(--pr-danger);
|
|
1725
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
1726
|
+
background: var(--pr-tone-rose-bg);
|
|
1727
|
+
color: var(--pr-fg);
|
|
1728
|
+
font-family: var(--pr-font-body, inherit);
|
|
1729
|
+
}
|
|
1730
|
+
.pr-validation-summary:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
1731
|
+
.pr-validation-summary__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
|
|
1732
|
+
.pr-validation-summary__list { margin: 8px 0 0; padding: 0; list-style: none; }
|
|
1733
|
+
.pr-validation-summary__item { margin: 0; }
|
|
1734
|
+
.pr-validation-summary__link {
|
|
1735
|
+
display: flex;
|
|
1736
|
+
align-items: center;
|
|
1737
|
+
min-height: 40px;
|
|
1738
|
+
color: var(--pr-danger);
|
|
1739
|
+
font-size: 14px;
|
|
1740
|
+
line-height: 1.4;
|
|
1741
|
+
text-decoration: underline;
|
|
1742
|
+
text-underline-offset: 3px;
|
|
1743
|
+
}
|
|
1744
|
+
.pr-validation-summary__link:hover { color: var(--pr-fg); }
|
|
1745
|
+
.pr-validation-summary__link:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
1746
|
+
.pr-validation-summary__field { margin-right: 4px; font-weight: 700; }
|
|
1747
|
+
|
|
1748
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1749
|
+
.pr-choice__visual,
|
|
1750
|
+
.pr-choice__mark,
|
|
1751
|
+
.pr-choice--switch .pr-choice__mark { transition: none; }
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
/* ───────────────────────── Tabs ───────────────────────── */
|
|
1755
|
+
|
|
1756
|
+
.pr-tabs {
|
|
1757
|
+
display: flex;
|
|
1758
|
+
gap: 8px;
|
|
1759
|
+
min-width: 0;
|
|
1760
|
+
color: var(--pr-fg);
|
|
1761
|
+
font-family: var(--pr-font-body, inherit);
|
|
1762
|
+
}
|
|
1763
|
+
.pr-tabs--horizontal { flex-direction: column; }
|
|
1764
|
+
.pr-tabs--vertical { flex-direction: row; align-items: flex-start; }
|
|
1765
|
+
|
|
1766
|
+
.pr-tabs__list {
|
|
1767
|
+
display: inline-flex;
|
|
1768
|
+
align-items: center;
|
|
1769
|
+
width: fit-content;
|
|
1770
|
+
max-width: 100%;
|
|
1771
|
+
min-height: 48px;
|
|
1772
|
+
padding: 4px;
|
|
1773
|
+
overflow-x: auto;
|
|
1774
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
1775
|
+
color: var(--pr-fg-muted);
|
|
1776
|
+
}
|
|
1777
|
+
.pr-tabs__list--default {
|
|
1778
|
+
background: var(--pr-surface);
|
|
1779
|
+
box-shadow: inset 0 0 0 1px var(--pr-border);
|
|
1780
|
+
}
|
|
1781
|
+
.pr-tabs__list--line {
|
|
1782
|
+
gap: 4px;
|
|
1783
|
+
padding: 0;
|
|
1784
|
+
border-radius: 0;
|
|
1785
|
+
background: transparent;
|
|
1786
|
+
box-shadow: inset 0 -1px 0 var(--pr-border);
|
|
1787
|
+
}
|
|
1788
|
+
.pr-tabs--vertical .pr-tabs__list {
|
|
1789
|
+
flex: 0 0 auto;
|
|
1790
|
+
flex-direction: column;
|
|
1791
|
+
align-items: stretch;
|
|
1792
|
+
min-width: 160px;
|
|
1793
|
+
overflow: visible;
|
|
1794
|
+
}
|
|
1795
|
+
.pr-tabs--vertical .pr-tabs__list--line {
|
|
1796
|
+
box-shadow: inset -1px 0 0 var(--pr-border);
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
.pr-tabs__trigger {
|
|
1800
|
+
position: relative;
|
|
1801
|
+
display: inline-flex;
|
|
1802
|
+
align-items: center;
|
|
1803
|
+
justify-content: center;
|
|
1804
|
+
flex: 0 0 auto;
|
|
1805
|
+
gap: 6px;
|
|
1806
|
+
min-height: 40px;
|
|
1807
|
+
padding: 8px 14px;
|
|
1808
|
+
border: 0;
|
|
1809
|
+
border-radius: var(--pr-radius-sm, 0.5rem);
|
|
1810
|
+
background: transparent;
|
|
1811
|
+
color: var(--pr-fg-muted);
|
|
1812
|
+
font: inherit;
|
|
1813
|
+
font-size: 14px;
|
|
1814
|
+
font-weight: 600;
|
|
1815
|
+
line-height: 1.2;
|
|
1816
|
+
white-space: nowrap;
|
|
1817
|
+
cursor: pointer;
|
|
1818
|
+
transition:
|
|
1819
|
+
background-color 160ms var(--pr-ease, ease),
|
|
1820
|
+
box-shadow 160ms var(--pr-ease, ease),
|
|
1821
|
+
color 160ms var(--pr-ease, ease),
|
|
1822
|
+
transform 120ms var(--pr-ease, ease);
|
|
1823
|
+
}
|
|
1824
|
+
.pr-tabs--vertical .pr-tabs__trigger { width: 100%; justify-content: flex-start; }
|
|
1825
|
+
.pr-tabs__trigger:hover:not(:disabled) { color: var(--pr-fg); }
|
|
1826
|
+
.pr-tabs__list--default .pr-tabs__trigger:hover:not(:disabled) {
|
|
1827
|
+
background: var(--pr-elevated);
|
|
1828
|
+
}
|
|
1829
|
+
.pr-tabs__list--default .pr-tabs__trigger[data-state='active'] {
|
|
1830
|
+
background: var(--pr-elevated);
|
|
1831
|
+
color: var(--pr-fg);
|
|
1832
|
+
box-shadow: var(--pr-shadow-card);
|
|
1833
|
+
}
|
|
1834
|
+
.pr-tabs__list--line .pr-tabs__trigger[data-state='active'] { color: var(--pr-fg); }
|
|
1835
|
+
.pr-tabs__trigger:active:not(:disabled) { transform: scale(0.96); }
|
|
1836
|
+
.pr-tabs__trigger:focus-visible {
|
|
1837
|
+
z-index: 1;
|
|
1838
|
+
outline: none;
|
|
1839
|
+
box-shadow: var(--pr-focus-ring);
|
|
1840
|
+
}
|
|
1841
|
+
.pr-tabs__trigger:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
1842
|
+
|
|
1843
|
+
.pr-tabs__list--line .pr-tabs__trigger::after {
|
|
1844
|
+
position: absolute;
|
|
1845
|
+
right: 8px;
|
|
1846
|
+
bottom: 0;
|
|
1847
|
+
left: 8px;
|
|
1848
|
+
height: 2px;
|
|
1849
|
+
border-radius: 999px;
|
|
1850
|
+
background: var(--pr-accent-strong);
|
|
1851
|
+
content: '';
|
|
1852
|
+
opacity: 0;
|
|
1853
|
+
transform: scaleX(0.25);
|
|
1854
|
+
transition:
|
|
1855
|
+
opacity 160ms var(--pr-ease, ease),
|
|
1856
|
+
transform 160ms var(--pr-ease, ease);
|
|
1857
|
+
}
|
|
1858
|
+
.pr-tabs__list--line .pr-tabs__trigger[data-state='active']::after {
|
|
1859
|
+
opacity: 1;
|
|
1860
|
+
transform: scaleX(1);
|
|
1861
|
+
}
|
|
1862
|
+
.pr-tabs--vertical .pr-tabs__list--line .pr-tabs__trigger::after {
|
|
1863
|
+
top: 8px;
|
|
1864
|
+
right: 0;
|
|
1865
|
+
bottom: 8px;
|
|
1866
|
+
left: auto;
|
|
1867
|
+
width: 2px;
|
|
1868
|
+
height: auto;
|
|
1869
|
+
transform: scaleY(0.25);
|
|
1870
|
+
}
|
|
1871
|
+
.pr-tabs--vertical .pr-tabs__list--line .pr-tabs__trigger[data-state='active']::after {
|
|
1872
|
+
transform: scaleY(1);
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
.pr-tabs__content {
|
|
1876
|
+
flex: 1;
|
|
1877
|
+
min-width: 0;
|
|
1878
|
+
padding: 8px 0;
|
|
1879
|
+
color: var(--pr-fg);
|
|
1880
|
+
font-size: 14px;
|
|
1881
|
+
outline: none;
|
|
1882
|
+
}
|
|
1883
|
+
.pr-tabs__content:focus-visible {
|
|
1884
|
+
border-radius: var(--pr-radius-sm, 0.5rem);
|
|
1885
|
+
box-shadow: var(--pr-focus-ring);
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1889
|
+
.pr-tabs__trigger,
|
|
1890
|
+
.pr-tabs__trigger::after { transition: none; }
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
@media (max-width: 639px) {
|
|
1894
|
+
.pr-tabs--vertical { flex-direction: column; }
|
|
1895
|
+
.pr-tabs--vertical .pr-tabs__list {
|
|
1896
|
+
flex-direction: row;
|
|
1897
|
+
width: 100%;
|
|
1898
|
+
min-width: 0;
|
|
1899
|
+
overflow-x: auto;
|
|
1900
|
+
}
|
|
1901
|
+
.pr-tabs--vertical .pr-tabs__list--line {
|
|
1902
|
+
box-shadow: inset 0 -1px 0 var(--pr-border);
|
|
1903
|
+
}
|
|
1904
|
+
.pr-tabs--vertical .pr-tabs__trigger { width: auto; justify-content: center; }
|
|
1905
|
+
.pr-tabs--vertical .pr-tabs__list--line .pr-tabs__trigger::after {
|
|
1906
|
+
top: auto;
|
|
1907
|
+
right: 8px;
|
|
1908
|
+
bottom: 0;
|
|
1909
|
+
left: 8px;
|
|
1910
|
+
width: auto;
|
|
1911
|
+
height: 2px;
|
|
1912
|
+
transform: scaleX(0.25);
|
|
1913
|
+
}
|
|
1914
|
+
.pr-tabs--vertical .pr-tabs__list--line .pr-tabs__trigger[data-state='active']::after {
|
|
1915
|
+
transform: scaleX(1);
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
/* ─────────────────── Navigation tabs ─────────────────── */
|
|
1920
|
+
|
|
1921
|
+
.pr-navigation-tabs {
|
|
1922
|
+
min-width: 0;
|
|
1923
|
+
color: var(--pr-fg);
|
|
1924
|
+
font-family: var(--pr-font-body, inherit);
|
|
1925
|
+
}
|
|
1926
|
+
.pr-navigation-tabs__list {
|
|
1927
|
+
display: flex;
|
|
1928
|
+
align-items: center;
|
|
1929
|
+
gap: 4px;
|
|
1930
|
+
width: 100%;
|
|
1931
|
+
min-height: 41px;
|
|
1932
|
+
margin: 0;
|
|
1933
|
+
padding: 4px;
|
|
1934
|
+
overflow-x: auto;
|
|
1935
|
+
border-bottom: 1px solid var(--pr-border);
|
|
1936
|
+
list-style: none;
|
|
1937
|
+
scroll-padding-inline: 8px;
|
|
1938
|
+
}
|
|
1939
|
+
.pr-navigation-tabs__list::after {
|
|
1940
|
+
flex: 0 0 1px;
|
|
1941
|
+
content: '';
|
|
1942
|
+
}
|
|
1943
|
+
.pr-navigation-tabs__item { flex: 0 0 auto; }
|
|
1944
|
+
.pr-navigation-tabs__link {
|
|
1945
|
+
position: relative;
|
|
1946
|
+
display: inline-flex;
|
|
1947
|
+
align-items: center;
|
|
1948
|
+
justify-content: center;
|
|
1949
|
+
gap: 6px;
|
|
1950
|
+
min-height: 40px;
|
|
1951
|
+
padding: 8px 12px;
|
|
1952
|
+
border-radius: var(--pr-radius-sm, 0.5rem) var(--pr-radius-sm, 0.5rem) 0 0;
|
|
1953
|
+
color: var(--pr-fg-muted);
|
|
1954
|
+
font: inherit;
|
|
1955
|
+
font-size: 14px;
|
|
1956
|
+
font-weight: 600;
|
|
1957
|
+
line-height: 1.2;
|
|
1958
|
+
text-decoration: none;
|
|
1959
|
+
white-space: nowrap;
|
|
1960
|
+
scroll-margin-inline: 4px;
|
|
1961
|
+
-webkit-tap-highlight-color: transparent;
|
|
1962
|
+
transition:
|
|
1963
|
+
background-color 160ms var(--pr-ease, ease),
|
|
1964
|
+
color 160ms var(--pr-ease, ease),
|
|
1965
|
+
transform 120ms var(--pr-ease, ease);
|
|
1966
|
+
}
|
|
1967
|
+
.pr-navigation-tabs__link:hover {
|
|
1968
|
+
background: color-mix(in srgb, var(--pr-surface) 70%, var(--pr-tone-yellow-bg));
|
|
1969
|
+
color: var(--pr-fg);
|
|
1970
|
+
}
|
|
1971
|
+
.pr-navigation-tabs__link[data-state='active'] {
|
|
1972
|
+
background: color-mix(in srgb, var(--pr-surface) 70%, var(--pr-tone-yellow-bg));
|
|
1973
|
+
color: var(--pr-fg);
|
|
1974
|
+
}
|
|
1975
|
+
.pr-navigation-tabs__link::after {
|
|
1976
|
+
position: absolute;
|
|
1977
|
+
right: 8px;
|
|
1978
|
+
bottom: -5px;
|
|
1979
|
+
left: 8px;
|
|
1980
|
+
height: 3px;
|
|
1981
|
+
border-radius: 999px 999px 0 0;
|
|
1982
|
+
background: var(--pr-accent-strong);
|
|
1983
|
+
content: '';
|
|
1984
|
+
opacity: 0;
|
|
1985
|
+
transform: scaleX(0.25);
|
|
1986
|
+
transition:
|
|
1987
|
+
opacity 160ms var(--pr-ease, ease),
|
|
1988
|
+
transform 160ms var(--pr-ease, ease);
|
|
1989
|
+
}
|
|
1990
|
+
.pr-navigation-tabs__link[data-state='active']::after {
|
|
1991
|
+
opacity: 1;
|
|
1992
|
+
transform: scaleX(1);
|
|
1993
|
+
}
|
|
1994
|
+
.pr-navigation-tabs__link:active { transform: scale(0.96); }
|
|
1995
|
+
.pr-navigation-tabs__link:focus-visible {
|
|
1996
|
+
z-index: 1;
|
|
1997
|
+
outline: none;
|
|
1998
|
+
box-shadow: var(--pr-focus-ring);
|
|
1999
|
+
}
|
|
2000
|
+
.pr-navigation-tabs__label { min-width: 0; }
|
|
2001
|
+
.pr-navigation-tabs__badge {
|
|
2002
|
+
display: inline-flex;
|
|
2003
|
+
align-items: center;
|
|
2004
|
+
justify-content: center;
|
|
2005
|
+
min-width: 22px;
|
|
2006
|
+
height: 22px;
|
|
2007
|
+
padding: 0 6px;
|
|
2008
|
+
border: 1px solid var(--pr-tone-yellow-border);
|
|
2009
|
+
border-radius: 999px;
|
|
2010
|
+
background: var(--pr-tone-yellow-bg);
|
|
2011
|
+
color: var(--pr-tone-yellow-fg);
|
|
2012
|
+
font-size: 12px;
|
|
2013
|
+
font-weight: 700;
|
|
2014
|
+
line-height: 1;
|
|
2015
|
+
font-variant-numeric: tabular-nums;
|
|
2016
|
+
}
|
|
2017
|
+
.pr-navigation-tabs__badge[data-loading] {
|
|
2018
|
+
width: 28px;
|
|
2019
|
+
color: transparent;
|
|
2020
|
+
animation: pr-skeleton-pulse 1600ms var(--pr-ease, ease) infinite;
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2024
|
+
.pr-navigation-tabs__link,
|
|
2025
|
+
.pr-navigation-tabs__link::after,
|
|
2026
|
+
.pr-navigation-tabs__badge[data-loading] { transition: none; animation: none; }
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
/* ───────────────────────── Card ───────────────────────── */
|
|
2030
|
+
|
|
2031
|
+
.pr-card {
|
|
2032
|
+
position: relative;
|
|
2033
|
+
background: var(--pr-surface);
|
|
2034
|
+
color: var(--pr-fg);
|
|
2035
|
+
border: 1px solid var(--pr-border);
|
|
2036
|
+
/* The Crystal card step (18px), distinct from radius-md so fields and cards
|
|
2037
|
+
can be tuned apart. */
|
|
2038
|
+
border-radius: var(--pr-radius-card, 0.75rem);
|
|
2039
|
+
font-family: var(--pr-font-body, inherit);
|
|
2040
|
+
}
|
|
2041
|
+
.pr-card--raised { background: var(--pr-elevated); box-shadow: var(--pr-shadow-elevated); }
|
|
2042
|
+
/* Softer than `raised`: the card stays on `surface` and only lifts off the page.
|
|
2043
|
+
`raised` already carries a shadow, so the two do not stack. */
|
|
2044
|
+
.pr-card--shadow { box-shadow: var(--pr-shadow-card); }
|
|
2045
|
+
|
|
2046
|
+
/* The amount is published as a variable so a bleeding body can cancel exactly it,
|
|
2047
|
+
rather than hardcoding 16px and silently going wrong at `sm` and `lg`. */
|
|
2048
|
+
.pr-card--pad-sm { --pr-card-pad: 12px; padding: var(--pr-card-pad); }
|
|
2049
|
+
.pr-card--pad-md { --pr-card-pad: 16px; padding: var(--pr-card-pad); }
|
|
2050
|
+
.pr-card--pad-lg { --pr-card-pad: 24px; padding: var(--pr-card-pad); }
|
|
2051
|
+
|
|
2052
|
+
.pr-card--interactive { cursor: pointer; transition: border-color 160ms var(--pr-ease, ease); }
|
|
2053
|
+
.pr-card--interactive:hover { border-color: var(--pr-border-strong); }
|
|
2054
|
+
.pr-card--interactive:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
2055
|
+
|
|
2056
|
+
/* A gradient composes the semantic surface with its tone tint. Without a tone,
|
|
2057
|
+
`.pr-card--gradient` alone does nothing. */
|
|
2058
|
+
.pr-card--gradient.pr-card--yellow {
|
|
2059
|
+
background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-yellow-bg) 100%);
|
|
2060
|
+
background-color: var(--pr-surface);
|
|
2061
|
+
}
|
|
2062
|
+
.pr-card--gradient.pr-card--blue {
|
|
2063
|
+
background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-blue-bg) 100%);
|
|
2064
|
+
background-color: var(--pr-surface);
|
|
2065
|
+
}
|
|
2066
|
+
.pr-card--gradient.pr-card--amber {
|
|
2067
|
+
background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-amber-bg) 100%);
|
|
2068
|
+
background-color: var(--pr-surface);
|
|
2069
|
+
}
|
|
2070
|
+
.pr-card--gradient.pr-card--purple {
|
|
2071
|
+
background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-purple-bg) 100%);
|
|
2072
|
+
background-color: var(--pr-surface);
|
|
2073
|
+
}
|
|
2074
|
+
.pr-card--gradient.pr-card--green {
|
|
2075
|
+
background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-green-bg) 100%);
|
|
2076
|
+
background-color: var(--pr-surface);
|
|
2077
|
+
}
|
|
2078
|
+
.pr-card--gradient.pr-card--rose {
|
|
2079
|
+
background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-rose-bg) 100%);
|
|
2080
|
+
background-color: var(--pr-surface);
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
/* Tinted cards, over the same tone pairs Badge uses. The existing borderless
|
|
2084
|
+
treatment remains the default; `toneBorder` opts into the matched outline
|
|
2085
|
+
below without changing any current consumer. */
|
|
2086
|
+
.pr-card--yellow {
|
|
2087
|
+
background: var(--pr-tone-yellow-bg);
|
|
2088
|
+
border-color: transparent;
|
|
2089
|
+
}
|
|
2090
|
+
.pr-card--blue {
|
|
2091
|
+
background: var(--pr-tone-blue-bg);
|
|
2092
|
+
border-color: transparent;
|
|
2093
|
+
}
|
|
2094
|
+
.pr-card--amber {
|
|
2095
|
+
background: var(--pr-tone-amber-bg);
|
|
2096
|
+
border-color: transparent;
|
|
2097
|
+
}
|
|
2098
|
+
.pr-card--purple {
|
|
2099
|
+
background: var(--pr-tone-purple-bg);
|
|
2100
|
+
border-color: transparent;
|
|
2101
|
+
}
|
|
2102
|
+
.pr-card--green {
|
|
2103
|
+
background: var(--pr-tone-green-bg);
|
|
2104
|
+
border-color: transparent;
|
|
2105
|
+
}
|
|
2106
|
+
.pr-card--rose {
|
|
2107
|
+
background: var(--pr-tone-rose-bg);
|
|
2108
|
+
border-color: transparent;
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
/* Glass derives its translucency from the current surface instead of literal
|
|
2112
|
+
white, so it rotates with the theme. The solid declaration is the safe
|
|
2113
|
+
fallback for engines without color-mix; blur still remains package-owned. */
|
|
2114
|
+
.pr-card--glass {
|
|
2115
|
+
background: var(--pr-surface);
|
|
2116
|
+
background: var(--pr-glass-bg);
|
|
2117
|
+
border-color: var(--pr-glass-border);
|
|
2118
|
+
/* Cards blur at half the chrome amount: the full `--pr-glass-blur` (24px)
|
|
2119
|
+
belongs to floating chrome; an in-page card reads better at 12px. */
|
|
2120
|
+
-webkit-backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
|
|
2121
|
+
backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
/* A toned glass card mixes the semantic tint into the translucent surface. */
|
|
2125
|
+
.pr-card--glass.pr-card--yellow {
|
|
2126
|
+
background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-yellow-bg));
|
|
2127
|
+
}
|
|
2128
|
+
.pr-card--glass.pr-card--blue {
|
|
2129
|
+
background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-blue-bg));
|
|
2130
|
+
}
|
|
2131
|
+
.pr-card--glass.pr-card--amber {
|
|
2132
|
+
background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-amber-bg));
|
|
2133
|
+
}
|
|
2134
|
+
.pr-card--glass.pr-card--purple {
|
|
2135
|
+
background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-purple-bg));
|
|
2136
|
+
}
|
|
2137
|
+
.pr-card--glass.pr-card--green {
|
|
2138
|
+
background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-green-bg));
|
|
2139
|
+
}
|
|
2140
|
+
.pr-card--glass.pr-card--rose {
|
|
2141
|
+
background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-rose-bg));
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
.pr-card--tone-border.pr-card--yellow { border-color: var(--pr-tone-yellow-border); }
|
|
2145
|
+
.pr-card--tone-border.pr-card--blue { border-color: var(--pr-tone-blue-border); }
|
|
2146
|
+
.pr-card--tone-border.pr-card--amber { border-color: var(--pr-tone-amber-border); }
|
|
2147
|
+
.pr-card--tone-border.pr-card--purple { border-color: var(--pr-tone-purple-border); }
|
|
2148
|
+
.pr-card--tone-border.pr-card--green { border-color: var(--pr-tone-green-border); }
|
|
2149
|
+
.pr-card--tone-border.pr-card--rose { border-color: var(--pr-tone-rose-border); }
|
|
2150
|
+
|
|
2151
|
+
.pr-card__header { display: flex; align-items: flex-start; gap: 12px; }
|
|
2152
|
+
.pr-card__heading { flex: 1; min-width: 0; }
|
|
2153
|
+
/* The shared card hierarchy uses 16px titles and 14px descriptions. */
|
|
2154
|
+
.pr-card__title {
|
|
2155
|
+
margin: 0;
|
|
2156
|
+
/* Bebas Neue is the display face and starts at 24px in the identity guide.
|
|
2157
|
+
Compact UI subheadings stay on Barlow instead of shrinking the brand face. */
|
|
2158
|
+
font-family: var(--pr-font-body, inherit);
|
|
2159
|
+
font-size: 16px;
|
|
2160
|
+
font-weight: 700;
|
|
2161
|
+
line-height: 1.35;
|
|
2162
|
+
text-wrap: balance;
|
|
2163
|
+
}
|
|
2164
|
+
.pr-card__description { margin: 4px 0 0; font-size: 14px; color: var(--pr-fg-muted); text-wrap: pretty; }
|
|
2165
|
+
.pr-card__actions { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
|
|
2166
|
+
/* The body owns its separation from the header, not its own padding — the Card
|
|
2167
|
+
already pads. `:first-child` so a Card with only content is not pushed down. */
|
|
2168
|
+
.pr-card__content { margin-top: 12px; }
|
|
2169
|
+
.pr-card__content:first-child { margin-top: 0; }
|
|
2170
|
+
/* Runs the body to the card's edges while the header keeps its inset. For a body that
|
|
2171
|
+
is its own bounded surface — a table, a chart — where the card's padding reads as a
|
|
2172
|
+
gap around something that should meet the border.
|
|
2173
|
+
`--pr-card-pad` falls back to 0, so on a card with `padding="none"` this is a no-op
|
|
2174
|
+
instead of pulling the body outside the card. */
|
|
2175
|
+
.pr-card__content--bleed {
|
|
2176
|
+
margin-inline: calc(-1 * var(--pr-card-pad, 0px));
|
|
2177
|
+
margin-bottom: calc(-1 * var(--pr-card-pad, 0px));
|
|
2178
|
+
}
|
|
2179
|
+
/* The card clips its corners, so a bled table's own corners cannot poke past the
|
|
2180
|
+
border radius. */
|
|
2181
|
+
.pr-card:has(> .pr-card__content--bleed) { overflow: hidden; }
|
|
2182
|
+
|
|
2183
|
+
/* ─────────────────── Spinner / EmptyState ─────────────────── */
|
|
2184
|
+
|
|
2185
|
+
.pr-visually-hidden {
|
|
2186
|
+
position: absolute;
|
|
2187
|
+
width: 1px;
|
|
2188
|
+
height: 1px;
|
|
2189
|
+
margin: -1px;
|
|
2190
|
+
padding: 0;
|
|
2191
|
+
overflow: hidden;
|
|
2192
|
+
clip: rect(0 0 0 0);
|
|
2193
|
+
clip-path: inset(50%);
|
|
2194
|
+
white-space: nowrap;
|
|
2195
|
+
border: 0;
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
/* The base carries no `color`. `tone="inherit"` therefore emits nothing, leaving the
|
|
2199
|
+
spinner to take the containing colour — and, because this CSS is unlayered, leaving a
|
|
2200
|
+
Tailwind `text-*` utility free to win. Declaring `currentColor` here would look
|
|
2201
|
+
equivalent and would instead outrank that utility. */
|
|
2202
|
+
.pr-spinner { display: inline-flex; align-items: center; }
|
|
2203
|
+
.pr-spinner--muted { color: var(--pr-fg-muted); }
|
|
2204
|
+
.pr-spinner__icon { animation: pr-btn-spin 900ms linear infinite; }
|
|
2205
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2206
|
+
.pr-spinner__icon { animation-duration: 2400ms; }
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
.pr-empty {
|
|
2210
|
+
display: flex;
|
|
2211
|
+
flex-direction: column;
|
|
2212
|
+
align-items: center;
|
|
2213
|
+
gap: 8px;
|
|
2214
|
+
padding: 40px 24px;
|
|
2215
|
+
text-align: center;
|
|
2216
|
+
font-family: var(--pr-font-body, inherit);
|
|
2217
|
+
}
|
|
2218
|
+
.pr-empty__icon {
|
|
2219
|
+
display: inline-flex;
|
|
2220
|
+
align-items: center;
|
|
2221
|
+
justify-content: center;
|
|
2222
|
+
height: 44px;
|
|
2223
|
+
width: 44px;
|
|
2224
|
+
border-radius: 999px;
|
|
2225
|
+
background: var(--pr-bg);
|
|
2226
|
+
color: var(--pr-fg-faint);
|
|
2227
|
+
box-shadow: inset 0 0 0 1px var(--pr-border);
|
|
2228
|
+
}
|
|
2229
|
+
.pr-empty__title { margin: 4px 0 0; font-size: 14px; font-weight: 650; color: var(--pr-fg); }
|
|
2230
|
+
.pr-empty__description {
|
|
2231
|
+
margin: 0;
|
|
2232
|
+
max-width: 46ch;
|
|
2233
|
+
font-size: 14px;
|
|
2234
|
+
color: var(--pr-fg-muted);
|
|
2235
|
+
text-wrap: pretty;
|
|
2236
|
+
}
|
|
2237
|
+
.pr-empty__action { margin-top: 8px; }
|
|
2238
|
+
|
|
2239
|
+
|
|
2240
|
+
/* ─────────────────────── Combobox ─────────────────────── */
|
|
2241
|
+
|
|
2242
|
+
/* The trigger and the clear button are siblings, so the wrapper is what looks like
|
|
2243
|
+
a field and the clear sits on top of the trigger's right edge. */
|
|
2244
|
+
.pr-combobox { position: relative; display: inline-flex; font-family: var(--pr-font-body, inherit); }
|
|
2245
|
+
.pr-combobox--block { display: flex; width: 100%; }
|
|
2246
|
+
|
|
2247
|
+
.pr-combobox__trigger {
|
|
2248
|
+
flex: 1;
|
|
2249
|
+
min-width: 0;
|
|
2250
|
+
display: flex;
|
|
2251
|
+
align-items: center;
|
|
2252
|
+
gap: 8px;
|
|
2253
|
+
min-height: 40px;
|
|
2254
|
+
padding: 0 34px 0 12px;
|
|
2255
|
+
background: var(--pr-surface);
|
|
2256
|
+
border: 1px solid var(--pr-border);
|
|
2257
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
2258
|
+
color: var(--pr-fg);
|
|
2259
|
+
font: inherit;
|
|
2260
|
+
font-size: 14px;
|
|
2261
|
+
text-align: left;
|
|
2262
|
+
cursor: pointer;
|
|
2263
|
+
transition: border-color 160ms var(--pr-ease, ease);
|
|
2264
|
+
}
|
|
2265
|
+
.pr-combobox--has-clear .pr-combobox__trigger { padding-right: 72px; }
|
|
2266
|
+
.pr-combobox__trigger:hover:not(:disabled) { border-color: var(--pr-border-strong); }
|
|
2267
|
+
.pr-combobox__trigger--open,
|
|
2268
|
+
.pr-combobox__trigger:focus-visible {
|
|
2269
|
+
outline: none;
|
|
2270
|
+
border-color: var(--pr-accent-strong);
|
|
2271
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
2272
|
+
box-shadow: var(--pr-focus-ring);
|
|
2273
|
+
}
|
|
2274
|
+
.pr-combobox__trigger:disabled { opacity: 0.6; cursor: not-allowed; }
|
|
2275
|
+
|
|
2276
|
+
.pr-combobox__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2277
|
+
.pr-combobox__value--empty { color: var(--pr-fg-faint); }
|
|
2278
|
+
.pr-combobox__chevron { flex-shrink: 0; color: var(--pr-fg-faint); }
|
|
2279
|
+
|
|
2280
|
+
.pr-combobox__clear {
|
|
2281
|
+
position: absolute;
|
|
2282
|
+
right: 24px;
|
|
2283
|
+
top: 50%;
|
|
2284
|
+
transform: translateY(-50%);
|
|
2285
|
+
display: inline-flex;
|
|
2286
|
+
align-items: center;
|
|
2287
|
+
justify-content: center;
|
|
2288
|
+
width: 40px;
|
|
2289
|
+
height: 40px;
|
|
2290
|
+
padding: 0;
|
|
2291
|
+
border: none;
|
|
2292
|
+
background: transparent;
|
|
2293
|
+
border-radius: 999px;
|
|
2294
|
+
color: var(--pr-fg-faint);
|
|
2295
|
+
cursor: pointer;
|
|
2296
|
+
}
|
|
2297
|
+
.pr-combobox__clear:hover { color: var(--pr-danger); }
|
|
2298
|
+
.pr-combobox__clear:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
2299
|
+
|
|
2300
|
+
.pr-combobox__menu {
|
|
2301
|
+
z-index: 60;
|
|
2302
|
+
display: flex;
|
|
2303
|
+
flex-direction: column;
|
|
2304
|
+
overflow: hidden;
|
|
2305
|
+
background: var(--pr-elevated);
|
|
2306
|
+
border: 1px solid var(--pr-border);
|
|
2307
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
2308
|
+
box-shadow: var(--pr-shadow-elevated);
|
|
2309
|
+
}
|
|
2310
|
+
.pr-combobox__search {
|
|
2311
|
+
display: flex;
|
|
2312
|
+
align-items: center;
|
|
2313
|
+
gap: 8px;
|
|
2314
|
+
padding: 8px 12px;
|
|
2315
|
+
min-height: 40px;
|
|
2316
|
+
border-bottom: 1px solid var(--pr-border);
|
|
2317
|
+
color: var(--pr-fg-faint);
|
|
2318
|
+
}
|
|
2319
|
+
.pr-combobox__search:focus-within {
|
|
2320
|
+
box-shadow: inset 0 -2px 0 var(--pr-accent-strong);
|
|
2321
|
+
}
|
|
2322
|
+
.pr-combobox__search input {
|
|
2323
|
+
width: 100%;
|
|
2324
|
+
border: none;
|
|
2325
|
+
outline: none;
|
|
2326
|
+
background: transparent;
|
|
2327
|
+
color: var(--pr-fg);
|
|
2328
|
+
font: inherit;
|
|
2329
|
+
font-size: 14px;
|
|
2330
|
+
}
|
|
2331
|
+
.pr-combobox__search input:focus-visible {
|
|
2332
|
+
border-radius: 0;
|
|
2333
|
+
box-shadow: none;
|
|
2334
|
+
outline: none;
|
|
2335
|
+
}
|
|
2336
|
+
.pr-combobox__search input::placeholder { color: var(--pr-fg-faint); }
|
|
2337
|
+
|
|
2338
|
+
.pr-combobox__list { overflow-y: auto; padding: 4px 0; }
|
|
2339
|
+
.pr-combobox__note { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--pr-fg-muted); }
|
|
2340
|
+
|
|
2341
|
+
.pr-combobox__option {
|
|
2342
|
+
display: flex;
|
|
2343
|
+
align-items: center;
|
|
2344
|
+
width: 100%;
|
|
2345
|
+
min-height: 40px;
|
|
2346
|
+
padding: 8px 12px;
|
|
2347
|
+
border: none;
|
|
2348
|
+
background: transparent;
|
|
2349
|
+
color: var(--pr-fg);
|
|
2350
|
+
font: inherit;
|
|
2351
|
+
font-size: 13px;
|
|
2352
|
+
text-align: left;
|
|
2353
|
+
cursor: pointer;
|
|
2354
|
+
}
|
|
2355
|
+
/* Keyboard and pointer share one highlight, so arrowing down looks the same as
|
|
2356
|
+
hovering rather than producing two competing states. */
|
|
2357
|
+
.pr-combobox__option--active,
|
|
2358
|
+
.pr-combobox__option:hover { background: var(--pr-surface); }
|
|
2359
|
+
.pr-combobox__option:focus-visible {
|
|
2360
|
+
border-radius: 0;
|
|
2361
|
+
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
2362
|
+
outline: none;
|
|
2363
|
+
}
|
|
2364
|
+
.pr-combobox__option[aria-selected='true'] { font-weight: 650; }
|
|
2365
|
+
.pr-combobox__option-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2366
|
+
|
|
2367
|
+
|
|
2368
|
+
/* ─────────────────────── MultiSelect ─────────────────────── */
|
|
2369
|
+
|
|
2370
|
+
.pr-multiselect { position: relative; display: inline-flex; font-family: var(--pr-font-body, inherit); }
|
|
2371
|
+
.pr-multiselect--block { display: flex; width: 100%; }
|
|
2372
|
+
.pr-multiselect--filter { min-width: 110px; max-width: 220px; }
|
|
2373
|
+
.pr-multiselect--filter.pr-multiselect--block { max-width: none; }
|
|
2374
|
+
|
|
2375
|
+
.pr-multiselect__trigger {
|
|
2376
|
+
flex: 1;
|
|
2377
|
+
min-width: 0;
|
|
2378
|
+
display: flex;
|
|
2379
|
+
align-items: center;
|
|
2380
|
+
gap: 6px;
|
|
2381
|
+
min-height: 40px;
|
|
2382
|
+
padding: 4px 10px;
|
|
2383
|
+
background: var(--pr-surface);
|
|
2384
|
+
border: 1px solid var(--pr-border);
|
|
2385
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
2386
|
+
color: var(--pr-fg);
|
|
2387
|
+
font-size: 14px;
|
|
2388
|
+
cursor: pointer;
|
|
2389
|
+
transition: border-color 160ms var(--pr-ease, ease);
|
|
2390
|
+
}
|
|
2391
|
+
.pr-multiselect__trigger:hover:not([aria-disabled='true']) { border-color: var(--pr-border-strong); }
|
|
2392
|
+
.pr-multiselect--filter .pr-multiselect__trigger {
|
|
2393
|
+
padding: 0 10px;
|
|
2394
|
+
font-size: 12px;
|
|
2395
|
+
font-weight: 500;
|
|
2396
|
+
}
|
|
2397
|
+
.pr-multiselect--filter .pr-multiselect__trigger--active {
|
|
2398
|
+
background: var(--pr-tone-yellow-bg);
|
|
2399
|
+
border-color: var(--pr-tone-yellow-border);
|
|
2400
|
+
color: var(--pr-fg);
|
|
2401
|
+
font-weight: 650;
|
|
2402
|
+
}
|
|
2403
|
+
.pr-multiselect__trigger--open,
|
|
2404
|
+
.pr-multiselect__trigger:focus-visible {
|
|
2405
|
+
outline: none;
|
|
2406
|
+
border-color: var(--pr-accent-strong);
|
|
2407
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
2408
|
+
box-shadow: var(--pr-focus-ring);
|
|
2409
|
+
}
|
|
2410
|
+
.pr-multiselect__trigger--disabled { opacity: 0.6; cursor: not-allowed; }
|
|
2411
|
+
|
|
2412
|
+
/* One line, always: chips clip rather than wrapping and pushing the form around. */
|
|
2413
|
+
.pr-multiselect__chips {
|
|
2414
|
+
display: flex;
|
|
2415
|
+
align-items: center;
|
|
2416
|
+
gap: 4px;
|
|
2417
|
+
flex: 1;
|
|
2418
|
+
min-width: 0;
|
|
2419
|
+
overflow: hidden;
|
|
2420
|
+
}
|
|
2421
|
+
.pr-multiselect__placeholder { color: var(--pr-fg-faint); }
|
|
2422
|
+
.pr-multiselect__summary {
|
|
2423
|
+
flex: 1;
|
|
2424
|
+
min-width: 0;
|
|
2425
|
+
overflow: hidden;
|
|
2426
|
+
text-overflow: ellipsis;
|
|
2427
|
+
white-space: nowrap;
|
|
2428
|
+
font-variant-numeric: tabular-nums;
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
.pr-multiselect__chip {
|
|
2432
|
+
display: inline-flex;
|
|
2433
|
+
align-items: center;
|
|
2434
|
+
gap: 4px;
|
|
2435
|
+
min-width: 0;
|
|
2436
|
+
min-height: 40px;
|
|
2437
|
+
padding: 0 0 0 10px;
|
|
2438
|
+
background: var(--pr-elevated);
|
|
2439
|
+
border-radius: var(--pr-radius-sm, 0.5rem);
|
|
2440
|
+
font-size: 12px;
|
|
2441
|
+
font-weight: 500;
|
|
2442
|
+
}
|
|
2443
|
+
.pr-multiselect__chip--count { flex-shrink: 0; font-weight: 650; padding: 2px 8px; }
|
|
2444
|
+
.pr-multiselect__chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2445
|
+
.pr-multiselect__chip-remove {
|
|
2446
|
+
flex-shrink: 0;
|
|
2447
|
+
display: inline-flex;
|
|
2448
|
+
align-items: center;
|
|
2449
|
+
justify-content: center;
|
|
2450
|
+
width: 40px;
|
|
2451
|
+
height: 40px;
|
|
2452
|
+
padding: 0;
|
|
2453
|
+
border: none;
|
|
2454
|
+
background: transparent;
|
|
2455
|
+
color: var(--pr-fg-faint);
|
|
2456
|
+
cursor: pointer;
|
|
2457
|
+
}
|
|
2458
|
+
.pr-multiselect__chip-remove:hover { color: var(--pr-danger); }
|
|
2459
|
+
.pr-multiselect__chip-remove:disabled { color: inherit; cursor: not-allowed; }
|
|
2460
|
+
.pr-multiselect__chip-remove:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); border-radius: 999px; }
|
|
2461
|
+
|
|
2462
|
+
.pr-multiselect__chevron { flex-shrink: 0; color: var(--pr-fg-faint); }
|
|
2463
|
+
|
|
2464
|
+
.pr-multiselect__menu {
|
|
2465
|
+
z-index: 60;
|
|
2466
|
+
display: flex;
|
|
2467
|
+
flex-direction: column;
|
|
2468
|
+
overflow: hidden;
|
|
2469
|
+
background: var(--pr-elevated);
|
|
2470
|
+
border: 1px solid var(--pr-border);
|
|
2471
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
2472
|
+
box-shadow: var(--pr-shadow-elevated);
|
|
2473
|
+
}
|
|
2474
|
+
.pr-multiselect__menu--filter {
|
|
2475
|
+
min-width: 192px;
|
|
2476
|
+
max-width: min(280px, calc(100vw - 16px));
|
|
2477
|
+
}
|
|
2478
|
+
.pr-multiselect__search {
|
|
2479
|
+
display: flex;
|
|
2480
|
+
align-items: center;
|
|
2481
|
+
gap: 8px;
|
|
2482
|
+
padding: 8px 12px;
|
|
2483
|
+
min-height: 40px;
|
|
2484
|
+
border-bottom: 1px solid var(--pr-border);
|
|
2485
|
+
color: var(--pr-fg-faint);
|
|
2486
|
+
}
|
|
2487
|
+
.pr-multiselect__search:focus-within {
|
|
2488
|
+
box-shadow: inset 0 -2px 0 var(--pr-accent-strong);
|
|
2489
|
+
}
|
|
2490
|
+
.pr-multiselect__search input {
|
|
2491
|
+
width: 100%;
|
|
2492
|
+
border: none;
|
|
2493
|
+
outline: none;
|
|
2494
|
+
background: transparent;
|
|
2495
|
+
color: var(--pr-fg);
|
|
2496
|
+
font: inherit;
|
|
2497
|
+
font-size: 14px;
|
|
2498
|
+
}
|
|
2499
|
+
.pr-multiselect__search input:focus-visible {
|
|
2500
|
+
border-radius: 0;
|
|
2501
|
+
box-shadow: none;
|
|
2502
|
+
outline: none;
|
|
2503
|
+
}
|
|
2504
|
+
.pr-multiselect__search input::placeholder { color: var(--pr-fg-faint); }
|
|
2505
|
+
|
|
2506
|
+
.pr-multiselect__list { overflow-y: auto; padding: 4px 0; }
|
|
2507
|
+
.pr-multiselect__note { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--pr-fg-muted); }
|
|
2508
|
+
|
|
2509
|
+
.pr-multiselect__option {
|
|
2510
|
+
display: flex;
|
|
2511
|
+
align-items: center;
|
|
2512
|
+
gap: 8px;
|
|
2513
|
+
width: 100%;
|
|
2514
|
+
min-height: 40px;
|
|
2515
|
+
padding: 7px 12px;
|
|
2516
|
+
border: none;
|
|
2517
|
+
background: transparent;
|
|
2518
|
+
color: var(--pr-fg);
|
|
2519
|
+
font: inherit;
|
|
2520
|
+
font-size: 13px;
|
|
2521
|
+
text-align: left;
|
|
2522
|
+
cursor: pointer;
|
|
2523
|
+
}
|
|
2524
|
+
.pr-multiselect__option:hover { background: var(--pr-surface); }
|
|
2525
|
+
.pr-multiselect__menu--filter .pr-multiselect__option { font-size: 12px; }
|
|
2526
|
+
.pr-multiselect__option--clear { box-shadow: inset 0 -1px 0 var(--pr-border); }
|
|
2527
|
+
.pr-multiselect__option:focus-visible {
|
|
2528
|
+
border-radius: 0;
|
|
2529
|
+
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
2530
|
+
outline: none;
|
|
2531
|
+
}
|
|
2532
|
+
.pr-multiselect__check {
|
|
2533
|
+
display: inline-flex;
|
|
2534
|
+
align-items: center;
|
|
2535
|
+
justify-content: center;
|
|
2536
|
+
width: 16px;
|
|
2537
|
+
height: 16px;
|
|
2538
|
+
flex-shrink: 0;
|
|
2539
|
+
border: 1px solid var(--pr-border-strong);
|
|
2540
|
+
border-radius: 4px;
|
|
2541
|
+
color: var(--pr-accent-ink);
|
|
2542
|
+
}
|
|
2543
|
+
.pr-multiselect__check--on { background: var(--pr-accent); border-color: var(--pr-accent-strong); }
|
|
2544
|
+
.pr-multiselect__option-leading {
|
|
2545
|
+
display: inline-flex;
|
|
2546
|
+
align-items: center;
|
|
2547
|
+
justify-content: center;
|
|
2548
|
+
flex-shrink: 0;
|
|
2549
|
+
}
|
|
2550
|
+
.pr-multiselect__option-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2551
|
+
|
|
2552
|
+
/* ---------------------------------------------------------------------------
|
|
2553
|
+
Table
|
|
2554
|
+
|
|
2555
|
+
Supports clickable rows and an optional sticky first column while preserving
|
|
2556
|
+
native table structure. Sorting, selection, and pagination remain explicit
|
|
2557
|
+
higher-level composition.
|
|
2558
|
+
--------------------------------------------------------------------------- */
|
|
2559
|
+
.pr-table__shell {
|
|
2560
|
+
background: var(--pr-surface);
|
|
2561
|
+
border: 1px solid var(--pr-border);
|
|
2562
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
2563
|
+
overflow: hidden;
|
|
2564
|
+
}
|
|
2565
|
+
.pr-table__shell--bare {
|
|
2566
|
+
background: none;
|
|
2567
|
+
border: 0;
|
|
2568
|
+
border-radius: 0;
|
|
2569
|
+
}
|
|
2570
|
+
.pr-table__scroll {
|
|
2571
|
+
overflow-x: auto;
|
|
2572
|
+
/* The thin themed scrollbar is inherited from `:root`; nothing table-specific is needed. */
|
|
2573
|
+
}
|
|
2574
|
+
.pr-table__scroll--compound {
|
|
2575
|
+
overflow-y: hidden;
|
|
2576
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
2577
|
+
background: var(--pr-surface);
|
|
2578
|
+
box-shadow: inset 0 0 0 1px var(--pr-border);
|
|
2579
|
+
}
|
|
2580
|
+
.pr-table__scroll:focus-visible {
|
|
2581
|
+
outline: none;
|
|
2582
|
+
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
2583
|
+
}
|
|
2584
|
+
/* Capped height: the body scrolls vertically under a pinned header. */
|
|
2585
|
+
.pr-table__scroll--capped {
|
|
2586
|
+
overflow-y: auto;
|
|
2587
|
+
/* Breathing room between the last row and the scroll floor. Without it the final row sits
|
|
2588
|
+
flush against the rounded edge and reads as clipped rather than as the end of the list. */
|
|
2589
|
+
scroll-padding-block-end: 4px;
|
|
2590
|
+
}
|
|
2591
|
+
.pr-table--sticky-header .pr-table__th,
|
|
2592
|
+
.pr-table--sticky-header thead th {
|
|
2593
|
+
position: sticky;
|
|
2594
|
+
top: 0;
|
|
2595
|
+
/* The header is opaque or the rows show through it as they pass under. It reads
|
|
2596
|
+
the surface token rather than inheriting, because `bare` tables sit directly on
|
|
2597
|
+
the page and would otherwise pin a transparent strip. */
|
|
2598
|
+
background: var(--pr-surface);
|
|
2599
|
+
/* Above sticky cells in the body, so the two do not fight at the top-left corner
|
|
2600
|
+
when a table pins both a header row and its first column. */
|
|
2601
|
+
z-index: 2;
|
|
2602
|
+
}
|
|
2603
|
+
.pr-table--sticky-header.pr-table--sticky-first .pr-table__th:first-child,
|
|
2604
|
+
.pr-table--sticky-header.pr-table--sticky-first thead th:first-child {
|
|
2605
|
+
z-index: 3;
|
|
2606
|
+
}
|
|
2607
|
+
/* `border-collapse: collapse` drops the borders of sticky cells — the border belongs
|
|
2608
|
+
to the collapsed grid, which scrolls away with the body. A shadow is painted by the
|
|
2609
|
+
cell itself, so it travels with it. */
|
|
2610
|
+
.pr-table--sticky-header .pr-table__th,
|
|
2611
|
+
.pr-table--sticky-header thead th {
|
|
2612
|
+
box-shadow: inset 0 -1px 0 var(--pr-border);
|
|
2613
|
+
}
|
|
2614
|
+
.pr-table {
|
|
2615
|
+
width: 100%;
|
|
2616
|
+
border-collapse: collapse;
|
|
2617
|
+
caption-side: bottom;
|
|
2618
|
+
font-family: var(--pr-font-body, inherit);
|
|
2619
|
+
}
|
|
2620
|
+
.pr-table__header .pr-table__row:first-child { border-top: 0; }
|
|
2621
|
+
.pr-table__footer {
|
|
2622
|
+
border-top: 1px solid var(--pr-border);
|
|
2623
|
+
background: color-mix(in srgb, var(--pr-border) 50%, transparent);
|
|
2624
|
+
color: var(--pr-fg);
|
|
2625
|
+
font-weight: 600;
|
|
2626
|
+
}
|
|
2627
|
+
.pr-table__footer .pr-table__row { border-top: 0; }
|
|
2628
|
+
.pr-table__caption {
|
|
2629
|
+
padding: 12px 16px;
|
|
2630
|
+
color: var(--pr-fg-muted);
|
|
2631
|
+
font-size: 14px;
|
|
2632
|
+
text-align: left;
|
|
2633
|
+
text-wrap: pretty;
|
|
2634
|
+
}
|
|
2635
|
+
.pr-table__th {
|
|
2636
|
+
padding: 12px 16px;
|
|
2637
|
+
text-align: left;
|
|
2638
|
+
font-size: 11px;
|
|
2639
|
+
font-weight: 600;
|
|
2640
|
+
text-transform: uppercase;
|
|
2641
|
+
letter-spacing: 0.08em;
|
|
2642
|
+
color: var(--pr-fg-muted);
|
|
2643
|
+
background: color-mix(in srgb, var(--pr-border) 50%, transparent);
|
|
2644
|
+
white-space: nowrap;
|
|
2645
|
+
}
|
|
2646
|
+
.pr-table__td {
|
|
2647
|
+
padding: 14px 16px;
|
|
2648
|
+
font-size: 14px;
|
|
2649
|
+
color: var(--pr-fg);
|
|
2650
|
+
transition: background-color 0.16s var(--pr-ease, ease);
|
|
2651
|
+
}
|
|
2652
|
+
.pr-table__row {
|
|
2653
|
+
border-top: 1px solid var(--pr-border);
|
|
2654
|
+
}
|
|
2655
|
+
.pr-table__row--clickable {
|
|
2656
|
+
cursor: pointer;
|
|
2657
|
+
}
|
|
2658
|
+
.pr-table__row--clickable:hover .pr-table__td,
|
|
2659
|
+
.pr-table__row--clickable:focus-visible .pr-table__td {
|
|
2660
|
+
background: var(--pr-elevated);
|
|
2661
|
+
}
|
|
2662
|
+
.pr-table__row[data-state='selected'] .pr-table__td,
|
|
2663
|
+
.pr-table__row[aria-expanded='true'] .pr-table__td {
|
|
2664
|
+
background: var(--pr-tone-yellow-bg);
|
|
2665
|
+
}
|
|
2666
|
+
.pr-table__row--clickable:focus-visible {
|
|
2667
|
+
outline: none;
|
|
2668
|
+
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
2669
|
+
}
|
|
2670
|
+
.pr-table__row--clickable[aria-disabled='true'] {
|
|
2671
|
+
cursor: not-allowed;
|
|
2672
|
+
opacity: 0.55;
|
|
2673
|
+
}
|
|
2674
|
+
.pr-table__cell--start { text-align: left; }
|
|
2675
|
+
.pr-table__cell--center { text-align: center; }
|
|
2676
|
+
/* Numbers line up on the right, and tabular figures stop them dancing as they
|
|
2677
|
+
change — a money column that shifts width on every poll is unreadable. */
|
|
2678
|
+
.pr-table__cell--end {
|
|
2679
|
+
text-align: right;
|
|
2680
|
+
font-variant-numeric: tabular-nums;
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
.pr-table__hint {
|
|
2684
|
+
display: flex;
|
|
2685
|
+
justify-content: flex-end;
|
|
2686
|
+
gap: 6px;
|
|
2687
|
+
margin: 0;
|
|
2688
|
+
padding: 8px 12px;
|
|
2689
|
+
border-bottom: 1px solid var(--pr-border);
|
|
2690
|
+
font-size: 11px;
|
|
2691
|
+
font-weight: 500;
|
|
2692
|
+
color: var(--pr-fg-muted);
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
/* The sticky column needs an opaque background of its own, or the scrolling
|
|
2696
|
+
cells show through it. */
|
|
2697
|
+
.pr-table--sticky-first .pr-table__td:first-child,
|
|
2698
|
+
.pr-table--sticky-first .pr-table__th:first-child {
|
|
2699
|
+
position: sticky;
|
|
2700
|
+
left: 0;
|
|
2701
|
+
box-shadow: 6px 0 8px -8px rgb(0 0 0 / 0.28);
|
|
2702
|
+
}
|
|
2703
|
+
.pr-table--sticky-first .pr-table__th:first-child {
|
|
2704
|
+
z-index: 2;
|
|
2705
|
+
background: color-mix(in srgb, var(--pr-border) 50%, var(--pr-surface));
|
|
2706
|
+
}
|
|
2707
|
+
.pr-table--sticky-first .pr-table__td:first-child {
|
|
2708
|
+
z-index: 1;
|
|
2709
|
+
background: var(--pr-surface);
|
|
2710
|
+
}
|
|
2711
|
+
.pr-table--sticky-first .pr-table__row--clickable:hover .pr-table__td:first-child {
|
|
2712
|
+
background: var(--pr-elevated);
|
|
2713
|
+
}
|
|
2714
|
+
.pr-table--sticky-first .pr-table__row[data-state='selected'] .pr-table__td:first-child,
|
|
2715
|
+
.pr-table--sticky-first .pr-table__row[aria-expanded='true'] .pr-table__td:first-child {
|
|
2716
|
+
background: var(--pr-tone-yellow-bg);
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
.pr-table__loading-spinner {
|
|
2720
|
+
display: flex;
|
|
2721
|
+
justify-content: center;
|
|
2722
|
+
padding: 12px 0 0;
|
|
2723
|
+
}
|
|
2724
|
+
.pr-table__skeleton {
|
|
2725
|
+
padding: 8px 0 12px;
|
|
2726
|
+
}
|
|
2727
|
+
.pr-table__skeleton-row {
|
|
2728
|
+
display: flex;
|
|
2729
|
+
gap: 16px;
|
|
2730
|
+
padding: 10px 16px;
|
|
2731
|
+
}
|
|
2732
|
+
.pr-table__skeleton-cell {
|
|
2733
|
+
flex: 1;
|
|
2734
|
+
height: 12px;
|
|
2735
|
+
border-radius: 4px;
|
|
2736
|
+
background: var(--pr-border);
|
|
2737
|
+
animation: pr-table-pulse 1.4s ease-in-out infinite;
|
|
2738
|
+
}
|
|
2739
|
+
@keyframes pr-table-pulse {
|
|
2740
|
+
0%, 100% { opacity: 1; }
|
|
2741
|
+
50% { opacity: 0.45; }
|
|
2742
|
+
}
|
|
2743
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2744
|
+
.pr-table__skeleton-cell { animation: none; }
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
@media (min-width: 640px) {
|
|
2748
|
+
.pr-table__hint { display: none; }
|
|
2749
|
+
.pr-table--sticky-first .pr-table__th:first-child,
|
|
2750
|
+
.pr-table--sticky-first .pr-table__td:first-child {
|
|
2751
|
+
position: static;
|
|
2752
|
+
box-shadow: none;
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
@media (max-width: 639px) {
|
|
2756
|
+
.pr-table__cell--desktop { display: none; }
|
|
2757
|
+
.pr-table--sticky-first { min-width: 720px; }
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
/* Compact table density for a breakdown nested inside a summary card. */
|
|
2761
|
+
.pr-table--compact .pr-table__th {
|
|
2762
|
+
padding: 6px 8px;
|
|
2763
|
+
font-size: 10px;
|
|
2764
|
+
}
|
|
2765
|
+
.pr-table--compact .pr-table__td {
|
|
2766
|
+
padding: 6px 8px;
|
|
2767
|
+
font-size: 13px;
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2770
|
+
/* ─────────────────────── Dropdown menu ─────────────────────── */
|
|
2771
|
+
|
|
2772
|
+
/* Only the native trigger needs a type reset. An `asChild` control keeps its own
|
|
2773
|
+
typography declarations completely untouched, including declarations emitted in
|
|
2774
|
+
a consumer's CSS layer (unlayered package CSS outranks every layered utility). */
|
|
2775
|
+
.pr-menu__trigger--raw {
|
|
2776
|
+
font: inherit;
|
|
2777
|
+
font-family: var(--pr-font-body, inherit);
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
.pr-menu__content {
|
|
2781
|
+
/* Above the rich-select popup's 60: a menu is the thing most often opened from
|
|
2782
|
+
inside another popup's row, and it has to land on top of it. */
|
|
2783
|
+
z-index: 62;
|
|
2784
|
+
display: flex;
|
|
2785
|
+
min-width: 180px;
|
|
2786
|
+
flex-direction: column;
|
|
2787
|
+
overflow-y: auto;
|
|
2788
|
+
overscroll-behavior: contain;
|
|
2789
|
+
padding: 4px;
|
|
2790
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
2791
|
+
background: var(--pr-elevated);
|
|
2792
|
+
color: var(--pr-fg);
|
|
2793
|
+
box-shadow: var(--pr-shadow-elevated), inset 0 0 0 1px var(--pr-border);
|
|
2794
|
+
font-family: var(--pr-font-body, inherit);
|
|
2795
|
+
outline: none;
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
.pr-menu__item {
|
|
2799
|
+
display: flex;
|
|
2800
|
+
align-items: center;
|
|
2801
|
+
gap: 10px;
|
|
2802
|
+
min-height: 40px;
|
|
2803
|
+
padding: 8px;
|
|
2804
|
+
border-radius: var(--pr-radius-sm, 0.625rem);
|
|
2805
|
+
color: var(--pr-fg);
|
|
2806
|
+
font-size: 14px;
|
|
2807
|
+
text-align: left;
|
|
2808
|
+
text-decoration: none;
|
|
2809
|
+
cursor: pointer;
|
|
2810
|
+
user-select: none;
|
|
2811
|
+
transition-property: background-color, color;
|
|
2812
|
+
transition-duration: 120ms;
|
|
2813
|
+
transition-timing-function: var(--pr-ease, ease);
|
|
2814
|
+
}
|
|
2815
|
+
/* Rows take real DOM focus, so hover and keyboard land on one highlight — arrowing
|
|
2816
|
+
down has to look identical to moving the mouse or the two disagree on screen. */
|
|
2817
|
+
.pr-menu__item:hover:not([data-disabled]),
|
|
2818
|
+
.pr-menu__item:focus-visible {
|
|
2819
|
+
outline: none;
|
|
2820
|
+
background: var(--pr-surface);
|
|
2821
|
+
}
|
|
2822
|
+
.pr-menu__item[data-disabled] {
|
|
2823
|
+
cursor: not-allowed;
|
|
2824
|
+
opacity: 0.5;
|
|
2825
|
+
}
|
|
2826
|
+
/* The same tint Badge uses for the danger tone, not a solid fill: `--pr-danger-fg`
|
|
2827
|
+
is the copy colour that sits *on* solid danger, so using it over a tint inverts
|
|
2828
|
+
the contrast it was picked for. The row keeps `--pr-danger` as its text. */
|
|
2829
|
+
.pr-menu__item--destructive { color: var(--pr-danger); }
|
|
2830
|
+
.pr-menu__item--destructive:hover:not([data-disabled]),
|
|
2831
|
+
.pr-menu__item--destructive:focus-visible {
|
|
2832
|
+
background: color-mix(in srgb, var(--pr-danger) 14%, transparent);
|
|
2833
|
+
}
|
|
2834
|
+
.pr-menu__item-content {
|
|
2835
|
+
display: flex;
|
|
2836
|
+
flex: 1;
|
|
2837
|
+
min-width: 0;
|
|
2838
|
+
align-items: center;
|
|
2839
|
+
gap: 8px;
|
|
2840
|
+
}
|
|
2841
|
+
.pr-menu__item-icon {
|
|
2842
|
+
display: inline-flex;
|
|
2843
|
+
flex: 0 0 auto;
|
|
2844
|
+
align-items: center;
|
|
2845
|
+
justify-content: center;
|
|
2846
|
+
color: var(--pr-fg-faint);
|
|
2847
|
+
}
|
|
2848
|
+
.pr-menu__item--destructive .pr-menu__item-icon { color: currentColor; }
|
|
2849
|
+
/* Reserved whether or not the row is ticked, so checking one does not shift the
|
|
2850
|
+
labels of every row next to it. */
|
|
2851
|
+
.pr-menu__indicator {
|
|
2852
|
+
display: inline-flex;
|
|
2853
|
+
flex: 0 0 20px;
|
|
2854
|
+
align-items: center;
|
|
2855
|
+
justify-content: center;
|
|
2856
|
+
color: var(--pr-accent-strong);
|
|
2857
|
+
}
|
|
2858
|
+
.pr-menu__item--checkbox[data-state='checked'] { font-weight: 650; }
|
|
2859
|
+
.pr-menu__label {
|
|
2860
|
+
padding: 8px 8px 4px;
|
|
2861
|
+
color: var(--pr-fg-muted);
|
|
2862
|
+
font-size: 11px;
|
|
2863
|
+
font-weight: 650;
|
|
2864
|
+
letter-spacing: 0.06em;
|
|
2865
|
+
text-transform: uppercase;
|
|
2866
|
+
}
|
|
2867
|
+
.pr-menu__separator {
|
|
2868
|
+
height: 1px;
|
|
2869
|
+
margin: 4px;
|
|
2870
|
+
background: var(--pr-border);
|
|
2871
|
+
}
|
|
2872
|
+
/* Not `display: contents` — several browsers drop the accessibility role of a
|
|
2873
|
+
contents box, which would make the group it exists to announce disappear. */
|
|
2874
|
+
.pr-menu__group { display: block; }
|
|
2875
|
+
|
|
2876
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2877
|
+
.pr-menu__item { transition: none; }
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
/* ─────────────────────── Popover ─────────────────────── */
|
|
2881
|
+
|
|
2882
|
+
/* Same raw-only contract as the menu trigger. Applying this shorthand to a composed
|
|
2883
|
+
child resets its size, weight and line-height; zero specificity is insufficient
|
|
2884
|
+
when the consumer's declarations live in a CSS layer. */
|
|
2885
|
+
.pr-popover__trigger--raw {
|
|
2886
|
+
font: inherit;
|
|
2887
|
+
font-family: var(--pr-font-body, inherit);
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
.pr-popover__content {
|
|
2891
|
+
z-index: 62;
|
|
2892
|
+
overflow-y: auto;
|
|
2893
|
+
overscroll-behavior: contain;
|
|
2894
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
2895
|
+
background: var(--pr-elevated);
|
|
2896
|
+
color: var(--pr-fg);
|
|
2897
|
+
box-shadow: var(--pr-shadow-elevated), inset 0 0 0 1px var(--pr-border);
|
|
2898
|
+
font-family: var(--pr-font-body, inherit);
|
|
2899
|
+
font-size: 14px;
|
|
2900
|
+
outline: none;
|
|
2901
|
+
}
|
|
2902
|
+
/* Padding lives on a modifier, not on the base rule, for the same reason `Card`
|
|
2903
|
+
splits it out: `padding="none"` has to emit *no class at all* rather than
|
|
2904
|
+
`padding: 0`.
|
|
2905
|
+
These rules are unlayered so they beat a consumer's Tailwind utility — which sits
|
|
2906
|
+
in `@layer utilities` — at any specificity. That is deliberate for the surface
|
|
2907
|
+
itself, but it means a base `padding` here cannot be turned off from the call site:
|
|
2908
|
+
`className="p-0"` loses, silently, and a list panel gets 12px of inset it did not
|
|
2909
|
+
ask for. Absence composes; zero fights. */
|
|
2910
|
+
.pr-popover__content--pad-md { padding: 12px; }
|
|
2911
|
+
.pr-popover__header {
|
|
2912
|
+
display: flex;
|
|
2913
|
+
flex-direction: column;
|
|
2914
|
+
gap: 2px;
|
|
2915
|
+
margin-bottom: 8px;
|
|
2916
|
+
}
|
|
2917
|
+
.pr-popover__title {
|
|
2918
|
+
margin: 0;
|
|
2919
|
+
color: var(--pr-fg);
|
|
2920
|
+
/* Under 24px stays on the body face, same rule as card and dialog titles. */
|
|
2921
|
+
font-family: var(--pr-font-body, inherit);
|
|
2922
|
+
font-size: 14px;
|
|
2923
|
+
font-weight: 650;
|
|
2924
|
+
}
|
|
2925
|
+
.pr-popover__description {
|
|
2926
|
+
margin: 0;
|
|
2927
|
+
color: var(--pr-fg-muted);
|
|
2928
|
+
font-size: 14px;
|
|
2929
|
+
text-wrap: pretty;
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
/* ─────────────────────── Pagination ─────────────────────── */
|
|
2933
|
+
|
|
2934
|
+
.pr-pagination {
|
|
2935
|
+
display: flex;
|
|
2936
|
+
width: 100%;
|
|
2937
|
+
min-width: 0;
|
|
2938
|
+
align-items: center;
|
|
2939
|
+
justify-content: space-between;
|
|
2940
|
+
gap: 16px;
|
|
2941
|
+
color: var(--pr-fg);
|
|
2942
|
+
font-family: var(--pr-font-body, inherit);
|
|
2943
|
+
}
|
|
2944
|
+
.pr-pagination__summary {
|
|
2945
|
+
min-width: 0;
|
|
2946
|
+
color: var(--pr-fg-muted);
|
|
2947
|
+
font-size: 14px;
|
|
2948
|
+
font-variant-numeric: tabular-nums;
|
|
2949
|
+
line-height: 1.4;
|
|
2950
|
+
text-wrap: pretty;
|
|
2951
|
+
}
|
|
2952
|
+
.pr-pagination__controls {
|
|
2953
|
+
display: flex;
|
|
2954
|
+
flex: 0 0 auto;
|
|
2955
|
+
align-items: center;
|
|
2956
|
+
gap: 8px;
|
|
2957
|
+
}
|
|
2958
|
+
.pr-pagination__controls .pr-btn { min-width: 40px; }
|
|
2959
|
+
|
|
2960
|
+
@media (max-width: 479px) {
|
|
2961
|
+
.pr-pagination { gap: 12px; }
|
|
2962
|
+
.pr-pagination__controls .pr-btn {
|
|
2963
|
+
width: 40px;
|
|
2964
|
+
padding-inline: 0;
|
|
2965
|
+
}
|
|
2966
|
+
.pr-pagination__button-label { display: none; }
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
/* ─────────────────────── Separator ─────────────────────── */
|
|
2970
|
+
|
|
2971
|
+
.pr-separator {
|
|
2972
|
+
flex: 0 0 auto;
|
|
2973
|
+
background: var(--pr-border);
|
|
2974
|
+
border: 0;
|
|
2975
|
+
}
|
|
2976
|
+
.pr-separator--horizontal {
|
|
2977
|
+
width: 100%;
|
|
2978
|
+
height: 1px;
|
|
2979
|
+
}
|
|
2980
|
+
/* `align-self: stretch` rather than a height: every use of this is a divider between
|
|
2981
|
+
toolbar controls, and the rule should be as tall as whatever sits beside it. */
|
|
2982
|
+
.pr-separator--vertical {
|
|
2983
|
+
width: 1px;
|
|
2984
|
+
align-self: stretch;
|
|
2985
|
+
min-height: 1em;
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
/* ─────────────────────── Skeleton ─────────────────────── */
|
|
2989
|
+
|
|
2990
|
+
.pr-skeleton {
|
|
2991
|
+
background: var(--pr-border);
|
|
2992
|
+
border-radius: var(--pr-radius-sm, 0.625rem);
|
|
2993
|
+
animation: pr-skeleton-pulse 1600ms var(--pr-ease, ease) infinite;
|
|
2994
|
+
}
|
|
2995
|
+
.pr-skeleton--block { min-height: 16px; }
|
|
2996
|
+
.pr-skeleton--text {
|
|
2997
|
+
height: 0.85em;
|
|
2998
|
+
border-radius: 4px;
|
|
2999
|
+
}
|
|
3000
|
+
.pr-skeleton--circle {
|
|
3001
|
+
border-radius: 50%;
|
|
3002
|
+
aspect-ratio: 1;
|
|
3003
|
+
}
|
|
3004
|
+
.pr-skeleton__group {
|
|
3005
|
+
display: flex;
|
|
3006
|
+
flex-direction: column;
|
|
3007
|
+
gap: 8px;
|
|
3008
|
+
}
|
|
3009
|
+
.pr-skeleton--text[data-last] { width: 60%; }
|
|
3010
|
+
|
|
3011
|
+
@keyframes pr-skeleton-pulse {
|
|
3012
|
+
0%, 100% { opacity: 1; }
|
|
3013
|
+
50% { opacity: 0.45; }
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
/* A placeholder that never resolves is worse than a static one: it is a permanent
|
|
3017
|
+
animation on a page a user may be stuck on. Reduced motion gets the mid tone. */
|
|
3018
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3019
|
+
.pr-skeleton {
|
|
3020
|
+
animation: none;
|
|
3021
|
+
opacity: 0.7;
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
/* ─────────────────────── Tooltip ─────────────────────── */
|
|
3026
|
+
|
|
3027
|
+
.pr-tooltip {
|
|
3028
|
+
/* Above menus and popovers: a tooltip on a control inside one of them is the
|
|
3029
|
+
last thing drawn and must not be covered by the surface it belongs to. */
|
|
3030
|
+
z-index: 70;
|
|
3031
|
+
max-width: 280px;
|
|
3032
|
+
padding: 6px 10px;
|
|
3033
|
+
border-radius: var(--pr-radius-sm, 0.625rem);
|
|
3034
|
+
/* Inverted against the page rather than sitting on `elevated`. A hint has to read
|
|
3035
|
+
as an annotation over the UI, not as another panel of it, and inverting is the
|
|
3036
|
+
one treatment that stays legible in both modes without a second value. */
|
|
3037
|
+
background: var(--pr-fg);
|
|
3038
|
+
color: var(--pr-bg);
|
|
3039
|
+
box-shadow: var(--pr-shadow-elevated);
|
|
3040
|
+
font-family: var(--pr-font-body, inherit);
|
|
3041
|
+
font-size: 13px;
|
|
3042
|
+
font-weight: 500;
|
|
3043
|
+
line-height: 1.4;
|
|
3044
|
+
text-wrap: pretty;
|
|
3045
|
+
pointer-events: none;
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
/* ─────────────────────── Stepper ─────────────────────── */
|
|
3049
|
+
|
|
3050
|
+
.pr-stepper__list {
|
|
3051
|
+
display: flex;
|
|
3052
|
+
align-items: center;
|
|
3053
|
+
gap: 8px;
|
|
3054
|
+
margin: 0;
|
|
3055
|
+
padding: 0;
|
|
3056
|
+
list-style: none;
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
.pr-stepper__step {
|
|
3060
|
+
display: flex;
|
|
3061
|
+
align-items: center;
|
|
3062
|
+
gap: 8px;
|
|
3063
|
+
min-width: 0;
|
|
3064
|
+
}
|
|
3065
|
+
|
|
3066
|
+
/* The connector between steps: a quiet line that warms up once crossed. */
|
|
3067
|
+
.pr-stepper__step + .pr-stepper__step::before {
|
|
3068
|
+
content: '';
|
|
3069
|
+
flex: 1 0 16px;
|
|
3070
|
+
height: 2px;
|
|
3071
|
+
border-radius: 999px;
|
|
3072
|
+
background: var(--pr-border);
|
|
3073
|
+
}
|
|
3074
|
+
/* A connector is crossed exactly when the step before it is done. */
|
|
3075
|
+
.pr-stepper__step--done + .pr-stepper__step::before {
|
|
3076
|
+
background: var(--pr-accent);
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3079
|
+
/* 40px like every other interactive control in the package — the dot doubles
|
|
3080
|
+
as a button when the wizard allows revisiting, and a target must not shrink
|
|
3081
|
+
depending on whether it happens to be clickable today. */
|
|
3082
|
+
.pr-stepper__dot {
|
|
3083
|
+
display: inline-flex;
|
|
3084
|
+
align-items: center;
|
|
3085
|
+
justify-content: center;
|
|
3086
|
+
width: 40px;
|
|
3087
|
+
height: 40px;
|
|
3088
|
+
flex: none;
|
|
3089
|
+
border: 1px solid var(--pr-border);
|
|
3090
|
+
border-radius: 999px;
|
|
3091
|
+
background: var(--pr-surface);
|
|
3092
|
+
color: var(--pr-fg-faint);
|
|
3093
|
+
font-family: var(--pr-font-body, inherit);
|
|
3094
|
+
font-size: 13px;
|
|
3095
|
+
font-weight: 600;
|
|
3096
|
+
padding: 0;
|
|
3097
|
+
transition:
|
|
3098
|
+
background-color 160ms var(--pr-ease, ease),
|
|
3099
|
+
border-color 160ms var(--pr-ease, ease),
|
|
3100
|
+
box-shadow 160ms var(--pr-ease, ease),
|
|
3101
|
+
color 160ms var(--pr-ease, ease);
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
.pr-stepper__step--done .pr-stepper__dot {
|
|
3105
|
+
background: var(--pr-accent);
|
|
3106
|
+
border-color: transparent;
|
|
3107
|
+
color: var(--pr-accent-ink);
|
|
3108
|
+
box-shadow: var(--pr-glow-accent-sm);
|
|
3109
|
+
}
|
|
3110
|
+
button.pr-stepper__dot { cursor: pointer; }
|
|
3111
|
+
button.pr-stepper__dot:hover { box-shadow: var(--pr-glow-accent); }
|
|
3112
|
+
button.pr-stepper__dot:focus-visible {
|
|
3113
|
+
outline: none;
|
|
3114
|
+
box-shadow: var(--pr-focus-ring);
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
/* Inverted against the page (fg/bg), not painted in `accent-ink`: accent-ink
|
|
3118
|
+
is fixed across modes and vanishes on a dark surface (1.04:1). */
|
|
3119
|
+
.pr-stepper__step--current .pr-stepper__dot {
|
|
3120
|
+
background: var(--pr-fg);
|
|
3121
|
+
border-color: transparent;
|
|
3122
|
+
color: var(--pr-bg);
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
.pr-stepper__label {
|
|
3126
|
+
font-family: var(--pr-font-body, inherit);
|
|
3127
|
+
font-size: 13px;
|
|
3128
|
+
font-weight: 500;
|
|
3129
|
+
color: var(--pr-fg-faint);
|
|
3130
|
+
white-space: nowrap;
|
|
3131
|
+
overflow: hidden;
|
|
3132
|
+
text-overflow: ellipsis;
|
|
3133
|
+
}
|
|
3134
|
+
.pr-stepper__step--current .pr-stepper__label {
|
|
3135
|
+
color: var(--pr-fg);
|
|
3136
|
+
font-weight: 600;
|
|
3137
|
+
}
|
|
3138
|
+
.pr-stepper__step--done .pr-stepper__label { color: var(--pr-fg-muted); }
|
|
3139
|
+
|
|
3140
|
+
/* On narrow viewports only the current label stays visible, but the others
|
|
3141
|
+
collapse to visually-hidden — NOT display:none — so every dot keeps its
|
|
3142
|
+
step name in the accessibility tree. */
|
|
3143
|
+
@media (max-width: 639px) {
|
|
3144
|
+
.pr-stepper__step:not(.pr-stepper__step--current) .pr-stepper__label {
|
|
3145
|
+
position: absolute;
|
|
3146
|
+
width: 1px;
|
|
3147
|
+
height: 1px;
|
|
3148
|
+
padding: 0;
|
|
3149
|
+
margin: -1px;
|
|
3150
|
+
overflow: hidden;
|
|
3151
|
+
clip: rect(0, 0, 0, 0);
|
|
3152
|
+
white-space: nowrap;
|
|
3153
|
+
border: 0;
|
|
3154
|
+
}
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
/* ─────────────────────── ProgressDots ─────────────────────── */
|
|
3158
|
+
|
|
3159
|
+
.pr-progress-dots {
|
|
3160
|
+
display: inline-flex;
|
|
3161
|
+
align-items: center;
|
|
3162
|
+
gap: 6px;
|
|
3163
|
+
}
|
|
3164
|
+
|
|
3165
|
+
.pr-progress-dots__dot {
|
|
3166
|
+
width: 8px;
|
|
3167
|
+
height: 8px;
|
|
3168
|
+
border-radius: 999px;
|
|
3169
|
+
background: var(--pr-border-strong);
|
|
3170
|
+
transition:
|
|
3171
|
+
width 200ms var(--pr-ease, ease),
|
|
3172
|
+
background-color 200ms var(--pr-ease, ease);
|
|
3173
|
+
}
|
|
3174
|
+
.pr-progress-dots__dot--done { background: var(--pr-accent); }
|
|
3175
|
+
.pr-progress-dots__dot--current {
|
|
3176
|
+
width: 24px;
|
|
3177
|
+
background: var(--pr-accent);
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3181
|
+
.pr-progress-dots__dot { transition: none; }
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
/* ─────────────────────── OtpInput ─────────────────────── */
|
|
3185
|
+
|
|
3186
|
+
.pr-otp {
|
|
3187
|
+
display: inline-flex;
|
|
3188
|
+
gap: 8px;
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3191
|
+
.pr-otp__box {
|
|
3192
|
+
width: 44px;
|
|
3193
|
+
height: 52px;
|
|
3194
|
+
text-align: center;
|
|
3195
|
+
border: 1px solid var(--pr-border);
|
|
3196
|
+
/* Same radius step as .pr-input — an OTP is a field, not a chip. */
|
|
3197
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
3198
|
+
background: var(--pr-surface);
|
|
3199
|
+
color: var(--pr-fg);
|
|
3200
|
+
font-family: var(--pr-font-mono, monospace);
|
|
3201
|
+
font-size: 20px;
|
|
3202
|
+
font-weight: 600;
|
|
3203
|
+
font-variant-numeric: tabular-nums;
|
|
3204
|
+
transition:
|
|
3205
|
+
border-color 160ms var(--pr-ease, ease),
|
|
3206
|
+
box-shadow 160ms var(--pr-ease, ease);
|
|
3207
|
+
}
|
|
3208
|
+
.pr-otp__box:focus {
|
|
3209
|
+
outline: none;
|
|
3210
|
+
border-color: var(--pr-accent);
|
|
3211
|
+
box-shadow: var(--pr-focus-ring);
|
|
3212
|
+
}
|
|
3213
|
+
.pr-otp__box:disabled {
|
|
3214
|
+
opacity: 0.55;
|
|
3215
|
+
background: var(--pr-bg);
|
|
3216
|
+
}
|
|
3217
|
+
.pr-otp--invalid .pr-otp__box { border-color: var(--pr-danger); }
|
|
3218
|
+
|
|
3219
|
+
/* Anti-zoom: iOS zooms into any input under 16px. */
|
|
3220
|
+
@media (max-width: 639px) {
|
|
3221
|
+
.pr-otp__box { font-size: 16px; }
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
/* ─────────────────────── Progress ─────────────────────── */
|
|
3225
|
+
|
|
3226
|
+
.pr-progress-ring {
|
|
3227
|
+
position: relative;
|
|
3228
|
+
display: inline-flex;
|
|
3229
|
+
align-items: center;
|
|
3230
|
+
justify-content: center;
|
|
3231
|
+
}
|
|
3232
|
+
.pr-progress-ring__track { stroke: var(--pr-border); }
|
|
3233
|
+
.pr-progress-ring__value {
|
|
3234
|
+
transition: stroke-dashoffset 500ms var(--pr-ease, ease);
|
|
3235
|
+
}
|
|
3236
|
+
.pr-progress-ring__label {
|
|
3237
|
+
position: absolute;
|
|
3238
|
+
font-family: var(--pr-font-body, inherit);
|
|
3239
|
+
font-size: 13px;
|
|
3240
|
+
font-weight: 600;
|
|
3241
|
+
font-variant-numeric: tabular-nums;
|
|
3242
|
+
color: var(--pr-fg);
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
.pr-progress-bar {
|
|
3246
|
+
display: block;
|
|
3247
|
+
width: 100%;
|
|
3248
|
+
border-radius: 999px;
|
|
3249
|
+
background: var(--pr-border);
|
|
3250
|
+
overflow: hidden;
|
|
3251
|
+
}
|
|
3252
|
+
.pr-progress-bar--xs { height: 2px; }
|
|
3253
|
+
.pr-progress-bar--sm { height: 4px; }
|
|
3254
|
+
.pr-progress-bar--md { height: 6px; }
|
|
3255
|
+
.pr-progress-bar__fill {
|
|
3256
|
+
display: block;
|
|
3257
|
+
height: 100%;
|
|
3258
|
+
border-radius: inherit;
|
|
3259
|
+
background: var(--pr-accent);
|
|
3260
|
+
transition: width 500ms var(--pr-ease, ease);
|
|
3261
|
+
}
|
|
3262
|
+
.pr-progress-bar--complete .pr-progress-bar__fill { background: var(--pr-success); }
|
|
3263
|
+
|
|
3264
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3265
|
+
.pr-progress-ring__value { transition: none; }
|
|
3266
|
+
.pr-progress-bar__fill { transition: none; }
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
/* ─────────────────────── CopyField ─────────────────────── */
|
|
3270
|
+
|
|
3271
|
+
.pr-copy-field {
|
|
3272
|
+
display: inline-flex;
|
|
3273
|
+
align-items: center;
|
|
3274
|
+
gap: 4px;
|
|
3275
|
+
max-width: 100%;
|
|
3276
|
+
padding: 2px 2px 2px 12px;
|
|
3277
|
+
border: 1px solid var(--pr-border);
|
|
3278
|
+
/* Same radius step as .pr-input — this reads as a field. */
|
|
3279
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
3280
|
+
background: var(--pr-bg);
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
.pr-copy-field__value {
|
|
3284
|
+
flex: 1;
|
|
3285
|
+
min-width: 0;
|
|
3286
|
+
overflow: hidden;
|
|
3287
|
+
white-space: nowrap;
|
|
3288
|
+
text-overflow: ellipsis;
|
|
3289
|
+
font-family: var(--pr-font-mono, monospace);
|
|
3290
|
+
font-size: 13px;
|
|
3291
|
+
color: var(--pr-fg-muted);
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
/* 40px, the package-wide interactive minimum. */
|
|
3295
|
+
.pr-copy-field__button {
|
|
3296
|
+
display: inline-flex;
|
|
3297
|
+
align-items: center;
|
|
3298
|
+
justify-content: center;
|
|
3299
|
+
width: 40px;
|
|
3300
|
+
height: 40px;
|
|
3301
|
+
flex: none;
|
|
3302
|
+
border: none;
|
|
3303
|
+
border-radius: calc(var(--pr-radius-md, 0.75rem) - 4px);
|
|
3304
|
+
background: transparent;
|
|
3305
|
+
color: var(--pr-fg-muted);
|
|
3306
|
+
cursor: pointer;
|
|
3307
|
+
transition:
|
|
3308
|
+
background-color 160ms var(--pr-ease, ease),
|
|
3309
|
+
color 160ms var(--pr-ease, ease);
|
|
3310
|
+
}
|
|
3311
|
+
.pr-copy-field__button:hover {
|
|
3312
|
+
background: var(--pr-surface);
|
|
3313
|
+
color: var(--pr-fg);
|
|
3314
|
+
}
|
|
3315
|
+
.pr-copy-field__button:focus-visible {
|
|
3316
|
+
outline: none;
|
|
3317
|
+
box-shadow: var(--pr-focus-ring);
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
/* ─────────────────────── AmbientBackground ─────────────────────── */
|
|
3321
|
+
|
|
3322
|
+
/* Decorative glows behind the page. `overflow: hidden` keeps the blurred
|
|
3323
|
+
circles from widening the scrollable area on small screens. `z-index: -1`
|
|
3324
|
+
puts the layer behind in-flow content — at 0 it would paint OVER any
|
|
3325
|
+
unpositioned text and tint it. */
|
|
3326
|
+
.pr-ambient {
|
|
3327
|
+
position: fixed;
|
|
3328
|
+
inset: 0;
|
|
3329
|
+
overflow: hidden;
|
|
3330
|
+
pointer-events: none;
|
|
3331
|
+
z-index: -1;
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
.pr-ambient__glow {
|
|
3335
|
+
position: absolute;
|
|
3336
|
+
border-radius: 999px;
|
|
3337
|
+
filter: blur(64px);
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
.pr-ambient__glow--warm {
|
|
3341
|
+
top: -120px;
|
|
3342
|
+
right: -100px;
|
|
3343
|
+
width: 480px;
|
|
3344
|
+
height: 480px;
|
|
3345
|
+
background: color-mix(in srgb, var(--pr-accent) 10%, transparent);
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
.pr-ambient__glow--cool {
|
|
3349
|
+
bottom: -140px;
|
|
3350
|
+
left: -120px;
|
|
3351
|
+
width: 520px;
|
|
3352
|
+
height: 520px;
|
|
3353
|
+
background: color-mix(in srgb, var(--pr-info) 8%, transparent);
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3356
|
+
.pr-ambient--login .pr-ambient__glow--warm {
|
|
3357
|
+
width: 640px;
|
|
3358
|
+
height: 640px;
|
|
3359
|
+
background: color-mix(in srgb, var(--pr-accent) 16%, transparent);
|
|
3360
|
+
}
|
|
3361
|
+
.pr-ambient--login .pr-ambient__glow--cool {
|
|
3362
|
+
background: color-mix(in srgb, var(--pr-info) 12%, transparent);
|
|
3363
|
+
}
|
|
3364
|
+
|
|
3365
|
+
/* The accent is a fixed brand token and `info` LIGHTENS in dark, so without
|
|
3366
|
+
explicit dimming the glows come out brighter over a dark page, not softer. */
|
|
3367
|
+
.dark .pr-ambient__glow--warm {
|
|
3368
|
+
background: color-mix(in srgb, var(--pr-accent) 6%, transparent);
|
|
3369
|
+
}
|
|
3370
|
+
.dark .pr-ambient__glow--cool {
|
|
3371
|
+
background: color-mix(in srgb, var(--pr-info) 5%, transparent);
|
|
3372
|
+
}
|
|
3373
|
+
.dark .pr-ambient--login .pr-ambient__glow--warm {
|
|
3374
|
+
background: color-mix(in srgb, var(--pr-accent) 9%, transparent);
|
|
3375
|
+
}
|
|
3376
|
+
.dark .pr-ambient--login .pr-ambient__glow--cool {
|
|
3377
|
+
background: color-mix(in srgb, var(--pr-info) 7%, transparent);
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
/* ─────────────────────── Display tracking ─────────────────────── */
|
|
3381
|
+
|
|
3382
|
+
/* The Crystal type spec tightens display-role text. The package's own titles
|
|
3383
|
+
carry it here so the tokens' claim ("titles tighten automatically") is true
|
|
3384
|
+
of the primitives, not just available to apps. */
|
|
3385
|
+
.pr-card__title,
|
|
3386
|
+
.pr-dialog__title,
|
|
3387
|
+
.pr-alert-dialog__title,
|
|
3388
|
+
.pr-sheet__title {
|
|
3389
|
+
letter-spacing: var(--pr-tracking-display, -0.022em);
|
|
3390
|
+
}
|