@spicainternational/forge-styles 0.0.0-stage → 0.2.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/CHANGELOG.md +83 -0
- package/README.md +128 -2
- package/fonts/inter-cyrillic-ext.woff2 +0 -0
- package/fonts/inter-cyrillic.woff2 +0 -0
- package/fonts/inter-greek-ext.woff2 +0 -0
- package/fonts/inter-greek.woff2 +0 -0
- package/fonts/inter-latin-ext.woff2 +0 -0
- package/fonts/inter-latin.woff2 +0 -0
- package/fonts/inter-vietnamese.woff2 +0 -0
- package/fonts/roboto-mono-cyrillic-ext.woff2 +0 -0
- package/fonts/roboto-mono-cyrillic.woff2 +0 -0
- package/fonts/roboto-mono-greek.woff2 +0 -0
- package/fonts/roboto-mono-latin-ext.woff2 +0 -0
- package/fonts/roboto-mono-latin.woff2 +0 -0
- package/fonts/roboto-mono-vietnamese.woff2 +0 -0
- package/forge-tokens.css +372 -0
- package/forge-tokens.json +185 -0
- package/forge.css +3726 -0
- package/package.json +33 -4
package/forge.css
ADDED
|
@@ -0,0 +1,3726 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
FORGE DESIGN SYSTEM — COMPLETE CSS
|
|
3
|
+
Calm SaaS UI (Linear × Stripe × Intercom × Notion)
|
|
4
|
+
============================================================ */
|
|
5
|
+
|
|
6
|
+
/* One important note on in oklch vs in srgb: use oklch for perceptually
|
|
7
|
+
uniform mixing (avoids the muddy gray you get when mixing complementary
|
|
8
|
+
colors in sRGB), but srgb for alpha/transparency blends since
|
|
9
|
+
color-mix(in oklch, blue 30%, transparent) can produce unexpected hue shifts.
|
|
10
|
+
color-mix(in srgb, #2589bf 30%, transparent) will produce a more intuitive result
|
|
11
|
+
when used for hover/active states.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
@layer forge-reset, forge-tokens, forge-theme, forge-base, forge-layout, forge-components, forge-utilities, forge-dx-hacks;
|
|
15
|
+
|
|
16
|
+
/* ============================================================
|
|
17
|
+
FONTS
|
|
18
|
+
Inter (--forge-font, variable 300–700) and Roboto Mono (--forge-font-mono, 400), split by script so a browser
|
|
19
|
+
downloads only the ranges a page uses. The files sit in fonts/ next to this file (both SIL Open Font License),
|
|
20
|
+
taken from sds-core, which declares the same faces while it is loaded.
|
|
21
|
+
============================================================ */
|
|
22
|
+
|
|
23
|
+
/* Inter: cyrillic-ext */
|
|
24
|
+
@font-face {
|
|
25
|
+
font-family: "Inter";
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-weight: 300 700;
|
|
28
|
+
font-display: swap;
|
|
29
|
+
src: url("fonts/inter-cyrillic-ext.woff2") format("woff2");
|
|
30
|
+
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Inter: cyrillic */
|
|
34
|
+
@font-face {
|
|
35
|
+
font-family: "Inter";
|
|
36
|
+
font-style: normal;
|
|
37
|
+
font-weight: 300 700;
|
|
38
|
+
font-display: swap;
|
|
39
|
+
src: url("fonts/inter-cyrillic.woff2") format("woff2");
|
|
40
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Inter: greek-ext */
|
|
44
|
+
@font-face {
|
|
45
|
+
font-family: "Inter";
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-weight: 300 700;
|
|
48
|
+
font-display: swap;
|
|
49
|
+
src: url("fonts/inter-greek-ext.woff2") format("woff2");
|
|
50
|
+
unicode-range: U+1F00-1FFF;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Inter: greek */
|
|
54
|
+
@font-face {
|
|
55
|
+
font-family: "Inter";
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: 300 700;
|
|
58
|
+
font-display: swap;
|
|
59
|
+
src: url("fonts/inter-greek.woff2") format("woff2");
|
|
60
|
+
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Inter: vietnamese */
|
|
64
|
+
@font-face {
|
|
65
|
+
font-family: "Inter";
|
|
66
|
+
font-style: normal;
|
|
67
|
+
font-weight: 300 700;
|
|
68
|
+
font-display: swap;
|
|
69
|
+
src: url("fonts/inter-vietnamese.woff2") format("woff2");
|
|
70
|
+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Inter: latin-ext (č, š, ž, …) */
|
|
74
|
+
@font-face {
|
|
75
|
+
font-family: "Inter";
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-weight: 300 700;
|
|
78
|
+
font-display: swap;
|
|
79
|
+
src: url("fonts/inter-latin-ext.woff2") format("woff2");
|
|
80
|
+
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Inter: latin */
|
|
84
|
+
@font-face {
|
|
85
|
+
font-family: "Inter";
|
|
86
|
+
font-style: normal;
|
|
87
|
+
font-weight: 300 700;
|
|
88
|
+
font-display: swap;
|
|
89
|
+
src: url("fonts/inter-latin.woff2") format("woff2");
|
|
90
|
+
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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Roboto Mono: cyrillic-ext */
|
|
94
|
+
@font-face {
|
|
95
|
+
font-family: "Roboto Mono";
|
|
96
|
+
font-style: normal;
|
|
97
|
+
font-weight: 400;
|
|
98
|
+
font-display: swap;
|
|
99
|
+
src: url("fonts/roboto-mono-cyrillic-ext.woff2") format("woff2");
|
|
100
|
+
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Roboto Mono: cyrillic */
|
|
104
|
+
@font-face {
|
|
105
|
+
font-family: "Roboto Mono";
|
|
106
|
+
font-style: normal;
|
|
107
|
+
font-weight: 400;
|
|
108
|
+
font-display: swap;
|
|
109
|
+
src: url("fonts/roboto-mono-cyrillic.woff2") format("woff2");
|
|
110
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Roboto Mono: greek */
|
|
114
|
+
@font-face {
|
|
115
|
+
font-family: "Roboto Mono";
|
|
116
|
+
font-style: normal;
|
|
117
|
+
font-weight: 400;
|
|
118
|
+
font-display: swap;
|
|
119
|
+
src: url("fonts/roboto-mono-greek.woff2") format("woff2");
|
|
120
|
+
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Roboto Mono: vietnamese */
|
|
124
|
+
@font-face {
|
|
125
|
+
font-family: "Roboto Mono";
|
|
126
|
+
font-style: normal;
|
|
127
|
+
font-weight: 400;
|
|
128
|
+
font-display: swap;
|
|
129
|
+
src: url("fonts/roboto-mono-vietnamese.woff2") format("woff2");
|
|
130
|
+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Roboto Mono: latin-ext */
|
|
134
|
+
@font-face {
|
|
135
|
+
font-family: "Roboto Mono";
|
|
136
|
+
font-style: normal;
|
|
137
|
+
font-weight: 400;
|
|
138
|
+
font-display: swap;
|
|
139
|
+
src: url("fonts/roboto-mono-latin-ext.woff2") format("woff2");
|
|
140
|
+
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Roboto Mono: latin */
|
|
144
|
+
@font-face {
|
|
145
|
+
font-family: "Roboto Mono";
|
|
146
|
+
font-style: normal;
|
|
147
|
+
font-weight: 400;
|
|
148
|
+
font-display: swap;
|
|
149
|
+
src: url("fonts/roboto-mono-latin.woff2") format("woff2");
|
|
150
|
+
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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* ============================================================
|
|
154
|
+
RESET LAYER
|
|
155
|
+
Rules:
|
|
156
|
+
- Normalize browser behavior
|
|
157
|
+
- Preserve semantics
|
|
158
|
+
- Everything an app needs from Bootstrap's reboot and sds-core's reboot, so neither has to be loaded. While
|
|
159
|
+
they are, their unlayered rules win and set the same values.
|
|
160
|
+
- Structure only (margins, lists, tables, form controls). Typography and color belong to forge-base; values
|
|
161
|
+
here come from tokens, never a fixed color.
|
|
162
|
+
============================================================ */
|
|
163
|
+
|
|
164
|
+
@layer forge-reset {
|
|
165
|
+
/* -------------------- DOCUMENT -------------------- */
|
|
166
|
+
*,
|
|
167
|
+
*::before,
|
|
168
|
+
*::after {
|
|
169
|
+
box-sizing: border-box;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
html {
|
|
173
|
+
-webkit-text-size-adjust: 100%;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
177
|
+
:root {
|
|
178
|
+
scroll-behavior: smooth;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
body {
|
|
183
|
+
margin: 0;
|
|
184
|
+
-webkit-tap-highlight-color: transparent;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* -------------------- TEXT -------------------- */
|
|
188
|
+
/* No top margins (no margin collapsing to think about), a bottom margin for running text. Components that lay
|
|
189
|
+
out their own text set margin: 0 */
|
|
190
|
+
h1,
|
|
191
|
+
h2,
|
|
192
|
+
h3,
|
|
193
|
+
h4,
|
|
194
|
+
h5,
|
|
195
|
+
h6 {
|
|
196
|
+
margin-top: 0;
|
|
197
|
+
margin-bottom: 0.5rem;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
p {
|
|
201
|
+
margin-top: 0;
|
|
202
|
+
margin-bottom: 1rem;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
address {
|
|
206
|
+
margin-bottom: 1rem;
|
|
207
|
+
font-style: normal;
|
|
208
|
+
line-height: inherit;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
blockquote,
|
|
212
|
+
figure {
|
|
213
|
+
margin: 0 0 1rem;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
b,
|
|
217
|
+
strong {
|
|
218
|
+
font-weight: bolder;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
abbr[title] {
|
|
222
|
+
text-decoration: underline dotted;
|
|
223
|
+
text-decoration-skip-ink: none;
|
|
224
|
+
cursor: help;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
mark {
|
|
228
|
+
padding: 0.1875em;
|
|
229
|
+
background-color: var(--forge-highlight-bg, color-mix(in oklab, var(--forge-brand) 28%, var(--forge-surface-container-lowest)));
|
|
230
|
+
color: inherit;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Don't change the line height of the line they sit on */
|
|
234
|
+
sub,
|
|
235
|
+
sup {
|
|
236
|
+
position: relative;
|
|
237
|
+
font-size: 0.75em;
|
|
238
|
+
line-height: 0;
|
|
239
|
+
vertical-align: baseline;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
sub {
|
|
243
|
+
bottom: -0.25em;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
sup {
|
|
247
|
+
top: -0.5em;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
hr {
|
|
251
|
+
margin: 1rem 0;
|
|
252
|
+
border: 0;
|
|
253
|
+
border-top: 1px solid var(--forge-border);
|
|
254
|
+
color: inherit;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* -------------------- LISTS -------------------- */
|
|
258
|
+
ol,
|
|
259
|
+
ul {
|
|
260
|
+
padding-inline-start: 2rem;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
ol,
|
|
264
|
+
ul,
|
|
265
|
+
dl {
|
|
266
|
+
margin-top: 0;
|
|
267
|
+
margin-bottom: 1rem;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
:is(ol, ul) :is(ol, ul) {
|
|
271
|
+
margin-bottom: 0;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
dt {
|
|
275
|
+
font-weight: var(--forge-font-weight-bold);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
dd {
|
|
279
|
+
margin-bottom: 0.5rem;
|
|
280
|
+
margin-inline-start: 0;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* -------------------- LINKS -------------------- */
|
|
284
|
+
a {
|
|
285
|
+
color: var(--forge-primary);
|
|
286
|
+
text-decoration: none;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
a:hover {
|
|
290
|
+
text-decoration: underline;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* Placeholder links and named anchors (no href) are plain text */
|
|
294
|
+
a:not([href]):not([class]),
|
|
295
|
+
a:not([href]):not([class]):hover {
|
|
296
|
+
color: inherit;
|
|
297
|
+
text-decoration: none;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* -------------------- CODE -------------------- */
|
|
301
|
+
pre,
|
|
302
|
+
code,
|
|
303
|
+
kbd,
|
|
304
|
+
samp {
|
|
305
|
+
font-family: var(--forge-font-mono);
|
|
306
|
+
font-size: 1em;
|
|
307
|
+
letter-spacing: normal; /* not the body's tighter spacing, drawn for Inter */
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
pre {
|
|
311
|
+
display: block;
|
|
312
|
+
margin-top: 0;
|
|
313
|
+
margin-bottom: 1rem;
|
|
314
|
+
overflow: auto;
|
|
315
|
+
font-size: 0.875em;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
pre code {
|
|
319
|
+
font-size: inherit;
|
|
320
|
+
color: inherit;
|
|
321
|
+
word-break: normal;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
code {
|
|
325
|
+
font-size: 0.875em;
|
|
326
|
+
overflow-wrap: break-word;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
kbd {
|
|
330
|
+
padding: 0.1875rem 0.375rem;
|
|
331
|
+
border-radius: var(--forge-radius-sm);
|
|
332
|
+
background-color: var(--forge-text-primary);
|
|
333
|
+
color: var(--forge-surface);
|
|
334
|
+
font-size: 0.875em;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
kbd kbd {
|
|
338
|
+
padding: 0;
|
|
339
|
+
font-size: 1em;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* -------------------- MEDIA -------------------- */
|
|
343
|
+
img,
|
|
344
|
+
picture,
|
|
345
|
+
video,
|
|
346
|
+
canvas,
|
|
347
|
+
svg {
|
|
348
|
+
display: block;
|
|
349
|
+
max-width: 100%;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/* For an image a class makes inline again */
|
|
353
|
+
img,
|
|
354
|
+
svg {
|
|
355
|
+
vertical-align: middle;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
iframe {
|
|
359
|
+
border: 0;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* -------------------- TABLES -------------------- */
|
|
363
|
+
table {
|
|
364
|
+
caption-side: bottom;
|
|
365
|
+
border-collapse: collapse;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
caption {
|
|
369
|
+
padding-block: 0.5rem;
|
|
370
|
+
color: var(--forge-text-secondary);
|
|
371
|
+
text-align: start;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
th {
|
|
375
|
+
text-align: inherit;
|
|
376
|
+
text-align: -webkit-match-parent;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
thead,
|
|
380
|
+
tbody,
|
|
381
|
+
tfoot,
|
|
382
|
+
tr,
|
|
383
|
+
td,
|
|
384
|
+
th {
|
|
385
|
+
border-color: inherit;
|
|
386
|
+
border-style: solid;
|
|
387
|
+
border-width: 0;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/* -------------------- FORMS -------------------- */
|
|
391
|
+
/* Labels take a margin */
|
|
392
|
+
label {
|
|
393
|
+
display: inline-block;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
input,
|
|
397
|
+
button,
|
|
398
|
+
select,
|
|
399
|
+
optgroup,
|
|
400
|
+
textarea {
|
|
401
|
+
margin: 0;
|
|
402
|
+
font: inherit;
|
|
403
|
+
color: inherit;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
button,
|
|
407
|
+
input,
|
|
408
|
+
select,
|
|
409
|
+
textarea {
|
|
410
|
+
border: none;
|
|
411
|
+
border-radius: 0;
|
|
412
|
+
background: none;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
button,
|
|
416
|
+
select {
|
|
417
|
+
text-transform: none;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
button,
|
|
421
|
+
[type="button"],
|
|
422
|
+
[type="reset"],
|
|
423
|
+
[type="submit"] {
|
|
424
|
+
-webkit-appearance: button;
|
|
425
|
+
appearance: button;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
:is(button, [type="button"], [type="reset"], [type="submit"]):not(:disabled),
|
|
429
|
+
[role="button"] {
|
|
430
|
+
cursor: pointer;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
:focus:not(:focus-visible) {
|
|
434
|
+
outline: none;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
::-moz-focus-inner {
|
|
438
|
+
padding: 0;
|
|
439
|
+
border-style: none;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
select {
|
|
443
|
+
word-wrap: normal;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
select:disabled {
|
|
447
|
+
opacity: 1;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
textarea {
|
|
451
|
+
resize: vertical;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
fieldset {
|
|
455
|
+
min-width: 0;
|
|
456
|
+
margin: 0;
|
|
457
|
+
padding: 0;
|
|
458
|
+
border: 0;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
legend {
|
|
462
|
+
float: inline-start;
|
|
463
|
+
width: 100%;
|
|
464
|
+
margin-bottom: 0.5rem;
|
|
465
|
+
padding: 0;
|
|
466
|
+
line-height: inherit;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
legend + * {
|
|
470
|
+
clear: inline-start;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/* Phone numbers, addresses and numbers read left to right in a right-to-left page too */
|
|
474
|
+
[type="tel"],
|
|
475
|
+
[type="url"],
|
|
476
|
+
[type="email"],
|
|
477
|
+
[type="number"] {
|
|
478
|
+
direction: ltr;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
[type="search"] {
|
|
482
|
+
-webkit-appearance: textfield;
|
|
483
|
+
appearance: textfield;
|
|
484
|
+
outline-offset: -2px;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
::-webkit-search-decoration {
|
|
488
|
+
-webkit-appearance: none;
|
|
489
|
+
appearance: none;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
::-webkit-search-cancel-button {
|
|
493
|
+
cursor: pointer;
|
|
494
|
+
filter: grayscale(1);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/* Text inputs with a datalist: no dropdown arrow in Chrome */
|
|
498
|
+
[list]:not([type="date"], [type="datetime-local"], [type="month"], [type="week"], [type="time"])::-webkit-calendar-picker-indicator {
|
|
499
|
+
display: none;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
::-webkit-datetime-edit-fields-wrapper,
|
|
503
|
+
::-webkit-datetime-edit-text,
|
|
504
|
+
::-webkit-datetime-edit-minute,
|
|
505
|
+
::-webkit-datetime-edit-hour-field,
|
|
506
|
+
::-webkit-datetime-edit-day-field,
|
|
507
|
+
::-webkit-datetime-edit-month-field,
|
|
508
|
+
::-webkit-datetime-edit-year-field {
|
|
509
|
+
padding: 0;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
::-webkit-inner-spin-button {
|
|
513
|
+
height: auto;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
::-webkit-color-swatch-wrapper {
|
|
517
|
+
padding: 0;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
::file-selector-button {
|
|
521
|
+
font: inherit;
|
|
522
|
+
-webkit-appearance: button;
|
|
523
|
+
appearance: button;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
output {
|
|
527
|
+
display: inline-block;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/* -------------------- INTERACTIVE -------------------- */
|
|
531
|
+
summary {
|
|
532
|
+
display: list-item;
|
|
533
|
+
cursor: pointer;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
progress {
|
|
537
|
+
vertical-align: baseline;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/* The hidden attribute always hides, whatever display a class sets. Kept !important on purpose */
|
|
541
|
+
[hidden] {
|
|
542
|
+
display: none !important;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/* ============================================================
|
|
547
|
+
TOKENS LAYER
|
|
548
|
+
Rules:
|
|
549
|
+
- Variables only
|
|
550
|
+
- No styling
|
|
551
|
+
============================================================ */
|
|
552
|
+
|
|
553
|
+
@layer forge-tokens {
|
|
554
|
+
:root {
|
|
555
|
+
/* -------------------- COLOR SEEDS -------------------- */
|
|
556
|
+
--forge-hue: 80;
|
|
557
|
+
--forge-chroma: 0.002;
|
|
558
|
+
/* The primary's blue: the portal blue (#3B8FC2) darkened to pass 4.5:1. Internal, not an app setting: the
|
|
559
|
+
primary's lightness only passes at this hue and chroma. A product's own color is --forge-brand-hue */
|
|
560
|
+
--forge-primary-hue: 239;
|
|
561
|
+
--forge-primary-chroma: 0.112;
|
|
562
|
+
--forge-brand-hue: 238;
|
|
563
|
+
|
|
564
|
+
/* -------------------- SURFACES (TONE-BASED) -------------------- */
|
|
565
|
+
/* As Material 3: the page ground and a 5-step container scale; components pick a step by use, the same step
|
|
566
|
+
in both themes, and the scale flips (lowest is the lightest tone in light, the darkest in dark).
|
|
567
|
+
- surface: the page, the modal
|
|
568
|
+
- container-lowest: cards, fields, lists, chips
|
|
569
|
+
- container-low: panels, the pane
|
|
570
|
+
- container: insets, disabled fields, secondary buttons
|
|
571
|
+
- container-high / -highest: the skeleton and the secondary button's fills (ink text) only, the primary as
|
|
572
|
+
text drops below 4.5:1 there in light
|
|
573
|
+
- bright: anything floating (popups, menus, dropdowns, drawers, DevExtreme popups). As Material 3's
|
|
574
|
+
surface-bright it doesn't flip: light in light, lighter than the page and the cards in dark. White in light
|
|
575
|
+
(Material 3 uses the page tone) so a dropdown matches the card it opens from */
|
|
576
|
+
--forge-surface: oklch(0.975 var(--forge-chroma) var(--forge-hue));
|
|
577
|
+
--forge-surface-container-lowest: oklch(0.999 var(--forge-chroma) var(--forge-hue));
|
|
578
|
+
--forge-surface-container-low: oklch(0.965 var(--forge-chroma) var(--forge-hue));
|
|
579
|
+
--forge-surface-container: oklch(0.95 var(--forge-chroma) var(--forge-hue));
|
|
580
|
+
--forge-surface-container-high: oklch(0.932 var(--forge-chroma) var(--forge-hue));
|
|
581
|
+
--forge-surface-container-highest: oklch(0.915 var(--forge-chroma) var(--forge-hue));
|
|
582
|
+
--forge-surface-bright: oklch(0.999 var(--forge-chroma) var(--forge-hue));
|
|
583
|
+
|
|
584
|
+
/* -------------------- TEXT -------------------- */
|
|
585
|
+
--forge-text-primary: oklch(0.2 var(--forge-chroma) var(--forge-hue));
|
|
586
|
+
--forge-text-secondary: oklch(0.475 var(--forge-chroma) var(--forge-hue));
|
|
587
|
+
--forge-text-tertiary: oklch(0.595 var(--forge-chroma) var(--forge-hue));
|
|
588
|
+
|
|
589
|
+
/* -------------------- BORDERS & RADII -------------------- */
|
|
590
|
+
--forge-border: oklch(0.9 var(--forge-chroma) var(--forge-hue));
|
|
591
|
+
/* The outline of form fields: a step more solid than a divider */
|
|
592
|
+
--forge-border-strong: oklch(0.84 var(--forge-chroma) var(--forge-hue));
|
|
593
|
+
/* A scrollbar thumb: light at rest, darker while the pointer is over its scrolling area (both themes follow,
|
|
594
|
+
the dark theme redefines the tokens these point at) */
|
|
595
|
+
--forge-scrollbar-thumb: var(--forge-border-strong);
|
|
596
|
+
--forge-scrollbar-thumb-hover: var(--forge-text-tertiary);
|
|
597
|
+
--forge-radius-sm: 4px;
|
|
598
|
+
--forge-radius-md: 8px;
|
|
599
|
+
--forge-radius-lg: 12px;
|
|
600
|
+
--forge-radius-xl: 16px;
|
|
601
|
+
--forge-radius-full: 9999px;
|
|
602
|
+
|
|
603
|
+
/* -------------------- SHADOWS -------------------- */
|
|
604
|
+
--forge-shadow-rest:
|
|
605
|
+
0 1px 2px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.04),
|
|
606
|
+
0 0 0 1px oklch(0.9 var(--forge-chroma) var(--forge-hue));
|
|
607
|
+
|
|
608
|
+
/* No ring: the edge of a panel on the surface, softer than a card's border */
|
|
609
|
+
--forge-shadow-soft:
|
|
610
|
+
0 1px 3px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.06),
|
|
611
|
+
0 1px 2px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.04);
|
|
612
|
+
|
|
613
|
+
--forge-shadow-hover:
|
|
614
|
+
0 4px 8px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.08),
|
|
615
|
+
0 0 0 1px oklch(0.88 var(--forge-chroma) var(--forge-hue));
|
|
616
|
+
|
|
617
|
+
/* Floating surfaces (menus, popovers, the drawer, the navigation callout): the edge is a 1px border of
|
|
618
|
+
--forge-border-overlay, snapped to device pixels so it stays sharp at 125% / 150% display scales (a 1px
|
|
619
|
+
spread ring in the shadow isn't snapped and smears over two device pixels). The shadow only lifts */
|
|
620
|
+
--forge-border-overlay: oklch(0.85 var(--forge-chroma) var(--forge-hue));
|
|
621
|
+
--forge-shadow-overlay: 0 12px 24px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.12);
|
|
622
|
+
|
|
623
|
+
/* A modal sits on a scrim. Its edge is one hairline border (snapped to device pixels, so sharp at any display
|
|
624
|
+
scale; a 1px spread ring next to it smears into a halo), dark and translucent so it reads on the surface and
|
|
625
|
+
on the scrim alike. Its shadow only lifts it: deeper than an overlay's, it's a large surface */
|
|
626
|
+
--forge-border-modal: oklch(0 0 0 / 0.1);
|
|
627
|
+
--forge-shadow-modal: 0 24px 48px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.16);
|
|
628
|
+
|
|
629
|
+
/* -------------------- TYPOGRAPHY -------------------- */
|
|
630
|
+
--forge-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
|
|
631
|
+
/* Code, keys, tabular IDs. Roboto Mono's @font-face rules are under FONTS at the top */
|
|
632
|
+
--forge-font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
633
|
+
--forge-font-weight-medium: 500;
|
|
634
|
+
--forge-font-weight-bold: 600;
|
|
635
|
+
--forge-letter-spacing-tight: -0.02em;
|
|
636
|
+
/* UI text (the body, 14px): a little tighter than Inter's own spacing, and 22.4px lines at 14px, as on
|
|
637
|
+
angular.dev. Code keeps the mono font's own spacing */
|
|
638
|
+
--forge-letter-spacing-body: -0.01em;
|
|
639
|
+
/* Uppercase labels: capitals set tight read squashed, so they get room */
|
|
640
|
+
--forge-letter-spacing-caps: 0.03em;
|
|
641
|
+
--forge-line-height-body: 1.6;
|
|
642
|
+
|
|
643
|
+
--forge-size-2xs: 0.6875rem; /* 11px at a 16px root */
|
|
644
|
+
--forge-size-xs: 0.75rem; /* 12px at a 16px root */
|
|
645
|
+
--forge-size-sm: 0.875rem; /* 14px at a 16px root */
|
|
646
|
+
--forge-size-base: 1rem; /* 16px at a 16px root */
|
|
647
|
+
|
|
648
|
+
/* Heading sizes, 4px apart; the default size of h1-h6, and of any element with .forge-heading-xl ... -xs */
|
|
649
|
+
--forge-h1: 1.75rem; /* 28px at a 16px root, .forge-heading-xl */
|
|
650
|
+
--forge-h2: 1.5rem; /* 24px, .forge-heading-lg */
|
|
651
|
+
--forge-h3: 1.25rem; /* 20px, .forge-heading-md */
|
|
652
|
+
--forge-h4: 1rem; /* 16px, .forge-heading-sm */
|
|
653
|
+
--forge-h5: 0.875rem; /* 14px (body size, bold), .forge-heading-xs; also h6 */
|
|
654
|
+
/* The heading's size plus 6px, rounded up to the 4px grid: 28/36, 24/32, 20/28, 16/24, 14/20. The em resolves on
|
|
655
|
+
each heading, so a size override (a class, --forge-heading-size) gets its own line height. Set it on a heading
|
|
656
|
+
to override it (a display title). Without CSS round(), 1.25 (end of this layer) */
|
|
657
|
+
--forge-heading-line-height: round(up, 1em + 0.375rem, 0.25rem);
|
|
658
|
+
/* Table cells and dense lists */
|
|
659
|
+
--forge-line-height-snug: 1.35;
|
|
660
|
+
|
|
661
|
+
/* -------------------- CONTENT TYPOGRAPHY -------------------- */
|
|
662
|
+
--forge-content-base: 1rem;
|
|
663
|
+
--forge-content-line-height: 1.6;
|
|
664
|
+
|
|
665
|
+
/* -------------------- SPACING -------------------- */
|
|
666
|
+
--forge-space-1: 0.25rem;
|
|
667
|
+
--forge-space-2: 0.5rem;
|
|
668
|
+
--forge-space-3: 0.75rem;
|
|
669
|
+
--forge-space-4: 1rem;
|
|
670
|
+
--forge-space-5: 1.5rem;
|
|
671
|
+
--forge-space-6: 2rem;
|
|
672
|
+
|
|
673
|
+
/* -------------------- PRIMARY -------------------- */
|
|
674
|
+
/* The system's own color, a blue. Fills with text (primary button, selected day, primary badge), focus rings,
|
|
675
|
+
focus borders, the outline-primary segment's border and text. The same in every product. White on it 5.4:1,
|
|
676
|
+
as text on the surface 5:1.
|
|
677
|
+
Hover and active lower the chroma to stay in the sRGB gamut */
|
|
678
|
+
--forge-primary: oklch(0.52 var(--forge-primary-chroma) var(--forge-primary-hue));
|
|
679
|
+
--forge-primary-hover: oklch(0.47 0.106 var(--forge-primary-hue));
|
|
680
|
+
--forge-primary-active: oklch(0.43 0.097 var(--forge-primary-hue));
|
|
681
|
+
/* Text and icons on a --forge-primary background */
|
|
682
|
+
--forge-text-on-primary: oklch(0.995 var(--forge-chroma) var(--forge-hue));
|
|
683
|
+
|
|
684
|
+
/* -------------------- INTENT COLORS -------------------- */
|
|
685
|
+
/* The product's color, on --forge-brand-hue: only where the product shows itself (navigation, the pane, filters,
|
|
686
|
+
tabs), as a tint or mixed into the text color. Not behind text: white on it is 3.9:1 */
|
|
687
|
+
--forge-brand: oklch(0.6 0.12 var(--forge-brand-hue));
|
|
688
|
+
/* Text and icons on a --forge-brand background; the same in dark mode */
|
|
689
|
+
--forge-text-on-brand: oklch(1 0 0);
|
|
690
|
+
/* Brand as text on the page or side bar background (the current page in navigation): at least 4.5:1 on every
|
|
691
|
+
surface up to surface-container-high, also under the hover layer */
|
|
692
|
+
--forge-brand-text: oklch(0.45 0.13 var(--forge-brand-hue));
|
|
693
|
+
--forge-danger: oklch(0.66 0.15 31.05);
|
|
694
|
+
--forge-success: oklch(0.65 0.14 145);
|
|
695
|
+
/* Cyan, so it stays apart from the blue primary and brand */
|
|
696
|
+
--forge-info: oklch(0.6 0.11 215);
|
|
697
|
+
--forge-warning: oklch(0.85 0.16 81.95);
|
|
698
|
+
|
|
699
|
+
/* -------------------- INTERACTION COLORS -------------------- */
|
|
700
|
+
/* State layers, as Material 3: the text color laid over whatever is underneath, so hover and press show on
|
|
701
|
+
every surface in both themes. Translucent: an element with its own background stacks the layer on it,
|
|
702
|
+
background: linear-gradient(var(--forge-hover-bg) 0 0), <its background>. Dark mode doesn't redefine them,
|
|
703
|
+
they follow --forge-text-primary */
|
|
704
|
+
--forge-state-hover-opacity: 8%;
|
|
705
|
+
--forge-state-pressed-opacity: 12%;
|
|
706
|
+
--forge-hover-bg: color-mix(in srgb, var(--forge-text-primary) var(--forge-state-hover-opacity), transparent);
|
|
707
|
+
--forge-active-bg: color-mix(in srgb, var(--forge-text-primary) var(--forge-state-pressed-opacity), transparent);
|
|
708
|
+
|
|
709
|
+
/* Selected: a brand tint for the current or chosen item (a pressed filter chip, an active filter pill, the
|
|
710
|
+
side bar's current page). Opaque, the brand mixed into surface-container-lowest, so the item has exactly
|
|
711
|
+
the same color on any surface. The text is the brand mixed toward text-primary, at least 4.5:1 on the tint
|
|
712
|
+
in both themes. Dark mode doesn't redefine them, they follow --forge-brand, --forge-text-primary and
|
|
713
|
+
--forge-surface-container-lowest */
|
|
714
|
+
--forge-selected-tint: 16%;
|
|
715
|
+
--forge-selected-tint-hover: 24%;
|
|
716
|
+
--forge-selected-bg: color-mix(in oklab, var(--forge-brand) var(--forge-selected-tint), var(--forge-surface-container-lowest));
|
|
717
|
+
--forge-selected-bg-hover: color-mix(in oklab, var(--forge-brand) var(--forge-selected-tint-hover), var(--forge-surface-container-lowest));
|
|
718
|
+
/* 70%: at 75% the text fell to 4.4:1 on the hovered tint over white */
|
|
719
|
+
--forge-selected-text: color-mix(in oklab, var(--forge-brand) 70%, var(--forge-text-primary));
|
|
720
|
+
|
|
721
|
+
--forge-brand-hover: oklch(0.56 0.13 var(--forge-brand-hue));
|
|
722
|
+
--forge-brand-active: oklch(0.52 0.14 var(--forge-brand-hue));
|
|
723
|
+
|
|
724
|
+
--forge-danger-hover: oklch(0.62 0.16 31.05);
|
|
725
|
+
--forge-danger-active: oklch(0.58 0.17 31.05);
|
|
726
|
+
|
|
727
|
+
/* The primary ink: at least 3:1 against every background, also the active one (WCAG 1.4.11). -strong is kept for
|
|
728
|
+
rings drawn inside an element; both are the same now */
|
|
729
|
+
--forge-focus-ring: var(--forge-primary);
|
|
730
|
+
--forge-focus-ring-strong: var(--forge-primary);
|
|
731
|
+
|
|
732
|
+
/* -------------------- MOTION -------------------- */
|
|
733
|
+
--forge-motion-fast: 120ms;
|
|
734
|
+
--forge-motion-base: 180ms;
|
|
735
|
+
--forge-motion-slow: 240ms;
|
|
736
|
+
|
|
737
|
+
--forge-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
738
|
+
--forge-ease-linear: linear;
|
|
739
|
+
|
|
740
|
+
--forge-motion-distance-sm: 4px;
|
|
741
|
+
--forge-motion-distance-md: 8px;
|
|
742
|
+
|
|
743
|
+
/* -------------------- STATES -------------------- */
|
|
744
|
+
--forge-opacity-disabled: 0.5;
|
|
745
|
+
|
|
746
|
+
/* -------------------- LAYERS -------------------- */
|
|
747
|
+
/* z-index inside the page. Overlay is the CDK overlay container's own value (not set by Forge); native
|
|
748
|
+
dialogs sit in the top layer above all of them */
|
|
749
|
+
--forge-z-raised: 1;
|
|
750
|
+
--forge-z-sticky: 10;
|
|
751
|
+
--forge-z-overlay: 1000;
|
|
752
|
+
--forge-z-drawer: 1040;
|
|
753
|
+
|
|
754
|
+
/* -------------------- SIZES -------------------- */
|
|
755
|
+
/* Heights of buttons and single-line fields, so they line up in a row (DS 2.0); icon buttons and icons take
|
|
756
|
+
theirs when they are reworked */
|
|
757
|
+
--forge-control-height-md: 2.25rem; /* 36px */
|
|
758
|
+
--forge-control-height-sm: 1.75rem; /* 28px */
|
|
759
|
+
--forge-icon-button-md: 1.75rem; /* 28px */
|
|
760
|
+
--forge-icon-button-sm: 1.375rem; /* 22px */
|
|
761
|
+
--forge-icon-sm: 0.875rem; /* 14px */
|
|
762
|
+
--forge-icon-md: 1rem; /* 16px */
|
|
763
|
+
--forge-icon-lg: 1.25rem; /* 20px */
|
|
764
|
+
|
|
765
|
+
/* -------------------- SKELETON TOKENS -------------------- */
|
|
766
|
+
--forge-skeleton-bg: var(--forge-surface-container-highest);
|
|
767
|
+
--forge-skeleton-fg: var(--forge-surface-container-high);
|
|
768
|
+
--forge-skeleton-radius: var(--forge-radius-sm);
|
|
769
|
+
--forge-skeleton-shimmer-duration: 1.2s;
|
|
770
|
+
|
|
771
|
+
/* -------------------- AVATAR TOKENS -------------------- */
|
|
772
|
+
/* Lightness and chroma of an avatar's identity color; the hue comes from the person (--forge-avatar-hue) */
|
|
773
|
+
--forge-avatar-bg-lightness: 0.96;
|
|
774
|
+
--forge-avatar-bg-chroma: 0.02;
|
|
775
|
+
--forge-avatar-fg-lightness: 0.55;
|
|
776
|
+
--forge-avatar-fg-chroma: 0.15;
|
|
777
|
+
|
|
778
|
+
/* -------------------- CATEGORY TOKENS -------------------- */
|
|
779
|
+
/* Categorical marks (tags, tag groups): eight bg / text pairs from the avatar's formula, blue first. Text
|
|
780
|
+
passes 4.5:1 on its bg in both themes; hues 239, 183.4, 210.8 and 130.5 use text lightness 0.53, and some
|
|
781
|
+
chroma is lowered to stay in the sRGB gamut. The avatar keeps its own ten hues */
|
|
782
|
+
--forge-cat-1-bg: oklch(0.96 0.02 239);
|
|
783
|
+
--forge-cat-1-text: oklch(0.53 0.115 239);
|
|
784
|
+
--forge-cat-2-bg: oklch(0.96 0.02 321.2);
|
|
785
|
+
--forge-cat-2-text: oklch(0.55 0.15 321.2);
|
|
786
|
+
--forge-cat-3-bg: oklch(0.96 0.02 294.8);
|
|
787
|
+
--forge-cat-3-text: oklch(0.55 0.15 294.8);
|
|
788
|
+
--forge-cat-4-bg: oklch(0.96 0.015 28.8);
|
|
789
|
+
--forge-cat-4-text: oklch(0.55 0.15 28.8);
|
|
790
|
+
--forge-cat-5-bg: oklch(0.96 0.02 183.4);
|
|
791
|
+
--forge-cat-5-text: oklch(0.53 0.09 183.4);
|
|
792
|
+
--forge-cat-6-bg: oklch(0.96 0.02 210.8);
|
|
793
|
+
--forge-cat-6-text: oklch(0.53 0.09 210.8);
|
|
794
|
+
--forge-cat-7-bg: oklch(0.96 0.02 130.5);
|
|
795
|
+
--forge-cat-7-text: oklch(0.53 0.14 130.5);
|
|
796
|
+
--forge-cat-8-bg: oklch(0.96 0.02 9.6);
|
|
797
|
+
--forge-cat-8-text: oklch(0.55 0.15 9.6);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
@supports not (line-height: round(up, 1em, 1px)) {
|
|
801
|
+
:root {
|
|
802
|
+
--forge-heading-line-height: 1.25;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
/* ============================================================
|
|
808
|
+
DARK MODE (TOKEN OVERRIDES ONLY)
|
|
809
|
+
============================================================ */
|
|
810
|
+
|
|
811
|
+
@layer forge-theme {
|
|
812
|
+
/* ---- Dark mode ---- */
|
|
813
|
+
:root[data-theme="dark"] {
|
|
814
|
+
color-scheme: dark;
|
|
815
|
+
|
|
816
|
+
/* -------------------- SURFACES (TONE-BASED) -------------------- */
|
|
817
|
+
--forge-surface: oklch(0.16 var(--forge-chroma) var(--forge-hue));
|
|
818
|
+
--forge-surface-container-lowest: oklch(0.135 var(--forge-chroma) var(--forge-hue));
|
|
819
|
+
--forge-surface-container-low: oklch(0.18 var(--forge-chroma) var(--forge-hue));
|
|
820
|
+
--forge-surface-container: oklch(0.205 var(--forge-chroma) var(--forge-hue));
|
|
821
|
+
--forge-surface-container-high: oklch(0.24 var(--forge-chroma) var(--forge-hue));
|
|
822
|
+
--forge-surface-container-highest: oklch(0.28 var(--forge-chroma) var(--forge-hue));
|
|
823
|
+
--forge-surface-bright: oklch(0.24 var(--forge-chroma) var(--forge-hue));
|
|
824
|
+
|
|
825
|
+
--forge-text-primary: oklch(0.92 var(--forge-chroma) var(--forge-hue));
|
|
826
|
+
--forge-text-secondary: oklch(0.72 var(--forge-chroma) var(--forge-hue));
|
|
827
|
+
--forge-text-tertiary: oklch(0.635 var(--forge-chroma) var(--forge-hue));
|
|
828
|
+
|
|
829
|
+
--forge-border: oklch(0.3 var(--forge-chroma) var(--forge-hue));
|
|
830
|
+
--forge-border-strong: oklch(0.36 var(--forge-chroma) var(--forge-hue));
|
|
831
|
+
|
|
832
|
+
/* -------------------- SHADOWS -------------------- */
|
|
833
|
+
/* Rings lighter than the surface, drop shadows black and stronger to show on the dark surface */
|
|
834
|
+
--forge-shadow-rest:
|
|
835
|
+
0 1px 2px oklch(0 0 0 / 0.3),
|
|
836
|
+
0 0 0 1px oklch(0.3 var(--forge-chroma) var(--forge-hue));
|
|
837
|
+
|
|
838
|
+
/* Barely shows on the dark surface: the panel's edge there is the lighter container tone itself */
|
|
839
|
+
--forge-shadow-soft:
|
|
840
|
+
0 1px 3px oklch(0 0 0 / 0.3),
|
|
841
|
+
0 1px 2px oklch(0 0 0 / 0.2);
|
|
842
|
+
|
|
843
|
+
--forge-shadow-hover:
|
|
844
|
+
0 4px 8px oklch(0 0 0 / 0.4),
|
|
845
|
+
0 0 0 1px oklch(0.34 var(--forge-chroma) var(--forge-hue));
|
|
846
|
+
|
|
847
|
+
--forge-border-overlay: oklch(0.38 var(--forge-chroma) var(--forge-hue));
|
|
848
|
+
--forge-shadow-overlay: 0 12px 24px oklch(0 0 0 / 0.5);
|
|
849
|
+
|
|
850
|
+
--forge-border-modal: oklch(0.38 var(--forge-chroma) var(--forge-hue));
|
|
851
|
+
--forge-shadow-modal: 0 24px 48px oklch(0 0 0 / 0.6);
|
|
852
|
+
|
|
853
|
+
/* -------------------- SKELETON TOKENS -------------------- */
|
|
854
|
+
--forge-skeleton-bg: var(--forge-surface-container-high);
|
|
855
|
+
--forge-skeleton-fg: var(--forge-surface-container-highest);
|
|
856
|
+
|
|
857
|
+
/* -------------------- AVATAR TOKENS -------------------- */
|
|
858
|
+
--forge-avatar-bg-lightness: 0.32;
|
|
859
|
+
--forge-avatar-bg-chroma: 0.05;
|
|
860
|
+
--forge-avatar-fg-lightness: 0.85;
|
|
861
|
+
--forge-avatar-fg-chroma: 0.1;
|
|
862
|
+
|
|
863
|
+
/* -------------------- CATEGORY TOKENS -------------------- */
|
|
864
|
+
--forge-cat-1-bg: oklch(0.32 0.05 239);
|
|
865
|
+
--forge-cat-1-text: oklch(0.85 0.08 239);
|
|
866
|
+
--forge-cat-2-bg: oklch(0.32 0.05 321.2);
|
|
867
|
+
--forge-cat-2-text: oklch(0.85 0.1 321.2);
|
|
868
|
+
--forge-cat-3-bg: oklch(0.32 0.05 294.8);
|
|
869
|
+
--forge-cat-3-text: oklch(0.85 0.08 294.8);
|
|
870
|
+
--forge-cat-4-bg: oklch(0.32 0.05 28.8);
|
|
871
|
+
--forge-cat-4-text: oklch(0.85 0.08 28.8);
|
|
872
|
+
--forge-cat-5-bg: oklch(0.32 0.05 183.4);
|
|
873
|
+
--forge-cat-5-text: oklch(0.85 0.1 183.4);
|
|
874
|
+
--forge-cat-6-bg: oklch(0.32 0.05 210.8);
|
|
875
|
+
--forge-cat-6-text: oklch(0.85 0.1 210.8);
|
|
876
|
+
--forge-cat-7-bg: oklch(0.32 0.05 130.5);
|
|
877
|
+
--forge-cat-7-text: oklch(0.85 0.1 130.5);
|
|
878
|
+
--forge-cat-8-bg: oklch(0.32 0.05 9.6);
|
|
879
|
+
--forge-cat-8-text: oklch(0.85 0.08 9.6);
|
|
880
|
+
|
|
881
|
+
/* A lighter blue with dark text on it (7.4:1); hover and active get lighter still */
|
|
882
|
+
--forge-primary: oklch(0.72 var(--forge-primary-chroma) var(--forge-primary-hue));
|
|
883
|
+
--forge-primary-hover: oklch(0.77 var(--forge-primary-chroma) var(--forge-primary-hue));
|
|
884
|
+
--forge-primary-active: oklch(0.82 0.101 var(--forge-primary-hue));
|
|
885
|
+
--forge-text-on-primary: oklch(0.2 var(--forge-chroma) var(--forge-hue));
|
|
886
|
+
|
|
887
|
+
--forge-brand-hover: oklch(0.66 0.13 var(--forge-brand-hue));
|
|
888
|
+
--forge-brand-active: oklch(0.72 0.14 var(--forge-brand-hue));
|
|
889
|
+
--forge-brand-text: oklch(0.74 0.11 var(--forge-brand-hue));
|
|
890
|
+
|
|
891
|
+
--forge-danger-hover: oklch(0.71 0.16 31.05);
|
|
892
|
+
--forge-danger-active: oklch(0.76 0.17 31.05);
|
|
893
|
+
|
|
894
|
+
/* The secondary button's hover is a ghost button's hover on the page: -high in dark (-highest in light, the
|
|
895
|
+
fallback in the button's rule) */
|
|
896
|
+
--forge-button-secondary-bg-hover: var(--forge-surface-container-high);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
:root[data-theme="light"],
|
|
900
|
+
:root:not([data-theme]) {
|
|
901
|
+
color-scheme: light;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
/* ---- Density ---- */
|
|
905
|
+
[data-density="compact"] {
|
|
906
|
+
--forge-space-1: 0.125rem;
|
|
907
|
+
--forge-space-2: 0.375rem;
|
|
908
|
+
--forge-space-3: 0.5rem;
|
|
909
|
+
--forge-space-4: 0.75rem;
|
|
910
|
+
--forge-space-5: 1rem;
|
|
911
|
+
--forge-space-6: 1.5rem;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/* ============================================================
|
|
916
|
+
BASE LAYER
|
|
917
|
+
============================================================ */
|
|
918
|
+
|
|
919
|
+
@layer forge-base {
|
|
920
|
+
html {
|
|
921
|
+
font-family: var(--forge-font);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
body {
|
|
925
|
+
font-family: var(--forge-font) !important; /* bootstrap-override */
|
|
926
|
+
font-size: var(--forge-size-sm) !important; /* bootstrap-override */
|
|
927
|
+
color: var(--forge-text-primary) !important; /* bootstrap-override */
|
|
928
|
+
background-color: var(--forge-surface) !important; /* bootstrap-override */
|
|
929
|
+
line-height: var(--forge-line-height-body) !important; /* bootstrap-override */
|
|
930
|
+
letter-spacing: var(--forge-letter-spacing-body);
|
|
931
|
+
/* macOS only: grayscale antialiasing, thinner and crisper text (no effect on Windows / Linux) */
|
|
932
|
+
-webkit-font-smoothing: antialiased;
|
|
933
|
+
-moz-osx-font-smoothing: grayscale;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
/* The level is for the outline, the size for the look: a heading of any level takes another size with a
|
|
937
|
+
.forge-heading-* class, or a component sets --forge-heading-size and --forge-heading-weight on the heading (the
|
|
938
|
+
!important here would beat its font-size, even an !important one). Tight tracking only from 20px up. The line height
|
|
939
|
+
follows the size through --forge-heading-line-height, so a size override needs no line height of its own. */
|
|
940
|
+
h1,
|
|
941
|
+
h2,
|
|
942
|
+
h3,
|
|
943
|
+
h4,
|
|
944
|
+
h5,
|
|
945
|
+
h6 {
|
|
946
|
+
font-weight: var(--forge-heading-weight, var(--forge-font-weight-bold)) !important; /* bootstrap-override */
|
|
947
|
+
letter-spacing: var(--forge-heading-letter-spacing, var(--forge-letter-spacing-tight)) !important; /* bootstrap-override */
|
|
948
|
+
line-height: var(--forge-heading-line-height);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
h4,
|
|
952
|
+
h5,
|
|
953
|
+
h6 {
|
|
954
|
+
--forge-heading-letter-spacing: normal;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
h1 {
|
|
958
|
+
font-size: var(--forge-heading-size, var(--forge-h1)) !important; /* bootstrap-override */
|
|
959
|
+
}
|
|
960
|
+
h2 {
|
|
961
|
+
font-size: var(--forge-heading-size, var(--forge-h2)) !important; /* bootstrap-override */
|
|
962
|
+
}
|
|
963
|
+
h3 {
|
|
964
|
+
font-size: var(--forge-heading-size, var(--forge-h3)) !important; /* bootstrap-override */
|
|
965
|
+
}
|
|
966
|
+
h4 {
|
|
967
|
+
font-size: var(--forge-heading-size, var(--forge-h4)) !important; /* bootstrap-override */
|
|
968
|
+
}
|
|
969
|
+
h5,
|
|
970
|
+
h6 {
|
|
971
|
+
font-size: var(--forge-heading-size, var(--forge-h5)) !important; /* bootstrap-override */
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
/* Heading sizes for any element or heading level: <h2 class="forge-heading-sm">. On a heading they set the
|
|
975
|
+
custom property its rule reads; set them on the heading, not on a container (nested headings inherit it) */
|
|
976
|
+
.forge-heading-xl {
|
|
977
|
+
--forge-heading-size: var(--forge-h1);
|
|
978
|
+
}
|
|
979
|
+
.forge-heading-lg {
|
|
980
|
+
--forge-heading-size: var(--forge-h2);
|
|
981
|
+
}
|
|
982
|
+
.forge-heading-md {
|
|
983
|
+
--forge-heading-size: var(--forge-h3);
|
|
984
|
+
}
|
|
985
|
+
.forge-heading-sm {
|
|
986
|
+
--forge-heading-size: var(--forge-h4);
|
|
987
|
+
--forge-heading-letter-spacing: normal;
|
|
988
|
+
}
|
|
989
|
+
.forge-heading-xs {
|
|
990
|
+
--forge-heading-size: var(--forge-h5);
|
|
991
|
+
--forge-heading-letter-spacing: normal;
|
|
992
|
+
}
|
|
993
|
+
.forge-heading-xl,
|
|
994
|
+
.forge-heading-lg,
|
|
995
|
+
.forge-heading-md,
|
|
996
|
+
.forge-heading-sm,
|
|
997
|
+
.forge-heading-xs {
|
|
998
|
+
font-size: var(--forge-heading-size);
|
|
999
|
+
font-weight: var(--forge-heading-weight, var(--forge-font-weight-bold));
|
|
1000
|
+
letter-spacing: var(--forge-heading-letter-spacing, var(--forge-letter-spacing-tight));
|
|
1001
|
+
line-height: var(--forge-heading-line-height);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.forge-page-title,
|
|
1005
|
+
.forge-section-title,
|
|
1006
|
+
.forge-subsection-title {
|
|
1007
|
+
font-weight: var(--forge-font-weight-bold) !important; /* bootstrap-override */
|
|
1008
|
+
letter-spacing: var(--forge-letter-spacing-tight) !important; /* bootstrap-override */
|
|
1009
|
+
line-height: var(--forge-heading-line-height) !important; /* bootstrap-override */
|
|
1010
|
+
margin: 0 !important; /* bootstrap-override */
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.forge-page-title {
|
|
1014
|
+
font-size: var(--forge-h1) !important; /* bootstrap-override */
|
|
1015
|
+
}
|
|
1016
|
+
.forge-section-title {
|
|
1017
|
+
font-size: var(--forge-h2) !important; /* bootstrap-override */
|
|
1018
|
+
}
|
|
1019
|
+
.forge-subsection-title {
|
|
1020
|
+
font-size: var(--forge-h3) !important; /* bootstrap-override */
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
/* A short label above a title ("Settings" above "Billing"): quieter than the title, not a heading */
|
|
1024
|
+
.forge-eyebrow {
|
|
1025
|
+
margin: 0 !important; /* bootstrap-override */
|
|
1026
|
+
color: var(--forge-text-secondary);
|
|
1027
|
+
font-size: var(--forge-size-xs);
|
|
1028
|
+
font-weight: var(--forge-font-weight-medium);
|
|
1029
|
+
line-height: 1rem; /* 16px, on the 4px grid */
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/* The label of a group of items in a list or menu (a side bar section, "My apps" in the app switcher): uppercase
|
|
1033
|
+
12px with open letter spacing, in the primary color so it stays readable, quieter than the 14px items by size
|
|
1034
|
+
and case. Not a heading: it doesn't enter the outline; name the group with it (aria-labelledby) */
|
|
1035
|
+
.forge-group-label {
|
|
1036
|
+
color: var(--forge-text-primary);
|
|
1037
|
+
font-size: var(--forge-size-xs);
|
|
1038
|
+
font-weight: var(--forge-font-weight-medium);
|
|
1039
|
+
line-height: 1rem; /* 16px, on the 4px grid */
|
|
1040
|
+
letter-spacing: var(--forge-letter-spacing-caps);
|
|
1041
|
+
text-transform: uppercase;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
/* No p rule: a paragraph is text at the size around it, body text (14px) in the UI. Long-form reading opts in with
|
|
1045
|
+
.forge-content (16px, --forge-content-base), which then covers its paragraphs and lists alike */
|
|
1046
|
+
|
|
1047
|
+
/* A label without a class: body size in the primary color, like a field label (.forge-field-label adds the weight
|
|
1048
|
+
and the 20px line) */
|
|
1049
|
+
label {
|
|
1050
|
+
font-size: var(--forge-size-sm);
|
|
1051
|
+
color: var(--forge-text-primary);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
small {
|
|
1055
|
+
font-size: var(--forge-size-xs);
|
|
1056
|
+
color: var(--forge-text-secondary);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
/* Table cells are dense: the snug line height, not the body's, so a cell wrapping onto several lines stays compact.
|
|
1060
|
+
A table component's own line height wins (a later layer) */
|
|
1061
|
+
th,
|
|
1062
|
+
td {
|
|
1063
|
+
line-height: var(--forge-line-height-snug);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
button,
|
|
1067
|
+
a,
|
|
1068
|
+
input,
|
|
1069
|
+
select,
|
|
1070
|
+
textarea {
|
|
1071
|
+
/* transition:
|
|
1072
|
+
background-color var(--forge-motion-fast) var(--forge-ease-out),
|
|
1073
|
+
border-color var(--forge-motion-fast) var(--forge-ease-out),
|
|
1074
|
+
box-shadow var(--forge-motion-fast) var(--forge-ease-out),
|
|
1075
|
+
transform var(--forge-motion-fast) var(--forge-ease-out); */
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
/* LAYOUT */
|
|
1080
|
+
@layer forge-layout {
|
|
1081
|
+
/* The app shell: .forge-body > .forge-application > .forge-application-frame (side bar and page side by side) */
|
|
1082
|
+
/* The shell fills the window: its height comes from the root */
|
|
1083
|
+
html:has(> .forge-body) {
|
|
1084
|
+
height: 100%;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
.forge-body {
|
|
1088
|
+
height: 100%;
|
|
1089
|
+
width: 100%;
|
|
1090
|
+
display: flex;
|
|
1091
|
+
flex-direction: column;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
.forge-application {
|
|
1095
|
+
display: flex;
|
|
1096
|
+
flex-grow: 1;
|
|
1097
|
+
flex-shrink: 1;
|
|
1098
|
+
width: 100%;
|
|
1099
|
+
min-height: 0;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
.forge-application-frame {
|
|
1103
|
+
display: flex;
|
|
1104
|
+
flex-direction: row;
|
|
1105
|
+
width: 100%;
|
|
1106
|
+
height: 100%;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
/* A page: the frame next to the side bar. Put it on the page component's host,
|
|
1110
|
+
host: { class: 'forge-page' }, and compose it from blocks: .forge-page-top (one or more) and
|
|
1111
|
+
.forge-page-bottom stay put, .forge-page-body scrolls. The frame scrolls only as a fallback, when the top and
|
|
1112
|
+
bottom areas leave the body less than its 12rem floor (a very short window, high zoom), so every control stays
|
|
1113
|
+
reachable. A small gap at the top and bottom keeps the top and bottom areas and the body's scrollbar off the
|
|
1114
|
+
window edges (the side bar stays full height). data-appearance="card" lifts it off the base surface; the card
|
|
1115
|
+
has its own margins instead of the gap. */
|
|
1116
|
+
.forge-page {
|
|
1117
|
+
/* Private: the side padding that centers a 960px column in a block, shrinking below that with no
|
|
1118
|
+
breakpoints. The % resolves in the block's padding (the page's width; the gutter is inside the block). */
|
|
1119
|
+
--_forge-page-fixed-inline: max(var(--forge-space-4), (100% - 960px) / 2);
|
|
1120
|
+
/* Private: the gap at the page's top and bottom */
|
|
1121
|
+
--_forge-page-block-gap: var(--forge-space-2);
|
|
1122
|
+
display: flex;
|
|
1123
|
+
flex-direction: column;
|
|
1124
|
+
flex: 1 1 auto;
|
|
1125
|
+
min-height: 0;
|
|
1126
|
+
box-sizing: border-box;
|
|
1127
|
+
overflow-x: hidden;
|
|
1128
|
+
overflow-y: auto;
|
|
1129
|
+
padding-block: var(--_forge-page-block-gap);
|
|
1130
|
+
|
|
1131
|
+
&[data-appearance="flat"] {
|
|
1132
|
+
background-color: var(--forge-surface);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
&[data-appearance="card"] {
|
|
1136
|
+
background-color: var(--forge-surface-container-lowest);
|
|
1137
|
+
border-radius: var(--forge-radius-lg);
|
|
1138
|
+
box-shadow: var(--forge-shadow-rest);
|
|
1139
|
+
/* The flat page's gap, on every side: the card's header sits where a flat page's does */
|
|
1140
|
+
margin: var(--_forge-page-block-gap);
|
|
1141
|
+
padding-block: 0;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
/* A printout has its own page margins */
|
|
1145
|
+
@media print {
|
|
1146
|
+
padding-block: 0;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
/* The page's only scrolling area, its scrollbar at the page's right edge; the gutter is always kept, so a
|
|
1151
|
+
centered column doesn't move between short and long pages. The system width (not thin), as wide as the
|
|
1152
|
+
sideways scrollbars of the content inside. Fixed by default (a centered 960px column), --fluid takes the full
|
|
1153
|
+
width. */
|
|
1154
|
+
.forge-page-body {
|
|
1155
|
+
display: flex;
|
|
1156
|
+
flex-direction: column;
|
|
1157
|
+
flex: 1 1 auto;
|
|
1158
|
+
min-height: 12rem; /* below this the frame scrolls instead */
|
|
1159
|
+
box-sizing: border-box;
|
|
1160
|
+
/* the box of absolute content inside (visually hidden labels…), so it scrolls here and never stretches the
|
|
1161
|
+
document */
|
|
1162
|
+
position: relative;
|
|
1163
|
+
overflow: auto;
|
|
1164
|
+
scrollbar-gutter: stable;
|
|
1165
|
+
scrollbar-width: auto;
|
|
1166
|
+
scrollbar-color: var(--forge-scrollbar-thumb) transparent;
|
|
1167
|
+
padding-block: var(--forge-space-4);
|
|
1168
|
+
padding-inline: var(--_forge-page-fixed-inline);
|
|
1169
|
+
|
|
1170
|
+
&:hover {
|
|
1171
|
+
scrollbar-color: var(--forge-scrollbar-thumb-hover) transparent;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
&.forge-page-body--fluid {
|
|
1175
|
+
padding-inline: var(--forge-space-4);
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
/* Areas above and below the body that stay put: a title bar, tabs and filters, a save bar. Fluid by default,
|
|
1180
|
+
--fixed lines them up with a fixed body (they keep the same gutter, so both are as wide). A page header inside
|
|
1181
|
+
gets no bottom margin. A top area pads 8px above only: with the page's 8px gap the first starts 16px from the
|
|
1182
|
+
window's top, as the content does from the side, its header centered on the side bar's logo; the body's 16px
|
|
1183
|
+
top padding spaces the content, as a page header's margin does in the body. */
|
|
1184
|
+
.forge-page-top {
|
|
1185
|
+
flex: none;
|
|
1186
|
+
box-sizing: border-box;
|
|
1187
|
+
overflow: hidden;
|
|
1188
|
+
scrollbar-gutter: stable;
|
|
1189
|
+
scrollbar-width: auto; /* the body's gutter width, so a fixed one lines up exactly */
|
|
1190
|
+
padding-block: var(--forge-space-2) 0;
|
|
1191
|
+
padding-inline: var(--forge-space-4);
|
|
1192
|
+
--forge-page-header-spacing: 0;
|
|
1193
|
+
|
|
1194
|
+
&.forge-page-top--fixed {
|
|
1195
|
+
padding-inline: var(--_forge-page-fixed-inline);
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
.forge-page-bottom {
|
|
1200
|
+
flex: none;
|
|
1201
|
+
box-sizing: border-box;
|
|
1202
|
+
overflow: hidden;
|
|
1203
|
+
scrollbar-gutter: stable;
|
|
1204
|
+
scrollbar-width: auto; /* the body's gutter width, so a fixed one lines up exactly */
|
|
1205
|
+
/* With the page's 8px gap, 16px from the window's bottom, as the top area from its top */
|
|
1206
|
+
padding-block: var(--forge-space-2);
|
|
1207
|
+
padding-inline: var(--forge-space-4);
|
|
1208
|
+
--forge-page-header-spacing: 0;
|
|
1209
|
+
|
|
1210
|
+
&.forge-page-bottom--fixed {
|
|
1211
|
+
padding-inline: var(--_forge-page-fixed-inline);
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
/* ============================================================
|
|
1217
|
+
COMPONENTS LAYER
|
|
1218
|
+
Some props are marked with !important to ensure they are not overridden by the bootstrap.
|
|
1219
|
+
This is a temporary solution until we can remove bootstrap from the projects.
|
|
1220
|
+
Each one is tagged with a bootstrap-override comment (DevExtreme ones with devextreme-override), so they can be
|
|
1221
|
+
found and removed together; see "After Bootstrap" in DESIGN.md.
|
|
1222
|
+
============================================================ */
|
|
1223
|
+
|
|
1224
|
+
@layer forge-components {
|
|
1225
|
+
/* -------------------- BUTTON -------------------- */
|
|
1226
|
+
.forge-button {
|
|
1227
|
+
display: inline-flex;
|
|
1228
|
+
align-items: center;
|
|
1229
|
+
justify-content: center;
|
|
1230
|
+
gap: var(--forge-space-2);
|
|
1231
|
+
|
|
1232
|
+
/* At least the control height, and it grows when the label wraps */
|
|
1233
|
+
min-height: var(--forge-control-height-md);
|
|
1234
|
+
font-size: var(--forge-size-sm) !important; /* bootstrap-override */
|
|
1235
|
+
font-weight: var(--forge-font-weight-medium) !important; /* bootstrap-override */
|
|
1236
|
+
padding: 0 var(--forge-space-3) !important; /* bootstrap-override */
|
|
1237
|
+
|
|
1238
|
+
border-radius: var(--forge-radius-sm) !important; /* bootstrap-override */
|
|
1239
|
+
border: 1px solid transparent !important; /* bootstrap-override */
|
|
1240
|
+
|
|
1241
|
+
cursor: pointer !important; /* bootstrap-override */
|
|
1242
|
+
|
|
1243
|
+
/* Press: shrinks by --forge-press-scale. The transition here runs on release (a slower settle), the
|
|
1244
|
+
:active rule sets the near-instant press-in. scale, not transform: it doesn't fight an app's transform */
|
|
1245
|
+
--forge-press-scale: 0.97;
|
|
1246
|
+
transition:
|
|
1247
|
+
background-color var(--forge-motion-fast) var(--forge-ease-out),
|
|
1248
|
+
border-color var(--forge-motion-fast) var(--forge-ease-out),
|
|
1249
|
+
color var(--forge-motion-fast) var(--forge-ease-out),
|
|
1250
|
+
scale var(--forge-motion-slow) var(--forge-ease-out);
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
/* Icons sized by a token. Font Awesome's svg is 1em high from its own unlayered CSS, which beats any rule in this
|
|
1254
|
+
layer: so every rule sizing a component's icon sets the font size as well as the box, and 1em resolves to the
|
|
1255
|
+
token. This one centers the svg in its fa-icon box (a glyph narrower than it is high keeps its ratio) */
|
|
1256
|
+
:is(.forge-button, .forge-icon-button, .forge-pill, .forge-list-link-icon, .forge-back-link) > fa-icon {
|
|
1257
|
+
display: inline-flex;
|
|
1258
|
+
align-items: center;
|
|
1259
|
+
justify-content: center;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
/* The icon beside the label */
|
|
1263
|
+
.forge-button > :is(svg, fa-icon) {
|
|
1264
|
+
flex: none;
|
|
1265
|
+
width: var(--forge-icon-sm);
|
|
1266
|
+
height: var(--forge-icon-sm);
|
|
1267
|
+
font-size: var(--forge-icon-sm);
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
/* An icon-only button: a square the size of .forge-icon-button, not stretched to the control height nor widened by
|
|
1271
|
+
a label's padding (in a table row it would take the width of a labelled button). New code uses .forge-icon-button */
|
|
1272
|
+
.forge-button--icon {
|
|
1273
|
+
flex: none;
|
|
1274
|
+
width: var(--forge-icon-button-md);
|
|
1275
|
+
height: var(--forge-icon-button-md);
|
|
1276
|
+
min-height: 0;
|
|
1277
|
+
padding: 0 !important; /* bootstrap-override */
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
/* After .forge-button--sm in specificity, so its min-height and padding don't stretch the square */
|
|
1281
|
+
.forge-button--sm.forge-button--icon {
|
|
1282
|
+
width: var(--forge-icon-button-sm);
|
|
1283
|
+
height: var(--forge-icon-button-sm);
|
|
1284
|
+
min-height: 0;
|
|
1285
|
+
padding: 0 !important; /* bootstrap-override */
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
/* Not when disabled or busy: a button that can't act doesn't react to a press */
|
|
1289
|
+
.forge-button:active:not(:disabled, [aria-busy="true"]) {
|
|
1290
|
+
scale: var(--forge-press-scale);
|
|
1291
|
+
transition-duration: 60ms;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
.forge-button:focus-visible {
|
|
1295
|
+
outline: 2px solid var(--forge-focus-ring) !important; /* bootstrap-override */
|
|
1296
|
+
outline-offset: 2px !important; /* bootstrap-override */
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
.forge-button:disabled {
|
|
1300
|
+
opacity: var(--forge-opacity-disabled);
|
|
1301
|
+
cursor: not-allowed !important; /* bootstrap-override */
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
.forge-button--primary {
|
|
1305
|
+
background: var(--forge-primary);
|
|
1306
|
+
color: var(--forge-text-on-primary);
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
.forge-button--primary:hover:not(:disabled) {
|
|
1310
|
+
background: var(--forge-primary-hover) !important; /* bootstrap-override */
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
.forge-button--primary:active:not(:disabled) {
|
|
1314
|
+
background: var(--forge-primary-active) !important; /* bootstrap-override */
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
/* Secondary: gray, no border. The hover gray is a ghost button's hover on the page (dark mode sets the hover
|
|
1318
|
+
variable to -high). A context whose own tone is the rest gray sets the variables (the inset does); never set
|
|
1319
|
+
on the button, so an ancestor's value reaches it */
|
|
1320
|
+
.forge-button--secondary {
|
|
1321
|
+
background: var(--forge-button-secondary-bg, var(--forge-surface-container)) !important; /* bootstrap-override */
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
.forge-button--secondary:hover:not(:disabled) {
|
|
1325
|
+
background: var(--forge-button-secondary-bg-hover, var(--forge-surface-container-highest)) !important; /* bootstrap-override */
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
.forge-button--secondary:active:not(:disabled) {
|
|
1329
|
+
background: linear-gradient(var(--forge-hover-bg) 0 0), var(--forge-button-secondary-bg-hover, var(--forge-surface-container-highest)) !important; /* bootstrap-override */
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
.forge-button--ghost:hover:not(:disabled) {
|
|
1333
|
+
background: var(--forge-hover-bg) !important; /* bootstrap-override */
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
/* Danger: destructive actions. The fill is the danger hue darkened until white passes, as the danger badge's */
|
|
1337
|
+
.forge-button--danger {
|
|
1338
|
+
background: oklch(from var(--forge-danger) min(l, 0.57) c h);
|
|
1339
|
+
color: var(--forge-text-on-brand);
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
.forge-button--danger:hover:not(:disabled) {
|
|
1343
|
+
background: oklch(from var(--forge-danger) min(l, 0.54) c h) !important; /* bootstrap-override */
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
/* Link: a light action that reads as text (More …, Add level); not for navigation, that is an <a> */
|
|
1347
|
+
.forge-button--link {
|
|
1348
|
+
--forge-press-scale: 1; /* reads as text: no squish */
|
|
1349
|
+
min-height: 0;
|
|
1350
|
+
padding: 0 !important; /* bootstrap-override */
|
|
1351
|
+
background: none;
|
|
1352
|
+
color: var(--forge-primary);
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
.forge-button--link:hover:not(:disabled) {
|
|
1356
|
+
text-decoration: underline;
|
|
1357
|
+
text-underline-offset: 2px;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
.forge-button--sm {
|
|
1361
|
+
--forge-press-scale: 0.95; /* a small target needs a stronger squish to show */
|
|
1362
|
+
min-height: var(--forge-control-height-sm);
|
|
1363
|
+
padding-inline: var(--forge-space-2) !important; /* bootstrap-override */
|
|
1364
|
+
font-size: var(--forge-size-xs) !important; /* bootstrap-override */
|
|
1365
|
+
gap: var(--forge-space-1);
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/* Busy: aria-busy="true" while the action runs; the button keeps its size, its icon spins */
|
|
1369
|
+
.forge-button[aria-busy="true"] {
|
|
1370
|
+
cursor: progress !important; /* bootstrap-override */
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
.forge-button[aria-busy="true"] :is(svg, .forge-button-spinner) {
|
|
1374
|
+
animation: forge-spin 0.8s linear infinite;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
/* -------------------- INPUT -------------------- */
|
|
1378
|
+
.forge-input {
|
|
1379
|
+
width: 100%;
|
|
1380
|
+
height: var(--forge-control-height-md);
|
|
1381
|
+
font-size: var(--forge-size-sm) !important; /* bootstrap-override */
|
|
1382
|
+
padding: 0 var(--forge-space-3) !important; /* bootstrap-override */
|
|
1383
|
+
|
|
1384
|
+
background: var(--forge-surface-container-lowest) !important; /* bootstrap-override */
|
|
1385
|
+
border: 1px solid var(--forge-border-strong) !important; /* bootstrap-override */
|
|
1386
|
+
border-radius: var(--forge-radius-sm) !important; /* bootstrap-override */
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
/* Disabled: the container step, as the library's disabled number box, duration box and date picker */
|
|
1390
|
+
.forge-input:disabled {
|
|
1391
|
+
background: var(--forge-surface-container) !important; /* bootstrap-override */
|
|
1392
|
+
color: var(--forge-text-tertiary);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
/* Multi-line: grows with its rows */
|
|
1396
|
+
textarea.forge-input {
|
|
1397
|
+
height: auto;
|
|
1398
|
+
padding-block: var(--forge-space-2) !important; /* bootstrap-override */
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/* -------------------- SELECT (native) -------------------- */
|
|
1402
|
+
/* The library's chevron (Font Awesome regular chevron-down, 12px as in the duration box) instead of the OS arrow,
|
|
1403
|
+
--forge-space-3 from the edge, the text kept clear of it. A background image can't follow currentColor, so the
|
|
1404
|
+
chevron comes in a light and a dark copy, filled with --forge-text-secondary of each theme (#5d5c5b, #a5a4a3).
|
|
1405
|
+
Chromium draws it as ::picker-icon instead, in the text color (customizable select, below). */
|
|
1406
|
+
:root {
|
|
1407
|
+
--forge-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%235d5c5b' d='M207.5 409c9.4 9.4 24.6 9.4 33.9 0l200-200c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-183 183-183-183c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l200 200z'/%3E%3C/svg%3E");
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
:root[data-theme="dark"] {
|
|
1411
|
+
--forge-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23a5a4a3' d='M207.5 409c9.4 9.4 24.6 9.4 33.9 0l200-200c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-183 183-183-183c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l200 200z'/%3E%3C/svg%3E");
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
/* One background with the fill: .forge-input's shorthand would otherwise drop the image */
|
|
1415
|
+
select.forge-input {
|
|
1416
|
+
appearance: none;
|
|
1417
|
+
padding-inline-end: calc(var(--forge-space-3) + 12px + var(--forge-space-2)) !important; /* bootstrap-override */
|
|
1418
|
+
background:
|
|
1419
|
+
var(--forge-select-chevron) no-repeat right var(--forge-space-3) center / 12px,
|
|
1420
|
+
var(--forge-surface-container-lowest) !important; /* bootstrap-override */
|
|
1421
|
+
text-overflow: ellipsis;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
select.forge-input:not(:disabled) {
|
|
1425
|
+
cursor: pointer;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
select.forge-input:disabled {
|
|
1429
|
+
background:
|
|
1430
|
+
var(--forge-select-chevron) no-repeat right var(--forge-space-3) center / 12px,
|
|
1431
|
+
var(--forge-surface-container) !important; /* bootstrap-override */
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
/* Right to left: the text clearance is at the inline end, the background position is physical */
|
|
1435
|
+
select.forge-input:dir(rtl) {
|
|
1436
|
+
background:
|
|
1437
|
+
var(--forge-select-chevron) no-repeat left var(--forge-space-3) center / 12px,
|
|
1438
|
+
var(--forge-surface-container-lowest) !important; /* bootstrap-override */
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
select.forge-input:dir(rtl):disabled {
|
|
1442
|
+
background:
|
|
1443
|
+
var(--forge-select-chevron) no-repeat left var(--forge-space-3) center / 12px,
|
|
1444
|
+
var(--forge-surface-container) !important; /* bootstrap-override */
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
/* Chromium 135+ (customizable select): the picker is a Forge overlay with menu rows instead of the OS list.
|
|
1448
|
+
Firefox and Safari keep the system picker. List boxes are left out: customizable select is a dropdown only. */
|
|
1449
|
+
@supports (appearance: base-select) {
|
|
1450
|
+
select.forge-input:not([multiple], [size]:not([size="1"])),
|
|
1451
|
+
select.forge-input:not([multiple], [size]:not([size="1"]))::picker(select) {
|
|
1452
|
+
appearance: base-select;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
/* ::picker-icon draws the chevron in the text color, so the background copy goes; the fill stays */
|
|
1456
|
+
select.forge-input:not([multiple], [size]:not([size="1"])) {
|
|
1457
|
+
background-image: none !important; /* bootstrap-override */
|
|
1458
|
+
padding-inline-end: var(--forge-space-3) !important; /* bootstrap-override */
|
|
1459
|
+
gap: var(--forge-space-2);
|
|
1460
|
+
align-items: center; /* a flex box: the value and the icon would sit at the top */
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
select.forge-input:not([multiple], [size]:not([size="1"]))::picker-icon {
|
|
1464
|
+
content: "";
|
|
1465
|
+
width: 12px;
|
|
1466
|
+
height: 12px;
|
|
1467
|
+
margin-inline-start: auto;
|
|
1468
|
+
color: var(--forge-text-secondary);
|
|
1469
|
+
background-color: currentColor;
|
|
1470
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M207.5 409c9.4 9.4 24.6 9.4 33.9 0l200-200c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-183 183-183-183c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l200 200z'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
select.forge-input:not([multiple], [size]:not([size="1"])):open::picker-icon {
|
|
1474
|
+
rotate: 180deg;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
select.forge-input:not([multiple], [size]:not([size="1"])):disabled::picker-icon {
|
|
1478
|
+
color: var(--forge-text-tertiary);
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
/* The panel of .forge-overlay-content, a --forge-space-1 gap from the control. It opens below and flips above
|
|
1482
|
+
only when it doesn't fit, as the other overlays; Chromium's default (most-block-size) would open it on the
|
|
1483
|
+
roomier side even when it fits below. Its height is capped as the duration box list (longer lists scroll):
|
|
1484
|
+
Chromium's default stretches it into the room below, so it would shrink there instead of flipping */
|
|
1485
|
+
select.forge-input:not([multiple], [size]:not([size="1"]))::picker(select) {
|
|
1486
|
+
--forge-overlay-item-radius: calc(var(--forge-radius-lg) - 1px - var(--forge-space-1));
|
|
1487
|
+
position-try-order: normal;
|
|
1488
|
+
position-try-fallbacks: flip-block, --forge-select-fit;
|
|
1489
|
+
max-block-size: 16rem;
|
|
1490
|
+
margin-block: var(--forge-space-1);
|
|
1491
|
+
padding: var(--forge-space-1);
|
|
1492
|
+
background-color: var(--forge-surface-bright);
|
|
1493
|
+
color: var(--forge-text-primary);
|
|
1494
|
+
border: 1px solid var(--forge-border-overlay);
|
|
1495
|
+
border-radius: var(--forge-radius-lg);
|
|
1496
|
+
box-shadow: var(--forge-shadow-overlay);
|
|
1497
|
+
font-family: var(--forge-font);
|
|
1498
|
+
font-size: var(--forge-size-sm);
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
/* Rows like .forge-menu-item, but compact: as tall as a small control, the text centered in it.
|
|
1502
|
+
Hover and focus get --forge-hover-bg, the selected option --forge-active-bg (kept on hover, after the
|
|
1503
|
+
hover rule) and no checkmark; forced colors bring the checkmark back (below) */
|
|
1504
|
+
select.forge-input:not([multiple], [size]:not([size="1"])) option {
|
|
1505
|
+
gap: var(--forge-space-2);
|
|
1506
|
+
align-items: center;
|
|
1507
|
+
min-block-size: var(--forge-control-height-sm);
|
|
1508
|
+
padding: 0 var(--forge-space-3);
|
|
1509
|
+
line-height: var(--forge-line-height-snug);
|
|
1510
|
+
border-radius: var(--forge-overlay-item-radius);
|
|
1511
|
+
cursor: pointer;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
/* 1px between rows, so the fills of neighbouring rows (selected and hovered) don't touch */
|
|
1515
|
+
select.forge-input:not([multiple], [size]:not([size="1"])) option + option {
|
|
1516
|
+
margin-block-start: 1px;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
select.forge-input:not([multiple], [size]:not([size="1"])) option:is(:hover, :focus-visible) {
|
|
1520
|
+
background-color: var(--forge-hover-bg);
|
|
1521
|
+
outline: none;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
select.forge-input:not([multiple], [size]:not([size="1"])) option:checked {
|
|
1525
|
+
background-color: var(--forge-active-bg);
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
select.forge-input:not([multiple], [size]:not([size="1"])) option::checkmark {
|
|
1529
|
+
display: none;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
select.forge-input:not([multiple], [size]:not([size="1"])) option:disabled {
|
|
1533
|
+
color: var(--forge-text-tertiary);
|
|
1534
|
+
cursor: not-allowed;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
/* The group label is small secondary text; the options in it are body text again. The label (not reachable
|
|
1538
|
+
from author CSS) lines up with the option text: Chromium indents it 5px, the row text sits at
|
|
1539
|
+
--forge-space-3, so the group is padded by the difference and its options pulled back */
|
|
1540
|
+
select.forge-input:not([multiple], [size]:not([size="1"])) optgroup {
|
|
1541
|
+
font-size: var(--forge-size-xs);
|
|
1542
|
+
color: var(--forge-text-secondary);
|
|
1543
|
+
padding-inline-start: calc(var(--forge-space-3) - 5px);
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
select.forge-input:not([multiple], [size]:not([size="1"])) optgroup option {
|
|
1547
|
+
font-size: var(--forge-size-sm);
|
|
1548
|
+
color: var(--forge-text-primary);
|
|
1549
|
+
margin-inline-start: calc(5px - var(--forge-space-3));
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
/* The last try, when 16rem fits on neither side (a landscape phone, 400% zoom): below, shrunk to the room
|
|
1553
|
+
there, so every option stays reachable by scrolling the list (the picker is in the top layer, the page
|
|
1554
|
+
can't scroll to it) */
|
|
1555
|
+
@position-try --forge-select-fit {
|
|
1556
|
+
max-block-size: stretch;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
/* The icon's color is a background under a mask, which forced colors would turn into the canvas color. A
|
|
1560
|
+
focused row is marked by its fill, which forced colors replace, and its outline is off: it gets one. The
|
|
1561
|
+
selected row is marked by its fill too, so it gets the checkmark back, at the end */
|
|
1562
|
+
@media (forced-colors: active) {
|
|
1563
|
+
select.forge-input:not([multiple], [size]:not([size="1"])) option:focus-visible {
|
|
1564
|
+
outline: 2px solid Highlight;
|
|
1565
|
+
outline-offset: -2px;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
select.forge-input:not([multiple], [size]:not([size="1"])) option::checkmark {
|
|
1569
|
+
display: revert;
|
|
1570
|
+
order: 1;
|
|
1571
|
+
margin-inline-start: auto;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
select.forge-input:not([multiple], [size]:not([size="1"]))::picker-icon {
|
|
1575
|
+
forced-color-adjust: none;
|
|
1576
|
+
background-color: CanvasText;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
select.forge-input:not([multiple], [size]:not([size="1"])):disabled::picker-icon {
|
|
1580
|
+
background-color: GrayText;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
/* The reduced-motion rule (unlayered.css) matches elements only, not these pseudo-elements */
|
|
1585
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
1586
|
+
select.forge-input:not([multiple], [size]:not([size="1"]))::picker-icon {
|
|
1587
|
+
transition: rotate var(--forge-motion-fast) var(--forge-ease-out);
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
select.forge-input:not([multiple], [size]:not([size="1"]))::picker(select) {
|
|
1591
|
+
animation: forge-overlay-fade-in var(--forge-motion-base) var(--forge-ease-out);
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
/* A multi-select or list box shows several rows, no chevron */
|
|
1597
|
+
select.forge-input:is([multiple], [size]:not([size="1"])) {
|
|
1598
|
+
height: auto;
|
|
1599
|
+
padding-block: var(--forge-space-2) !important; /* bootstrap-override */
|
|
1600
|
+
padding-inline-end: var(--forge-space-3) !important; /* bootstrap-override */
|
|
1601
|
+
background-image: none !important; /* bootstrap-override */
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
/* Rows: hover is the hover layer, the selection a primary tint instead of the system highlight (a background
|
|
1605
|
+
shorthand: Chromium ignores background-color on a selected option in a list box). The tint comes after hover,
|
|
1606
|
+
so a hovered selected row stays selected. */
|
|
1607
|
+
select.forge-input:is([multiple], [size]:not([size="1"])) option {
|
|
1608
|
+
padding: var(--forge-space-1) var(--forge-space-2);
|
|
1609
|
+
border-radius: var(--forge-radius-sm);
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
select.forge-input:is([multiple], [size]:not([size="1"])) option:hover {
|
|
1613
|
+
background-color: var(--forge-hover-bg);
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
select.forge-input:is([multiple], [size]:not([size="1"])) option:checked {
|
|
1617
|
+
background: color-mix(in srgb, var(--forge-primary) 14%, var(--forge-surface-container-lowest));
|
|
1618
|
+
color: var(--forge-text-primary);
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
.forge-input::placeholder {
|
|
1622
|
+
color: var(--forge-text-tertiary) !important; /* bootstrap-override */
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
.forge-input:focus {
|
|
1626
|
+
border-color: var(--forge-primary) !important; /* bootstrap-override */
|
|
1627
|
+
box-shadow: 0 0 0 1px var(--forge-primary) !important; /* bootstrap-override */
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
.forge-input:focus-visible {
|
|
1631
|
+
border-color: var(--forge-primary) !important; /* bootstrap-override */
|
|
1632
|
+
box-shadow: 0 0 0 1px var(--forge-primary) !important; /* bootstrap-override */
|
|
1633
|
+
outline: none !important; /* bootstrap-override */
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
/* Forced colors drop the ring (a shadow) and take over the border color, so the focused field gets an outline in
|
|
1637
|
+
the system highlight, where the ring would be. !important: the rule above sets outline: none !important */
|
|
1638
|
+
@media (forced-colors: active) {
|
|
1639
|
+
.forge-input:focus,
|
|
1640
|
+
.forge-input:focus-visible {
|
|
1641
|
+
outline: 2px solid Highlight !important;
|
|
1642
|
+
outline-offset: 0 !important;
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
/* -------------------- CONTENT -------------------- */
|
|
1647
|
+
|
|
1648
|
+
/* Long-form reading (an article, a guide, release notes): everything inside at the content size, paragraphs and
|
|
1649
|
+
lists alike */
|
|
1650
|
+
.forge-content {
|
|
1651
|
+
font-size: var(--forge-content-base);
|
|
1652
|
+
line-height: var(--forge-content-line-height);
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
/* -------------------- SKELETON -------------------- */
|
|
1656
|
+
.forge-skeleton {
|
|
1657
|
+
display: block;
|
|
1658
|
+
background: linear-gradient(
|
|
1659
|
+
90deg,
|
|
1660
|
+
var(--forge-skeleton-bg),
|
|
1661
|
+
var(--forge-skeleton-fg),
|
|
1662
|
+
var(--forge-skeleton-bg)
|
|
1663
|
+
);
|
|
1664
|
+
background-size: 200% 100%;
|
|
1665
|
+
border-radius: var(--forge-skeleton-radius);
|
|
1666
|
+
pointer-events: none;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
.forge-skeleton--animated {
|
|
1670
|
+
animation: forge-skeleton-shimmer var(--forge-skeleton-shimmer-duration)
|
|
1671
|
+
var(--forge-ease-linear) infinite;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
.forge-skeleton--text {
|
|
1675
|
+
height: 1em;
|
|
1676
|
+
width: 100%;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
.forge-skeleton--heading {
|
|
1680
|
+
height: 1.25em;
|
|
1681
|
+
width: 60%;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
/* A 2rem avatar, the size forge-avatar takes by default */
|
|
1685
|
+
.forge-skeleton--avatar {
|
|
1686
|
+
width: 2rem;
|
|
1687
|
+
height: 2rem;
|
|
1688
|
+
border-radius: var(--forge-radius-full);
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
/* As tall as a button, with its corners */
|
|
1692
|
+
.forge-skeleton--button {
|
|
1693
|
+
width: 6rem;
|
|
1694
|
+
height: var(--forge-control-height-md);
|
|
1695
|
+
border-radius: var(--forge-radius-sm);
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
/* -------------------- PANEL, CARD, INSET -------------------- */
|
|
1699
|
+
/* Named by job, for gray (surface) pages. A panel groups a section of the page, a card is one self-contained thing
|
|
1700
|
+
(on the surface or in a panel), an inset recesses a block inside either. A card goes in a panel, never a panel
|
|
1701
|
+
in a panel or a card in a card. Titles use the heading classes, there are no header parts. */
|
|
1702
|
+
.forge-panel {
|
|
1703
|
+
padding: var(--forge-space-4);
|
|
1704
|
+
border-radius: var(--forge-radius-lg);
|
|
1705
|
+
background-color: var(--forge-surface-container-low);
|
|
1706
|
+
color: var(--forge-text-primary);
|
|
1707
|
+
box-shadow: var(--forge-shadow-soft);
|
|
1708
|
+
/* Invisible, but drawn in forced colors (Windows high contrast), which drops the shadow */
|
|
1709
|
+
outline: 1px solid transparent;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
.forge-card {
|
|
1713
|
+
padding: var(--forge-space-4);
|
|
1714
|
+
border: 1px solid var(--forge-border);
|
|
1715
|
+
border-radius: var(--forge-radius-md);
|
|
1716
|
+
background-color: var(--forge-surface-container-lowest);
|
|
1717
|
+
color: var(--forge-text-primary);
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
/* The whole card is the link or button (<a>, <button>): lifts on hover. Keep its content short, it is the
|
|
1721
|
+
accessible name. A card with several links stays a plain .forge-card. */
|
|
1722
|
+
.forge-card--interactive {
|
|
1723
|
+
display: block;
|
|
1724
|
+
width: 100%;
|
|
1725
|
+
font: inherit;
|
|
1726
|
+
text-align: start;
|
|
1727
|
+
color: var(--forge-text-primary) !important; /* bootstrap-override */
|
|
1728
|
+
text-decoration: none !important; /* bootstrap-override */
|
|
1729
|
+
cursor: pointer;
|
|
1730
|
+
transition:
|
|
1731
|
+
box-shadow var(--forge-motion-fast) var(--forge-ease-out),
|
|
1732
|
+
border-color var(--forge-motion-fast) var(--forge-ease-out);
|
|
1733
|
+
|
|
1734
|
+
&:hover {
|
|
1735
|
+
border-color: transparent;
|
|
1736
|
+
box-shadow: var(--forge-shadow-hover);
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
&:focus-visible {
|
|
1740
|
+
outline: 2px solid var(--forge-focus-ring-strong);
|
|
1741
|
+
outline-offset: 2px;
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
/* Recessed block inside a card or panel */
|
|
1746
|
+
.forge-inset {
|
|
1747
|
+
padding: var(--forge-space-3) var(--forge-space-4);
|
|
1748
|
+
border-radius: var(--forge-radius-md);
|
|
1749
|
+
background-color: var(--forge-surface-container);
|
|
1750
|
+
/* The secondary button's rest gray is this tone: a step darker keeps it visible, and the hover a step further
|
|
1751
|
+
in both themes */
|
|
1752
|
+
--forge-button-secondary-bg: var(--forge-surface-container-high);
|
|
1753
|
+
--forge-button-secondary-bg-hover: var(--forge-surface-container-highest);
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
/* ============================================================
|
|
1757
|
+
PATTERNS: classes on native HTML, no component. The app or Angular (Aria, CDK) supplies the behavior.
|
|
1758
|
+
Several properties fight Bootstrap's reboot (link color, list and dl margins, button radius) and are tagged.
|
|
1759
|
+
============================================================ */
|
|
1760
|
+
|
|
1761
|
+
/* -------------------- ICON BUTTON -------------------- */
|
|
1762
|
+
/* <button class="forge-icon-button" aria-label="…">. Always named (aria-label and a tooltip). Pressed state from
|
|
1763
|
+
aria-pressed="true" or aria-expanded="true" */
|
|
1764
|
+
.forge-icon-button {
|
|
1765
|
+
display: inline-flex;
|
|
1766
|
+
flex: none;
|
|
1767
|
+
align-items: center;
|
|
1768
|
+
justify-content: center;
|
|
1769
|
+
width: var(--forge-icon-button-md);
|
|
1770
|
+
height: var(--forge-icon-button-md);
|
|
1771
|
+
padding: 0;
|
|
1772
|
+
border: 1px solid transparent;
|
|
1773
|
+
border-radius: var(--forge-radius-md) !important; /* bootstrap-override */
|
|
1774
|
+
background: none;
|
|
1775
|
+
color: var(--forge-text-primary);
|
|
1776
|
+
cursor: pointer;
|
|
1777
|
+
/* Press as .forge-button, stronger for the small target */
|
|
1778
|
+
--forge-press-scale: 0.92;
|
|
1779
|
+
transition:
|
|
1780
|
+
background-color var(--forge-motion-fast) var(--forge-ease-out),
|
|
1781
|
+
scale var(--forge-motion-slow) var(--forge-ease-out);
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
.forge-icon-button > :is(svg, fa-icon) {
|
|
1785
|
+
width: var(--forge-icon-md);
|
|
1786
|
+
height: var(--forge-icon-md);
|
|
1787
|
+
font-size: var(--forge-icon-md);
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
.forge-icon-button:hover:not(:disabled),
|
|
1791
|
+
.forge-icon-button:is([aria-pressed="true"], [aria-expanded="true"]) {
|
|
1792
|
+
background-color: var(--forge-hover-bg);
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
.forge-icon-button:active:not(:disabled) {
|
|
1796
|
+
background-color: var(--forge-active-bg);
|
|
1797
|
+
scale: var(--forge-press-scale);
|
|
1798
|
+
transition-duration: 60ms;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
.forge-icon-button:focus-visible {
|
|
1802
|
+
outline: 2px solid var(--forge-focus-ring);
|
|
1803
|
+
outline-offset: 2px;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
.forge-icon-button:disabled {
|
|
1807
|
+
opacity: var(--forge-opacity-disabled);
|
|
1808
|
+
cursor: not-allowed;
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
.forge-icon-button--sm {
|
|
1812
|
+
width: var(--forge-icon-button-sm);
|
|
1813
|
+
height: var(--forge-icon-button-sm);
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
.forge-icon-button--sm > :is(svg, fa-icon) {
|
|
1817
|
+
width: var(--forge-icon-sm);
|
|
1818
|
+
height: var(--forge-icon-sm);
|
|
1819
|
+
font-size: var(--forge-icon-sm);
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
/* Next to 36px buttons and fields */
|
|
1823
|
+
.forge-icon-button--lg {
|
|
1824
|
+
width: var(--forge-control-height-md);
|
|
1825
|
+
height: var(--forge-control-height-md);
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
.forge-icon-button--danger:hover:not(:disabled) {
|
|
1829
|
+
color: color-mix(in oklab, var(--forge-danger) 70%, var(--forge-text-primary));
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
/* -------------------- CHIP (filter) -------------------- */
|
|
1833
|
+
/* <button class="forge-chip" aria-pressed="false">: a filter toggled on and off. Filters carry the product's brand */
|
|
1834
|
+
.forge-chip {
|
|
1835
|
+
display: inline-flex;
|
|
1836
|
+
align-items: center;
|
|
1837
|
+
gap: var(--forge-space-1);
|
|
1838
|
+
min-height: var(--forge-control-height-sm);
|
|
1839
|
+
padding: 0 var(--forge-space-3);
|
|
1840
|
+
border: 1px solid var(--forge-border-strong);
|
|
1841
|
+
border-radius: var(--forge-radius-full) !important; /* bootstrap-override */
|
|
1842
|
+
background: var(--forge-surface-container-lowest);
|
|
1843
|
+
color: var(--forge-text-primary);
|
|
1844
|
+
font-size: var(--forge-size-xs);
|
|
1845
|
+
font-weight: var(--forge-font-weight-medium);
|
|
1846
|
+
cursor: pointer;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
/* The state layer on top of the chip's own background */
|
|
1850
|
+
.forge-chip:hover {
|
|
1851
|
+
background-image: linear-gradient(var(--forge-hover-bg) 0 0);
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
.forge-chip[aria-pressed="true"] {
|
|
1855
|
+
border-color: color-mix(in oklab, var(--forge-brand) 60%, var(--forge-surface-container-lowest));
|
|
1856
|
+
background-color: var(--forge-selected-bg);
|
|
1857
|
+
color: var(--forge-selected-text);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
.forge-chip:focus-visible {
|
|
1861
|
+
outline: 2px solid var(--forge-focus-ring);
|
|
1862
|
+
outline-offset: 2px;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
/* As .forge-button: the whole chip at the disabled opacity, no hover */
|
|
1866
|
+
.forge-chip:disabled {
|
|
1867
|
+
background-image: none;
|
|
1868
|
+
opacity: var(--forge-opacity-disabled);
|
|
1869
|
+
cursor: not-allowed;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
/* -------------------- FILTER PILL (tokens) -------------------- */
|
|
1873
|
+
/* A filter that opens a choice (select, combobox, menu trigger) and shows its value. Only tokens: put
|
|
1874
|
+
.forge-filter-pill on the filter's outermost element, so its field, chevron and clear button all read the same
|
|
1875
|
+
values, and let each filter's own styles apply them (a DevExtreme select box and an Angular Aria combobox are
|
|
1876
|
+
built differently). The modifiers swap values: --active once the filter differs from its default, --disabled.
|
|
1877
|
+
Backgrounds are opaque, so a pill looks the same on any surface. Active takes the selected tint and text
|
|
1878
|
+
(--forge-selected-*), the same colors as the side bar's current page */
|
|
1879
|
+
.forge-filter-pill {
|
|
1880
|
+
--forge-filter-border-radius: var(--forge-radius-full);
|
|
1881
|
+
--forge-filter-name-font-weight: var(--forge-font-weight-bold);
|
|
1882
|
+
--forge-filter-cursor: pointer;
|
|
1883
|
+
|
|
1884
|
+
--forge-filter-bg: var(--forge-surface-container-lowest);
|
|
1885
|
+
--forge-filter-bg-hover: color-mix(in srgb, var(--forge-text-primary) var(--forge-state-hover-opacity), var(--forge-surface-container-lowest));
|
|
1886
|
+
--forge-filter-clear-bg-hover: color-mix(in srgb, var(--forge-text-primary) var(--forge-state-pressed-opacity), var(--forge-surface-container-lowest));
|
|
1887
|
+
--forge-filter-border: var(--forge-border-strong);
|
|
1888
|
+
--forge-filter-color: var(--forge-text-primary);
|
|
1889
|
+
--forge-filter-icon-color: var(--forge-text-secondary);
|
|
1890
|
+
/* Focus as on the form fields: the border takes the ring color, and a ring outside it */
|
|
1891
|
+
--forge-filter-focus-border: var(--forge-focus-ring);
|
|
1892
|
+
--forge-filter-focus-ring: 0 0 0 1px var(--forge-focus-ring);
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
.forge-filter-pill--active {
|
|
1896
|
+
--forge-filter-bg: var(--forge-selected-bg);
|
|
1897
|
+
/* More brand in the same mix */
|
|
1898
|
+
--forge-filter-bg-hover: var(--forge-selected-bg-hover);
|
|
1899
|
+
--forge-filter-clear-bg-hover: color-mix(in oklab, var(--forge-brand) 32%, var(--forge-surface-container-lowest));
|
|
1900
|
+
--forge-filter-border: color-mix(in oklab, var(--forge-brand) 60%, var(--forge-surface-container-lowest));
|
|
1901
|
+
--forge-filter-color: var(--forge-selected-text);
|
|
1902
|
+
--forge-filter-icon-color: var(--forge-filter-color);
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
/* After active, so an active filter that is disabled still looks disabled */
|
|
1906
|
+
.forge-filter-pill--disabled {
|
|
1907
|
+
--forge-filter-bg: var(--forge-surface-container);
|
|
1908
|
+
--forge-filter-bg-hover: var(--forge-filter-bg);
|
|
1909
|
+
--forge-filter-border: var(--forge-border);
|
|
1910
|
+
--forge-filter-color: var(--forge-text-tertiary);
|
|
1911
|
+
--forge-filter-icon-color: var(--forge-text-tertiary);
|
|
1912
|
+
--forge-filter-cursor: not-allowed;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
/* -------------------- TAG -------------------- */
|
|
1916
|
+
/* <span class="forge-tag forge-tag--cat-3">: a label people attach to classify an entry. The color comes from its
|
|
1917
|
+
category (the tag group), never from a meaning: states are a status, not a tag */
|
|
1918
|
+
.forge-tag {
|
|
1919
|
+
--forge-tag-bg: var(--forge-hover-bg);
|
|
1920
|
+
--forge-tag-text: var(--forge-text-secondary);
|
|
1921
|
+
display: inline-flex;
|
|
1922
|
+
align-items: center;
|
|
1923
|
+
gap: var(--forge-space-1);
|
|
1924
|
+
max-width: 100%;
|
|
1925
|
+
padding: calc(var(--forge-space-1) / 2) var(--forge-space-2);
|
|
1926
|
+
border-radius: var(--forge-radius-sm);
|
|
1927
|
+
background: var(--forge-tag-bg);
|
|
1928
|
+
color: var(--forge-tag-text);
|
|
1929
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--forge-tag-text) 24%, transparent);
|
|
1930
|
+
font-size: var(--forge-size-xs);
|
|
1931
|
+
font-weight: var(--forge-font-weight-medium);
|
|
1932
|
+
line-height: var(--forge-line-height-snug);
|
|
1933
|
+
white-space: nowrap;
|
|
1934
|
+
vertical-align: middle;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
.forge-tag--cat-1 { --forge-tag-bg: var(--forge-cat-1-bg); --forge-tag-text: var(--forge-cat-1-text); }
|
|
1938
|
+
.forge-tag--cat-2 { --forge-tag-bg: var(--forge-cat-2-bg); --forge-tag-text: var(--forge-cat-2-text); }
|
|
1939
|
+
.forge-tag--cat-3 { --forge-tag-bg: var(--forge-cat-3-bg); --forge-tag-text: var(--forge-cat-3-text); }
|
|
1940
|
+
.forge-tag--cat-4 { --forge-tag-bg: var(--forge-cat-4-bg); --forge-tag-text: var(--forge-cat-4-text); }
|
|
1941
|
+
.forge-tag--cat-5 { --forge-tag-bg: var(--forge-cat-5-bg); --forge-tag-text: var(--forge-cat-5-text); }
|
|
1942
|
+
.forge-tag--cat-6 { --forge-tag-bg: var(--forge-cat-6-bg); --forge-tag-text: var(--forge-cat-6-text); }
|
|
1943
|
+
.forge-tag--cat-7 { --forge-tag-bg: var(--forge-cat-7-bg); --forge-tag-text: var(--forge-cat-7-text); }
|
|
1944
|
+
.forge-tag--cat-8 { --forge-tag-bg: var(--forge-cat-8-bg); --forge-tag-text: var(--forge-cat-8-text); }
|
|
1945
|
+
|
|
1946
|
+
/* +N when not all tags fit */
|
|
1947
|
+
.forge-tag--more {
|
|
1948
|
+
--forge-tag-bg: transparent;
|
|
1949
|
+
--forge-tag-text: var(--forge-text-secondary);
|
|
1950
|
+
box-shadow: inset 0 0 0 1px var(--forge-border-strong);
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
.forge-tag-label {
|
|
1954
|
+
min-width: 0;
|
|
1955
|
+
overflow: hidden;
|
|
1956
|
+
text-overflow: ellipsis;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
/* <button class="forge-tag-remove" aria-label="Remove tag Downtown"> inside a tag */
|
|
1960
|
+
.forge-tag-remove {
|
|
1961
|
+
display: inline-flex;
|
|
1962
|
+
align-items: center;
|
|
1963
|
+
justify-content: center;
|
|
1964
|
+
width: var(--forge-icon-md);
|
|
1965
|
+
height: var(--forge-icon-md);
|
|
1966
|
+
margin-inline-end: calc(var(--forge-space-1) * -1);
|
|
1967
|
+
padding: 0;
|
|
1968
|
+
border: 0;
|
|
1969
|
+
border-radius: var(--forge-radius-sm) !important; /* bootstrap-override */
|
|
1970
|
+
background: none;
|
|
1971
|
+
color: inherit;
|
|
1972
|
+
cursor: pointer;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
.forge-tag-remove:hover {
|
|
1976
|
+
background: color-mix(in srgb, currentColor 16%, transparent);
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
/* Inset: a 2px gap would reach past the tag's edge */
|
|
1980
|
+
.forge-tag-remove:focus-visible {
|
|
1981
|
+
outline: 2px solid var(--forge-focus-ring-strong);
|
|
1982
|
+
outline-offset: -2px;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
.forge-tag-list {
|
|
1986
|
+
display: flex;
|
|
1987
|
+
flex-wrap: wrap;
|
|
1988
|
+
gap: var(--forge-space-1);
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
/* -------------------- STATUS AND PILL -------------------- */
|
|
1992
|
+
/* The state of an entry, set by the system or the workflow. Dot by default (<span class="forge-status
|
|
1993
|
+
forge-status--success">Accepted</span>), a pill where the state is the point of the row or header. The word carries
|
|
1994
|
+
the meaning; the color only supports it. Text mixes per intent are the largest that pass 4.5:1 in both themes */
|
|
1995
|
+
.forge-status,
|
|
1996
|
+
.forge-pill {
|
|
1997
|
+
--forge-status-color: var(--forge-text-secondary);
|
|
1998
|
+
--forge-status-text-mix: 70%;
|
|
1999
|
+
display: inline-flex;
|
|
2000
|
+
align-items: center;
|
|
2001
|
+
gap: var(--forge-space-2);
|
|
2002
|
+
white-space: nowrap;
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
.forge-status::before {
|
|
2006
|
+
content: "";
|
|
2007
|
+
flex: none;
|
|
2008
|
+
width: var(--forge-space-2);
|
|
2009
|
+
height: var(--forge-space-2);
|
|
2010
|
+
border-radius: var(--forge-radius-full);
|
|
2011
|
+
background: var(--forge-status-color);
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
.forge-pill {
|
|
2015
|
+
gap: var(--forge-space-1);
|
|
2016
|
+
padding: calc(var(--forge-space-1) / 2) var(--forge-space-2);
|
|
2017
|
+
border-radius: var(--forge-radius-full);
|
|
2018
|
+
background: color-mix(in oklab, var(--forge-status-color) 16%, var(--forge-surface-container-lowest));
|
|
2019
|
+
color: color-mix(in oklab, var(--forge-status-color) var(--forge-status-text-mix), var(--forge-text-primary));
|
|
2020
|
+
font-size: var(--forge-size-xs);
|
|
2021
|
+
font-weight: var(--forge-font-weight-medium);
|
|
2022
|
+
line-height: var(--forge-line-height-snug);
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
.forge-pill > :is(svg, fa-icon) {
|
|
2026
|
+
width: var(--forge-icon-sm);
|
|
2027
|
+
height: var(--forge-icon-sm);
|
|
2028
|
+
font-size: var(--forge-icon-sm);
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
.forge-pill--neutral {
|
|
2032
|
+
background: var(--forge-hover-bg);
|
|
2033
|
+
color: var(--forge-text-secondary);
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
:is(.forge-status, .forge-pill).forge-status--success { --forge-status-color: var(--forge-success); }
|
|
2037
|
+
:is(.forge-status, .forge-pill).forge-status--warning { --forge-status-color: var(--forge-warning); --forge-status-text-mix: 50%; }
|
|
2038
|
+
:is(.forge-status, .forge-pill).forge-status--danger { --forge-status-color: var(--forge-danger); }
|
|
2039
|
+
:is(.forge-status, .forge-pill).forge-status--info { --forge-status-color: var(--forge-info); --forge-status-text-mix: 75%; }
|
|
2040
|
+
:is(.forge-status, .forge-pill).forge-status--primary { --forge-status-color: var(--forge-primary); --forge-status-text-mix: 80%; }
|
|
2041
|
+
|
|
2042
|
+
/* A danger dot reads its word in the danger color too */
|
|
2043
|
+
.forge-status.forge-status--danger {
|
|
2044
|
+
color: color-mix(in oklab, var(--forge-danger) 70%, var(--forge-text-primary));
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
/* -------------------- FORM FIELD -------------------- */
|
|
2048
|
+
/* <div class="forge-field"><label class="forge-field-label" for="x">…</label><input class="forge-input" id="x"
|
|
2049
|
+
aria-describedby="x-hint"><div class="forge-field-hint" id="x-hint">…</div></div>. The app wires for / id /
|
|
2050
|
+
aria-describedby; an error replaces the hint and the input gets aria-invalid="true" */
|
|
2051
|
+
.forge-field {
|
|
2052
|
+
display: flex;
|
|
2053
|
+
flex-direction: column;
|
|
2054
|
+
gap: var(--forge-space-1);
|
|
2055
|
+
min-width: 0;
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
.forge-field-label {
|
|
2059
|
+
display: inline-flex !important; /* bootstrap-override */
|
|
2060
|
+
align-items: center;
|
|
2061
|
+
gap: var(--forge-space-1);
|
|
2062
|
+
margin: 0 !important; /* bootstrap-override */
|
|
2063
|
+
color: var(--forge-text-primary) !important; /* bootstrap-override: sds-bootstrap colors every label */
|
|
2064
|
+
font-size: var(--forge-size-sm);
|
|
2065
|
+
font-weight: var(--forge-font-weight-medium);
|
|
2066
|
+
line-height: 1.25rem; /* 20px, on the 4px grid */
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
/* <span class="forge-field-required" aria-hidden="true">*</span>; the input carries aria-required / required */
|
|
2070
|
+
.forge-field-required {
|
|
2071
|
+
color: color-mix(in oklab, var(--forge-danger) 70%, var(--forge-text-primary));
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
.forge-field-hint {
|
|
2075
|
+
color: var(--forge-text-secondary);
|
|
2076
|
+
font-size: var(--forge-size-xs);
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
.forge-field-error {
|
|
2080
|
+
color: color-mix(in oklab, var(--forge-danger) 70%, var(--forge-text-primary));
|
|
2081
|
+
font-size: var(--forge-size-xs);
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
.forge-input[aria-invalid="true"] {
|
|
2085
|
+
border-color: var(--forge-danger) !important; /* bootstrap-override */
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
/* Four columns: a field spans all, --half spans two, --quarter one */
|
|
2089
|
+
.forge-form-grid {
|
|
2090
|
+
display: grid;
|
|
2091
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
2092
|
+
gap: var(--forge-space-4);
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
.forge-form-grid > * {
|
|
2096
|
+
grid-column: 1 / -1;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
.forge-form-grid > .forge-field--half {
|
|
2100
|
+
grid-column: span 2;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
.forge-form-grid > .forge-field--quarter {
|
|
2104
|
+
grid-column: span 1;
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
/* Two fields read as one value (Od – Do) */
|
|
2108
|
+
.forge-field-pair {
|
|
2109
|
+
display: grid;
|
|
2110
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
2111
|
+
align-items: center;
|
|
2112
|
+
gap: var(--forge-space-2);
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
/* -------------------- CHECKBOX AND RADIO -------------------- */
|
|
2116
|
+
/* <label class="forge-check"><input type="checkbox"><span>Aktivna</span></label>: native inputs in the primary */
|
|
2117
|
+
.forge-check {
|
|
2118
|
+
display: inline-flex !important; /* bootstrap-override */
|
|
2119
|
+
align-items: center;
|
|
2120
|
+
gap: var(--forge-space-2);
|
|
2121
|
+
margin: 0 !important; /* bootstrap-override */
|
|
2122
|
+
color: var(--forge-text-primary) !important; /* bootstrap-override: sds-bootstrap colors every label */
|
|
2123
|
+
font-size: var(--forge-size-sm) !important; /* bootstrap-override: sds-bootstrap sizes every label; an option is body text */
|
|
2124
|
+
font-weight: normal !important; /* bootstrap-override: sds-bootstrap bolds every label */
|
|
2125
|
+
/* A control's label, on the 4px grid in whole pixels (20px at 14px), not the body's 22.4px: the input snaps to
|
|
2126
|
+
whole pixels, so a fractional line would put the text off the input's center, and off a button's in a row */
|
|
2127
|
+
line-height: 1.25rem;
|
|
2128
|
+
cursor: pointer;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
.forge-check > input {
|
|
2132
|
+
flex: none;
|
|
2133
|
+
width: var(--forge-icon-md);
|
|
2134
|
+
height: var(--forge-icon-md);
|
|
2135
|
+
margin: 0;
|
|
2136
|
+
accent-color: var(--forge-primary);
|
|
2137
|
+
cursor: pointer;
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
.forge-check > input:focus-visible {
|
|
2141
|
+
outline: 2px solid var(--forge-focus-ring);
|
|
2142
|
+
outline-offset: 2px;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
/* A setting that applies at once: <label class="forge-check forge-check--switch">
|
|
2146
|
+
<input type="checkbox" role="switch"><span>Notifications</span></label>. The track is drawn on the native
|
|
2147
|
+
checkbox, so keyboard, form value and `checked` stay native. Off: a light track with a light outline and a
|
|
2148
|
+
small tertiary thumb (the thumb, which shows the state, carries the 3:1 to the card and the page); on: the
|
|
2149
|
+
primary, the thumb grown to full size at the end. The outline is a border, not a shadow, so forced colors keep
|
|
2150
|
+
it.
|
|
2151
|
+
Everything is sized from the track height, --_switch-h */
|
|
2152
|
+
.forge-check--switch {
|
|
2153
|
+
--_switch-h: var(--forge-icon-md);
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
/* In a filter toolbar, next to 36px controls: a 24px track, also a 24px target on its own */
|
|
2157
|
+
.forge-check--switch.forge-check--lg {
|
|
2158
|
+
--_switch-h: 1.5rem;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
.forge-check--switch > input {
|
|
2162
|
+
appearance: none;
|
|
2163
|
+
position: relative;
|
|
2164
|
+
box-sizing: border-box;
|
|
2165
|
+
width: calc(var(--_switch-h) * 1.75);
|
|
2166
|
+
height: var(--_switch-h);
|
|
2167
|
+
border: 1px solid var(--forge-border-strong);
|
|
2168
|
+
border-radius: var(--forge-radius-full);
|
|
2169
|
+
background: var(--forge-hover-bg);
|
|
2170
|
+
transition:
|
|
2171
|
+
background-color var(--forge-motion-fast) var(--forge-ease-out),
|
|
2172
|
+
border-color var(--forge-motion-fast) var(--forge-ease-out);
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
/* The thumb sits in the box inside the 1px border, (--_switch-h - 2px) high. Off it is half the track height,
|
|
2176
|
+
centered where the full-size thumb starts; on it is 2px smaller than that box, 1px in from its edges, and
|
|
2177
|
+
slides to the end */
|
|
2178
|
+
.forge-check--switch > input::before {
|
|
2179
|
+
content: '';
|
|
2180
|
+
position: absolute;
|
|
2181
|
+
inset-block-start: calc(var(--_switch-h) / 4 - 1px);
|
|
2182
|
+
inset-inline-start: calc(var(--_switch-h) / 4 - 1px);
|
|
2183
|
+
width: calc(var(--_switch-h) / 2);
|
|
2184
|
+
height: calc(var(--_switch-h) / 2);
|
|
2185
|
+
border-radius: var(--forge-radius-full);
|
|
2186
|
+
background: var(--forge-text-tertiary);
|
|
2187
|
+
transition:
|
|
2188
|
+
translate var(--forge-motion-fast) var(--forge-ease-out),
|
|
2189
|
+
width var(--forge-motion-fast) var(--forge-ease-out),
|
|
2190
|
+
height var(--forge-motion-fast) var(--forge-ease-out),
|
|
2191
|
+
inset-block-start var(--forge-motion-fast) var(--forge-ease-out),
|
|
2192
|
+
inset-inline-start var(--forge-motion-fast) var(--forge-ease-out),
|
|
2193
|
+
background-color var(--forge-motion-fast) var(--forge-ease-out);
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
.forge-check--switch > input:hover:not(:checked, :disabled)::before {
|
|
2197
|
+
background: var(--forge-text-secondary);
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
.forge-check--switch > input:checked {
|
|
2201
|
+
background: var(--forge-primary);
|
|
2202
|
+
border-color: var(--forge-primary);
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
.forge-check--switch > input:checked::before {
|
|
2206
|
+
inset-block-start: 1px;
|
|
2207
|
+
inset-inline-start: 1px;
|
|
2208
|
+
width: calc(var(--_switch-h) - 4px);
|
|
2209
|
+
height: calc(var(--_switch-h) - 4px);
|
|
2210
|
+
background: var(--forge-text-on-primary);
|
|
2211
|
+
translate: calc(var(--_switch-h) * 0.75) 0;
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
[dir='rtl'] .forge-check--switch > input:checked::before {
|
|
2215
|
+
translate: calc(var(--_switch-h) * -0.75) 0;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
.forge-check--switch > input:disabled:not(:checked) {
|
|
2219
|
+
border-color: var(--forge-border);
|
|
2220
|
+
background: transparent;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
.forge-check--switch > input:disabled:not(:checked)::before {
|
|
2224
|
+
background: var(--forge-border-strong);
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
.forge-check--switch > input:checked:disabled {
|
|
2228
|
+
background: var(--forge-border-strong);
|
|
2229
|
+
border-color: var(--forge-border-strong);
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
.forge-check--switch > input:checked:disabled::before {
|
|
2233
|
+
background: var(--forge-surface-container);
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
.forge-check:has(> input:disabled) {
|
|
2237
|
+
color: var(--forge-text-tertiary) !important; /* bootstrap-override */
|
|
2238
|
+
cursor: not-allowed;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
/* A parent and its options: <div class="forge-check-group"><label class="forge-check">…</label>
|
|
2242
|
+
<div class="forge-check-children">…</div></div> */
|
|
2243
|
+
.forge-check-group {
|
|
2244
|
+
display: flex;
|
|
2245
|
+
flex-direction: column;
|
|
2246
|
+
gap: var(--forge-space-2);
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
.forge-check-children {
|
|
2250
|
+
display: flex;
|
|
2251
|
+
flex-direction: column;
|
|
2252
|
+
gap: var(--forge-space-2);
|
|
2253
|
+
padding-inline-start: calc(var(--forge-icon-md) + var(--forge-space-2));
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
/* -------------------- LIST FRAME -------------------- */
|
|
2257
|
+
/* A list inside a popup: a frame on all sides, lines between the rows stop short of the edges, an action that adds
|
|
2258
|
+
a row sits in the frame's last row (.forge-list-frame-foot). Lists on a page have no frame, see .forge-list */
|
|
2259
|
+
.forge-list-frame {
|
|
2260
|
+
overflow: hidden;
|
|
2261
|
+
border: 1px solid var(--forge-border);
|
|
2262
|
+
border-radius: var(--forge-radius-md);
|
|
2263
|
+
background: var(--forge-surface-container-lowest);
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
.forge-list-frame-rows > * + *,
|
|
2267
|
+
.forge-list-frame-foot {
|
|
2268
|
+
position: relative;
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
.forge-list-frame-rows > * + *::before,
|
|
2272
|
+
.forge-list-frame-foot::before {
|
|
2273
|
+
content: "";
|
|
2274
|
+
position: absolute;
|
|
2275
|
+
top: 0;
|
|
2276
|
+
inset-inline: var(--forge-space-4);
|
|
2277
|
+
height: 1px;
|
|
2278
|
+
background: var(--forge-border);
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
.forge-list-frame-foot {
|
|
2282
|
+
padding: var(--forge-space-2) var(--forge-space-4);
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
/* -------------------- SCROLL FADE -------------------- */
|
|
2286
|
+
/* How a box shows there is more to scroll (the navigation container, the modal body): the content fades out at the
|
|
2287
|
+
edge it continues past. A mask, so any background works, nothing to set. No script: a scroll-driven animation
|
|
2288
|
+
(animation-timeline) grows the top fade over the first --forge-scroll-fade-size of scrolling and shrinks the
|
|
2289
|
+
bottom one over the last; a box that doesn't overflow has no timeline and no fade. Browsers without scroll-driven
|
|
2290
|
+
animations (Firefox for now) show no fade at all. The mask leaves out a strip for the thin scrollbar, so the
|
|
2291
|
+
scrollbar stays solid; scroll padding keeps a focused item clear of the fades. The box sets its own overflow */
|
|
2292
|
+
@supports (animation-timeline: scroll()) {
|
|
2293
|
+
.forge-scroll-fade,
|
|
2294
|
+
.forge-navigation-level-links,
|
|
2295
|
+
.forge-page-body--fade {
|
|
2296
|
+
--forge-scroll-fade-size: 32px;
|
|
2297
|
+
--forge-scroll-fade-bar: 12px; /* the thin scrollbar's strip, left solid; 0px for a box without a scrollbar */
|
|
2298
|
+
|
|
2299
|
+
scrollbar-width: thin;
|
|
2300
|
+
scroll-padding-block: var(--forge-scroll-fade-size);
|
|
2301
|
+
mask-image:
|
|
2302
|
+
linear-gradient(
|
|
2303
|
+
to bottom,
|
|
2304
|
+
transparent,
|
|
2305
|
+
#000 var(--forge-scroll-fade-top),
|
|
2306
|
+
#000 calc(100% - var(--forge-scroll-fade-bottom)),
|
|
2307
|
+
transparent
|
|
2308
|
+
),
|
|
2309
|
+
linear-gradient(#000, #000);
|
|
2310
|
+
mask-size:
|
|
2311
|
+
calc(100% - var(--forge-scroll-fade-bar)) 100%,
|
|
2312
|
+
var(--forge-scroll-fade-bar) 100%;
|
|
2313
|
+
mask-position: 0 0, 100% 0;
|
|
2314
|
+
mask-repeat: no-repeat;
|
|
2315
|
+
/* Longhands: the animation shorthand would reset the timeline */
|
|
2316
|
+
animation-name: forge-scroll-fade-top, forge-scroll-fade-bottom;
|
|
2317
|
+
animation-duration: auto;
|
|
2318
|
+
animation-timing-function: linear;
|
|
2319
|
+
animation-fill-mode: both;
|
|
2320
|
+
animation-timeline: scroll(self block);
|
|
2321
|
+
animation-range:
|
|
2322
|
+
0 var(--forge-scroll-fade-size),
|
|
2323
|
+
calc(100% - var(--forge-scroll-fade-size)) 100%;
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
/* The scrollbar is on the left in right-to-left text */
|
|
2327
|
+
.forge-scroll-fade:dir(rtl),
|
|
2328
|
+
.forge-navigation-level-links:dir(rtl),
|
|
2329
|
+
.forge-page-body--fade:dir(rtl) {
|
|
2330
|
+
mask-position: 100% 0, 0 0;
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
/* A page body that fades at the edges it scrolls past (the content fades under the page top). Not
|
|
2334
|
+
.forge-scroll-fade on the body: the page keeps its own scrollbar, the system width with a stable gutter (as
|
|
2335
|
+
every page), and the strip left solid is wide enough for it (15–17px); the body's inline padding beside it
|
|
2336
|
+
holds no content */
|
|
2337
|
+
.forge-page-body--fade {
|
|
2338
|
+
--forge-scroll-fade-bar: 24px;
|
|
2339
|
+
|
|
2340
|
+
scrollbar-width: auto;
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
/* -------------------- SECOND-LEVEL NAVIGATION LINKS -------------------- */
|
|
2345
|
+
/* In a forge-navigation-level, the div around the links: the rows before it (the way back, a find box) stay put and
|
|
2346
|
+
only the links scroll, with the scroll fade (below). The level fills the container when it has this div (its own
|
|
2347
|
+
styles). The div reaches over the level's inline padding, so its scrollbar sits at the side bar's edge. The
|
|
2348
|
+
collapsed rail shows no scrollbar and fades the full width; a level that leaves hides its scrollbar while it fades
|
|
2349
|
+
out, without removing it, so the links don't shift */
|
|
2350
|
+
.forge-navigation-level-links {
|
|
2351
|
+
display: flex;
|
|
2352
|
+
flex: 1 1 0;
|
|
2353
|
+
flex-direction: column;
|
|
2354
|
+
gap: 1px;
|
|
2355
|
+
min-height: 0;
|
|
2356
|
+
margin: var(--forge-space-1) calc(-1 * var(--forge-space-2)) 0;
|
|
2357
|
+
padding-inline: var(--forge-space-2);
|
|
2358
|
+
overflow-x: hidden;
|
|
2359
|
+
overflow-y: auto;
|
|
2360
|
+
scrollbar-width: thin;
|
|
2361
|
+
scrollbar-color: var(--forge-scrollbar-thumb) transparent;
|
|
2362
|
+
|
|
2363
|
+
&:hover {
|
|
2364
|
+
scrollbar-color: var(--forge-scrollbar-thumb-hover) transparent;
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
.forge-navigation-container[data-collapsed] .forge-navigation-level-links {
|
|
2369
|
+
--forge-scroll-fade-bar: 0px;
|
|
2370
|
+
|
|
2371
|
+
scrollbar-width: none;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
.forge-navigation-level[data-forge-leave] > .forge-navigation-level-links {
|
|
2375
|
+
scrollbar-color: transparent transparent;
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
/* -------------------- CHOICE MATRIX -------------------- */
|
|
2379
|
+
/* <table class="forge-choice-matrix">: one choice per row from the same few levels; the levels are the column
|
|
2380
|
+
headers, each cell a radio with an aria-label naming row and level */
|
|
2381
|
+
.forge-choice-matrix {
|
|
2382
|
+
width: 100%;
|
|
2383
|
+
border-collapse: collapse;
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
.forge-choice-matrix :is(th, td) {
|
|
2387
|
+
padding: var(--forge-space-2) var(--forge-space-4);
|
|
2388
|
+
line-height: var(--forge-line-height-snug);
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
.forge-choice-matrix thead th {
|
|
2392
|
+
color: var(--forge-text-secondary);
|
|
2393
|
+
font-size: var(--forge-size-xs);
|
|
2394
|
+
font-weight: var(--forge-font-weight-medium);
|
|
2395
|
+
text-align: center;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
.forge-choice-matrix thead th:first-child,
|
|
2399
|
+
.forge-choice-matrix tbody th {
|
|
2400
|
+
text-align: start;
|
|
2401
|
+
font-weight: normal;
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
.forge-choice-matrix td {
|
|
2405
|
+
width: 5rem;
|
|
2406
|
+
text-align: center;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
.forge-choice-matrix tbody tr {
|
|
2410
|
+
border-top: 1px solid var(--forge-border);
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
.forge-choice-matrix tbody tr:hover {
|
|
2414
|
+
background: var(--forge-hover-bg);
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
.forge-choice-matrix input {
|
|
2418
|
+
width: var(--forge-icon-md);
|
|
2419
|
+
height: var(--forge-icon-md);
|
|
2420
|
+
margin: 0;
|
|
2421
|
+
accent-color: var(--forge-primary);
|
|
2422
|
+
cursor: pointer;
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
/* -------------------- EDITABLE ROWS -------------------- */
|
|
2426
|
+
/* <table class="forge-editable-rows"> inside a .forge-list-frame: a short list edited in place, a drag handle
|
|
2427
|
+
(Angular CDK drag-drop in the app), inputs, a delete icon button. All edits happen in a popup */
|
|
2428
|
+
.forge-editable-rows {
|
|
2429
|
+
width: 100%;
|
|
2430
|
+
border-collapse: collapse;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
.forge-editable-rows th {
|
|
2434
|
+
padding: var(--forge-space-2);
|
|
2435
|
+
color: var(--forge-text-secondary);
|
|
2436
|
+
font-size: var(--forge-size-xs);
|
|
2437
|
+
font-weight: var(--forge-font-weight-medium);
|
|
2438
|
+
text-align: start;
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
.forge-editable-rows td {
|
|
2442
|
+
padding: var(--forge-space-2);
|
|
2443
|
+
border-top: 1px solid var(--forge-border);
|
|
2444
|
+
vertical-align: middle;
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
.forge-editable-rows-grip {
|
|
2448
|
+
width: calc(var(--forge-icon-md) + var(--forge-space-4));
|
|
2449
|
+
color: var(--forge-text-tertiary);
|
|
2450
|
+
text-align: center;
|
|
2451
|
+
cursor: grab;
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
.forge-editable-rows tr.cdk-drag-preview,
|
|
2455
|
+
.forge-editable-rows tr.cdk-drag-placeholder {
|
|
2456
|
+
background: color-mix(in oklab, var(--forge-primary) 12%, var(--forge-surface-container-lowest));
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
/* -------------------- LINKED REFERENCE -------------------- */
|
|
2460
|
+
/* A value that is a live link to a shared item (a competence following a shared scale): icon, label, name, then
|
|
2461
|
+
actions (unlink, choose). Looks like a field */
|
|
2462
|
+
.forge-linkref {
|
|
2463
|
+
display: flex;
|
|
2464
|
+
align-items: center;
|
|
2465
|
+
gap: var(--forge-space-2);
|
|
2466
|
+
min-height: var(--forge-control-height-md);
|
|
2467
|
+
padding: var(--forge-space-1) var(--forge-space-2) var(--forge-space-1) var(--forge-space-3);
|
|
2468
|
+
border: 1px solid var(--forge-border-strong);
|
|
2469
|
+
/* A field's corners, as .forge-input */
|
|
2470
|
+
border-radius: var(--forge-radius-sm);
|
|
2471
|
+
background: var(--forge-surface-container-lowest);
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
.forge-linkref > :is(svg, fa-icon):first-child {
|
|
2475
|
+
flex: none;
|
|
2476
|
+
color: var(--forge-primary);
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
.forge-linkref-label {
|
|
2480
|
+
flex: none;
|
|
2481
|
+
color: var(--forge-text-secondary);
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
.forge-linkref-name {
|
|
2485
|
+
min-width: 0;
|
|
2486
|
+
overflow: hidden;
|
|
2487
|
+
font-weight: var(--forge-font-weight-medium);
|
|
2488
|
+
text-overflow: ellipsis;
|
|
2489
|
+
white-space: nowrap;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
.forge-linkref--empty .forge-linkref-name {
|
|
2493
|
+
color: var(--forge-text-secondary);
|
|
2494
|
+
font-weight: normal;
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
.forge-linkref-actions {
|
|
2498
|
+
display: flex;
|
|
2499
|
+
flex: none;
|
|
2500
|
+
align-items: center;
|
|
2501
|
+
gap: var(--forge-space-1);
|
|
2502
|
+
margin-inline-start: auto;
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
/* -------------------- LIST AND LIST LINK -------------------- */
|
|
2506
|
+
/* <div class="forge-list"> of rows that lead one level deeper. Lists on a page have horizontal lines only. The
|
|
2507
|
+
row is a .forge-list-link whose <a class="forge-list-link-anchor"> covers it, so the whole row is the link
|
|
2508
|
+
and a star button can sit beside it (a button inside a link is invalid HTML) */
|
|
2509
|
+
.forge-list {
|
|
2510
|
+
border-block: 1px solid var(--forge-border);
|
|
2511
|
+
background: var(--forge-surface-container-lowest);
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
.forge-list-link {
|
|
2515
|
+
position: relative;
|
|
2516
|
+
display: flex;
|
|
2517
|
+
align-items: center;
|
|
2518
|
+
gap: var(--forge-space-4);
|
|
2519
|
+
padding: var(--forge-space-4);
|
|
2520
|
+
transition: background-color var(--forge-motion-fast) var(--forge-ease-out);
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
.forge-list-link + .forge-list-link {
|
|
2524
|
+
border-top: 1px solid var(--forge-border);
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
.forge-list-link:hover {
|
|
2528
|
+
background: var(--forge-hover-bg);
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
.forge-list-link:has(.forge-list-link-anchor:focus-visible) {
|
|
2532
|
+
outline: 2px solid var(--forge-focus-ring-strong);
|
|
2533
|
+
outline-offset: -2px;
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
.forge-list-link-anchor {
|
|
2537
|
+
color: var(--forge-text-primary) !important; /* bootstrap-override */
|
|
2538
|
+
font-weight: var(--forge-font-weight-bold);
|
|
2539
|
+
text-decoration: none !important; /* bootstrap-override */
|
|
2540
|
+
outline: none;
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
.forge-list-link-anchor::after {
|
|
2544
|
+
content: "";
|
|
2545
|
+
position: absolute;
|
|
2546
|
+
inset: 0;
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
/* Controls beside the link (star, more) stay clickable above the covering link */
|
|
2550
|
+
.forge-list-link :is(button, .forge-icon-button) {
|
|
2551
|
+
position: relative;
|
|
2552
|
+
z-index: var(--forge-z-raised);
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2555
|
+
.forge-list-link-icon {
|
|
2556
|
+
display: flex;
|
|
2557
|
+
flex: none;
|
|
2558
|
+
align-items: center;
|
|
2559
|
+
justify-content: center;
|
|
2560
|
+
width: var(--forge-control-height-md);
|
|
2561
|
+
height: var(--forge-control-height-md);
|
|
2562
|
+
border-radius: var(--forge-radius-md);
|
|
2563
|
+
background: color-mix(in oklab, var(--forge-primary) 12%, var(--forge-surface-container-lowest));
|
|
2564
|
+
color: var(--forge-primary);
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
.forge-list-link-icon > :is(svg, fa-icon) {
|
|
2568
|
+
width: var(--forge-icon-lg);
|
|
2569
|
+
height: var(--forge-icon-lg);
|
|
2570
|
+
font-size: var(--forge-icon-lg);
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
.forge-list-link-body {
|
|
2574
|
+
display: flex;
|
|
2575
|
+
flex: 1;
|
|
2576
|
+
flex-direction: column;
|
|
2577
|
+
gap: calc(var(--forge-space-1) / 2);
|
|
2578
|
+
min-width: 0;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
.forge-list-link-desc {
|
|
2582
|
+
overflow: hidden;
|
|
2583
|
+
color: var(--forge-text-secondary);
|
|
2584
|
+
font-size: var(--forge-size-xs);
|
|
2585
|
+
text-overflow: ellipsis;
|
|
2586
|
+
white-space: nowrap;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
.forge-list-link-meta {
|
|
2590
|
+
flex: none;
|
|
2591
|
+
color: var(--forge-text-secondary);
|
|
2592
|
+
font-size: var(--forge-size-xs);
|
|
2593
|
+
font-variant-numeric: tabular-nums;
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
.forge-list-link-chevron {
|
|
2597
|
+
flex: none;
|
|
2598
|
+
color: var(--forge-text-secondary);
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
/* -------------------- ATTRIBUTE BLOCK (key / value) -------------------- */
|
|
2602
|
+
/* <dl class="forge-kv"><div class="forge-kv-row"><dt>Valid until</dt><dd>Dec 31, 2027</dd></div></dl>: the data of
|
|
2603
|
+
one entry, read only. Values in a column as wide as the longest value, not at the far edge */
|
|
2604
|
+
.forge-kv {
|
|
2605
|
+
display: grid;
|
|
2606
|
+
grid-template-columns: minmax(0, 1fr) max-content;
|
|
2607
|
+
margin: 0 !important; /* bootstrap-override */
|
|
2608
|
+
border-block: 1px solid var(--forge-border);
|
|
2609
|
+
background: var(--forge-surface-container-lowest);
|
|
2610
|
+
}
|
|
2611
|
+
|
|
2612
|
+
.forge-kv-row {
|
|
2613
|
+
display: grid;
|
|
2614
|
+
grid-column: 1 / -1;
|
|
2615
|
+
grid-template-columns: subgrid;
|
|
2616
|
+
column-gap: var(--forge-space-4);
|
|
2617
|
+
align-items: center;
|
|
2618
|
+
padding: var(--forge-space-2) var(--forge-space-4);
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
.forge-kv-row + .forge-kv-row {
|
|
2622
|
+
border-top: 1px solid var(--forge-border);
|
|
2623
|
+
}
|
|
2624
|
+
|
|
2625
|
+
.forge-kv dt {
|
|
2626
|
+
color: var(--forge-text-primary);
|
|
2627
|
+
font-weight: normal !important; /* bootstrap-override */
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
.forge-kv dd {
|
|
2631
|
+
margin: 0 !important; /* bootstrap-override */
|
|
2632
|
+
color: var(--forge-text-secondary);
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
/* -------------------- SECTION HEADER, TOOLBAR -------------------- */
|
|
2636
|
+
/* A second part of a page: a title (a heading with a size class), its actions, an optional description */
|
|
2637
|
+
.forge-section-header {
|
|
2638
|
+
display: flex;
|
|
2639
|
+
flex-wrap: wrap;
|
|
2640
|
+
align-items: center;
|
|
2641
|
+
justify-content: space-between;
|
|
2642
|
+
gap: var(--forge-space-2) var(--forge-space-4);
|
|
2643
|
+
min-height: var(--forge-control-height-md);
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
.forge-section-header > :is(h1, h2, h3, h4, h5, h6) {
|
|
2647
|
+
margin: 0;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
.forge-section-header-desc {
|
|
2651
|
+
margin: var(--forge-space-1) 0 0 !important; /* bootstrap-override */
|
|
2652
|
+
color: var(--forge-text-secondary);
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2655
|
+
/* The actions of a list or page: search, view settings, add, more */
|
|
2656
|
+
.forge-toolbar {
|
|
2657
|
+
display: flex;
|
|
2658
|
+
flex-wrap: wrap;
|
|
2659
|
+
align-items: center;
|
|
2660
|
+
gap: var(--forge-space-2);
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
/* -------------------- BACK LINK -------------------- */
|
|
2664
|
+
/* <a class="forge-back-link"><svg…>Back to code lists</a>: one level up, above the page header */
|
|
2665
|
+
.forge-back-link {
|
|
2666
|
+
display: inline-flex;
|
|
2667
|
+
align-items: center;
|
|
2668
|
+
gap: var(--forge-space-2);
|
|
2669
|
+
color: var(--forge-text-primary) !important; /* bootstrap-override */
|
|
2670
|
+
text-decoration: none !important; /* bootstrap-override */
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
.forge-back-link:hover {
|
|
2674
|
+
color: var(--forge-primary) !important; /* bootstrap-override */
|
|
2675
|
+
text-decoration: underline !important; /* bootstrap-override */
|
|
2676
|
+
text-underline-offset: 2px;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
.forge-back-link > :is(svg, fa-icon) {
|
|
2680
|
+
width: var(--forge-icon-sm);
|
|
2681
|
+
height: var(--forge-icon-sm);
|
|
2682
|
+
font-size: var(--forge-icon-sm);
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
.forge-back-link:focus-visible {
|
|
2686
|
+
border-radius: var(--forge-radius-sm);
|
|
2687
|
+
outline: 2px solid var(--forge-focus-ring);
|
|
2688
|
+
outline-offset: 2px;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
/* -------------------- EMPTY STATE -------------------- */
|
|
2692
|
+
/* Shown in place of a list with no entries: what is missing and, if possible, the action that adds the first one */
|
|
2693
|
+
.forge-empty {
|
|
2694
|
+
display: flex;
|
|
2695
|
+
flex-direction: column;
|
|
2696
|
+
align-items: center;
|
|
2697
|
+
gap: var(--forge-space-2);
|
|
2698
|
+
padding: var(--forge-space-6) var(--forge-space-4);
|
|
2699
|
+
color: var(--forge-text-secondary);
|
|
2700
|
+
text-align: center;
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
/* -------------------- LINK CARD PARTS -------------------- */
|
|
2704
|
+
/* Inside a .forge-card on an entry page: an icon tile and a title, a short description, a list of links */
|
|
2705
|
+
.forge-card-head {
|
|
2706
|
+
display: flex;
|
|
2707
|
+
align-items: center;
|
|
2708
|
+
gap: var(--forge-space-4);
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
.forge-card-icon {
|
|
2712
|
+
display: flex;
|
|
2713
|
+
flex: none;
|
|
2714
|
+
align-items: center;
|
|
2715
|
+
justify-content: center;
|
|
2716
|
+
width: var(--forge-control-height-md);
|
|
2717
|
+
height: var(--forge-control-height-md);
|
|
2718
|
+
border-radius: var(--forge-radius-md);
|
|
2719
|
+
background: color-mix(in oklab, var(--forge-primary) 12%, var(--forge-surface-container-lowest));
|
|
2720
|
+
color: var(--forge-primary);
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
.forge-card-links {
|
|
2724
|
+
display: flex;
|
|
2725
|
+
flex-direction: column;
|
|
2726
|
+
margin: 0 !important; /* bootstrap-override */
|
|
2727
|
+
padding: 0 !important; /* bootstrap-override */
|
|
2728
|
+
list-style: none;
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
.forge-card-links--cols {
|
|
2732
|
+
display: grid;
|
|
2733
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2734
|
+
column-gap: var(--forge-space-4);
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
.forge-card-links a {
|
|
2738
|
+
display: inline-block;
|
|
2739
|
+
padding-block: var(--forge-space-1);
|
|
2740
|
+
color: var(--forge-text-primary) !important; /* bootstrap-override */
|
|
2741
|
+
text-decoration: underline !important; /* bootstrap-override */
|
|
2742
|
+
text-underline-offset: 2px;
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
.forge-card-links a:hover {
|
|
2746
|
+
color: var(--forge-primary) !important; /* bootstrap-override */
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
/* -------------------- STEPS -------------------- */
|
|
2750
|
+
/* <ol class="forge-steps"><li class="forge-step" data-done>…</li><li class="forge-step" aria-current="step">…</li>:
|
|
2751
|
+
where the user is in a wizard. The app runs the flow */
|
|
2752
|
+
.forge-steps {
|
|
2753
|
+
display: flex;
|
|
2754
|
+
flex-wrap: wrap;
|
|
2755
|
+
gap: var(--forge-space-2) var(--forge-space-6);
|
|
2756
|
+
margin: 0 !important; /* bootstrap-override */
|
|
2757
|
+
padding: 0 !important; /* bootstrap-override */
|
|
2758
|
+
list-style: none;
|
|
2759
|
+
counter-reset: forge-step;
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
.forge-step {
|
|
2763
|
+
display: inline-flex;
|
|
2764
|
+
align-items: center;
|
|
2765
|
+
gap: var(--forge-space-2);
|
|
2766
|
+
color: var(--forge-text-secondary);
|
|
2767
|
+
counter-increment: forge-step;
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2770
|
+
.forge-step::before {
|
|
2771
|
+
content: counter(forge-step);
|
|
2772
|
+
display: inline-flex;
|
|
2773
|
+
flex: none;
|
|
2774
|
+
align-items: center;
|
|
2775
|
+
justify-content: center;
|
|
2776
|
+
width: var(--forge-icon-button-sm);
|
|
2777
|
+
height: var(--forge-icon-button-sm);
|
|
2778
|
+
border: 1px solid var(--forge-border-strong);
|
|
2779
|
+
border-radius: var(--forge-radius-full);
|
|
2780
|
+
font-size: var(--forge-size-xs);
|
|
2781
|
+
font-weight: var(--forge-font-weight-medium);
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
.forge-step[aria-current="step"] {
|
|
2785
|
+
color: var(--forge-text-primary);
|
|
2786
|
+
font-weight: var(--forge-font-weight-medium);
|
|
2787
|
+
}
|
|
2788
|
+
|
|
2789
|
+
.forge-step[aria-current="step"]::before {
|
|
2790
|
+
border-color: var(--forge-primary);
|
|
2791
|
+
background: var(--forge-primary);
|
|
2792
|
+
color: var(--forge-text-on-primary);
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
.forge-step[data-done]::before {
|
|
2796
|
+
content: "✓";
|
|
2797
|
+
border-color: var(--forge-primary);
|
|
2798
|
+
color: var(--forge-primary);
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
/* -------------------- TABS (Angular Aria) -------------------- */
|
|
2802
|
+
/* On Angular Aria's tabs, like the menu: .forge-tabs on the ngTabList, .forge-tab on each ngTab (Aria sets
|
|
2803
|
+
aria-selected), .forge-tab-panel on ngTabPanel. Tabs mark the selection with the product's brand */
|
|
2804
|
+
.forge-tabs {
|
|
2805
|
+
display: flex;
|
|
2806
|
+
gap: var(--forge-space-1);
|
|
2807
|
+
border-bottom: 1px solid var(--forge-border);
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
.forge-tab {
|
|
2811
|
+
position: relative;
|
|
2812
|
+
padding: var(--forge-space-2) var(--forge-space-3);
|
|
2813
|
+
border: 0;
|
|
2814
|
+
border-radius: var(--forge-radius-md) var(--forge-radius-md) 0 0 !important; /* bootstrap-override */
|
|
2815
|
+
background: none;
|
|
2816
|
+
color: var(--forge-text-secondary);
|
|
2817
|
+
font: inherit;
|
|
2818
|
+
font-weight: var(--forge-font-weight-medium);
|
|
2819
|
+
cursor: pointer;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
.forge-tab:hover {
|
|
2823
|
+
background: var(--forge-hover-bg);
|
|
2824
|
+
color: var(--forge-text-primary);
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
.forge-tab[aria-selected="true"] {
|
|
2828
|
+
color: color-mix(in oklab, var(--forge-brand) 75%, var(--forge-text-primary));
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
.forge-tab[aria-selected="true"]::after {
|
|
2832
|
+
content: "";
|
|
2833
|
+
position: absolute;
|
|
2834
|
+
inset-inline: var(--forge-space-2);
|
|
2835
|
+
bottom: -1px;
|
|
2836
|
+
height: 2px;
|
|
2837
|
+
border-radius: var(--forge-radius-full);
|
|
2838
|
+
background: var(--forge-brand);
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
.forge-tab:focus-visible {
|
|
2842
|
+
outline: 2px solid var(--forge-focus-ring-strong);
|
|
2843
|
+
outline-offset: -2px;
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
/* Aria sets aria-disabled from the ngTab's [disabled] */
|
|
2847
|
+
.forge-tab[aria-disabled="true"] {
|
|
2848
|
+
background: none;
|
|
2849
|
+
color: var(--forge-text-tertiary);
|
|
2850
|
+
cursor: not-allowed;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
.forge-tab-panel {
|
|
2854
|
+
padding-block: var(--forge-space-4);
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
/* Aria only makes the panels of other tabs inert, hiding them is up to the styles */
|
|
2858
|
+
.forge-tab-panel[inert] {
|
|
2859
|
+
display: none;
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
/* -------------------- OVERLAY (popovers, dropdowns) -------------------- */
|
|
2863
|
+
/* Tight padding for lists (menus, dropdowns), --loose for content (text, pickers).
|
|
2864
|
+
The edge is a 1px border (snapped to device pixels, sharp at fractional display scales); the shadow only lifts. */
|
|
2865
|
+
.forge-overlay-content {
|
|
2866
|
+
background-color: var(--forge-surface-bright);
|
|
2867
|
+
color: var(--forge-text-primary);
|
|
2868
|
+
border: 1px solid var(--forge-border-overlay);
|
|
2869
|
+
border-radius: var(--forge-radius-lg);
|
|
2870
|
+
box-shadow: var(--forge-shadow-overlay);
|
|
2871
|
+
padding: var(--forge-space-1);
|
|
2872
|
+
/* Rows inside (menu items…) take the panel radius minus the border and the padding (their distance from the
|
|
2873
|
+
panel's outer edge), so their corners are concentric with the panel's. --loose keeps it: it holds content,
|
|
2874
|
+
not rows */
|
|
2875
|
+
--forge-overlay-item-radius: calc(var(--forge-radius-lg) - 1px - var(--forge-space-1));
|
|
2876
|
+
/* A floating surface, -high in dark: a secondary button's dark hover (-high) would vanish into it */
|
|
2877
|
+
--forge-button-secondary-bg-hover: var(--forge-surface-container-highest);
|
|
2878
|
+
animation: forge-overlay-fade-in var(--forge-overlay-show-duration, var(--forge-motion-base)) var(--forge-ease-out);
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
.forge-overlay-content--loose {
|
|
2882
|
+
padding: var(--forge-space-3) var(--forge-space-4);
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
/* -------------------- MENU (Angular Aria ngMenu / ngMenuItem) -------------------- */
|
|
2886
|
+
/* Put .forge-menu next to .forge-overlay-content on the ngMenu. Aria sets data-active on the
|
|
2887
|
+
hovered or keyboard-focused item and aria-disabled on disabled ones, so the states are styled from them. */
|
|
2888
|
+
.forge-menu {
|
|
2889
|
+
min-width: 12rem;
|
|
2890
|
+
outline: none;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
.forge-menu-item {
|
|
2894
|
+
display: flex;
|
|
2895
|
+
align-items: center;
|
|
2896
|
+
gap: var(--forge-space-2);
|
|
2897
|
+
padding: var(--forge-space-2) var(--forge-space-3);
|
|
2898
|
+
/* concentric with the overlay panel; md in a static menu, outside an overlay */
|
|
2899
|
+
border-radius: var(--forge-overlay-item-radius, var(--forge-radius-md));
|
|
2900
|
+
color: var(--forge-text-primary);
|
|
2901
|
+
cursor: pointer;
|
|
2902
|
+
user-select: none;
|
|
2903
|
+
/* The focused item is the data-active one, its background marks it for mouse and keyboard alike.
|
|
2904
|
+
Opening a menu focuses an item from script, which browsers would otherwise outline. */
|
|
2905
|
+
outline: none;
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
.forge-menu-item[data-active="true"] {
|
|
2909
|
+
background-color: var(--forge-hover-bg);
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
/* A destructive item (delete): the danger color mixed into the text color reaches 4.5:1 in both themes, also
|
|
2913
|
+
on its danger tint when active. Disabled still wins (below). */
|
|
2914
|
+
.forge-menu-item--danger {
|
|
2915
|
+
color: color-mix(in oklab, var(--forge-danger) 70%, var(--forge-text-primary));
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
.forge-menu-item--danger[data-active="true"] {
|
|
2919
|
+
background-color: color-mix(in oklab, var(--forge-danger) 12%, var(--forge-surface-bright));
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
/* A menu that stays on screen instead of in a popover. Aria keeps an item active after the pointer or focus
|
|
2923
|
+
left (and activates the first one up front), so highlight it only while the menu has focus, and on hover. */
|
|
2924
|
+
.forge-menu--static .forge-menu-item[data-active="true"] {
|
|
2925
|
+
background-color: transparent;
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
.forge-menu--static:focus-within .forge-menu-item[data-active="true"],
|
|
2929
|
+
.forge-menu--static .forge-menu-item:hover {
|
|
2930
|
+
background-color: var(--forge-hover-bg);
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
.forge-menu-item[aria-disabled="true"] {
|
|
2934
|
+
background: none;
|
|
2935
|
+
color: var(--forge-text-tertiary);
|
|
2936
|
+
cursor: not-allowed;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
.forge-menu-separator {
|
|
2940
|
+
height: 0;
|
|
2941
|
+
margin: var(--forge-space-1) 0;
|
|
2942
|
+
border-top: 1px solid var(--forge-border);
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
/* -------------------- TABLE ACTIONS (<forge-table-actions>) -------------------- */
|
|
2946
|
+
/* Row actions are quieter than a toolbar's: the icons of the "…" button and the projected icon-button quick
|
|
2947
|
+
actions are --forge-icon-sm (14px), in the 28px square of .forge-icon-button. Here, not in the component's
|
|
2948
|
+
styles: the quick actions are projected */
|
|
2949
|
+
.forge-table-actions .forge-icon-button > :is(svg, fa-icon) {
|
|
2950
|
+
width: var(--forge-icon-sm);
|
|
2951
|
+
height: var(--forge-icon-sm);
|
|
2952
|
+
font-size: var(--forge-icon-sm);
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
/* The panel renders in the overlay, outside the component. Its deprecated projected items
|
|
2956
|
+
(<li><button class="dropdown-item">) look like the menu items above. Bootstrap's .dropdown-item and reboot are
|
|
2957
|
+
unlayered and beat this layer, hence the !important. The row highlight in a DevExtreme grid is in forge-dx.css. */
|
|
2958
|
+
.forge-table-actions-panel {
|
|
2959
|
+
.forge-table-actions-list {
|
|
2960
|
+
margin: 0 !important; /* bootstrap-override */
|
|
2961
|
+
padding: 0 !important; /* bootstrap-override */
|
|
2962
|
+
list-style: none;
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
.dropdown-item {
|
|
2966
|
+
display: flex !important; /* bootstrap-override */
|
|
2967
|
+
align-items: center;
|
|
2968
|
+
gap: var(--forge-space-2);
|
|
2969
|
+
width: 100% !important; /* bootstrap-override */
|
|
2970
|
+
padding: var(--forge-space-2) var(--forge-space-3) !important; /* bootstrap-override */
|
|
2971
|
+
border: 0 !important; /* bootstrap-override */
|
|
2972
|
+
/* concentric with the overlay panel, as menu items */
|
|
2973
|
+
border-radius: var(--forge-overlay-item-radius, var(--forge-radius-md)) !important; /* bootstrap-override */
|
|
2974
|
+
background: none !important; /* bootstrap-override */
|
|
2975
|
+
color: var(--forge-text-primary) !important; /* bootstrap-override */
|
|
2976
|
+
font-size: var(--forge-size-sm) !important; /* bootstrap-override */
|
|
2977
|
+
text-align: start !important; /* bootstrap-override */
|
|
2978
|
+
cursor: pointer;
|
|
2979
|
+
|
|
2980
|
+
&:hover,
|
|
2981
|
+
&:focus-visible {
|
|
2982
|
+
background-color: var(--forge-hover-bg) !important; /* bootstrap-override */
|
|
2983
|
+
outline: none;
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
/* Inset, as menu items: an outline, which forced colors keep */
|
|
2987
|
+
&:focus-visible {
|
|
2988
|
+
outline: 2px solid var(--forge-focus-ring-strong);
|
|
2989
|
+
outline-offset: -2px;
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
&:active {
|
|
2993
|
+
background-color: var(--forge-active-bg) !important; /* bootstrap-override */
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
.dropdown-divider {
|
|
2998
|
+
height: 0;
|
|
2999
|
+
margin: var(--forge-space-1) 0 !important; /* bootstrap-override */
|
|
3000
|
+
border-top: 1px solid var(--forge-border) !important; /* bootstrap-override */
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
/* The legacy SDS table's row whose menu is open stays highlighted, tinted from the row's own text color.
|
|
3005
|
+
Bootstrap's table cells set their own background */
|
|
3006
|
+
.sds-row:has(.forge-table-actions[data-open]) td {
|
|
3007
|
+
background-color: color-mix(in srgb, currentColor 8%, transparent) !important; /* bootstrap-override */
|
|
3008
|
+
}
|
|
3009
|
+
|
|
3010
|
+
/* -------------------- HIGHLIGHT TEXT (<forge-highlight-text>) -------------------- */
|
|
3011
|
+
/* A matched part of the text: a light brand tint over the surface, readable in both themes */
|
|
3012
|
+
.forge-highlight-text-mark {
|
|
3013
|
+
/* Bootstrap's reboot styles every <mark> outside the layers; it reads these variables, set here on the mark */
|
|
3014
|
+
--bs-highlight-bg: var(--forge-highlight-bg, color-mix(in oklab, var(--forge-brand) 28%, var(--forge-surface-container-lowest)));
|
|
3015
|
+
--bs-highlight-color: currentColor;
|
|
3016
|
+
|
|
3017
|
+
padding: 0 !important; /* bootstrap-override */
|
|
3018
|
+
border-radius: 2px;
|
|
3019
|
+
background-color: var(--bs-highlight-bg);
|
|
3020
|
+
color: inherit;
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3023
|
+
/* -------------------- ELLIPSIS ([forgeEllipsis]) -------------------- */
|
|
3024
|
+
/* One line, cut with "…" when it doesn't fit. Needs a constrained width; in a flex row also min-width: 0. */
|
|
3025
|
+
.forge-ellipsis {
|
|
3026
|
+
display: block;
|
|
3027
|
+
overflow: hidden;
|
|
3028
|
+
text-overflow: ellipsis;
|
|
3029
|
+
white-space: nowrap;
|
|
3030
|
+
}
|
|
3031
|
+
|
|
3032
|
+
/* -------------------- RIPPLE ([forgeRipple]) -------------------- */
|
|
3033
|
+
/* A circle growing from the pointer and fading out, in the element's text color unless --forge-ripple-color is
|
|
3034
|
+
set. In this layer, so an element positioned by the app (absolute, fixed, sticky) keeps its position. */
|
|
3035
|
+
.forge-ripple-container {
|
|
3036
|
+
position: relative;
|
|
3037
|
+
overflow: hidden;
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
.forge-ripple {
|
|
3041
|
+
position: absolute;
|
|
3042
|
+
border-radius: var(--forge-radius-full);
|
|
3043
|
+
background-color: var(--forge-ripple-color, color-mix(in srgb, currentColor 20%, transparent));
|
|
3044
|
+
pointer-events: none;
|
|
3045
|
+
transform: scale(0);
|
|
3046
|
+
animation: forge-ripple var(--forge-ripple-duration, 600ms) var(--forge-ease-out);
|
|
3047
|
+
}
|
|
3048
|
+
}
|
|
3049
|
+
|
|
3050
|
+
/* ============================================================
|
|
3051
|
+
CALLOUT
|
|
3052
|
+
<div class="forge-callout forge-callout--caution" role="note">: a soft, rounded fill without a border. The intent
|
|
3053
|
+
is carried by the fill, the icon and the screen-reader prefix; the text stays in the normal text colors. Variants:
|
|
3054
|
+
none (neutral), --caution, --critical. Parts: .forge-callout-icon, .forge-callout-content (with an optional
|
|
3055
|
+
.forge-callout-heading), .forge-callout-link (action, learn more), .forge-callout-close.
|
|
3056
|
+
|
|
3057
|
+
One seed, --forge-callout-color, drives the fill tint and the icon. Caution and critical set it, an app can set it
|
|
3058
|
+
on the element. Neutral leaves it unset: the tint, mixed from an unset variable, is invalid at computed-value time,
|
|
3059
|
+
so the fill falls back to the surface and the icon to the secondary text color. Mixing into the surface token (not
|
|
3060
|
+
white) makes the same rule work in the light and the dark theme; the mix is in oklab, because the tokens carry a
|
|
3061
|
+
faint hue and an oklch mix would travel the hue wheel.
|
|
3062
|
+
============================================================ */
|
|
3063
|
+
|
|
3064
|
+
@layer forge-components {
|
|
3065
|
+
.forge-callout {
|
|
3066
|
+
/* Not inherited from an ancestor (a wrapper, an outer caution callout): `initial` is the guaranteed-invalid
|
|
3067
|
+
value, so neutral keeps its fallbacks; the variant classes and an inline seed still win. */
|
|
3068
|
+
--forge-callout-color: initial;
|
|
3069
|
+
--forge-callout-background-mix: 12%;
|
|
3070
|
+
--forge-callout-tint: color-mix(in oklab, var(--forge-callout-color) var(--forge-callout-background-mix), var(--forge-surface-container-lowest, var(--forge-bg-surface)));
|
|
3071
|
+
--forge-callout-background: var(--forge-callout-tint, var(--forge-surface-container));
|
|
3072
|
+
/* The seed darkened (lightened in dark) toward the text: the plain warning yellow is 1.5:1 on its fill */
|
|
3073
|
+
--forge-callout-icon-mix: 60%;
|
|
3074
|
+
--forge-callout-icon-tint: color-mix(in oklab, var(--forge-callout-color) var(--forge-callout-icon-mix), var(--forge-text-primary));
|
|
3075
|
+
--forge-callout-icon-color: var(--forge-callout-icon-tint, var(--forge-text-secondary));
|
|
3076
|
+
|
|
3077
|
+
display: flex;
|
|
3078
|
+
align-items: baseline;
|
|
3079
|
+
gap: var(--forge-space-3);
|
|
3080
|
+
padding: var(--forge-space-3) var(--forge-space-4);
|
|
3081
|
+
border-radius: var(--forge-radius-md);
|
|
3082
|
+
background-color: var(--forge-callout-background);
|
|
3083
|
+
color: var(--forge-text-primary);
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
.forge-callout--caution {
|
|
3087
|
+
--forge-callout-color: var(--forge-warning);
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
.forge-callout--critical {
|
|
3091
|
+
--forge-callout-color: var(--forge-danger);
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
.forge-callout-icon {
|
|
3095
|
+
flex: none;
|
|
3096
|
+
color: var(--forge-callout-icon-color);
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
.forge-callout-content {
|
|
3100
|
+
flex: 1;
|
|
3101
|
+
min-width: 0;
|
|
3102
|
+
|
|
3103
|
+
> * + .forge-callout-link {
|
|
3104
|
+
margin-inline-start: var(--forge-space-1);
|
|
3105
|
+
}
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
.forge-callout-heading {
|
|
3109
|
+
margin-bottom: var(--forge-space-1);
|
|
3110
|
+
color: var(--forge-text-primary);
|
|
3111
|
+
font-weight: var(--forge-font-weight-bold);
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
/* The action and the learn more link: underlined, in the text color */
|
|
3115
|
+
.forge-callout-link {
|
|
3116
|
+
padding: 0;
|
|
3117
|
+
border: 0;
|
|
3118
|
+
background: none;
|
|
3119
|
+
color: inherit;
|
|
3120
|
+
font: inherit;
|
|
3121
|
+
font-weight: var(--forge-font-weight-medium);
|
|
3122
|
+
text-decoration: underline;
|
|
3123
|
+
text-underline-offset: 2px;
|
|
3124
|
+
cursor: pointer;
|
|
3125
|
+
|
|
3126
|
+
/* The ring's corners, as .forge-back-link's */
|
|
3127
|
+
&:focus-visible {
|
|
3128
|
+
border-radius: var(--forge-radius-sm);
|
|
3129
|
+
outline: 2px solid var(--forge-focus-ring-strong);
|
|
3130
|
+
outline-offset: 2px;
|
|
3131
|
+
}
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
.forge-callout-close {
|
|
3135
|
+
display: inline-flex;
|
|
3136
|
+
flex: none;
|
|
3137
|
+
align-self: flex-start;
|
|
3138
|
+
align-items: center;
|
|
3139
|
+
justify-content: center;
|
|
3140
|
+
width: 1.5rem;
|
|
3141
|
+
height: 1.5rem;
|
|
3142
|
+
margin-block: calc(var(--forge-space-1) * -1);
|
|
3143
|
+
padding: 0;
|
|
3144
|
+
border: 0;
|
|
3145
|
+
/* The corners of .forge-icon-button */
|
|
3146
|
+
border-radius: var(--forge-radius-md);
|
|
3147
|
+
background: transparent;
|
|
3148
|
+
color: inherit;
|
|
3149
|
+
cursor: pointer;
|
|
3150
|
+
|
|
3151
|
+
&:hover {
|
|
3152
|
+
/* The hover layer's opacity, from the callout's text color (the fill under it is tinted) */
|
|
3153
|
+
background-color: color-mix(in srgb, currentColor var(--forge-state-hover-opacity), transparent);
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3156
|
+
&:focus-visible {
|
|
3157
|
+
outline: 2px solid var(--forge-focus-ring-strong);
|
|
3158
|
+
outline-offset: 2px;
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
3161
|
+
}
|
|
3162
|
+
/* ============================================================
|
|
3163
|
+
APP SWITCHER
|
|
3164
|
+
The discover preview's Markdown (.forge-app-switcher-flyout-text). The app switcher puts it in as HTML, which a
|
|
3165
|
+
component's encapsulated styles don't reach, so its rules live here. All of it at body size, paragraphs too (not
|
|
3166
|
+
the long-form size of a plain p); no space above the first block or below the last. The rest of the switcher is
|
|
3167
|
+
still styled by the Angular component.
|
|
3168
|
+
============================================================ */
|
|
3169
|
+
|
|
3170
|
+
@layer forge-components {
|
|
3171
|
+
.forge-app-switcher-flyout-text :is(p, ul, ol) {
|
|
3172
|
+
margin: 0 0 var(--forge-space-2);
|
|
3173
|
+
font-size: var(--forge-size-sm);
|
|
3174
|
+
line-height: var(--forge-line-height-body);
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
.forge-app-switcher-flyout-text :is(ul, ol) {
|
|
3178
|
+
padding-inline-start: var(--forge-space-5);
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
.forge-app-switcher-flyout-text > :last-child {
|
|
3182
|
+
margin-bottom: 0;
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
3185
|
+
/* ============================================================
|
|
3186
|
+
UTILITIES
|
|
3187
|
+
============================================================ */
|
|
3188
|
+
|
|
3189
|
+
@layer forge-utilities {
|
|
3190
|
+
/* -------------------- SPACING -------------------- */
|
|
3191
|
+
/* Steps 0-6 on the spacing tokens. Order matters: the shorthand first, then an axis, then a side, so
|
|
3192
|
+
forge-p-4 forge-pt-0 keeps the top at 0. Sides are logical (s = start, e = end), as Bootstrap 5's. */
|
|
3193
|
+
.forge-m-0 {
|
|
3194
|
+
margin: 0;
|
|
3195
|
+
}
|
|
3196
|
+
.forge-m-1 {
|
|
3197
|
+
margin: var(--forge-space-1);
|
|
3198
|
+
}
|
|
3199
|
+
.forge-m-2 {
|
|
3200
|
+
margin: var(--forge-space-2);
|
|
3201
|
+
}
|
|
3202
|
+
.forge-m-3 {
|
|
3203
|
+
margin: var(--forge-space-3);
|
|
3204
|
+
}
|
|
3205
|
+
.forge-m-4 {
|
|
3206
|
+
margin: var(--forge-space-4);
|
|
3207
|
+
}
|
|
3208
|
+
.forge-m-5 {
|
|
3209
|
+
margin: var(--forge-space-5);
|
|
3210
|
+
}
|
|
3211
|
+
.forge-m-6 {
|
|
3212
|
+
margin: var(--forge-space-6);
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3215
|
+
.forge-mx-0 {
|
|
3216
|
+
margin-inline: 0;
|
|
3217
|
+
}
|
|
3218
|
+
.forge-mx-1 {
|
|
3219
|
+
margin-inline: var(--forge-space-1);
|
|
3220
|
+
}
|
|
3221
|
+
.forge-mx-2 {
|
|
3222
|
+
margin-inline: var(--forge-space-2);
|
|
3223
|
+
}
|
|
3224
|
+
.forge-mx-3 {
|
|
3225
|
+
margin-inline: var(--forge-space-3);
|
|
3226
|
+
}
|
|
3227
|
+
.forge-mx-4 {
|
|
3228
|
+
margin-inline: var(--forge-space-4);
|
|
3229
|
+
}
|
|
3230
|
+
.forge-mx-5 {
|
|
3231
|
+
margin-inline: var(--forge-space-5);
|
|
3232
|
+
}
|
|
3233
|
+
.forge-mx-6 {
|
|
3234
|
+
margin-inline: var(--forge-space-6);
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
.forge-my-0 {
|
|
3238
|
+
margin-block: 0;
|
|
3239
|
+
}
|
|
3240
|
+
.forge-my-1 {
|
|
3241
|
+
margin-block: var(--forge-space-1);
|
|
3242
|
+
}
|
|
3243
|
+
.forge-my-2 {
|
|
3244
|
+
margin-block: var(--forge-space-2);
|
|
3245
|
+
}
|
|
3246
|
+
.forge-my-3 {
|
|
3247
|
+
margin-block: var(--forge-space-3);
|
|
3248
|
+
}
|
|
3249
|
+
.forge-my-4 {
|
|
3250
|
+
margin-block: var(--forge-space-4);
|
|
3251
|
+
}
|
|
3252
|
+
.forge-my-5 {
|
|
3253
|
+
margin-block: var(--forge-space-5);
|
|
3254
|
+
}
|
|
3255
|
+
.forge-my-6 {
|
|
3256
|
+
margin-block: var(--forge-space-6);
|
|
3257
|
+
}
|
|
3258
|
+
|
|
3259
|
+
.forge-mt-0 {
|
|
3260
|
+
margin-top: 0;
|
|
3261
|
+
}
|
|
3262
|
+
.forge-mt-1 {
|
|
3263
|
+
margin-top: var(--forge-space-1);
|
|
3264
|
+
}
|
|
3265
|
+
.forge-mt-2 {
|
|
3266
|
+
margin-top: var(--forge-space-2);
|
|
3267
|
+
}
|
|
3268
|
+
.forge-mt-3 {
|
|
3269
|
+
margin-top: var(--forge-space-3);
|
|
3270
|
+
}
|
|
3271
|
+
.forge-mt-4 {
|
|
3272
|
+
margin-top: var(--forge-space-4);
|
|
3273
|
+
}
|
|
3274
|
+
.forge-mt-5 {
|
|
3275
|
+
margin-top: var(--forge-space-5);
|
|
3276
|
+
}
|
|
3277
|
+
.forge-mt-6 {
|
|
3278
|
+
margin-top: var(--forge-space-6);
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
.forge-mb-0 {
|
|
3282
|
+
margin-bottom: 0;
|
|
3283
|
+
}
|
|
3284
|
+
.forge-mb-1 {
|
|
3285
|
+
margin-bottom: var(--forge-space-1);
|
|
3286
|
+
}
|
|
3287
|
+
.forge-mb-2 {
|
|
3288
|
+
margin-bottom: var(--forge-space-2);
|
|
3289
|
+
}
|
|
3290
|
+
.forge-mb-3 {
|
|
3291
|
+
margin-bottom: var(--forge-space-3);
|
|
3292
|
+
}
|
|
3293
|
+
.forge-mb-4 {
|
|
3294
|
+
margin-bottom: var(--forge-space-4);
|
|
3295
|
+
}
|
|
3296
|
+
.forge-mb-5 {
|
|
3297
|
+
margin-bottom: var(--forge-space-5);
|
|
3298
|
+
}
|
|
3299
|
+
.forge-mb-6 {
|
|
3300
|
+
margin-bottom: var(--forge-space-6);
|
|
3301
|
+
}
|
|
3302
|
+
|
|
3303
|
+
.forge-ms-0 {
|
|
3304
|
+
margin-inline-start: 0;
|
|
3305
|
+
}
|
|
3306
|
+
.forge-ms-1 {
|
|
3307
|
+
margin-inline-start: var(--forge-space-1);
|
|
3308
|
+
}
|
|
3309
|
+
.forge-ms-2 {
|
|
3310
|
+
margin-inline-start: var(--forge-space-2);
|
|
3311
|
+
}
|
|
3312
|
+
.forge-ms-3 {
|
|
3313
|
+
margin-inline-start: var(--forge-space-3);
|
|
3314
|
+
}
|
|
3315
|
+
.forge-ms-4 {
|
|
3316
|
+
margin-inline-start: var(--forge-space-4);
|
|
3317
|
+
}
|
|
3318
|
+
.forge-ms-5 {
|
|
3319
|
+
margin-inline-start: var(--forge-space-5);
|
|
3320
|
+
}
|
|
3321
|
+
.forge-ms-6 {
|
|
3322
|
+
margin-inline-start: var(--forge-space-6);
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3325
|
+
.forge-me-0 {
|
|
3326
|
+
margin-inline-end: 0;
|
|
3327
|
+
}
|
|
3328
|
+
.forge-me-1 {
|
|
3329
|
+
margin-inline-end: var(--forge-space-1);
|
|
3330
|
+
}
|
|
3331
|
+
.forge-me-2 {
|
|
3332
|
+
margin-inline-end: var(--forge-space-2);
|
|
3333
|
+
}
|
|
3334
|
+
.forge-me-3 {
|
|
3335
|
+
margin-inline-end: var(--forge-space-3);
|
|
3336
|
+
}
|
|
3337
|
+
.forge-me-4 {
|
|
3338
|
+
margin-inline-end: var(--forge-space-4);
|
|
3339
|
+
}
|
|
3340
|
+
.forge-me-5 {
|
|
3341
|
+
margin-inline-end: var(--forge-space-5);
|
|
3342
|
+
}
|
|
3343
|
+
.forge-me-6 {
|
|
3344
|
+
margin-inline-end: var(--forge-space-6);
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
/* Push to the end (forge-ms-auto), to the start (forge-me-auto) or centre a block (forge-mx-auto) */
|
|
3348
|
+
.forge-mx-auto {
|
|
3349
|
+
margin-inline: auto;
|
|
3350
|
+
}
|
|
3351
|
+
.forge-ms-auto {
|
|
3352
|
+
margin-inline-start: auto;
|
|
3353
|
+
}
|
|
3354
|
+
.forge-me-auto {
|
|
3355
|
+
margin-inline-end: auto;
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3358
|
+
.forge-p-0 {
|
|
3359
|
+
padding: 0;
|
|
3360
|
+
}
|
|
3361
|
+
.forge-p-1 {
|
|
3362
|
+
padding: var(--forge-space-1);
|
|
3363
|
+
}
|
|
3364
|
+
.forge-p-2 {
|
|
3365
|
+
padding: var(--forge-space-2);
|
|
3366
|
+
}
|
|
3367
|
+
.forge-p-3 {
|
|
3368
|
+
padding: var(--forge-space-3);
|
|
3369
|
+
}
|
|
3370
|
+
.forge-p-4 {
|
|
3371
|
+
padding: var(--forge-space-4);
|
|
3372
|
+
}
|
|
3373
|
+
.forge-p-5 {
|
|
3374
|
+
padding: var(--forge-space-5);
|
|
3375
|
+
}
|
|
3376
|
+
.forge-p-6 {
|
|
3377
|
+
padding: var(--forge-space-6);
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
.forge-px-0 {
|
|
3381
|
+
padding-inline: 0;
|
|
3382
|
+
}
|
|
3383
|
+
.forge-px-1 {
|
|
3384
|
+
padding-inline: var(--forge-space-1);
|
|
3385
|
+
}
|
|
3386
|
+
.forge-px-2 {
|
|
3387
|
+
padding-inline: var(--forge-space-2);
|
|
3388
|
+
}
|
|
3389
|
+
.forge-px-3 {
|
|
3390
|
+
padding-inline: var(--forge-space-3);
|
|
3391
|
+
}
|
|
3392
|
+
.forge-px-4 {
|
|
3393
|
+
padding-inline: var(--forge-space-4);
|
|
3394
|
+
}
|
|
3395
|
+
.forge-px-5 {
|
|
3396
|
+
padding-inline: var(--forge-space-5);
|
|
3397
|
+
}
|
|
3398
|
+
.forge-px-6 {
|
|
3399
|
+
padding-inline: var(--forge-space-6);
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3402
|
+
.forge-py-0 {
|
|
3403
|
+
padding-block: 0;
|
|
3404
|
+
}
|
|
3405
|
+
.forge-py-1 {
|
|
3406
|
+
padding-block: var(--forge-space-1);
|
|
3407
|
+
}
|
|
3408
|
+
.forge-py-2 {
|
|
3409
|
+
padding-block: var(--forge-space-2);
|
|
3410
|
+
}
|
|
3411
|
+
.forge-py-3 {
|
|
3412
|
+
padding-block: var(--forge-space-3);
|
|
3413
|
+
}
|
|
3414
|
+
.forge-py-4 {
|
|
3415
|
+
padding-block: var(--forge-space-4);
|
|
3416
|
+
}
|
|
3417
|
+
.forge-py-5 {
|
|
3418
|
+
padding-block: var(--forge-space-5);
|
|
3419
|
+
}
|
|
3420
|
+
.forge-py-6 {
|
|
3421
|
+
padding-block: var(--forge-space-6);
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
.forge-pt-0 {
|
|
3425
|
+
padding-top: 0;
|
|
3426
|
+
}
|
|
3427
|
+
.forge-pt-1 {
|
|
3428
|
+
padding-top: var(--forge-space-1);
|
|
3429
|
+
}
|
|
3430
|
+
.forge-pt-2 {
|
|
3431
|
+
padding-top: var(--forge-space-2);
|
|
3432
|
+
}
|
|
3433
|
+
.forge-pt-3 {
|
|
3434
|
+
padding-top: var(--forge-space-3);
|
|
3435
|
+
}
|
|
3436
|
+
.forge-pt-4 {
|
|
3437
|
+
padding-top: var(--forge-space-4);
|
|
3438
|
+
}
|
|
3439
|
+
.forge-pt-5 {
|
|
3440
|
+
padding-top: var(--forge-space-5);
|
|
3441
|
+
}
|
|
3442
|
+
.forge-pt-6 {
|
|
3443
|
+
padding-top: var(--forge-space-6);
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
.forge-pb-0 {
|
|
3447
|
+
padding-bottom: 0;
|
|
3448
|
+
}
|
|
3449
|
+
.forge-pb-1 {
|
|
3450
|
+
padding-bottom: var(--forge-space-1);
|
|
3451
|
+
}
|
|
3452
|
+
.forge-pb-2 {
|
|
3453
|
+
padding-bottom: var(--forge-space-2);
|
|
3454
|
+
}
|
|
3455
|
+
.forge-pb-3 {
|
|
3456
|
+
padding-bottom: var(--forge-space-3);
|
|
3457
|
+
}
|
|
3458
|
+
.forge-pb-4 {
|
|
3459
|
+
padding-bottom: var(--forge-space-4);
|
|
3460
|
+
}
|
|
3461
|
+
.forge-pb-5 {
|
|
3462
|
+
padding-bottom: var(--forge-space-5);
|
|
3463
|
+
}
|
|
3464
|
+
.forge-pb-6 {
|
|
3465
|
+
padding-bottom: var(--forge-space-6);
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
.forge-ps-0 {
|
|
3469
|
+
padding-inline-start: 0;
|
|
3470
|
+
}
|
|
3471
|
+
.forge-ps-1 {
|
|
3472
|
+
padding-inline-start: var(--forge-space-1);
|
|
3473
|
+
}
|
|
3474
|
+
.forge-ps-2 {
|
|
3475
|
+
padding-inline-start: var(--forge-space-2);
|
|
3476
|
+
}
|
|
3477
|
+
.forge-ps-3 {
|
|
3478
|
+
padding-inline-start: var(--forge-space-3);
|
|
3479
|
+
}
|
|
3480
|
+
.forge-ps-4 {
|
|
3481
|
+
padding-inline-start: var(--forge-space-4);
|
|
3482
|
+
}
|
|
3483
|
+
.forge-ps-5 {
|
|
3484
|
+
padding-inline-start: var(--forge-space-5);
|
|
3485
|
+
}
|
|
3486
|
+
.forge-ps-6 {
|
|
3487
|
+
padding-inline-start: var(--forge-space-6);
|
|
3488
|
+
}
|
|
3489
|
+
|
|
3490
|
+
.forge-pe-0 {
|
|
3491
|
+
padding-inline-end: 0;
|
|
3492
|
+
}
|
|
3493
|
+
.forge-pe-1 {
|
|
3494
|
+
padding-inline-end: var(--forge-space-1);
|
|
3495
|
+
}
|
|
3496
|
+
.forge-pe-2 {
|
|
3497
|
+
padding-inline-end: var(--forge-space-2);
|
|
3498
|
+
}
|
|
3499
|
+
.forge-pe-3 {
|
|
3500
|
+
padding-inline-end: var(--forge-space-3);
|
|
3501
|
+
}
|
|
3502
|
+
.forge-pe-4 {
|
|
3503
|
+
padding-inline-end: var(--forge-space-4);
|
|
3504
|
+
}
|
|
3505
|
+
.forge-pe-5 {
|
|
3506
|
+
padding-inline-end: var(--forge-space-5);
|
|
3507
|
+
}
|
|
3508
|
+
.forge-pe-6 {
|
|
3509
|
+
padding-inline-end: var(--forge-space-6);
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
.forge-gap-1 {
|
|
3513
|
+
gap: var(--forge-space-1);
|
|
3514
|
+
}
|
|
3515
|
+
.forge-gap-2 {
|
|
3516
|
+
gap: var(--forge-space-2);
|
|
3517
|
+
}
|
|
3518
|
+
.forge-gap-3 {
|
|
3519
|
+
gap: var(--forge-space-3);
|
|
3520
|
+
}
|
|
3521
|
+
.forge-gap-4 {
|
|
3522
|
+
gap: var(--forge-space-4);
|
|
3523
|
+
}
|
|
3524
|
+
.forge-gap-5 {
|
|
3525
|
+
gap: var(--forge-space-5);
|
|
3526
|
+
}
|
|
3527
|
+
.forge-gap-6 {
|
|
3528
|
+
gap: var(--forge-space-6);
|
|
3529
|
+
}
|
|
3530
|
+
/* -------------------- FLEX -------------------- */
|
|
3531
|
+
.forge-flex {
|
|
3532
|
+
display: flex;
|
|
3533
|
+
}
|
|
3534
|
+
.forge-flex-col {
|
|
3535
|
+
flex-direction: column;
|
|
3536
|
+
}
|
|
3537
|
+
.forge-items-center {
|
|
3538
|
+
align-items: center;
|
|
3539
|
+
}
|
|
3540
|
+
.forge-items-start {
|
|
3541
|
+
align-items: flex-start;
|
|
3542
|
+
}
|
|
3543
|
+
.forge-justify-start {
|
|
3544
|
+
justify-content: flex-start;
|
|
3545
|
+
}
|
|
3546
|
+
.forge-justify-end {
|
|
3547
|
+
justify-content: flex-end;
|
|
3548
|
+
}
|
|
3549
|
+
.forge-justify-between {
|
|
3550
|
+
justify-content: space-between;
|
|
3551
|
+
}
|
|
3552
|
+
.forge-justify-center {
|
|
3553
|
+
justify-content: center;
|
|
3554
|
+
}
|
|
3555
|
+
.forge-flex-wrap {
|
|
3556
|
+
flex-wrap: wrap;
|
|
3557
|
+
}
|
|
3558
|
+
/* Grow into the free space and allow shrinking below the content width (e.g. for truncated text) */
|
|
3559
|
+
.forge-flex-1 {
|
|
3560
|
+
flex: 1 1 0%;
|
|
3561
|
+
min-width: 0;
|
|
3562
|
+
}
|
|
3563
|
+
/* Keeps its size in a full row (an icon, a button next to truncated text) */
|
|
3564
|
+
.forge-shrink-0 {
|
|
3565
|
+
flex-shrink: 0;
|
|
3566
|
+
}
|
|
3567
|
+
|
|
3568
|
+
/* -------------------- TEXT -------------------- */
|
|
3569
|
+
.forge-text-center {
|
|
3570
|
+
text-align: center;
|
|
3571
|
+
}
|
|
3572
|
+
.forge-text-start {
|
|
3573
|
+
text-align: start;
|
|
3574
|
+
}
|
|
3575
|
+
.forge-text-end {
|
|
3576
|
+
text-align: end;
|
|
3577
|
+
}
|
|
3578
|
+
.forge-text-nowrap {
|
|
3579
|
+
white-space: nowrap;
|
|
3580
|
+
}
|
|
3581
|
+
/* Supporting text (Bootstrap's text-muted), readable in both themes */
|
|
3582
|
+
.forge-text-secondary {
|
|
3583
|
+
color: var(--forge-text-secondary);
|
|
3584
|
+
}
|
|
3585
|
+
/* Single line, cut with an ellipsis; the element needs a width (block, or forge-flex-1 in a flex row) */
|
|
3586
|
+
.forge-text-truncate {
|
|
3587
|
+
overflow: hidden;
|
|
3588
|
+
text-overflow: ellipsis;
|
|
3589
|
+
white-space: nowrap;
|
|
3590
|
+
}
|
|
3591
|
+
.forge-select-none {
|
|
3592
|
+
user-select: none;
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3595
|
+
/* -------------------- SIZING -------------------- */
|
|
3596
|
+
.forge-w-full {
|
|
3597
|
+
width: 100%;
|
|
3598
|
+
}
|
|
3599
|
+
.forge-h-full {
|
|
3600
|
+
height: 100%;
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3603
|
+
/* -------------------- ACCESSIBILITY -------------------- */
|
|
3604
|
+
/* Hidden on screen, still read by screen readers */
|
|
3605
|
+
.forge-visually-hidden {
|
|
3606
|
+
position: absolute;
|
|
3607
|
+
width: 1px;
|
|
3608
|
+
height: 1px;
|
|
3609
|
+
padding: 0;
|
|
3610
|
+
margin: -1px;
|
|
3611
|
+
overflow: hidden;
|
|
3612
|
+
clip: rect(0, 0, 0, 0);
|
|
3613
|
+
white-space: nowrap;
|
|
3614
|
+
border: 0;
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
/* -------------------- GRID -------------------- */
|
|
3618
|
+
.forge-grid {
|
|
3619
|
+
display: grid;
|
|
3620
|
+
gap: var(--forge-space-4);
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
.forge-grid--2 {
|
|
3624
|
+
grid-template-columns: repeat(2, 1fr);
|
|
3625
|
+
}
|
|
3626
|
+
.forge-grid--3 {
|
|
3627
|
+
grid-template-columns: repeat(3, 1fr);
|
|
3628
|
+
}
|
|
3629
|
+
.forge-grid--auto {
|
|
3630
|
+
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
/* -------------------- PATTERNS -------------------- */
|
|
3634
|
+
.forge-stack {
|
|
3635
|
+
display: flex;
|
|
3636
|
+
flex-direction: column;
|
|
3637
|
+
gap: var(--forge-space-3);
|
|
3638
|
+
}
|
|
3639
|
+
|
|
3640
|
+
.forge-cluster {
|
|
3641
|
+
display: flex;
|
|
3642
|
+
gap: var(--forge-space-2);
|
|
3643
|
+
align-items: center;
|
|
3644
|
+
flex-wrap: wrap;
|
|
3645
|
+
}
|
|
3646
|
+
|
|
3647
|
+
.forge-center {
|
|
3648
|
+
display: grid;
|
|
3649
|
+
place-items: center;
|
|
3650
|
+
}
|
|
3651
|
+
}
|
|
3652
|
+
|
|
3653
|
+
/* ============================================================
|
|
3654
|
+
ACCESSIBILITY — REDUCED MOTION
|
|
3655
|
+
============================================================ */
|
|
3656
|
+
|
|
3657
|
+
/* !important on purpose, it stays after Bootstrap: reduced motion has to win over every animation */
|
|
3658
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3659
|
+
* {
|
|
3660
|
+
transition-duration: 0.01ms !important;
|
|
3661
|
+
animation-duration: 0.01ms !important;
|
|
3662
|
+
animation-iteration-count: 1 !important;
|
|
3663
|
+
}
|
|
3664
|
+
}
|
|
3665
|
+
|
|
3666
|
+
@keyframes forge-spin {
|
|
3667
|
+
to {
|
|
3668
|
+
transform: rotate(360deg);
|
|
3669
|
+
}
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
@keyframes forge-skeleton-shimmer {
|
|
3673
|
+
from {
|
|
3674
|
+
background-position: 200% 0;
|
|
3675
|
+
}
|
|
3676
|
+
to {
|
|
3677
|
+
background-position: -200% 0;
|
|
3678
|
+
}
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
@keyframes forge-overlay-fade-in {
|
|
3682
|
+
from {
|
|
3683
|
+
opacity: 0;
|
|
3684
|
+
}
|
|
3685
|
+
to {
|
|
3686
|
+
opacity: 1;
|
|
3687
|
+
}
|
|
3688
|
+
}
|
|
3689
|
+
|
|
3690
|
+
@keyframes forge-ripple {
|
|
3691
|
+
to {
|
|
3692
|
+
transform: scale(1);
|
|
3693
|
+
opacity: 0;
|
|
3694
|
+
}
|
|
3695
|
+
}
|
|
3696
|
+
|
|
3697
|
+
/* The scroll fade's two edges: registered lengths, so the scroll-driven animations can interpolate them */
|
|
3698
|
+
@property --forge-scroll-fade-top {
|
|
3699
|
+
syntax: '<length>';
|
|
3700
|
+
inherits: false;
|
|
3701
|
+
initial-value: 0px;
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3704
|
+
@property --forge-scroll-fade-bottom {
|
|
3705
|
+
syntax: '<length>';
|
|
3706
|
+
inherits: false;
|
|
3707
|
+
initial-value: 0px;
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
@keyframes forge-scroll-fade-top {
|
|
3711
|
+
from {
|
|
3712
|
+
--forge-scroll-fade-top: 0px;
|
|
3713
|
+
}
|
|
3714
|
+
to {
|
|
3715
|
+
--forge-scroll-fade-top: var(--forge-scroll-fade-size);
|
|
3716
|
+
}
|
|
3717
|
+
}
|
|
3718
|
+
|
|
3719
|
+
@keyframes forge-scroll-fade-bottom {
|
|
3720
|
+
from {
|
|
3721
|
+
--forge-scroll-fade-bottom: var(--forge-scroll-fade-size);
|
|
3722
|
+
}
|
|
3723
|
+
to {
|
|
3724
|
+
--forge-scroll-fade-bottom: 0px;
|
|
3725
|
+
}
|
|
3726
|
+
}
|