@lilydesignsystem/themes 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +8 -8
- package/dist/abyss.css +967 -31
- package/dist/acid.css +966 -30
- package/dist/adobe-spectrum.css +968 -32
- package/dist/ant-design.css +966 -30
- package/dist/aqua.css +968 -32
- package/dist/atlassian.css +966 -30
- package/dist/australia-agriculture-design-system.css +4569 -0
- package/dist/autumn.css +968 -32
- package/dist/black.css +967 -31
- package/dist/brazil-padrao-digital-de-governo.css +4569 -0
- package/dist/bumblebee.css +969 -33
- package/dist/business.css +967 -31
- package/dist/canada-government-of-canada-design-system.css +4569 -0
- package/dist/cappuccino.css +966 -30
- package/dist/caramellatte.css +967 -31
- package/dist/cmyk.css +966 -30
- package/dist/coffee.css +966 -30
- package/dist/corporate.css +970 -34
- package/dist/cupcake.css +967 -31
- package/dist/cyberpunk.css +966 -30
- package/dist/dark.css +968 -32
- package/dist/dim.css +966 -30
- package/dist/dracula.css +966 -30
- package/dist/emerald.css +967 -31
- package/dist/european-union-europa-component-library.css +4569 -0
- package/dist/excel.css +966 -30
- package/dist/fantasy.css +967 -31
- package/dist/fluent.css +966 -30
- package/dist/forest.css +966 -30
- package/dist/garden.css +968 -32
- package/dist/github-primer.css +966 -30
- package/dist/halloween.css +967 -31
- package/dist/ibm-carbon.css +966 -30
- package/dist/japan-digital-agency-design-system.css +4569 -0
- package/dist/lemonade.css +966 -30
- package/dist/light.css +967 -31
- package/dist/linear.css +966 -30
- package/dist/lofi.css +966 -30
- package/dist/luxury.css +966 -30
- package/dist/mozilla-protocol.css +968 -32
- package/dist/night.css +966 -30
- package/dist/nord.css +966 -30
- package/dist/notion.css +966 -30
- package/dist/pastel.css +973 -37
- package/dist/retro.css +970 -34
- package/dist/salesforce.css +966 -30
- package/dist/sap-fiori.css +966 -30
- package/dist/silk.css +967 -31
- package/dist/singapore-government-design-system.css +4569 -0
- package/dist/sunset.css +966 -30
- package/dist/synthwave.css +966 -30
- package/dist/united-kingdom-government-digital-service.css +966 -30
- package/dist/united-kingdom-national-health-service-england-for-patients.css +990 -41
- package/dist/united-kingdom-national-health-service-england-for-practitioners.css +988 -39
- package/dist/united-kingdom-national-health-service-scotland-for-patients.css +1001 -49
- package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +996 -44
- package/dist/united-kingdom-national-health-service-wales-for-patients.css +1003 -49
- package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +996 -42
- package/dist/united-states-web-design-system.css +967 -31
- package/dist/valentine.css +970 -34
- package/dist/vercel.css +966 -30
- package/dist/winter.css +967 -31
- package/dist/wireframe.css +966 -30
- package/index.md +8 -4
- package/package.json +3 -3
|
@@ -41,8 +41,10 @@
|
|
|
41
41
|
* ring; the practitioner UI just packs more information into the same
|
|
42
42
|
* viewport.
|
|
43
43
|
*
|
|
44
|
-
* Upstream tracked:
|
|
45
|
-
*
|
|
44
|
+
* Upstream tracked: nhsuk-frontend 10.7.1 (npm, published 2026-10-29;
|
|
45
|
+
* re-baselined from 9.x on 2026-10-29 against the package's Sass
|
|
46
|
+
* settings and CHANGELOG; v10 has been stable since 10.0.0 on
|
|
47
|
+
* 2025-08-26). Independent
|
|
46
48
|
* implementation against Lily class hooks; not affiliated with or
|
|
47
49
|
* endorsed by the NHS.
|
|
48
50
|
*
|
|
@@ -53,9 +55,13 @@
|
|
|
53
55
|
* - NHS frontend tokens (Sass source):
|
|
54
56
|
* https://github.com/nhsuk/nhsuk-frontend
|
|
55
57
|
* - Typography: Frutiger W01 (primary), Arial / system-ui fallback
|
|
56
|
-
* - Base font size: 16px
|
|
57
|
-
*
|
|
58
|
-
* -
|
|
58
|
+
* - Base font size: 16px; nhsuk-frontend 10 type scale points (tablet px):
|
|
59
|
+
* 14 / 16 / 19 / 22 / 26 / 36 / 48 / 64 (point 24 was removed in 10.0.0)
|
|
60
|
+
* - nhsuk-frontend 10 spacing points (px): 0, 4, 8, 16, 24, 32, 40, 48, 56, 64
|
|
61
|
+
* (unchanged from 9.x)
|
|
62
|
+
* - WCAG 2.2 AAA target. Upstream focus style (unchanged in v10): #FFEB3B
|
|
63
|
+
* fill with a 4px #212B32 bar (`$nhsuk-focus-width`); this theme's own
|
|
64
|
+
* focus ring is `--lily-focus-ring` below
|
|
59
65
|
*
|
|
60
66
|
* Brand palette (sRGB → OKLCH conversions used below)
|
|
61
67
|
* NHS Blue #005EB8 primary brand colour
|
|
@@ -70,7 +76,9 @@
|
|
|
70
76
|
* NHS White #FFFFFF page background
|
|
71
77
|
* NHS Warm Yellow #FFB81C warning / focus indicator
|
|
72
78
|
* NHS Emergency Red #DA291C error / destructive action
|
|
73
|
-
* NHS Green
|
|
79
|
+
* NHS.UK Green #007F3B success / confirmation (nhsuk-frontend 10
|
|
80
|
+
* `$nhsuk-success-colour`; was NHS Identity
|
|
81
|
+
* green #009639 until 2026-10-29)
|
|
74
82
|
* NHS Dark Green #006747 success hover
|
|
75
83
|
*
|
|
76
84
|
* Geometry rules (NHS frontend defaults)
|
|
@@ -153,9 +161,12 @@
|
|
|
153
161
|
/* ---- Success (NHS Green)
|
|
154
162
|
-------------------------------------------- */ /*
|
|
155
163
|
Confirmation, completed-step, "you have been booked"
|
|
156
|
-
panels. */ /* NHS
|
|
157
|
-
|
|
158
|
-
|
|
164
|
+
panels. */ /* NHS.UK frontend green #007F3B, nhsuk-frontend
|
|
165
|
+
10.7.1 `$nhsuk-success-colour` (core/settings/_colours-
|
|
166
|
+
applied.scss, new in v10). Re-baselined 2026-10-29 from NHS
|
|
167
|
+
Identity green #009639, which gave white content 4.37:1
|
|
168
|
+
(below AA); white content is now 5.19:1. */
|
|
169
|
+
--color-success: oklch(52% 0.14 151);
|
|
159
170
|
--color-success-content: oklch(100% 0 0);
|
|
160
171
|
/* ---- Warning (NHS Warm Yellow)
|
|
161
172
|
-------------------------------------- */ /* Caution
|
|
@@ -192,17 +203,27 @@
|
|
|
192
203
|
so checklist rows and field grids pack tightly. */
|
|
193
204
|
--size-selector: 0.125rem;
|
|
194
205
|
--size-field: 0.125rem;
|
|
195
|
-
/* Border width: 1px hairline,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
206
|
+
/* Border width: 1px hairline, Lily's own hairline, not an
|
|
207
|
+
upstream value: nhsuk-frontend 10 has no `$nhsuk-border-
|
|
208
|
+
width-form`; its form controls use `$nhsuk-border-width-
|
|
209
|
+
form-element` (2px). The hairline is the smallest legible
|
|
210
|
+
border on the LCDs used in clinical settings; going to
|
|
211
|
+
0.5px loses the edge on non-Retina workstation displays
|
|
212
|
+
still common in NHS estate. */
|
|
200
213
|
--border: 1px;
|
|
201
214
|
/* Depth & noise off — NHS guidance avoids shadows and
|
|
202
215
|
textures so */ /* the interface looks clinical, calm, and
|
|
203
216
|
easy to read. */
|
|
204
217
|
--depth: 0;
|
|
205
218
|
--noise: 0;
|
|
219
|
+
/* Fluid inline gutter for page containers and the main
|
|
220
|
+
region: grows with the viewport from a 1rem floor to a 2rem
|
|
221
|
+
ceiling. Spacing only, never text. */
|
|
222
|
+
--space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
|
|
223
|
+
/* Fluid gap between sections (stacks and grids): grows with
|
|
224
|
+
the viewport from a 1rem floor to a 2rem ceiling. Spacing
|
|
225
|
+
only, never text. */
|
|
226
|
+
--space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
|
|
206
227
|
}
|
|
207
228
|
|
|
208
229
|
/* ----------------------------------------------------------------------------
|
|
@@ -304,7 +325,7 @@
|
|
|
304
325
|
/* --- Typography ---------------------------------------------------- */
|
|
305
326
|
/* Body font stack — system fonts first so consumers get a
|
|
306
327
|
native-feeling baseline without shipping a web font. */
|
|
307
|
-
--lily-font-body:
|
|
328
|
+
--lily-font-body-latin:
|
|
308
329
|
system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
|
|
309
330
|
Arial, sans-serif;
|
|
310
331
|
/* Monospaced font stack — used by code, kbd, identifiers, and
|
|
@@ -431,9 +452,12 @@
|
|
|
431
452
|
}
|
|
432
453
|
|
|
433
454
|
/* Invalid input — red border. The `aria-invalid="true"` attribute is the
|
|
434
|
-
ARIA contract
|
|
435
|
-
|
|
436
|
-
|
|
455
|
+
ARIA contract (server-rendered errors); `:user-invalid` is the native
|
|
456
|
+
state that matches only after the user has interacted, so a required
|
|
457
|
+
field is not styled invalid on load. Pairing a colour change with the
|
|
458
|
+
ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
|
|
459
|
+
:where([class$="-input"], .input)[aria-invalid="true"],
|
|
460
|
+
:where([class$="-input"], .input):user-invalid {
|
|
437
461
|
border-color: var(--color-error);
|
|
438
462
|
}
|
|
439
463
|
|
|
@@ -976,7 +1000,7 @@
|
|
|
976
1000
|
color: var(--lily-text-muted);
|
|
977
1001
|
}
|
|
978
1002
|
/* Final crumb (the current page) — muted because it isn't a link. */
|
|
979
|
-
:where(.breadcrumb-list-item[aria-current="page"]) {
|
|
1003
|
+
:where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
|
|
980
1004
|
color: var(--lily-text-muted);
|
|
981
1005
|
}
|
|
982
1006
|
|
|
@@ -1248,11 +1272,114 @@
|
|
|
1248
1272
|
background-color: var(--color-primary);
|
|
1249
1273
|
color: var(--color-primary-content);
|
|
1250
1274
|
}
|
|
1251
|
-
/* Today — outlined
|
|
1252
|
-
|
|
1275
|
+
/* Today — outlined and bold, never filled, so a selected non-today date still
|
|
1276
|
+
reads as "selected". The ring takes the cell's own text colour (currentColor),
|
|
1277
|
+
so it holds its contrast on a light page, a dark page and a selected cell
|
|
1278
|
+
alike, and the bold number says it without colour. */
|
|
1253
1279
|
:where(.calendar-table-td[aria-current="date"]) {
|
|
1254
|
-
outline: 2px solid
|
|
1255
|
-
outline-offset: -
|
|
1280
|
+
outline: 2px solid currentColor;
|
|
1281
|
+
outline-offset: -3px;
|
|
1282
|
+
font-weight: 700;
|
|
1283
|
+
}
|
|
1284
|
+
/* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
|
|
1285
|
+
:where(.calendar-table) {
|
|
1286
|
+
table-layout: fixed;
|
|
1287
|
+
}
|
|
1288
|
+
:where(.calendar-table-td, .calendar-table-th) {
|
|
1289
|
+
min-width: 0;
|
|
1290
|
+
overflow-wrap: anywhere;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
/* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
|
|
1294
|
+
:where(.data-grid-toolbar) {
|
|
1295
|
+
display: flex;
|
|
1296
|
+
flex-wrap: wrap;
|
|
1297
|
+
gap: var(--lily-space-sm);
|
|
1298
|
+
align-items: center;
|
|
1299
|
+
margin-block-end: var(--lily-space-sm);
|
|
1300
|
+
}
|
|
1301
|
+
:where(.data-grid-search, .data-grid-search-field) {
|
|
1302
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1303
|
+
border: var(--border) solid var(--lily-border);
|
|
1304
|
+
border-radius: var(--lily-radius-sm);
|
|
1305
|
+
background-color: var(--lily-surface);
|
|
1306
|
+
color: var(--lily-text);
|
|
1307
|
+
font: inherit;
|
|
1308
|
+
}
|
|
1309
|
+
/* A sortable header is a button that looks like its text; the arrow follows aria-sort,
|
|
1310
|
+
so the state is in the markup for assistive technology and on screen for everyone. */
|
|
1311
|
+
:where(.data-grid-sort-button) {
|
|
1312
|
+
padding: 0;
|
|
1313
|
+
border: 0;
|
|
1314
|
+
background: none;
|
|
1315
|
+
color: inherit;
|
|
1316
|
+
font: inherit;
|
|
1317
|
+
text-align: start;
|
|
1318
|
+
cursor: pointer;
|
|
1319
|
+
}
|
|
1320
|
+
:where(.data-grid-sort-button:focus-visible) {
|
|
1321
|
+
outline: 2px solid var(--color-accent);
|
|
1322
|
+
outline-offset: 2px;
|
|
1323
|
+
}
|
|
1324
|
+
:where([aria-sort="none"] .data-grid-sort-button)::after {
|
|
1325
|
+
content: " \21C5";
|
|
1326
|
+
opacity: 0.5;
|
|
1327
|
+
}
|
|
1328
|
+
:where([aria-sort="ascending"] .data-grid-sort-button)::after {
|
|
1329
|
+
content: " \25B2";
|
|
1330
|
+
}
|
|
1331
|
+
:where([aria-sort="descending"] .data-grid-sort-button)::after {
|
|
1332
|
+
content: " \25BC";
|
|
1333
|
+
}
|
|
1334
|
+
:where(.data-grid-pagination) {
|
|
1335
|
+
display: flex;
|
|
1336
|
+
flex-wrap: wrap;
|
|
1337
|
+
gap: var(--lily-space-sm);
|
|
1338
|
+
align-items: center;
|
|
1339
|
+
justify-content: flex-end;
|
|
1340
|
+
margin-block-start: var(--lily-space-sm);
|
|
1341
|
+
}
|
|
1342
|
+
:where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
|
|
1343
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
1344
|
+
border: var(--border) solid var(--lily-border);
|
|
1345
|
+
border-radius: var(--lily-radius-sm);
|
|
1346
|
+
background-color: var(--lily-surface);
|
|
1347
|
+
color: var(--lily-text);
|
|
1348
|
+
font: inherit;
|
|
1349
|
+
cursor: pointer;
|
|
1350
|
+
}
|
|
1351
|
+
:where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
|
|
1352
|
+
opacity: 0.5;
|
|
1353
|
+
cursor: not-allowed;
|
|
1354
|
+
}
|
|
1355
|
+
:where(.data-grid-column-visibility) {
|
|
1356
|
+
display: flex;
|
|
1357
|
+
flex-wrap: wrap;
|
|
1358
|
+
gap: var(--lily-space-sm);
|
|
1359
|
+
margin: 0;
|
|
1360
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1361
|
+
border: var(--border) solid var(--lily-border);
|
|
1362
|
+
border-radius: var(--lily-radius-sm);
|
|
1363
|
+
}
|
|
1364
|
+
/* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
|
|
1365
|
+
:where([data-pinned="start"]) {
|
|
1366
|
+
position: sticky;
|
|
1367
|
+
inset-inline-start: 0;
|
|
1368
|
+
z-index: 1;
|
|
1369
|
+
background-color: var(--lily-surface);
|
|
1370
|
+
}
|
|
1371
|
+
:where([data-pinned="end"]) {
|
|
1372
|
+
position: sticky;
|
|
1373
|
+
inset-inline-end: 0;
|
|
1374
|
+
z-index: 1;
|
|
1375
|
+
background-color: var(--lily-surface);
|
|
1376
|
+
}
|
|
1377
|
+
:where(th[data-pinned]) {
|
|
1378
|
+
z-index: 2;
|
|
1379
|
+
}
|
|
1380
|
+
/* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
|
|
1381
|
+
:where(.data-table-td[data-empty]) {
|
|
1382
|
+
opacity: 0.7;
|
|
1256
1383
|
}
|
|
1257
1384
|
|
|
1258
1385
|
/* --- Kanban specifics --------------------------------------------------- */
|
|
@@ -1266,6 +1393,20 @@
|
|
|
1266
1393
|
min-width: 14rem;
|
|
1267
1394
|
}
|
|
1268
1395
|
|
|
1396
|
+
/* Dragging a card: the column it would land in is outlined; one that refuses it
|
|
1397
|
+
(canMove, allowedColumns, a full strict WIP limit) is striped and shows the
|
|
1398
|
+
not-allowed cursor, so "you can't drop here" is visible before the drop. */
|
|
1399
|
+
:where(.kanban-table-td[data-drop-target]) {
|
|
1400
|
+
outline: 2px dashed var(--color-accent);
|
|
1401
|
+
outline-offset: -3px;
|
|
1402
|
+
}
|
|
1403
|
+
:where(.kanban-table-td[data-drop-blocked]) {
|
|
1404
|
+
outline: 2px solid var(--color-error);
|
|
1405
|
+
outline-offset: -3px;
|
|
1406
|
+
cursor: not-allowed;
|
|
1407
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1269
1410
|
/* --- Gantt specifics ---------------------------------------------------- */
|
|
1270
1411
|
/* Cells marked as bars are filled with the primary colour to render the
|
|
1271
1412
|
schedule bar inline within the grid. */
|
|
@@ -1273,6 +1414,20 @@
|
|
|
1273
1414
|
background-color: var(--color-primary);
|
|
1274
1415
|
}
|
|
1275
1416
|
|
|
1417
|
+
/* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
|
|
1418
|
+
is tinted; a day marked as a holiday or time off (data-unavailable /
|
|
1419
|
+
data-range) is striped as well, so no day is told apart by colour alone;
|
|
1420
|
+
a column only partly unavailable gets a bar under its header. */
|
|
1421
|
+
:where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
|
|
1422
|
+
background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
|
|
1423
|
+
}
|
|
1424
|
+
:where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
|
|
1425
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
|
|
1426
|
+
}
|
|
1427
|
+
:where(.gantt-table-th[data-partly-unavailable]) {
|
|
1428
|
+
box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1276
1431
|
/* ==========================================================================
|
|
1277
1432
|
* Cards, panels, surfaces
|
|
1278
1433
|
* --------------------------------------------------------------------------
|
|
@@ -1459,13 +1614,17 @@
|
|
|
1459
1614
|
padding: 0.25rem 0.5rem;
|
|
1460
1615
|
}
|
|
1461
1616
|
|
|
1462
|
-
/* Sticky promo —
|
|
1617
|
+
/* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
|
|
1618
|
+
the component's own bottom: 0 it would stretch over the whole page and take every click. */
|
|
1463
1619
|
:where(.sticky-promo-banner) {
|
|
1464
1620
|
position: sticky;
|
|
1465
|
-
inset-block-start: 0;
|
|
1466
1621
|
z-index: 10;
|
|
1467
1622
|
}
|
|
1468
1623
|
|
|
1624
|
+
:where(.sticky-promo-banner:not([data-position="bottom"])) {
|
|
1625
|
+
inset-block-start: 0;
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1469
1628
|
/* Error message — inline form-validation message. */
|
|
1470
1629
|
:where(.error-message) {
|
|
1471
1630
|
color: var(--lily-error-text);
|
|
@@ -1644,7 +1803,8 @@
|
|
|
1644
1803
|
|
|
1645
1804
|
/* --- Grail layout (5-region responsive page shell) --------------------- */
|
|
1646
1805
|
/* Header spans the top; left-aside / main / right-aside fill the middle;
|
|
1647
|
-
footer spans the bottom.
|
|
1806
|
+
footer spans the bottom. The collapse as the window narrows is in the shared
|
|
1807
|
+
container section at the end of this file. */
|
|
1648
1808
|
:where(.grail-layout) {
|
|
1649
1809
|
display: grid;
|
|
1650
1810
|
min-height: 100vh;
|
|
@@ -1687,14 +1847,6 @@
|
|
|
1687
1847
|
:where(.grail-layout-center-main) {
|
|
1688
1848
|
padding: 0.75rem;
|
|
1689
1849
|
}
|
|
1690
|
-
/* Mobile breakpoint — collapse to a single column, stacking the regions. */
|
|
1691
|
-
@media (max-width: 48rem) {
|
|
1692
|
-
:where(.grail-layout) {
|
|
1693
|
-
grid-template-areas: "header" "main" "left" "right" "footer";
|
|
1694
|
-
grid-template-columns: 1fr;
|
|
1695
|
-
grid-template-rows: auto auto auto auto auto;
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
1850
|
|
|
1699
1851
|
/* Standalone semantic header / footer landmarks. */
|
|
1700
1852
|
:where(.header) {
|
|
@@ -1784,6 +1936,15 @@
|
|
|
1784
1936
|
/* Drawers — side panels (right edge by default; RTL-aware via logical
|
|
1785
1937
|
properties). Sit above the overlay container (z-index 101). */
|
|
1786
1938
|
:where(.drawer, .slide-out-drawer, .sheet) {
|
|
1939
|
+
/* These are <dialog> elements opened with showModal() (P18-T6): undo the
|
|
1940
|
+
browser's centred-box defaults so the panel docks to the edge. */
|
|
1941
|
+
margin: 0;
|
|
1942
|
+
border: 0;
|
|
1943
|
+
inset-inline-start: auto;
|
|
1944
|
+
max-block-size: none;
|
|
1945
|
+
max-inline-size: none;
|
|
1946
|
+
block-size: 100%;
|
|
1947
|
+
box-sizing: border-box;
|
|
1787
1948
|
position: fixed;
|
|
1788
1949
|
inset-block: 0;
|
|
1789
1950
|
inset-inline-end: 0;
|
|
@@ -1796,6 +1957,10 @@
|
|
|
1796
1957
|
z-index: 101;
|
|
1797
1958
|
}
|
|
1798
1959
|
|
|
1960
|
+
:where(.drawer, .slide-out-drawer, .sheet)::backdrop {
|
|
1961
|
+
background-color: color-mix(in oklch, black 50%, transparent);
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1799
1964
|
/* ==========================================================================
|
|
1800
1965
|
* Menus
|
|
1801
1966
|
* ====================================================================== */
|
|
@@ -1848,7 +2013,7 @@
|
|
|
1848
2013
|
gap: 0.25rem;
|
|
1849
2014
|
}
|
|
1850
2015
|
/* Hamburger — bordered icon-button. */
|
|
1851
|
-
:where(.hamburger-menu) {
|
|
2016
|
+
:where(.hamburger-menu > button) {
|
|
1852
2017
|
display: inline-flex;
|
|
1853
2018
|
align-items: center;
|
|
1854
2019
|
justify-content: center;
|
|
@@ -2209,6 +2374,7 @@
|
|
|
2209
2374
|
.theme-picker,
|
|
2210
2375
|
.locale-picker,
|
|
2211
2376
|
.text-size-picker,
|
|
2377
|
+
.time-zone-picker,
|
|
2212
2378
|
.search-picker,
|
|
2213
2379
|
.link-picker,
|
|
2214
2380
|
.menu-picker,
|
|
@@ -2224,6 +2390,7 @@
|
|
|
2224
2390
|
.theme-picker-button,
|
|
2225
2391
|
.locale-picker-button,
|
|
2226
2392
|
.text-size-picker-button,
|
|
2393
|
+
.time-zone-picker-button,
|
|
2227
2394
|
.search-picker-button,
|
|
2228
2395
|
.link-picker-button,
|
|
2229
2396
|
.menu-picker-button,
|
|
@@ -2262,6 +2429,7 @@
|
|
|
2262
2429
|
.theme-picker-icon,
|
|
2263
2430
|
.locale-picker-icon,
|
|
2264
2431
|
.text-size-picker-icon,
|
|
2432
|
+
.time-zone-picker-icon,
|
|
2265
2433
|
.motion-picker-icon,
|
|
2266
2434
|
.link-picker-icon,
|
|
2267
2435
|
.menu-picker-icon,
|
|
@@ -2629,6 +2797,7 @@
|
|
|
2629
2797
|
.theme-picker-tooltip,
|
|
2630
2798
|
.locale-picker-tooltip,
|
|
2631
2799
|
.text-size-picker-tooltip,
|
|
2800
|
+
.time-zone-picker-tooltip,
|
|
2632
2801
|
.motion-picker-tooltip,
|
|
2633
2802
|
.link-picker-tooltip,
|
|
2634
2803
|
.menu-picker-tooltip,
|
|
@@ -2656,6 +2825,7 @@
|
|
|
2656
2825
|
.theme-picker-tooltip,
|
|
2657
2826
|
.locale-picker-tooltip,
|
|
2658
2827
|
.text-size-picker-tooltip,
|
|
2828
|
+
.time-zone-picker-tooltip,
|
|
2659
2829
|
.motion-picker-tooltip,
|
|
2660
2830
|
.link-picker-tooltip,
|
|
2661
2831
|
.menu-picker-tooltip,
|
|
@@ -2675,6 +2845,7 @@
|
|
|
2675
2845
|
.theme-picker-tooltip,
|
|
2676
2846
|
.locale-picker-tooltip,
|
|
2677
2847
|
.text-size-picker-tooltip,
|
|
2848
|
+
.time-zone-picker-tooltip,
|
|
2678
2849
|
.motion-picker-tooltip,
|
|
2679
2850
|
.link-picker-tooltip,
|
|
2680
2851
|
.menu-picker-tooltip,
|
|
@@ -2731,6 +2902,7 @@
|
|
|
2731
2902
|
.theme-picker-list,
|
|
2732
2903
|
.locale-picker-list,
|
|
2733
2904
|
.text-size-picker-list,
|
|
2905
|
+
.time-zone-picker-list,
|
|
2734
2906
|
.motion-picker-list,
|
|
2735
2907
|
.link-picker-list,
|
|
2736
2908
|
.menu-picker-panel,
|
|
@@ -2760,6 +2932,7 @@
|
|
|
2760
2932
|
.theme-picker-list,
|
|
2761
2933
|
.locale-picker-list,
|
|
2762
2934
|
.text-size-picker-list,
|
|
2935
|
+
.time-zone-picker-list,
|
|
2763
2936
|
.motion-picker-list,
|
|
2764
2937
|
.link-picker-list,
|
|
2765
2938
|
.menu-picker-panel,
|
|
@@ -2780,6 +2953,7 @@
|
|
|
2780
2953
|
:where(.theme-picker) { anchor-name: --lily-theme-picker; }
|
|
2781
2954
|
:where(.locale-picker) { anchor-name: --lily-locale-picker; }
|
|
2782
2955
|
:where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
|
|
2956
|
+
:where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
|
|
2783
2957
|
:where(.motion-picker) { anchor-name: --lily-motion-picker; }
|
|
2784
2958
|
:where(.link-picker) { anchor-name: --lily-link-picker; }
|
|
2785
2959
|
:where(.menu-picker) { anchor-name: --lily-menu-picker; }
|
|
@@ -2789,6 +2963,7 @@
|
|
|
2789
2963
|
:where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
|
|
2790
2964
|
:where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
|
|
2791
2965
|
:where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
|
|
2966
|
+
:where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
|
|
2792
2967
|
:where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
|
|
2793
2968
|
:where(.link-picker-list) { position-anchor: --lily-link-picker; }
|
|
2794
2969
|
:where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
|
|
@@ -2799,6 +2974,7 @@
|
|
|
2799
2974
|
.theme-picker-list,
|
|
2800
2975
|
.locale-picker-list,
|
|
2801
2976
|
.text-size-picker-list,
|
|
2977
|
+
.time-zone-picker-list,
|
|
2802
2978
|
.motion-picker-list,
|
|
2803
2979
|
.link-picker-list,
|
|
2804
2980
|
.menu-picker-panel,
|
|
@@ -2816,11 +2992,56 @@
|
|
|
2816
2992
|
}
|
|
2817
2993
|
}
|
|
2818
2994
|
|
|
2819
|
-
|
|
2995
|
+
/* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
|
|
2996
|
+
browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
|
|
2997
|
+
where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
|
|
2998
|
+
open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
|
|
2999
|
+
hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
|
|
3000
|
+
`position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
|
|
3001
|
+
position-area: with no anchor, position-area does nothing and a static position can be off screen. */
|
|
3002
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
|
|
3003
|
+
display: none;
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
|
|
3007
|
+
display: none;
|
|
3008
|
+
}
|
|
3009
|
+
|
|
3010
|
+
@supports (position-area: block-end) {
|
|
3011
|
+
:where(.cascader-trigger) { anchor-name: --lily-cascader; }
|
|
3012
|
+
:where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
|
|
3013
|
+
:where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
|
|
3014
|
+
:where(.combobox > input) { anchor-name: --lily-combobox; }
|
|
3015
|
+
:where(.cascader-panel) { position-anchor: --lily-cascader; }
|
|
3016
|
+
:where(.tree-select-panel) { position-anchor: --lily-tree-select; }
|
|
3017
|
+
:where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
|
|
3018
|
+
:where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
|
|
3019
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
3020
|
+
position: fixed;
|
|
3021
|
+
inset: auto;
|
|
3022
|
+
margin: 0;
|
|
3023
|
+
position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
|
|
3024
|
+
width: max-content;
|
|
3025
|
+
max-width: calc(100vw - 1rem);
|
|
3026
|
+
}
|
|
3027
|
+
:where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
3028
|
+
inset-block-start: anchor(end, 25%);
|
|
3029
|
+
inset-inline-start: anchor(start, 25%);
|
|
3030
|
+
}
|
|
3031
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
3032
|
+
position-area: block-end span-inline-end;
|
|
3033
|
+
}
|
|
3034
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
3035
|
+
min-inline-size: anchor-size(inline);
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2820
3040
|
> :where(
|
|
2821
3041
|
.theme-picker-option,
|
|
2822
3042
|
.locale-picker-option,
|
|
2823
3043
|
.text-size-picker-option,
|
|
3044
|
+
.time-zone-picker-option,
|
|
2824
3045
|
.motion-picker-option
|
|
2825
3046
|
) {
|
|
2826
3047
|
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
@@ -2830,7 +3051,7 @@
|
|
|
2830
3051
|
|
|
2831
3052
|
/* data-active is the keyboard cursor (aria-activedescendant); focus
|
|
2832
3053
|
stays on the listbox, so this is the only visible cue for it. */
|
|
2833
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
3054
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2834
3055
|
> :where([data-active]) {
|
|
2835
3056
|
background-color: var(--lily-surface-alt);
|
|
2836
3057
|
outline: var(--lily-focus-ring);
|
|
@@ -2839,7 +3060,7 @@
|
|
|
2839
3060
|
|
|
2840
3061
|
/* aria-selected marks the applied theme/locale, which is not the
|
|
2841
3062
|
same thing as the keyboard cursor. Both can be visible at once. */
|
|
2842
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
3063
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2843
3064
|
> :where([aria-selected="true"]) {
|
|
2844
3065
|
font-weight: 600;
|
|
2845
3066
|
background-color: var(--lily-surface-sunken);
|
|
@@ -3192,7 +3413,7 @@
|
|
|
3192
3413
|
}
|
|
3193
3414
|
/* Screen-reader-only — visually hidden but available to AT. The
|
|
3194
3415
|
classic clip-rect pattern (works in every screen reader). */
|
|
3195
|
-
:where(.screen-reader-span) {
|
|
3416
|
+
:where(.screen-reader-span, .middle-truncation-full) {
|
|
3196
3417
|
position: absolute;
|
|
3197
3418
|
width: 1px;
|
|
3198
3419
|
height: 1px;
|
|
@@ -3203,6 +3424,42 @@
|
|
|
3203
3424
|
white-space: nowrap;
|
|
3204
3425
|
border: 0;
|
|
3205
3426
|
}
|
|
3427
|
+
/* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
|
|
3428
|
+
text (hidden above) stays in the accessibility tree. */
|
|
3429
|
+
:where(.middle-truncation) {
|
|
3430
|
+
display: block;
|
|
3431
|
+
position: relative;
|
|
3432
|
+
overflow: hidden;
|
|
3433
|
+
white-space: nowrap;
|
|
3434
|
+
}
|
|
3435
|
+
/* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
|
|
3436
|
+
primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
|
|
3437
|
+
:where(.wheel-picker-list) {
|
|
3438
|
+
max-block-size: 10em;
|
|
3439
|
+
overflow-y: auto;
|
|
3440
|
+
overscroll-behavior: contain;
|
|
3441
|
+
scroll-snap-type: y mandatory;
|
|
3442
|
+
border: 1px solid var(--color-base-300);
|
|
3443
|
+
border-radius: var(--lily-radius-md);
|
|
3444
|
+
}
|
|
3445
|
+
:where(.wheel-picker-list:focus-visible) {
|
|
3446
|
+
outline: 2px solid var(--lily-focus-ring);
|
|
3447
|
+
outline-offset: 2px;
|
|
3448
|
+
}
|
|
3449
|
+
:where(.wheel-picker-option) {
|
|
3450
|
+
padding: 0.5rem 1rem;
|
|
3451
|
+
scroll-snap-align: center;
|
|
3452
|
+
cursor: pointer;
|
|
3453
|
+
}
|
|
3454
|
+
:where(.wheel-picker-option[aria-selected="true"]) {
|
|
3455
|
+
background-color: var(--color-primary);
|
|
3456
|
+
color: var(--color-primary-content);
|
|
3457
|
+
font-weight: 600;
|
|
3458
|
+
}
|
|
3459
|
+
:where(.wheel-picker-option[aria-disabled="true"]) {
|
|
3460
|
+
opacity: 0.5;
|
|
3461
|
+
cursor: not-allowed;
|
|
3462
|
+
}
|
|
3206
3463
|
|
|
3207
3464
|
/* ==========================================================================
|
|
3208
3465
|
* Hero, figure, photo, media
|
|
@@ -3737,6 +3994,81 @@
|
|
|
3737
3994
|
min-block-size: 24px;
|
|
3738
3995
|
}
|
|
3739
3996
|
|
|
3997
|
+
/* ============================================================================
|
|
3998
|
+
* Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
|
|
3999
|
+
*
|
|
4000
|
+
* Where the primary pointer is coarse (a finger), interactive hooks are at least
|
|
4001
|
+
* 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
|
|
4002
|
+
* buttons, form fields, checkboxes and radios, and the link-shaped navigation
|
|
4003
|
+
* hooks. Links inside running text are exempt, so bare `a` is not listed. The
|
|
4004
|
+
* query is the capability, never a viewport width. :where() keeps specificity
|
|
4005
|
+
* at zero, so any consumer rule still wins.
|
|
4006
|
+
* ========================================================================= */
|
|
4007
|
+
|
|
4008
|
+
@media (pointer: coarse) {
|
|
4009
|
+
:where(button,
|
|
4010
|
+
[role="button"],
|
|
4011
|
+
[role="tab"],
|
|
4012
|
+
[role="option"],
|
|
4013
|
+
[role="menuitem"],
|
|
4014
|
+
[class*="-picker-button"],
|
|
4015
|
+
summary,
|
|
4016
|
+
input:not([type="hidden"]),
|
|
4017
|
+
select,
|
|
4018
|
+
textarea,
|
|
4019
|
+
.action-link,
|
|
4020
|
+
.back-link,
|
|
4021
|
+
.breadcrumb-list-item > a,
|
|
4022
|
+
.pagination-list-item > a,
|
|
4023
|
+
.contents-list-item > a,
|
|
4024
|
+
.section-list-item > a) {
|
|
4025
|
+
min-inline-size: 44px;
|
|
4026
|
+
min-block-size: 44px;
|
|
4027
|
+
}
|
|
4028
|
+
}
|
|
4029
|
+
|
|
4030
|
+
/* ============================================================================
|
|
4031
|
+
* Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
|
|
4032
|
+
*
|
|
4033
|
+
* --lily-brand is the identity's decorative colour: a header band, a rule, a
|
|
4034
|
+
* logo background. It is NEVER a text colour or a control's boundary, because a
|
|
4035
|
+
* brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
|
|
4036
|
+
* text drawn on it. By default they follow the theme's primary pair, which every
|
|
4037
|
+
* theme keeps readable; an adopter whose brand colour is lighter or darker sets
|
|
4038
|
+
* both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
|
|
4039
|
+
* content pairs (--color-base-content, --lily-error-text and so on).
|
|
4040
|
+
* ========================================================================== */
|
|
4041
|
+
|
|
4042
|
+
:where(:root) {
|
|
4043
|
+
--lily-brand: var(--color-primary);
|
|
4044
|
+
--lily-on-brand: var(--color-primary-content);
|
|
4045
|
+
}
|
|
4046
|
+
|
|
4047
|
+
/* ============================================================================
|
|
4048
|
+
* Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
|
|
4049
|
+
*
|
|
4050
|
+
* The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
|
|
4051
|
+
* adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
|
|
4052
|
+
* and no clear-space rule, because national and local guidelines disagree: a
|
|
4053
|
+
* theme or the adopter sets --lily-logo-clear-space (padding around the mark)
|
|
4054
|
+
* and --lily-logo-min-size (its smallest inline size). Both are unset by
|
|
4055
|
+
* default, so nothing changes until one is set.
|
|
4056
|
+
* ========================================================================== */
|
|
4057
|
+
|
|
4058
|
+
@layer lily {
|
|
4059
|
+
:where([data-lily-logo]) {
|
|
4060
|
+
display: inline-block;
|
|
4061
|
+
padding: var(--lily-logo-clear-space, 0);
|
|
4062
|
+
}
|
|
4063
|
+
|
|
4064
|
+
:where([data-lily-logo] > img, [data-lily-logo] > svg) {
|
|
4065
|
+
display: block;
|
|
4066
|
+
min-inline-size: var(--lily-logo-min-size, 0);
|
|
4067
|
+
max-inline-size: 100%;
|
|
4068
|
+
block-size: auto;
|
|
4069
|
+
}
|
|
4070
|
+
}
|
|
4071
|
+
|
|
3740
4072
|
/* ============================================================================
|
|
3741
4073
|
* Overflow guards — narrow-viewport safety, shared verbatim by all themes.
|
|
3742
4074
|
*
|
|
@@ -3764,3 +4096,620 @@
|
|
|
3764
4096
|
:where(a, code) {
|
|
3765
4097
|
overflow-wrap: anywhere;
|
|
3766
4098
|
}
|
|
4099
|
+
|
|
4100
|
+
/* ============================================================================
|
|
4101
|
+
* Scoped overflow — shared verbatim by all themes.
|
|
4102
|
+
*
|
|
4103
|
+
* Long unbroken strings (a national identifier, an email address, a URL) and
|
|
4104
|
+
* grid/flex tracks that refuse to shrink are the usual causes of horizontal
|
|
4105
|
+
* page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
|
|
4106
|
+
* `overflow-wrap: anywhere` on the places a long value lands (table cells are
|
|
4107
|
+
* covered by Overflow guards above), and `min-inline-size: 0` on the direct
|
|
4108
|
+
* children of Lily's grid and flex containers so a child can shrink below its
|
|
4109
|
+
* content. The identifier `-view` list below is the catalog's 70 national
|
|
4110
|
+
* identifier views (components-categories.tsv); bin/check-theme fails when it
|
|
4111
|
+
* drifts from the catalog. :where() keeps specificity at zero.
|
|
4112
|
+
* ========================================================================= */
|
|
4113
|
+
|
|
4114
|
+
:where(
|
|
4115
|
+
.alba-community-health-index-view,
|
|
4116
|
+
.australia-individual-healthcare-identifier-view,
|
|
4117
|
+
.belgique-numero-de-registre-national-view,
|
|
4118
|
+
.bulgaria-edinen-grazhdanski-nomer-view,
|
|
4119
|
+
.cesko-cestovni-pas-view,
|
|
4120
|
+
.cesko-rodne-cislo-view,
|
|
4121
|
+
.cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
|
|
4122
|
+
.kypros-national-passport-number-view,
|
|
4123
|
+
.danmark-personnummer-view,
|
|
4124
|
+
.deutschland-krankenversichertennummer-view,
|
|
4125
|
+
.eesti-isikukood-view,
|
|
4126
|
+
.ellada-dematerialised-securities-system-view,
|
|
4127
|
+
.england-national-health-service-number-view,
|
|
4128
|
+
.espana-codigo-de-identificacion-fiscal-view,
|
|
4129
|
+
.espana-tarjeta-sanitaria-individual-view,
|
|
4130
|
+
.france-numero-d-identification-au-repertoire-view,
|
|
4131
|
+
.hrvatska-osobni-identifikacijski-broj-view,
|
|
4132
|
+
.eire-individual-health-identifier-view,
|
|
4133
|
+
.island-kennitala-view,
|
|
4134
|
+
.italia-codice-fiscale-view,
|
|
4135
|
+
.latvija-personas-kods-view,
|
|
4136
|
+
.liechtenstein-national-identity-card-number-view,
|
|
4137
|
+
.liechtenstein-passport-number-view,
|
|
4138
|
+
.lietuva-asmens-kodas-view,
|
|
4139
|
+
.lietuva-pasas-view,
|
|
4140
|
+
.malta-national-identification-number-view,
|
|
4141
|
+
.malta-passport-number-view,
|
|
4142
|
+
.nederland-burgerservice-nummer-view,
|
|
4143
|
+
.nederland-identiteitskaart-nummer-view,
|
|
4144
|
+
.nederland-paspoort-nummer-view,
|
|
4145
|
+
.norge-fodselsnummer-view,
|
|
4146
|
+
.tuaisceart-eireann-health-and-care-number-view,
|
|
4147
|
+
.polska-numer-identyfikacji-podatkowej-view,
|
|
4148
|
+
.polska-pesel-view,
|
|
4149
|
+
.portugal-numero-de-identificacao-fiscal-view,
|
|
4150
|
+
.portugal-passaporte-view,
|
|
4151
|
+
.romania-cod-numeric-personal-view,
|
|
4152
|
+
.romania-pasaport-view,
|
|
4153
|
+
.slovenija-emso-view,
|
|
4154
|
+
.slovensko-pas-view,
|
|
4155
|
+
.slovensko-rodne-cislo-view,
|
|
4156
|
+
.suomi-henkilotunnus-view,
|
|
4157
|
+
.sverige-personnummer-view,
|
|
4158
|
+
.iban-view,
|
|
4159
|
+
.united-kingdom-national-health-service-number-view,
|
|
4160
|
+
.united-kingdom-national-insurance-number-view,
|
|
4161
|
+
.united-states-social-security-number-view,
|
|
4162
|
+
.aotearoa-national-health-index-view,
|
|
4163
|
+
.pilipinas-philhealth-identification-number-view,
|
|
4164
|
+
.brasil-cartao-nacional-de-saude-view,
|
|
4165
|
+
.schweiz-ahv-nummer-view,
|
|
4166
|
+
.canada-social-insurance-number-view,
|
|
4167
|
+
.hanguk-jumin-deungnok-beonho-view,
|
|
4168
|
+
.nihon-kojin-bango-view,
|
|
4169
|
+
.bharat-aadhaar-view,
|
|
4170
|
+
.yisrael-teudat-zehut-view,
|
|
4171
|
+
.south-africa-identity-number-view,
|
|
4172
|
+
.mexico-clave-unica-de-registro-de-poblacion-view,
|
|
4173
|
+
.singapore-national-registration-identity-card-view,
|
|
4174
|
+
.osterreich-sozialversicherungsnummer-view,
|
|
4175
|
+
.magyarorszag-taj-szam-view,
|
|
4176
|
+
.luxembourg-matricule-view,
|
|
4177
|
+
.zhongguo-jumin-shenfenzheng-haoma-view,
|
|
4178
|
+
.rossiya-snils-view,
|
|
4179
|
+
.turkiye-tc-kimlik-numarasi-view,
|
|
4180
|
+
.argentina-codigo-unico-de-identificacion-laboral-view,
|
|
4181
|
+
.ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
|
|
4182
|
+
.indonesia-nomor-induk-kependudukan-view,
|
|
4183
|
+
.prathet-thai-lek-prajam-tua-prachachon-view,
|
|
4184
|
+
.chile-rol-unico-nacional-view,
|
|
4185
|
+
.taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
|
|
4186
|
+
.hong-kong-identity-card-view,
|
|
4187
|
+
.iran-kod-e-melli-view,
|
|
4188
|
+
.as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
|
|
4189
|
+
.malaysia-kad-pengenalan-view,
|
|
4190
|
+
.viet-nam-can-cuoc-cong-dan-view,
|
|
4191
|
+
.pakistan-computerized-national-identity-card-view,
|
|
4192
|
+
.uruguay-cedula-de-identidad-view,
|
|
4193
|
+
.ecuador-cedula-de-identidad-view,
|
|
4194
|
+
.colombia-cedula-de-ciudadania-view,
|
|
4195
|
+
.australia-tax-file-number-view,
|
|
4196
|
+
.nigeria-national-identification-number-view,
|
|
4197
|
+
.misr-al-raqm-al-qawmi-view
|
|
4198
|
+
) {
|
|
4199
|
+
overflow-wrap: anywhere;
|
|
4200
|
+
}
|
|
4201
|
+
|
|
4202
|
+
/* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
|
|
4203
|
+
:where(.summary-list, .summary-list-item, .description-list) {
|
|
4204
|
+
overflow-wrap: anywhere;
|
|
4205
|
+
}
|
|
4206
|
+
|
|
4207
|
+
:where(
|
|
4208
|
+
.grid,
|
|
4209
|
+
.flex-stack,
|
|
4210
|
+
.grail-layout,
|
|
4211
|
+
.summary-list,
|
|
4212
|
+
.summary-list-item,
|
|
4213
|
+
.description-list,
|
|
4214
|
+
.form,
|
|
4215
|
+
.editable-form,
|
|
4216
|
+
.field,
|
|
4217
|
+
.input-group,
|
|
4218
|
+
.button-group,
|
|
4219
|
+
.radio-group,
|
|
4220
|
+
.checkbox-group,
|
|
4221
|
+
.toggle-group,
|
|
4222
|
+
.tag-group,
|
|
4223
|
+
.split-view,
|
|
4224
|
+
.photo-pack,
|
|
4225
|
+
.data-filter-form,
|
|
4226
|
+
.action-bar,
|
|
4227
|
+
.tool-bar,
|
|
4228
|
+
.menu-bar,
|
|
4229
|
+
.tab-bar
|
|
4230
|
+
) > :where(*) {
|
|
4231
|
+
min-inline-size: 0;
|
|
4232
|
+
}
|
|
4233
|
+
|
|
4234
|
+
/* ============================================================================
|
|
4235
|
+
* Helper packages — layout and look, shared verbatim by all themes.
|
|
4236
|
+
*
|
|
4237
|
+
* The data grid, kanban board, Gantt chart and calendar view are wide by nature.
|
|
4238
|
+
* Each root scrolls sideways inside its own box and its table sizes to its content,
|
|
4239
|
+
* so a narrow screen scrolls the table instead of wrapping every cell to a letter
|
|
4240
|
+
* (the overflow guard above lets cells break anywhere, which is right for prose and
|
|
4241
|
+
* wrong for a table that has a scroller). The toolbar controls of all four helpers
|
|
4242
|
+
* share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
|
|
4243
|
+
* the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
|
|
4244
|
+
* today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
|
|
4245
|
+
* ========================================================================= */
|
|
4246
|
+
|
|
4247
|
+
:where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
|
|
4248
|
+
max-inline-size: 100%;
|
|
4249
|
+
overflow-x: auto;
|
|
4250
|
+
}
|
|
4251
|
+
|
|
4252
|
+
:where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
|
|
4253
|
+
inline-size: max-content;
|
|
4254
|
+
min-inline-size: 100%;
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4257
|
+
:where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
|
|
4258
|
+
.calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
|
|
4259
|
+
display: flex;
|
|
4260
|
+
flex-wrap: wrap;
|
|
4261
|
+
gap: var(--lily-space-sm);
|
|
4262
|
+
align-items: center;
|
|
4263
|
+
margin-block-end: var(--lily-space-sm);
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
:where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
|
|
4267
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
4268
|
+
border: var(--border) solid var(--lily-border);
|
|
4269
|
+
border-radius: var(--lily-radius-sm);
|
|
4270
|
+
background-color: var(--lily-surface);
|
|
4271
|
+
color: var(--lily-text);
|
|
4272
|
+
font: inherit;
|
|
4273
|
+
min-block-size: 24px;
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4276
|
+
:where(.kanban-board-export-button,
|
|
4277
|
+
.kanban-board-add-button,
|
|
4278
|
+
.kanban-board-undo-button,
|
|
4279
|
+
.kanban-board-collapse-button,
|
|
4280
|
+
.kanban-board-lane-toggle,
|
|
4281
|
+
.kanban-board-move-button,
|
|
4282
|
+
.gantt-chart-export-button,
|
|
4283
|
+
.gantt-chart-zoom-in-button,
|
|
4284
|
+
.gantt-chart-zoom-out-button,
|
|
4285
|
+
.gantt-chart-collapse-button,
|
|
4286
|
+
.gantt-chart-collapse-all-button,
|
|
4287
|
+
.gantt-chart-expand-all-button,
|
|
4288
|
+
.gantt-chart-save-button,
|
|
4289
|
+
.gantt-chart-cancel-button,
|
|
4290
|
+
.calendar-view-export-button,
|
|
4291
|
+
.calendar-view-previous-button,
|
|
4292
|
+
.calendar-view-next-button,
|
|
4293
|
+
.calendar-view-today-button,
|
|
4294
|
+
.calendar-view-switcher-button) {
|
|
4295
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
4296
|
+
border: var(--border) solid var(--lily-border);
|
|
4297
|
+
border-radius: var(--lily-radius-sm);
|
|
4298
|
+
background-color: var(--lily-surface);
|
|
4299
|
+
color: var(--lily-text);
|
|
4300
|
+
font: inherit;
|
|
4301
|
+
cursor: pointer;
|
|
4302
|
+
min-inline-size: 24px;
|
|
4303
|
+
min-block-size: 24px;
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
:where(.kanban-board-export-button:disabled,
|
|
4307
|
+
.kanban-board-add-button:disabled,
|
|
4308
|
+
.kanban-board-undo-button:disabled,
|
|
4309
|
+
.gantt-chart-export-button:disabled,
|
|
4310
|
+
.gantt-chart-zoom-in-button:disabled,
|
|
4311
|
+
.gantt-chart-zoom-out-button:disabled,
|
|
4312
|
+
.calendar-view-export-button:disabled,
|
|
4313
|
+
.calendar-view-previous-button[aria-disabled="true"],
|
|
4314
|
+
.calendar-view-next-button[aria-disabled="true"]) {
|
|
4315
|
+
opacity: 0.5;
|
|
4316
|
+
cursor: not-allowed;
|
|
4317
|
+
}
|
|
4318
|
+
|
|
4319
|
+
:where(.calendar-view-switcher-button[aria-pressed="true"]) {
|
|
4320
|
+
background-color: var(--color-base-300);
|
|
4321
|
+
font-weight: 600;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
:where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
|
|
4325
|
+
margin-block-start: var(--lily-space-sm);
|
|
4326
|
+
font-size: 0.875em;
|
|
4327
|
+
opacity: 0.8;
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
:where(.calendar-view-event) {
|
|
4331
|
+
display: block;
|
|
4332
|
+
padding: 0 var(--lily-space-xs);
|
|
4333
|
+
border-radius: var(--lily-radius-sm);
|
|
4334
|
+
background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
|
|
4335
|
+
font-size: 0.75rem;
|
|
4336
|
+
}
|
|
4337
|
+
|
|
4338
|
+
:where(.gantt-table-th) {
|
|
4339
|
+
min-inline-size: 2rem;
|
|
4340
|
+
padding-inline: 0.25rem;
|
|
4341
|
+
font-size: 0.75rem;
|
|
4342
|
+
text-align: center;
|
|
4343
|
+
white-space: nowrap;
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
:where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
|
|
4347
|
+
min-inline-size: 10rem;
|
|
4348
|
+
padding-inline: var(--lily-space-sm);
|
|
4349
|
+
font-size: inherit;
|
|
4350
|
+
text-align: start;
|
|
4351
|
+
white-space: normal;
|
|
4352
|
+
}
|
|
4353
|
+
|
|
4354
|
+
:where(.gantt-table-td) {
|
|
4355
|
+
min-block-size: 1.7rem;
|
|
4356
|
+
padding: 0;
|
|
4357
|
+
}
|
|
4358
|
+
|
|
4359
|
+
:where(.gantt-table-td[data-in-range]) {
|
|
4360
|
+
background-color: var(--color-primary);
|
|
4361
|
+
/* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
|
|
4362
|
+
color: var(--color-primary-content);
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4365
|
+
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
4366
|
+
clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
|
|
4367
|
+
}
|
|
4368
|
+
|
|
4369
|
+
:where(.gantt-table-td[data-today]) {
|
|
4370
|
+
border-inline-start: 2px solid var(--color-accent);
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4373
|
+
/* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
|
|
4374
|
+
option up to a cap, then wrap, rather than clipping the name or running off a phone. */
|
|
4375
|
+
:where(.time-zone-picker-list) {
|
|
4376
|
+
inline-size: max-content;
|
|
4377
|
+
max-inline-size: min(26rem, 90vw);
|
|
4378
|
+
max-block-size: min(24rem, 70vh);
|
|
4379
|
+
overflow-y: auto;
|
|
4380
|
+
}
|
|
4381
|
+
|
|
4382
|
+
:where(.time-zone-picker-option) {
|
|
4383
|
+
overflow-wrap: anywhere;
|
|
4384
|
+
}
|
|
4385
|
+
|
|
4386
|
+
/* ============================================================================
|
|
4387
|
+
* Overflow navigation — shared verbatim by all themes.
|
|
4388
|
+
*
|
|
4389
|
+
* The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
|
|
4390
|
+
* With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
|
|
4391
|
+
* (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
|
|
4392
|
+
* the links that do not fit into the More list. That list is in normal flow (position
|
|
4393
|
+
* static, never absolute), so opening it pushes the content below down and never covers it
|
|
4394
|
+
* (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
|
|
4395
|
+
* specificity at zero, so any consumer rule wins.
|
|
4396
|
+
* ========================================================================= */
|
|
4397
|
+
|
|
4398
|
+
:where(.navigation-menu-list) {
|
|
4399
|
+
display: flex;
|
|
4400
|
+
flex: 1 1 auto;
|
|
4401
|
+
flex-wrap: wrap;
|
|
4402
|
+
align-items: flex-start;
|
|
4403
|
+
gap: 0.25rem 0.5rem;
|
|
4404
|
+
min-inline-size: 0;
|
|
4405
|
+
margin: 0;
|
|
4406
|
+
padding: 0;
|
|
4407
|
+
list-style: none;
|
|
4408
|
+
}
|
|
4409
|
+
|
|
4410
|
+
:where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
|
|
4411
|
+
display: inline-block;
|
|
4412
|
+
min-inline-size: 24px;
|
|
4413
|
+
min-block-size: 24px;
|
|
4414
|
+
}
|
|
4415
|
+
|
|
4416
|
+
:where(.navigation-menu-more) {
|
|
4417
|
+
position: static;
|
|
4418
|
+
}
|
|
4419
|
+
|
|
4420
|
+
:where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
|
|
4421
|
+
display: none;
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
:where(.navigation-menu-more-button) {
|
|
4425
|
+
min-inline-size: 24px;
|
|
4426
|
+
min-block-size: 24px;
|
|
4427
|
+
padding: 0.25rem 0.5rem;
|
|
4428
|
+
font: inherit;
|
|
4429
|
+
color: inherit;
|
|
4430
|
+
background: transparent;
|
|
4431
|
+
border: 1px solid currentcolor;
|
|
4432
|
+
cursor: pointer;
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4435
|
+
:where(.navigation-menu-more-list) {
|
|
4436
|
+
position: static;
|
|
4437
|
+
margin: 0.25rem 0 0;
|
|
4438
|
+
padding: 0;
|
|
4439
|
+
list-style: none;
|
|
4440
|
+
}
|
|
4441
|
+
|
|
4442
|
+
/* ============================================================================
|
|
4443
|
+
* Container queries — shared verbatim by all themes.
|
|
4444
|
+
*
|
|
4445
|
+
* A component answers to the space it is given, not to the window: a summary
|
|
4446
|
+
* list in a narrow aside on a wide screen needs the narrow layout, which the
|
|
4447
|
+
* viewport query above cannot know. The three grail-layout regions are the
|
|
4448
|
+
* containers because their width comes from a grid track (`minmax(0, 1fr)`), so
|
|
4449
|
+
* inline-size containment cannot collapse them. `.card` is deliberately not a
|
|
4450
|
+
* container: in a shrink-to-fit parent (a flex row, an inline grid) containment
|
|
4451
|
+
* would collapse it to nothing. A component outside a grail region has no
|
|
4452
|
+
* container and keeps its wide layout. :where() keeps specificity at zero, so
|
|
4453
|
+
* any consumer rule wins.
|
|
4454
|
+
* ========================================================================= */
|
|
4455
|
+
|
|
4456
|
+
:where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
|
|
4457
|
+
container-type: inline-size;
|
|
4458
|
+
}
|
|
4459
|
+
|
|
4460
|
+
/* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
|
|
4461
|
+
window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
|
|
4462
|
+
Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
|
|
4463
|
+
(at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
|
|
4464
|
+
right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
|
|
4465
|
+
hidden, so all content stays reachable. */
|
|
4466
|
+
@media (max-width: 64rem) {
|
|
4467
|
+
:where(.grail-layout) {
|
|
4468
|
+
grid-template-areas:
|
|
4469
|
+
"header header"
|
|
4470
|
+
"left main"
|
|
4471
|
+
"right right"
|
|
4472
|
+
"footer footer";
|
|
4473
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
|
|
4474
|
+
grid-template-rows: auto auto auto auto;
|
|
4475
|
+
}
|
|
4476
|
+
}
|
|
4477
|
+
|
|
4478
|
+
@media (max-width: 48rem) {
|
|
4479
|
+
:where(.grail-layout) {
|
|
4480
|
+
grid-template-areas:
|
|
4481
|
+
"header"
|
|
4482
|
+
"left"
|
|
4483
|
+
"main"
|
|
4484
|
+
"right"
|
|
4485
|
+
"footer";
|
|
4486
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4487
|
+
grid-template-rows: auto auto auto auto auto;
|
|
4488
|
+
}
|
|
4489
|
+
}
|
|
4490
|
+
|
|
4491
|
+
@container (max-width: 30rem) {
|
|
4492
|
+
:where(.summary-list) {
|
|
4493
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4494
|
+
row-gap: 0.25rem;
|
|
4495
|
+
}
|
|
4496
|
+
|
|
4497
|
+
:where(.kanban-table-td) {
|
|
4498
|
+
min-width: 10rem;
|
|
4499
|
+
}
|
|
4500
|
+
|
|
4501
|
+
:where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
|
|
4502
|
+
padding-inline: 0.5rem;
|
|
4503
|
+
}
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4506
|
+
/* ============================================================================
|
|
4507
|
+
* Focus not obscured — shared verbatim by all themes.
|
|
4508
|
+
*
|
|
4509
|
+
* WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
|
|
4510
|
+
* entirely hidden by author-created content, such as a bar fixed to the top or
|
|
4511
|
+
* bottom of the viewport. The browser scrolls a focused control into view, but
|
|
4512
|
+
* only as far as the edge of the viewport, which is where a fixed bar sits.
|
|
4513
|
+
* `scroll-padding` moves that edge in by the bar's height.
|
|
4514
|
+
*
|
|
4515
|
+
* Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
|
|
4516
|
+
* theme's or an app's own fixed header, a mobile bottom navigation) sets the
|
|
4517
|
+
* bar's height on the root element:
|
|
4518
|
+
*
|
|
4519
|
+
* --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
|
|
4520
|
+
* --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
|
|
4521
|
+
*
|
|
4522
|
+
* With both bars, set both. The defaults are 0px, so a page without a fixed bar
|
|
4523
|
+
* is unchanged. Specificity is zero (`:where`), so an app's own
|
|
4524
|
+
* `scroll-padding` wins.
|
|
4525
|
+
* ========================================================================= */
|
|
4526
|
+
|
|
4527
|
+
:where(html) {
|
|
4528
|
+
scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
|
|
4529
|
+
}
|
|
4530
|
+
|
|
4531
|
+
/* ============================================================================
|
|
4532
|
+
* Text size and motion preferences — shared verbatim by all themes.
|
|
4533
|
+
*
|
|
4534
|
+
* The text-size-picker sets `data-text-size` on the root and the motion-picker
|
|
4535
|
+
* sets `data-motion`; neither styles anything itself. These rules are what make
|
|
4536
|
+
* the choice visible.
|
|
4537
|
+
*
|
|
4538
|
+
* Text size: the seven steps scale the root font size, and every theme sizes in
|
|
4539
|
+
* `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
|
|
4540
|
+
* own browser setting), and the scale is percentages of that, never pixels, so
|
|
4541
|
+
* a viewer who raised their browser font size keeps it. The steps below
|
|
4542
|
+
* `normal` are the viewer's explicit choice.
|
|
4543
|
+
*
|
|
4544
|
+
* Motion: `data-motion="reduce"` shortens every animation and transition to
|
|
4545
|
+
* 0.01ms instead of removing it. The end state still arrives and `animationend`
|
|
4546
|
+
* / `transitionend` still fire, so nothing that depends on them breaks and no
|
|
4547
|
+
* information is lost: a spinner's `role="status"` text, a disclosure's open
|
|
4548
|
+
* state and a toast's content are untouched. Scrolling is instant.
|
|
4549
|
+
* ========================================================================= */
|
|
4550
|
+
|
|
4551
|
+
:where(html[data-text-size="smallest"]) { font-size: 80%; }
|
|
4552
|
+
:where(html[data-text-size="smaller"]) { font-size: 90%; }
|
|
4553
|
+
:where(html[data-text-size="small"]) { font-size: 95%; }
|
|
4554
|
+
:where(html[data-text-size="normal"]) { font-size: 100%; }
|
|
4555
|
+
:where(html[data-text-size="large"]) { font-size: 110%; }
|
|
4556
|
+
:where(html[data-text-size="larger"]) { font-size: 125%; }
|
|
4557
|
+
:where(html[data-text-size="largest"]) { font-size: 150%; }
|
|
4558
|
+
|
|
4559
|
+
:where(html[data-motion="reduce"]) {
|
|
4560
|
+
scroll-behavior: auto;
|
|
4561
|
+
}
|
|
4562
|
+
:where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
|
|
4563
|
+
animation-duration: 0.01ms !important;
|
|
4564
|
+
animation-iteration-count: 1 !important;
|
|
4565
|
+
animation-delay: 0s !important;
|
|
4566
|
+
transition-duration: 0.01ms !important;
|
|
4567
|
+
transition-delay: 0s !important;
|
|
4568
|
+
scroll-behavior: auto !important;
|
|
4569
|
+
}
|
|
4570
|
+
|
|
4571
|
+
/* ============================================================================
|
|
4572
|
+
* Forced colours and contrast preference — shared verbatim by all themes.
|
|
4573
|
+
*
|
|
4574
|
+
* Forced colours (Windows High Contrast, `forced-colors: active`): the browser
|
|
4575
|
+
* replaces every colour with a system colour, which erases anything a control
|
|
4576
|
+
* told apart by background alone. These rules give such controls a border,
|
|
4577
|
+
* keep the focus ring, and mark selected and current items with `Highlight`
|
|
4578
|
+
* and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
|
|
4579
|
+
*
|
|
4580
|
+
* Contrast preference (`prefers-contrast: more`): a heavier border on controls
|
|
4581
|
+
* and a thicker focus ring. Colours are not changed here; a theme's colours are
|
|
4582
|
+
* its author's decision.
|
|
4583
|
+
* ========================================================================= */
|
|
4584
|
+
|
|
4585
|
+
@media (forced-colors: active) {
|
|
4586
|
+
:where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
|
|
4587
|
+
border: 1px solid ButtonBorder;
|
|
4588
|
+
}
|
|
4589
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4590
|
+
outline: 3px solid Highlight;
|
|
4591
|
+
outline-offset: 2px;
|
|
4592
|
+
}
|
|
4593
|
+
:where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
|
|
4594
|
+
background: SelectedItem;
|
|
4595
|
+
color: SelectedItemText;
|
|
4596
|
+
forced-color-adjust: none;
|
|
4597
|
+
}
|
|
4598
|
+
:where([aria-current]:not([aria-current="false"])) {
|
|
4599
|
+
outline: 2px solid Highlight;
|
|
4600
|
+
outline-offset: -2px;
|
|
4601
|
+
}
|
|
4602
|
+
:where(:disabled, [aria-disabled="true"]) {
|
|
4603
|
+
border-color: GrayText;
|
|
4604
|
+
color: GrayText;
|
|
4605
|
+
}
|
|
4606
|
+
}
|
|
4607
|
+
|
|
4608
|
+
@media (prefers-contrast: more) {
|
|
4609
|
+
:where(button, input, select, textarea, [role="button"], [class$="-button"]) {
|
|
4610
|
+
border-width: 2px;
|
|
4611
|
+
border-style: solid;
|
|
4612
|
+
border-color: currentColor;
|
|
4613
|
+
}
|
|
4614
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4615
|
+
outline-width: 3px;
|
|
4616
|
+
outline-offset: 2px;
|
|
4617
|
+
}
|
|
4618
|
+
}
|
|
4619
|
+
|
|
4620
|
+
/* ============================================================================
|
|
4621
|
+
* Writing systems — shared verbatim by all themes.
|
|
4622
|
+
*
|
|
4623
|
+
* A theme names its Latin font stack (`--lily-font-body-latin`). This section
|
|
4624
|
+
* builds `--lily-font-body` from it, with the system fonts of the element's
|
|
4625
|
+
* script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
|
|
4626
|
+
* Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
|
|
4627
|
+
* scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
|
|
4628
|
+
* Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
|
|
4629
|
+
* Chinese and Japanese but drawn differently, so the language picks the font,
|
|
4630
|
+
* not the script.
|
|
4631
|
+
*
|
|
4632
|
+
* `--lily-font-body` is re-declared on every element with a `lang`, so a
|
|
4633
|
+
* `<p lang="ja">` inside an English page gets Japanese fonts and a
|
|
4634
|
+
* `<span lang="en">` inside it gets none. A language not listed here keeps the
|
|
4635
|
+
* Latin stack, whose final generic family the browser resolves per language.
|
|
4636
|
+
*
|
|
4637
|
+
* `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
|
|
4638
|
+
* and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
|
|
4639
|
+
* Elements with a `lang` use it; the app's body text should too.
|
|
4640
|
+
*
|
|
4641
|
+
* To change a theme's font, set `--lily-font-body-latin`; to change a script's,
|
|
4642
|
+
* set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
|
|
4643
|
+
* itself still works on the element you set it on.
|
|
4644
|
+
* ========================================================================= */
|
|
4645
|
+
|
|
4646
|
+
:where(:root, [lang]) {
|
|
4647
|
+
--lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
|
|
4648
|
+
--lily-line-height-body: 1.5;
|
|
4649
|
+
}
|
|
4650
|
+
|
|
4651
|
+
:where([lang]) {
|
|
4652
|
+
--lily-font-script: initial;
|
|
4653
|
+
line-height: var(--lily-line-height-body);
|
|
4654
|
+
}
|
|
4655
|
+
|
|
4656
|
+
:where([lang|="zh"], [lang|="wuu"]) {
|
|
4657
|
+
--lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
|
|
4658
|
+
}
|
|
4659
|
+
:where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
|
|
4660
|
+
--lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
|
|
4661
|
+
}
|
|
4662
|
+
:where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
|
|
4663
|
+
--lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
|
|
4664
|
+
}
|
|
4665
|
+
:where([lang|="ja"]) {
|
|
4666
|
+
--lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
|
|
4667
|
+
}
|
|
4668
|
+
:where([lang|="ko"]) {
|
|
4669
|
+
--lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
|
|
4670
|
+
}
|
|
4671
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
|
|
4672
|
+
--lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
|
|
4673
|
+
}
|
|
4674
|
+
:where([lang|="ur"]) {
|
|
4675
|
+
--lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
|
|
4676
|
+
}
|
|
4677
|
+
:where([lang|="he"], [lang|="yi"]) {
|
|
4678
|
+
--lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
|
|
4679
|
+
}
|
|
4680
|
+
:where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
|
|
4681
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
|
|
4682
|
+
}
|
|
4683
|
+
:where([lang|="bn"], [lang|="as"]) {
|
|
4684
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
|
|
4685
|
+
}
|
|
4686
|
+
:where([lang|="gu"]) {
|
|
4687
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
|
|
4688
|
+
}
|
|
4689
|
+
:where([lang|="pa"]) {
|
|
4690
|
+
--lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
|
|
4691
|
+
}
|
|
4692
|
+
:where([lang|="kn"]) {
|
|
4693
|
+
--lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
|
|
4694
|
+
}
|
|
4695
|
+
:where([lang|="ta"]) {
|
|
4696
|
+
--lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
|
|
4697
|
+
}
|
|
4698
|
+
:where([lang|="te"]) {
|
|
4699
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
|
|
4700
|
+
}
|
|
4701
|
+
:where([lang|="th"]) {
|
|
4702
|
+
--lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
|
|
4703
|
+
}
|
|
4704
|
+
:where([lang|="lo"]) {
|
|
4705
|
+
--lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
|
|
4706
|
+
}
|
|
4707
|
+
:where([lang|="km"]) {
|
|
4708
|
+
--lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
|
|
4709
|
+
}
|
|
4710
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
|
|
4711
|
+
[lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
|
|
4712
|
+
[lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
|
|
4713
|
+
[lang|="lo"], [lang|="km"]) {
|
|
4714
|
+
--lily-line-height-body: 1.75;
|
|
4715
|
+
}
|