@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
|
@@ -56,8 +56,10 @@
|
|
|
56
56
|
* more clinical reading of the same palette with magenta/violet
|
|
57
57
|
* callouts reserved for safety messaging.
|
|
58
58
|
*
|
|
59
|
-
* Upstream tracked:
|
|
60
|
-
*
|
|
59
|
+
* Upstream tracked: nhsuk-frontend 10.7.1 (npm, published 2026-10-29;
|
|
60
|
+
* re-baselined from 9.x on 2026-10-29 against the package's Sass
|
|
61
|
+
* settings and CHANGELOG; v10 has been stable since 10.0.0 on
|
|
62
|
+
* 2025-08-26). Independent
|
|
61
63
|
* implementation against Lily class hooks; not affiliated with or
|
|
62
64
|
* endorsed by the NHS.
|
|
63
65
|
*
|
|
@@ -75,10 +77,15 @@
|
|
|
75
77
|
* https://www.gov.scot/publications/digital-scotland-service-standard/
|
|
76
78
|
* - Typography: Frutiger W01 (primary, shared with NHS UK), Roboto for
|
|
77
79
|
* NHS Inform body copy, Arial / system-ui as the universal fallback.
|
|
78
|
-
* - Base font size: 16px;
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
80
|
+
* - Base font size: 16px; type scale follows nhsuk-frontend 10 (tablet
|
|
81
|
+
* px 14/16/19/22/26/36/48/64; point 24 was removed in 10.0.0) so
|
|
82
|
+
* components ported from the NHS UK frontend "just work".
|
|
83
|
+
* - Spacing: nhsuk-frontend 10 spacing points (px) are 0, 4, 8, 16, 24,
|
|
84
|
+
* 32, 40, 48, 56, 64 (`$nhsuk-spacing-points`, unchanged from 9.x).
|
|
85
|
+
* - Scotland: no NHS Scotland or NHS Inform frontend package is
|
|
86
|
+
* published (npm search, 2026-10-29), so this theme takes
|
|
87
|
+
* nhsuk-frontend plus the Scottish palette below, which keeps its own
|
|
88
|
+
* values.
|
|
82
89
|
* - WCAG 2.2 AA mandated by the Digital Scotland Service Standard;
|
|
83
90
|
* Lily targets AAA. The focus indicator below clears AAA at 3:1
|
|
84
91
|
* against every surface in the theme.
|
|
@@ -122,7 +129,10 @@
|
|
|
122
129
|
* NHS Emergency Red #DA291C error / destructive action, also
|
|
123
130
|
* the colour used on the "999" badge
|
|
124
131
|
* inside NHS Inform.
|
|
125
|
-
* NHS Green
|
|
132
|
+
* NHS.UK Green #007F3B success / confirmation (nhsuk-frontend
|
|
133
|
+
* 10 `$nhsuk-success-colour`; was NHS
|
|
134
|
+
* Identity green #009639 until
|
|
135
|
+
* 2026-10-29).
|
|
126
136
|
* NHS Dark Green #006747 success hover / pressed state.
|
|
127
137
|
*
|
|
128
138
|
* Geometry rules (shared with NHS UK frontend)
|
|
@@ -236,13 +246,17 @@
|
|
|
236
246
|
--color-info: oklch(54% 0.17 247);
|
|
237
247
|
--color-info-content: oklch(100% 0 0);
|
|
238
248
|
/* ---- Success (NHS Green)
|
|
239
|
-
-------------------------------------------- */ /* NHS
|
|
240
|
-
|
|
241
|
-
indicators */ /* ("you have been booked"), and the
|
|
242
|
-
state on form summaries. */ /* Identical role and
|
|
243
|
-
target as the NHS UK system so shared */ /*
|
|
244
|
-
carry the same meaning across the border.
|
|
245
|
-
|
|
249
|
+
-------------------------------------------- */ /* NHS.UK
|
|
250
|
+
frontend green #007F3B — confirmation panels, completed-
|
|
251
|
+
step indicators */ /* ("you have been booked"), and the
|
|
252
|
+
success state on form summaries. */ /* Identical role and
|
|
253
|
+
contrast target as the NHS UK system so shared */ /*
|
|
254
|
+
components carry the same meaning across the border. Re-
|
|
255
|
+
baselined 2026-10-29 to nhsuk-frontend 10.7.1 `$nhsuk-
|
|
256
|
+
success-colour` (core/settings/_colours-applied.scss, new
|
|
257
|
+
in v10); it was NHS Identity green #009639, which gave
|
|
258
|
+
white content 4.37:1 (below AA). Now 5.19:1. */
|
|
259
|
+
--color-success: oklch(52% 0.14 151);
|
|
246
260
|
--color-success-content: oklch(100% 0 0);
|
|
247
261
|
/* ---- Warning (NHS Warm Yellow)
|
|
248
262
|
-------------------------------------- */ /* NHS Warm
|
|
@@ -286,11 +300,13 @@
|
|
|
286
300
|
so */ /* checklist rows and field grids pack tightly. */
|
|
287
301
|
--size-selector: 0.125rem;
|
|
288
302
|
--size-field: 0.125rem;
|
|
289
|
-
/* Border width: 1px hairline,
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
303
|
+
/* Border width: 1px hairline, Lily's own hairline, not an
|
|
304
|
+
upstream value: nhsuk-frontend 10 has no `$nhsuk-border-
|
|
305
|
+
width-form`; its form controls use `$nhsuk-border-width-
|
|
306
|
+
form-element` (2px). */ /* The hairline is the smallest
|
|
307
|
+
legible border on the LCDs used in */ /* clinical settings;
|
|
308
|
+
going to 0.5px loses the edge on non-Retina */ /*
|
|
309
|
+
workstation displays still common in NHS estate. */
|
|
294
310
|
--border: 1px;
|
|
295
311
|
/* Depth & noise off — NHS Scotland identity guidance, like
|
|
296
312
|
NHS UK, */ /* avoids shadows, gradients, and textures so
|
|
@@ -299,6 +315,14 @@
|
|
|
299
315
|
settings. */
|
|
300
316
|
--depth: 0;
|
|
301
317
|
--noise: 0;
|
|
318
|
+
/* Fluid inline gutter for page containers and the main
|
|
319
|
+
region: grows with the viewport from a 1rem floor to a 2rem
|
|
320
|
+
ceiling. Spacing only, never text. */
|
|
321
|
+
--space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
|
|
322
|
+
/* Fluid gap between sections (stacks and grids): grows with
|
|
323
|
+
the viewport from a 1rem floor to a 2rem ceiling. Spacing
|
|
324
|
+
only, never text. */
|
|
325
|
+
--space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
|
|
302
326
|
}
|
|
303
327
|
|
|
304
328
|
/* ----------------------------------------------------------------------------
|
|
@@ -400,7 +424,7 @@
|
|
|
400
424
|
/* --- Typography ---------------------------------------------------- */
|
|
401
425
|
/* Body font stack — system fonts first so consumers get a
|
|
402
426
|
native-feeling baseline without shipping a web font. */
|
|
403
|
-
--lily-font-body:
|
|
427
|
+
--lily-font-body-latin:
|
|
404
428
|
system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
|
|
405
429
|
Arial, sans-serif;
|
|
406
430
|
/* Monospaced font stack — used by code, kbd, identifiers, and
|
|
@@ -527,9 +551,12 @@
|
|
|
527
551
|
}
|
|
528
552
|
|
|
529
553
|
/* Invalid input — red border. The `aria-invalid="true"` attribute is the
|
|
530
|
-
ARIA contract
|
|
531
|
-
|
|
532
|
-
|
|
554
|
+
ARIA contract (server-rendered errors); `:user-invalid` is the native
|
|
555
|
+
state that matches only after the user has interacted, so a required
|
|
556
|
+
field is not styled invalid on load. Pairing a colour change with the
|
|
557
|
+
ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
|
|
558
|
+
:where([class$="-input"], .input)[aria-invalid="true"],
|
|
559
|
+
:where([class$="-input"], .input):user-invalid {
|
|
533
560
|
border-color: var(--color-error);
|
|
534
561
|
}
|
|
535
562
|
|
|
@@ -1072,7 +1099,7 @@
|
|
|
1072
1099
|
color: var(--lily-text-muted);
|
|
1073
1100
|
}
|
|
1074
1101
|
/* Final crumb (the current page) — muted because it isn't a link. */
|
|
1075
|
-
:where(.breadcrumb-list-item[aria-current="page"]) {
|
|
1102
|
+
:where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
|
|
1076
1103
|
color: var(--lily-text-muted);
|
|
1077
1104
|
}
|
|
1078
1105
|
|
|
@@ -1344,11 +1371,114 @@
|
|
|
1344
1371
|
background-color: var(--color-primary);
|
|
1345
1372
|
color: var(--color-primary-content);
|
|
1346
1373
|
}
|
|
1347
|
-
/* Today — outlined
|
|
1348
|
-
|
|
1374
|
+
/* Today — outlined and bold, never filled, so a selected non-today date still
|
|
1375
|
+
reads as "selected". The ring takes the cell's own text colour (currentColor),
|
|
1376
|
+
so it holds its contrast on a light page, a dark page and a selected cell
|
|
1377
|
+
alike, and the bold number says it without colour. */
|
|
1349
1378
|
:where(.calendar-table-td[aria-current="date"]) {
|
|
1350
|
-
outline: 2px solid
|
|
1351
|
-
outline-offset: -
|
|
1379
|
+
outline: 2px solid currentColor;
|
|
1380
|
+
outline-offset: -3px;
|
|
1381
|
+
font-weight: 700;
|
|
1382
|
+
}
|
|
1383
|
+
/* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
|
|
1384
|
+
:where(.calendar-table) {
|
|
1385
|
+
table-layout: fixed;
|
|
1386
|
+
}
|
|
1387
|
+
:where(.calendar-table-td, .calendar-table-th) {
|
|
1388
|
+
min-width: 0;
|
|
1389
|
+
overflow-wrap: anywhere;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
/* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
|
|
1393
|
+
:where(.data-grid-toolbar) {
|
|
1394
|
+
display: flex;
|
|
1395
|
+
flex-wrap: wrap;
|
|
1396
|
+
gap: var(--lily-space-sm);
|
|
1397
|
+
align-items: center;
|
|
1398
|
+
margin-block-end: var(--lily-space-sm);
|
|
1399
|
+
}
|
|
1400
|
+
:where(.data-grid-search, .data-grid-search-field) {
|
|
1401
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1402
|
+
border: var(--border) solid var(--lily-border);
|
|
1403
|
+
border-radius: var(--lily-radius-sm);
|
|
1404
|
+
background-color: var(--lily-surface);
|
|
1405
|
+
color: var(--lily-text);
|
|
1406
|
+
font: inherit;
|
|
1407
|
+
}
|
|
1408
|
+
/* A sortable header is a button that looks like its text; the arrow follows aria-sort,
|
|
1409
|
+
so the state is in the markup for assistive technology and on screen for everyone. */
|
|
1410
|
+
:where(.data-grid-sort-button) {
|
|
1411
|
+
padding: 0;
|
|
1412
|
+
border: 0;
|
|
1413
|
+
background: none;
|
|
1414
|
+
color: inherit;
|
|
1415
|
+
font: inherit;
|
|
1416
|
+
text-align: start;
|
|
1417
|
+
cursor: pointer;
|
|
1418
|
+
}
|
|
1419
|
+
:where(.data-grid-sort-button:focus-visible) {
|
|
1420
|
+
outline: 2px solid var(--color-accent);
|
|
1421
|
+
outline-offset: 2px;
|
|
1422
|
+
}
|
|
1423
|
+
:where([aria-sort="none"] .data-grid-sort-button)::after {
|
|
1424
|
+
content: " \21C5";
|
|
1425
|
+
opacity: 0.5;
|
|
1426
|
+
}
|
|
1427
|
+
:where([aria-sort="ascending"] .data-grid-sort-button)::after {
|
|
1428
|
+
content: " \25B2";
|
|
1429
|
+
}
|
|
1430
|
+
:where([aria-sort="descending"] .data-grid-sort-button)::after {
|
|
1431
|
+
content: " \25BC";
|
|
1432
|
+
}
|
|
1433
|
+
:where(.data-grid-pagination) {
|
|
1434
|
+
display: flex;
|
|
1435
|
+
flex-wrap: wrap;
|
|
1436
|
+
gap: var(--lily-space-sm);
|
|
1437
|
+
align-items: center;
|
|
1438
|
+
justify-content: flex-end;
|
|
1439
|
+
margin-block-start: var(--lily-space-sm);
|
|
1440
|
+
}
|
|
1441
|
+
:where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
|
|
1442
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
1443
|
+
border: var(--border) solid var(--lily-border);
|
|
1444
|
+
border-radius: var(--lily-radius-sm);
|
|
1445
|
+
background-color: var(--lily-surface);
|
|
1446
|
+
color: var(--lily-text);
|
|
1447
|
+
font: inherit;
|
|
1448
|
+
cursor: pointer;
|
|
1449
|
+
}
|
|
1450
|
+
:where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
|
|
1451
|
+
opacity: 0.5;
|
|
1452
|
+
cursor: not-allowed;
|
|
1453
|
+
}
|
|
1454
|
+
:where(.data-grid-column-visibility) {
|
|
1455
|
+
display: flex;
|
|
1456
|
+
flex-wrap: wrap;
|
|
1457
|
+
gap: var(--lily-space-sm);
|
|
1458
|
+
margin: 0;
|
|
1459
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1460
|
+
border: var(--border) solid var(--lily-border);
|
|
1461
|
+
border-radius: var(--lily-radius-sm);
|
|
1462
|
+
}
|
|
1463
|
+
/* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
|
|
1464
|
+
:where([data-pinned="start"]) {
|
|
1465
|
+
position: sticky;
|
|
1466
|
+
inset-inline-start: 0;
|
|
1467
|
+
z-index: 1;
|
|
1468
|
+
background-color: var(--lily-surface);
|
|
1469
|
+
}
|
|
1470
|
+
:where([data-pinned="end"]) {
|
|
1471
|
+
position: sticky;
|
|
1472
|
+
inset-inline-end: 0;
|
|
1473
|
+
z-index: 1;
|
|
1474
|
+
background-color: var(--lily-surface);
|
|
1475
|
+
}
|
|
1476
|
+
:where(th[data-pinned]) {
|
|
1477
|
+
z-index: 2;
|
|
1478
|
+
}
|
|
1479
|
+
/* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
|
|
1480
|
+
:where(.data-table-td[data-empty]) {
|
|
1481
|
+
opacity: 0.7;
|
|
1352
1482
|
}
|
|
1353
1483
|
|
|
1354
1484
|
/* --- Kanban specifics --------------------------------------------------- */
|
|
@@ -1362,6 +1492,20 @@
|
|
|
1362
1492
|
min-width: 14rem;
|
|
1363
1493
|
}
|
|
1364
1494
|
|
|
1495
|
+
/* Dragging a card: the column it would land in is outlined; one that refuses it
|
|
1496
|
+
(canMove, allowedColumns, a full strict WIP limit) is striped and shows the
|
|
1497
|
+
not-allowed cursor, so "you can't drop here" is visible before the drop. */
|
|
1498
|
+
:where(.kanban-table-td[data-drop-target]) {
|
|
1499
|
+
outline: 2px dashed var(--color-accent);
|
|
1500
|
+
outline-offset: -3px;
|
|
1501
|
+
}
|
|
1502
|
+
:where(.kanban-table-td[data-drop-blocked]) {
|
|
1503
|
+
outline: 2px solid var(--color-error);
|
|
1504
|
+
outline-offset: -3px;
|
|
1505
|
+
cursor: not-allowed;
|
|
1506
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1365
1509
|
/* --- Gantt specifics ---------------------------------------------------- */
|
|
1366
1510
|
/* Cells marked as bars are filled with the primary colour to render the
|
|
1367
1511
|
schedule bar inline within the grid. */
|
|
@@ -1369,6 +1513,20 @@
|
|
|
1369
1513
|
background-color: var(--color-primary);
|
|
1370
1514
|
}
|
|
1371
1515
|
|
|
1516
|
+
/* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
|
|
1517
|
+
is tinted; a day marked as a holiday or time off (data-unavailable /
|
|
1518
|
+
data-range) is striped as well, so no day is told apart by colour alone;
|
|
1519
|
+
a column only partly unavailable gets a bar under its header. */
|
|
1520
|
+
:where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
|
|
1521
|
+
background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
|
|
1522
|
+
}
|
|
1523
|
+
:where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
|
|
1524
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
|
|
1525
|
+
}
|
|
1526
|
+
:where(.gantt-table-th[data-partly-unavailable]) {
|
|
1527
|
+
box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1372
1530
|
/* ==========================================================================
|
|
1373
1531
|
* Cards, panels, surfaces
|
|
1374
1532
|
* --------------------------------------------------------------------------
|
|
@@ -1555,13 +1713,17 @@
|
|
|
1555
1713
|
padding: 0.25rem 0.5rem;
|
|
1556
1714
|
}
|
|
1557
1715
|
|
|
1558
|
-
/* Sticky promo —
|
|
1716
|
+
/* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
|
|
1717
|
+
the component's own bottom: 0 it would stretch over the whole page and take every click. */
|
|
1559
1718
|
:where(.sticky-promo-banner) {
|
|
1560
1719
|
position: sticky;
|
|
1561
|
-
inset-block-start: 0;
|
|
1562
1720
|
z-index: 10;
|
|
1563
1721
|
}
|
|
1564
1722
|
|
|
1723
|
+
:where(.sticky-promo-banner:not([data-position="bottom"])) {
|
|
1724
|
+
inset-block-start: 0;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1565
1727
|
/* Error message — inline form-validation message. */
|
|
1566
1728
|
:where(.error-message) {
|
|
1567
1729
|
color: var(--lily-error-text);
|
|
@@ -1740,7 +1902,8 @@
|
|
|
1740
1902
|
|
|
1741
1903
|
/* --- Grail layout (5-region responsive page shell) --------------------- */
|
|
1742
1904
|
/* Header spans the top; left-aside / main / right-aside fill the middle;
|
|
1743
|
-
footer spans the bottom.
|
|
1905
|
+
footer spans the bottom. The collapse as the window narrows is in the shared
|
|
1906
|
+
container section at the end of this file. */
|
|
1744
1907
|
:where(.grail-layout) {
|
|
1745
1908
|
display: grid;
|
|
1746
1909
|
min-height: 100vh;
|
|
@@ -1783,14 +1946,6 @@
|
|
|
1783
1946
|
:where(.grail-layout-center-main) {
|
|
1784
1947
|
padding: 0.75rem;
|
|
1785
1948
|
}
|
|
1786
|
-
/* Mobile breakpoint — collapse to a single column, stacking the regions. */
|
|
1787
|
-
@media (max-width: 48rem) {
|
|
1788
|
-
:where(.grail-layout) {
|
|
1789
|
-
grid-template-areas: "header" "main" "left" "right" "footer";
|
|
1790
|
-
grid-template-columns: 1fr;
|
|
1791
|
-
grid-template-rows: auto auto auto auto auto;
|
|
1792
|
-
}
|
|
1793
|
-
}
|
|
1794
1949
|
|
|
1795
1950
|
/* Standalone semantic header / footer landmarks. */
|
|
1796
1951
|
:where(.header) {
|
|
@@ -1880,6 +2035,15 @@
|
|
|
1880
2035
|
/* Drawers — side panels (right edge by default; RTL-aware via logical
|
|
1881
2036
|
properties). Sit above the overlay container (z-index 101). */
|
|
1882
2037
|
:where(.drawer, .slide-out-drawer, .sheet) {
|
|
2038
|
+
/* These are <dialog> elements opened with showModal() (P18-T6): undo the
|
|
2039
|
+
browser's centred-box defaults so the panel docks to the edge. */
|
|
2040
|
+
margin: 0;
|
|
2041
|
+
border: 0;
|
|
2042
|
+
inset-inline-start: auto;
|
|
2043
|
+
max-block-size: none;
|
|
2044
|
+
max-inline-size: none;
|
|
2045
|
+
block-size: 100%;
|
|
2046
|
+
box-sizing: border-box;
|
|
1883
2047
|
position: fixed;
|
|
1884
2048
|
inset-block: 0;
|
|
1885
2049
|
inset-inline-end: 0;
|
|
@@ -1892,6 +2056,10 @@
|
|
|
1892
2056
|
z-index: 101;
|
|
1893
2057
|
}
|
|
1894
2058
|
|
|
2059
|
+
:where(.drawer, .slide-out-drawer, .sheet)::backdrop {
|
|
2060
|
+
background-color: color-mix(in oklch, black 50%, transparent);
|
|
2061
|
+
}
|
|
2062
|
+
|
|
1895
2063
|
/* ==========================================================================
|
|
1896
2064
|
* Menus
|
|
1897
2065
|
* ====================================================================== */
|
|
@@ -1944,7 +2112,7 @@
|
|
|
1944
2112
|
gap: 0.25rem;
|
|
1945
2113
|
}
|
|
1946
2114
|
/* Hamburger — bordered icon-button. */
|
|
1947
|
-
:where(.hamburger-menu) {
|
|
2115
|
+
:where(.hamburger-menu > button) {
|
|
1948
2116
|
display: inline-flex;
|
|
1949
2117
|
align-items: center;
|
|
1950
2118
|
justify-content: center;
|
|
@@ -2305,6 +2473,7 @@
|
|
|
2305
2473
|
.theme-picker,
|
|
2306
2474
|
.locale-picker,
|
|
2307
2475
|
.text-size-picker,
|
|
2476
|
+
.time-zone-picker,
|
|
2308
2477
|
.search-picker,
|
|
2309
2478
|
.link-picker,
|
|
2310
2479
|
.menu-picker,
|
|
@@ -2320,6 +2489,7 @@
|
|
|
2320
2489
|
.theme-picker-button,
|
|
2321
2490
|
.locale-picker-button,
|
|
2322
2491
|
.text-size-picker-button,
|
|
2492
|
+
.time-zone-picker-button,
|
|
2323
2493
|
.search-picker-button,
|
|
2324
2494
|
.link-picker-button,
|
|
2325
2495
|
.menu-picker-button,
|
|
@@ -2358,6 +2528,7 @@
|
|
|
2358
2528
|
.theme-picker-icon,
|
|
2359
2529
|
.locale-picker-icon,
|
|
2360
2530
|
.text-size-picker-icon,
|
|
2531
|
+
.time-zone-picker-icon,
|
|
2361
2532
|
.motion-picker-icon,
|
|
2362
2533
|
.link-picker-icon,
|
|
2363
2534
|
.menu-picker-icon,
|
|
@@ -2725,6 +2896,7 @@
|
|
|
2725
2896
|
.theme-picker-tooltip,
|
|
2726
2897
|
.locale-picker-tooltip,
|
|
2727
2898
|
.text-size-picker-tooltip,
|
|
2899
|
+
.time-zone-picker-tooltip,
|
|
2728
2900
|
.motion-picker-tooltip,
|
|
2729
2901
|
.link-picker-tooltip,
|
|
2730
2902
|
.menu-picker-tooltip,
|
|
@@ -2752,6 +2924,7 @@
|
|
|
2752
2924
|
.theme-picker-tooltip,
|
|
2753
2925
|
.locale-picker-tooltip,
|
|
2754
2926
|
.text-size-picker-tooltip,
|
|
2927
|
+
.time-zone-picker-tooltip,
|
|
2755
2928
|
.motion-picker-tooltip,
|
|
2756
2929
|
.link-picker-tooltip,
|
|
2757
2930
|
.menu-picker-tooltip,
|
|
@@ -2771,6 +2944,7 @@
|
|
|
2771
2944
|
.theme-picker-tooltip,
|
|
2772
2945
|
.locale-picker-tooltip,
|
|
2773
2946
|
.text-size-picker-tooltip,
|
|
2947
|
+
.time-zone-picker-tooltip,
|
|
2774
2948
|
.motion-picker-tooltip,
|
|
2775
2949
|
.link-picker-tooltip,
|
|
2776
2950
|
.menu-picker-tooltip,
|
|
@@ -2827,6 +3001,7 @@
|
|
|
2827
3001
|
.theme-picker-list,
|
|
2828
3002
|
.locale-picker-list,
|
|
2829
3003
|
.text-size-picker-list,
|
|
3004
|
+
.time-zone-picker-list,
|
|
2830
3005
|
.motion-picker-list,
|
|
2831
3006
|
.link-picker-list,
|
|
2832
3007
|
.menu-picker-panel,
|
|
@@ -2856,6 +3031,7 @@
|
|
|
2856
3031
|
.theme-picker-list,
|
|
2857
3032
|
.locale-picker-list,
|
|
2858
3033
|
.text-size-picker-list,
|
|
3034
|
+
.time-zone-picker-list,
|
|
2859
3035
|
.motion-picker-list,
|
|
2860
3036
|
.link-picker-list,
|
|
2861
3037
|
.menu-picker-panel,
|
|
@@ -2876,6 +3052,7 @@
|
|
|
2876
3052
|
:where(.theme-picker) { anchor-name: --lily-theme-picker; }
|
|
2877
3053
|
:where(.locale-picker) { anchor-name: --lily-locale-picker; }
|
|
2878
3054
|
:where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
|
|
3055
|
+
:where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
|
|
2879
3056
|
:where(.motion-picker) { anchor-name: --lily-motion-picker; }
|
|
2880
3057
|
:where(.link-picker) { anchor-name: --lily-link-picker; }
|
|
2881
3058
|
:where(.menu-picker) { anchor-name: --lily-menu-picker; }
|
|
@@ -2885,6 +3062,7 @@
|
|
|
2885
3062
|
:where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
|
|
2886
3063
|
:where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
|
|
2887
3064
|
:where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
|
|
3065
|
+
:where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
|
|
2888
3066
|
:where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
|
|
2889
3067
|
:where(.link-picker-list) { position-anchor: --lily-link-picker; }
|
|
2890
3068
|
:where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
|
|
@@ -2895,6 +3073,7 @@
|
|
|
2895
3073
|
.theme-picker-list,
|
|
2896
3074
|
.locale-picker-list,
|
|
2897
3075
|
.text-size-picker-list,
|
|
3076
|
+
.time-zone-picker-list,
|
|
2898
3077
|
.motion-picker-list,
|
|
2899
3078
|
.link-picker-list,
|
|
2900
3079
|
.menu-picker-panel,
|
|
@@ -2912,11 +3091,56 @@
|
|
|
2912
3091
|
}
|
|
2913
3092
|
}
|
|
2914
3093
|
|
|
2915
|
-
|
|
3094
|
+
/* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
|
|
3095
|
+
browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
|
|
3096
|
+
where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
|
|
3097
|
+
open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
|
|
3098
|
+
hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
|
|
3099
|
+
`position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
|
|
3100
|
+
position-area: with no anchor, position-area does nothing and a static position can be off screen. */
|
|
3101
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
|
|
3102
|
+
display: none;
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
|
|
3106
|
+
display: none;
|
|
3107
|
+
}
|
|
3108
|
+
|
|
3109
|
+
@supports (position-area: block-end) {
|
|
3110
|
+
:where(.cascader-trigger) { anchor-name: --lily-cascader; }
|
|
3111
|
+
:where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
|
|
3112
|
+
:where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
|
|
3113
|
+
:where(.combobox > input) { anchor-name: --lily-combobox; }
|
|
3114
|
+
:where(.cascader-panel) { position-anchor: --lily-cascader; }
|
|
3115
|
+
:where(.tree-select-panel) { position-anchor: --lily-tree-select; }
|
|
3116
|
+
:where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
|
|
3117
|
+
:where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
|
|
3118
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
3119
|
+
position: fixed;
|
|
3120
|
+
inset: auto;
|
|
3121
|
+
margin: 0;
|
|
3122
|
+
position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
|
|
3123
|
+
width: max-content;
|
|
3124
|
+
max-width: calc(100vw - 1rem);
|
|
3125
|
+
}
|
|
3126
|
+
:where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
3127
|
+
inset-block-start: anchor(end, 25%);
|
|
3128
|
+
inset-inline-start: anchor(start, 25%);
|
|
3129
|
+
}
|
|
3130
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
3131
|
+
position-area: block-end span-inline-end;
|
|
3132
|
+
}
|
|
3133
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
3134
|
+
min-inline-size: anchor-size(inline);
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2916
3139
|
> :where(
|
|
2917
3140
|
.theme-picker-option,
|
|
2918
3141
|
.locale-picker-option,
|
|
2919
3142
|
.text-size-picker-option,
|
|
3143
|
+
.time-zone-picker-option,
|
|
2920
3144
|
.motion-picker-option
|
|
2921
3145
|
) {
|
|
2922
3146
|
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
@@ -2926,7 +3150,7 @@
|
|
|
2926
3150
|
|
|
2927
3151
|
/* data-active is the keyboard cursor (aria-activedescendant); focus
|
|
2928
3152
|
stays on the listbox, so this is the only visible cue for it. */
|
|
2929
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
3153
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2930
3154
|
> :where([data-active]) {
|
|
2931
3155
|
background-color: var(--lily-surface-alt);
|
|
2932
3156
|
outline: var(--lily-focus-ring);
|
|
@@ -2935,7 +3159,7 @@
|
|
|
2935
3159
|
|
|
2936
3160
|
/* aria-selected marks the applied theme/locale, which is not the
|
|
2937
3161
|
same thing as the keyboard cursor. Both can be visible at once. */
|
|
2938
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
3162
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2939
3163
|
> :where([aria-selected="true"]) {
|
|
2940
3164
|
font-weight: 600;
|
|
2941
3165
|
background-color: var(--lily-surface-sunken);
|
|
@@ -3288,7 +3512,7 @@
|
|
|
3288
3512
|
}
|
|
3289
3513
|
/* Screen-reader-only — visually hidden but available to AT. The
|
|
3290
3514
|
classic clip-rect pattern (works in every screen reader). */
|
|
3291
|
-
:where(.screen-reader-span) {
|
|
3515
|
+
:where(.screen-reader-span, .middle-truncation-full) {
|
|
3292
3516
|
position: absolute;
|
|
3293
3517
|
width: 1px;
|
|
3294
3518
|
height: 1px;
|
|
@@ -3299,6 +3523,42 @@
|
|
|
3299
3523
|
white-space: nowrap;
|
|
3300
3524
|
border: 0;
|
|
3301
3525
|
}
|
|
3526
|
+
/* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
|
|
3527
|
+
text (hidden above) stays in the accessibility tree. */
|
|
3528
|
+
:where(.middle-truncation) {
|
|
3529
|
+
display: block;
|
|
3530
|
+
position: relative;
|
|
3531
|
+
overflow: hidden;
|
|
3532
|
+
white-space: nowrap;
|
|
3533
|
+
}
|
|
3534
|
+
/* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
|
|
3535
|
+
primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
|
|
3536
|
+
:where(.wheel-picker-list) {
|
|
3537
|
+
max-block-size: 10em;
|
|
3538
|
+
overflow-y: auto;
|
|
3539
|
+
overscroll-behavior: contain;
|
|
3540
|
+
scroll-snap-type: y mandatory;
|
|
3541
|
+
border: 1px solid var(--color-base-300);
|
|
3542
|
+
border-radius: var(--lily-radius-md);
|
|
3543
|
+
}
|
|
3544
|
+
:where(.wheel-picker-list:focus-visible) {
|
|
3545
|
+
outline: 2px solid var(--lily-focus-ring);
|
|
3546
|
+
outline-offset: 2px;
|
|
3547
|
+
}
|
|
3548
|
+
:where(.wheel-picker-option) {
|
|
3549
|
+
padding: 0.5rem 1rem;
|
|
3550
|
+
scroll-snap-align: center;
|
|
3551
|
+
cursor: pointer;
|
|
3552
|
+
}
|
|
3553
|
+
:where(.wheel-picker-option[aria-selected="true"]) {
|
|
3554
|
+
background-color: var(--color-primary);
|
|
3555
|
+
color: var(--color-primary-content);
|
|
3556
|
+
font-weight: 600;
|
|
3557
|
+
}
|
|
3558
|
+
:where(.wheel-picker-option[aria-disabled="true"]) {
|
|
3559
|
+
opacity: 0.5;
|
|
3560
|
+
cursor: not-allowed;
|
|
3561
|
+
}
|
|
3302
3562
|
|
|
3303
3563
|
/* ==========================================================================
|
|
3304
3564
|
* Hero, figure, photo, media
|
|
@@ -3833,6 +4093,81 @@
|
|
|
3833
4093
|
min-block-size: 24px;
|
|
3834
4094
|
}
|
|
3835
4095
|
|
|
4096
|
+
/* ============================================================================
|
|
4097
|
+
* Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
|
|
4098
|
+
*
|
|
4099
|
+
* Where the primary pointer is coarse (a finger), interactive hooks are at least
|
|
4100
|
+
* 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
|
|
4101
|
+
* buttons, form fields, checkboxes and radios, and the link-shaped navigation
|
|
4102
|
+
* hooks. Links inside running text are exempt, so bare `a` is not listed. The
|
|
4103
|
+
* query is the capability, never a viewport width. :where() keeps specificity
|
|
4104
|
+
* at zero, so any consumer rule still wins.
|
|
4105
|
+
* ========================================================================= */
|
|
4106
|
+
|
|
4107
|
+
@media (pointer: coarse) {
|
|
4108
|
+
:where(button,
|
|
4109
|
+
[role="button"],
|
|
4110
|
+
[role="tab"],
|
|
4111
|
+
[role="option"],
|
|
4112
|
+
[role="menuitem"],
|
|
4113
|
+
[class*="-picker-button"],
|
|
4114
|
+
summary,
|
|
4115
|
+
input:not([type="hidden"]),
|
|
4116
|
+
select,
|
|
4117
|
+
textarea,
|
|
4118
|
+
.action-link,
|
|
4119
|
+
.back-link,
|
|
4120
|
+
.breadcrumb-list-item > a,
|
|
4121
|
+
.pagination-list-item > a,
|
|
4122
|
+
.contents-list-item > a,
|
|
4123
|
+
.section-list-item > a) {
|
|
4124
|
+
min-inline-size: 44px;
|
|
4125
|
+
min-block-size: 44px;
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
/* ============================================================================
|
|
4130
|
+
* Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
|
|
4131
|
+
*
|
|
4132
|
+
* --lily-brand is the identity's decorative colour: a header band, a rule, a
|
|
4133
|
+
* logo background. It is NEVER a text colour or a control's boundary, because a
|
|
4134
|
+
* brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
|
|
4135
|
+
* text drawn on it. By default they follow the theme's primary pair, which every
|
|
4136
|
+
* theme keeps readable; an adopter whose brand colour is lighter or darker sets
|
|
4137
|
+
* both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
|
|
4138
|
+
* content pairs (--color-base-content, --lily-error-text and so on).
|
|
4139
|
+
* ========================================================================== */
|
|
4140
|
+
|
|
4141
|
+
:where(:root) {
|
|
4142
|
+
--lily-brand: var(--color-primary);
|
|
4143
|
+
--lily-on-brand: var(--color-primary-content);
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
/* ============================================================================
|
|
4147
|
+
* Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
|
|
4148
|
+
*
|
|
4149
|
+
* The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
|
|
4150
|
+
* adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
|
|
4151
|
+
* and no clear-space rule, because national and local guidelines disagree: a
|
|
4152
|
+
* theme or the adopter sets --lily-logo-clear-space (padding around the mark)
|
|
4153
|
+
* and --lily-logo-min-size (its smallest inline size). Both are unset by
|
|
4154
|
+
* default, so nothing changes until one is set.
|
|
4155
|
+
* ========================================================================== */
|
|
4156
|
+
|
|
4157
|
+
@layer lily {
|
|
4158
|
+
:where([data-lily-logo]) {
|
|
4159
|
+
display: inline-block;
|
|
4160
|
+
padding: var(--lily-logo-clear-space, 0);
|
|
4161
|
+
}
|
|
4162
|
+
|
|
4163
|
+
:where([data-lily-logo] > img, [data-lily-logo] > svg) {
|
|
4164
|
+
display: block;
|
|
4165
|
+
min-inline-size: var(--lily-logo-min-size, 0);
|
|
4166
|
+
max-inline-size: 100%;
|
|
4167
|
+
block-size: auto;
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
|
|
3836
4171
|
/* ============================================================================
|
|
3837
4172
|
* Overflow guards — narrow-viewport safety, shared verbatim by all themes.
|
|
3838
4173
|
*
|
|
@@ -3860,3 +4195,620 @@
|
|
|
3860
4195
|
:where(a, code) {
|
|
3861
4196
|
overflow-wrap: anywhere;
|
|
3862
4197
|
}
|
|
4198
|
+
|
|
4199
|
+
/* ============================================================================
|
|
4200
|
+
* Scoped overflow — shared verbatim by all themes.
|
|
4201
|
+
*
|
|
4202
|
+
* Long unbroken strings (a national identifier, an email address, a URL) and
|
|
4203
|
+
* grid/flex tracks that refuse to shrink are the usual causes of horizontal
|
|
4204
|
+
* page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
|
|
4205
|
+
* `overflow-wrap: anywhere` on the places a long value lands (table cells are
|
|
4206
|
+
* covered by Overflow guards above), and `min-inline-size: 0` on the direct
|
|
4207
|
+
* children of Lily's grid and flex containers so a child can shrink below its
|
|
4208
|
+
* content. The identifier `-view` list below is the catalog's 70 national
|
|
4209
|
+
* identifier views (components-categories.tsv); bin/check-theme fails when it
|
|
4210
|
+
* drifts from the catalog. :where() keeps specificity at zero.
|
|
4211
|
+
* ========================================================================= */
|
|
4212
|
+
|
|
4213
|
+
:where(
|
|
4214
|
+
.alba-community-health-index-view,
|
|
4215
|
+
.australia-individual-healthcare-identifier-view,
|
|
4216
|
+
.belgique-numero-de-registre-national-view,
|
|
4217
|
+
.bulgaria-edinen-grazhdanski-nomer-view,
|
|
4218
|
+
.cesko-cestovni-pas-view,
|
|
4219
|
+
.cesko-rodne-cislo-view,
|
|
4220
|
+
.cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
|
|
4221
|
+
.kypros-national-passport-number-view,
|
|
4222
|
+
.danmark-personnummer-view,
|
|
4223
|
+
.deutschland-krankenversichertennummer-view,
|
|
4224
|
+
.eesti-isikukood-view,
|
|
4225
|
+
.ellada-dematerialised-securities-system-view,
|
|
4226
|
+
.england-national-health-service-number-view,
|
|
4227
|
+
.espana-codigo-de-identificacion-fiscal-view,
|
|
4228
|
+
.espana-tarjeta-sanitaria-individual-view,
|
|
4229
|
+
.france-numero-d-identification-au-repertoire-view,
|
|
4230
|
+
.hrvatska-osobni-identifikacijski-broj-view,
|
|
4231
|
+
.eire-individual-health-identifier-view,
|
|
4232
|
+
.island-kennitala-view,
|
|
4233
|
+
.italia-codice-fiscale-view,
|
|
4234
|
+
.latvija-personas-kods-view,
|
|
4235
|
+
.liechtenstein-national-identity-card-number-view,
|
|
4236
|
+
.liechtenstein-passport-number-view,
|
|
4237
|
+
.lietuva-asmens-kodas-view,
|
|
4238
|
+
.lietuva-pasas-view,
|
|
4239
|
+
.malta-national-identification-number-view,
|
|
4240
|
+
.malta-passport-number-view,
|
|
4241
|
+
.nederland-burgerservice-nummer-view,
|
|
4242
|
+
.nederland-identiteitskaart-nummer-view,
|
|
4243
|
+
.nederland-paspoort-nummer-view,
|
|
4244
|
+
.norge-fodselsnummer-view,
|
|
4245
|
+
.tuaisceart-eireann-health-and-care-number-view,
|
|
4246
|
+
.polska-numer-identyfikacji-podatkowej-view,
|
|
4247
|
+
.polska-pesel-view,
|
|
4248
|
+
.portugal-numero-de-identificacao-fiscal-view,
|
|
4249
|
+
.portugal-passaporte-view,
|
|
4250
|
+
.romania-cod-numeric-personal-view,
|
|
4251
|
+
.romania-pasaport-view,
|
|
4252
|
+
.slovenija-emso-view,
|
|
4253
|
+
.slovensko-pas-view,
|
|
4254
|
+
.slovensko-rodne-cislo-view,
|
|
4255
|
+
.suomi-henkilotunnus-view,
|
|
4256
|
+
.sverige-personnummer-view,
|
|
4257
|
+
.iban-view,
|
|
4258
|
+
.united-kingdom-national-health-service-number-view,
|
|
4259
|
+
.united-kingdom-national-insurance-number-view,
|
|
4260
|
+
.united-states-social-security-number-view,
|
|
4261
|
+
.aotearoa-national-health-index-view,
|
|
4262
|
+
.pilipinas-philhealth-identification-number-view,
|
|
4263
|
+
.brasil-cartao-nacional-de-saude-view,
|
|
4264
|
+
.schweiz-ahv-nummer-view,
|
|
4265
|
+
.canada-social-insurance-number-view,
|
|
4266
|
+
.hanguk-jumin-deungnok-beonho-view,
|
|
4267
|
+
.nihon-kojin-bango-view,
|
|
4268
|
+
.bharat-aadhaar-view,
|
|
4269
|
+
.yisrael-teudat-zehut-view,
|
|
4270
|
+
.south-africa-identity-number-view,
|
|
4271
|
+
.mexico-clave-unica-de-registro-de-poblacion-view,
|
|
4272
|
+
.singapore-national-registration-identity-card-view,
|
|
4273
|
+
.osterreich-sozialversicherungsnummer-view,
|
|
4274
|
+
.magyarorszag-taj-szam-view,
|
|
4275
|
+
.luxembourg-matricule-view,
|
|
4276
|
+
.zhongguo-jumin-shenfenzheng-haoma-view,
|
|
4277
|
+
.rossiya-snils-view,
|
|
4278
|
+
.turkiye-tc-kimlik-numarasi-view,
|
|
4279
|
+
.argentina-codigo-unico-de-identificacion-laboral-view,
|
|
4280
|
+
.ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
|
|
4281
|
+
.indonesia-nomor-induk-kependudukan-view,
|
|
4282
|
+
.prathet-thai-lek-prajam-tua-prachachon-view,
|
|
4283
|
+
.chile-rol-unico-nacional-view,
|
|
4284
|
+
.taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
|
|
4285
|
+
.hong-kong-identity-card-view,
|
|
4286
|
+
.iran-kod-e-melli-view,
|
|
4287
|
+
.as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
|
|
4288
|
+
.malaysia-kad-pengenalan-view,
|
|
4289
|
+
.viet-nam-can-cuoc-cong-dan-view,
|
|
4290
|
+
.pakistan-computerized-national-identity-card-view,
|
|
4291
|
+
.uruguay-cedula-de-identidad-view,
|
|
4292
|
+
.ecuador-cedula-de-identidad-view,
|
|
4293
|
+
.colombia-cedula-de-ciudadania-view,
|
|
4294
|
+
.australia-tax-file-number-view,
|
|
4295
|
+
.nigeria-national-identification-number-view,
|
|
4296
|
+
.misr-al-raqm-al-qawmi-view
|
|
4297
|
+
) {
|
|
4298
|
+
overflow-wrap: anywhere;
|
|
4299
|
+
}
|
|
4300
|
+
|
|
4301
|
+
/* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
|
|
4302
|
+
:where(.summary-list, .summary-list-item, .description-list) {
|
|
4303
|
+
overflow-wrap: anywhere;
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
:where(
|
|
4307
|
+
.grid,
|
|
4308
|
+
.flex-stack,
|
|
4309
|
+
.grail-layout,
|
|
4310
|
+
.summary-list,
|
|
4311
|
+
.summary-list-item,
|
|
4312
|
+
.description-list,
|
|
4313
|
+
.form,
|
|
4314
|
+
.editable-form,
|
|
4315
|
+
.field,
|
|
4316
|
+
.input-group,
|
|
4317
|
+
.button-group,
|
|
4318
|
+
.radio-group,
|
|
4319
|
+
.checkbox-group,
|
|
4320
|
+
.toggle-group,
|
|
4321
|
+
.tag-group,
|
|
4322
|
+
.split-view,
|
|
4323
|
+
.photo-pack,
|
|
4324
|
+
.data-filter-form,
|
|
4325
|
+
.action-bar,
|
|
4326
|
+
.tool-bar,
|
|
4327
|
+
.menu-bar,
|
|
4328
|
+
.tab-bar
|
|
4329
|
+
) > :where(*) {
|
|
4330
|
+
min-inline-size: 0;
|
|
4331
|
+
}
|
|
4332
|
+
|
|
4333
|
+
/* ============================================================================
|
|
4334
|
+
* Helper packages — layout and look, shared verbatim by all themes.
|
|
4335
|
+
*
|
|
4336
|
+
* The data grid, kanban board, Gantt chart and calendar view are wide by nature.
|
|
4337
|
+
* Each root scrolls sideways inside its own box and its table sizes to its content,
|
|
4338
|
+
* so a narrow screen scrolls the table instead of wrapping every cell to a letter
|
|
4339
|
+
* (the overflow guard above lets cells break anywhere, which is right for prose and
|
|
4340
|
+
* wrong for a table that has a scroller). The toolbar controls of all four helpers
|
|
4341
|
+
* share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
|
|
4342
|
+
* the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
|
|
4343
|
+
* today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
|
|
4344
|
+
* ========================================================================= */
|
|
4345
|
+
|
|
4346
|
+
:where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
|
|
4347
|
+
max-inline-size: 100%;
|
|
4348
|
+
overflow-x: auto;
|
|
4349
|
+
}
|
|
4350
|
+
|
|
4351
|
+
:where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
|
|
4352
|
+
inline-size: max-content;
|
|
4353
|
+
min-inline-size: 100%;
|
|
4354
|
+
}
|
|
4355
|
+
|
|
4356
|
+
:where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
|
|
4357
|
+
.calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
|
|
4358
|
+
display: flex;
|
|
4359
|
+
flex-wrap: wrap;
|
|
4360
|
+
gap: var(--lily-space-sm);
|
|
4361
|
+
align-items: center;
|
|
4362
|
+
margin-block-end: var(--lily-space-sm);
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4365
|
+
:where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
|
|
4366
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
4367
|
+
border: var(--border) solid var(--lily-border);
|
|
4368
|
+
border-radius: var(--lily-radius-sm);
|
|
4369
|
+
background-color: var(--lily-surface);
|
|
4370
|
+
color: var(--lily-text);
|
|
4371
|
+
font: inherit;
|
|
4372
|
+
min-block-size: 24px;
|
|
4373
|
+
}
|
|
4374
|
+
|
|
4375
|
+
:where(.kanban-board-export-button,
|
|
4376
|
+
.kanban-board-add-button,
|
|
4377
|
+
.kanban-board-undo-button,
|
|
4378
|
+
.kanban-board-collapse-button,
|
|
4379
|
+
.kanban-board-lane-toggle,
|
|
4380
|
+
.kanban-board-move-button,
|
|
4381
|
+
.gantt-chart-export-button,
|
|
4382
|
+
.gantt-chart-zoom-in-button,
|
|
4383
|
+
.gantt-chart-zoom-out-button,
|
|
4384
|
+
.gantt-chart-collapse-button,
|
|
4385
|
+
.gantt-chart-collapse-all-button,
|
|
4386
|
+
.gantt-chart-expand-all-button,
|
|
4387
|
+
.gantt-chart-save-button,
|
|
4388
|
+
.gantt-chart-cancel-button,
|
|
4389
|
+
.calendar-view-export-button,
|
|
4390
|
+
.calendar-view-previous-button,
|
|
4391
|
+
.calendar-view-next-button,
|
|
4392
|
+
.calendar-view-today-button,
|
|
4393
|
+
.calendar-view-switcher-button) {
|
|
4394
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
4395
|
+
border: var(--border) solid var(--lily-border);
|
|
4396
|
+
border-radius: var(--lily-radius-sm);
|
|
4397
|
+
background-color: var(--lily-surface);
|
|
4398
|
+
color: var(--lily-text);
|
|
4399
|
+
font: inherit;
|
|
4400
|
+
cursor: pointer;
|
|
4401
|
+
min-inline-size: 24px;
|
|
4402
|
+
min-block-size: 24px;
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
:where(.kanban-board-export-button:disabled,
|
|
4406
|
+
.kanban-board-add-button:disabled,
|
|
4407
|
+
.kanban-board-undo-button:disabled,
|
|
4408
|
+
.gantt-chart-export-button:disabled,
|
|
4409
|
+
.gantt-chart-zoom-in-button:disabled,
|
|
4410
|
+
.gantt-chart-zoom-out-button:disabled,
|
|
4411
|
+
.calendar-view-export-button:disabled,
|
|
4412
|
+
.calendar-view-previous-button[aria-disabled="true"],
|
|
4413
|
+
.calendar-view-next-button[aria-disabled="true"]) {
|
|
4414
|
+
opacity: 0.5;
|
|
4415
|
+
cursor: not-allowed;
|
|
4416
|
+
}
|
|
4417
|
+
|
|
4418
|
+
:where(.calendar-view-switcher-button[aria-pressed="true"]) {
|
|
4419
|
+
background-color: var(--color-base-300);
|
|
4420
|
+
font-weight: 600;
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4423
|
+
:where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
|
|
4424
|
+
margin-block-start: var(--lily-space-sm);
|
|
4425
|
+
font-size: 0.875em;
|
|
4426
|
+
opacity: 0.8;
|
|
4427
|
+
}
|
|
4428
|
+
|
|
4429
|
+
:where(.calendar-view-event) {
|
|
4430
|
+
display: block;
|
|
4431
|
+
padding: 0 var(--lily-space-xs);
|
|
4432
|
+
border-radius: var(--lily-radius-sm);
|
|
4433
|
+
background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
|
|
4434
|
+
font-size: 0.75rem;
|
|
4435
|
+
}
|
|
4436
|
+
|
|
4437
|
+
:where(.gantt-table-th) {
|
|
4438
|
+
min-inline-size: 2rem;
|
|
4439
|
+
padding-inline: 0.25rem;
|
|
4440
|
+
font-size: 0.75rem;
|
|
4441
|
+
text-align: center;
|
|
4442
|
+
white-space: nowrap;
|
|
4443
|
+
}
|
|
4444
|
+
|
|
4445
|
+
:where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
|
|
4446
|
+
min-inline-size: 10rem;
|
|
4447
|
+
padding-inline: var(--lily-space-sm);
|
|
4448
|
+
font-size: inherit;
|
|
4449
|
+
text-align: start;
|
|
4450
|
+
white-space: normal;
|
|
4451
|
+
}
|
|
4452
|
+
|
|
4453
|
+
:where(.gantt-table-td) {
|
|
4454
|
+
min-block-size: 1.7rem;
|
|
4455
|
+
padding: 0;
|
|
4456
|
+
}
|
|
4457
|
+
|
|
4458
|
+
:where(.gantt-table-td[data-in-range]) {
|
|
4459
|
+
background-color: var(--color-primary);
|
|
4460
|
+
/* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
|
|
4461
|
+
color: var(--color-primary-content);
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4464
|
+
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
4465
|
+
clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
|
|
4466
|
+
}
|
|
4467
|
+
|
|
4468
|
+
:where(.gantt-table-td[data-today]) {
|
|
4469
|
+
border-inline-start: 2px solid var(--color-accent);
|
|
4470
|
+
}
|
|
4471
|
+
|
|
4472
|
+
/* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
|
|
4473
|
+
option up to a cap, then wrap, rather than clipping the name or running off a phone. */
|
|
4474
|
+
:where(.time-zone-picker-list) {
|
|
4475
|
+
inline-size: max-content;
|
|
4476
|
+
max-inline-size: min(26rem, 90vw);
|
|
4477
|
+
max-block-size: min(24rem, 70vh);
|
|
4478
|
+
overflow-y: auto;
|
|
4479
|
+
}
|
|
4480
|
+
|
|
4481
|
+
:where(.time-zone-picker-option) {
|
|
4482
|
+
overflow-wrap: anywhere;
|
|
4483
|
+
}
|
|
4484
|
+
|
|
4485
|
+
/* ============================================================================
|
|
4486
|
+
* Overflow navigation — shared verbatim by all themes.
|
|
4487
|
+
*
|
|
4488
|
+
* The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
|
|
4489
|
+
* With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
|
|
4490
|
+
* (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
|
|
4491
|
+
* the links that do not fit into the More list. That list is in normal flow (position
|
|
4492
|
+
* static, never absolute), so opening it pushes the content below down and never covers it
|
|
4493
|
+
* (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
|
|
4494
|
+
* specificity at zero, so any consumer rule wins.
|
|
4495
|
+
* ========================================================================= */
|
|
4496
|
+
|
|
4497
|
+
:where(.navigation-menu-list) {
|
|
4498
|
+
display: flex;
|
|
4499
|
+
flex: 1 1 auto;
|
|
4500
|
+
flex-wrap: wrap;
|
|
4501
|
+
align-items: flex-start;
|
|
4502
|
+
gap: 0.25rem 0.5rem;
|
|
4503
|
+
min-inline-size: 0;
|
|
4504
|
+
margin: 0;
|
|
4505
|
+
padding: 0;
|
|
4506
|
+
list-style: none;
|
|
4507
|
+
}
|
|
4508
|
+
|
|
4509
|
+
:where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
|
|
4510
|
+
display: inline-block;
|
|
4511
|
+
min-inline-size: 24px;
|
|
4512
|
+
min-block-size: 24px;
|
|
4513
|
+
}
|
|
4514
|
+
|
|
4515
|
+
:where(.navigation-menu-more) {
|
|
4516
|
+
position: static;
|
|
4517
|
+
}
|
|
4518
|
+
|
|
4519
|
+
:where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
|
|
4520
|
+
display: none;
|
|
4521
|
+
}
|
|
4522
|
+
|
|
4523
|
+
:where(.navigation-menu-more-button) {
|
|
4524
|
+
min-inline-size: 24px;
|
|
4525
|
+
min-block-size: 24px;
|
|
4526
|
+
padding: 0.25rem 0.5rem;
|
|
4527
|
+
font: inherit;
|
|
4528
|
+
color: inherit;
|
|
4529
|
+
background: transparent;
|
|
4530
|
+
border: 1px solid currentcolor;
|
|
4531
|
+
cursor: pointer;
|
|
4532
|
+
}
|
|
4533
|
+
|
|
4534
|
+
:where(.navigation-menu-more-list) {
|
|
4535
|
+
position: static;
|
|
4536
|
+
margin: 0.25rem 0 0;
|
|
4537
|
+
padding: 0;
|
|
4538
|
+
list-style: none;
|
|
4539
|
+
}
|
|
4540
|
+
|
|
4541
|
+
/* ============================================================================
|
|
4542
|
+
* Container queries — shared verbatim by all themes.
|
|
4543
|
+
*
|
|
4544
|
+
* A component answers to the space it is given, not to the window: a summary
|
|
4545
|
+
* list in a narrow aside on a wide screen needs the narrow layout, which the
|
|
4546
|
+
* viewport query above cannot know. The three grail-layout regions are the
|
|
4547
|
+
* containers because their width comes from a grid track (`minmax(0, 1fr)`), so
|
|
4548
|
+
* inline-size containment cannot collapse them. `.card` is deliberately not a
|
|
4549
|
+
* container: in a shrink-to-fit parent (a flex row, an inline grid) containment
|
|
4550
|
+
* would collapse it to nothing. A component outside a grail region has no
|
|
4551
|
+
* container and keeps its wide layout. :where() keeps specificity at zero, so
|
|
4552
|
+
* any consumer rule wins.
|
|
4553
|
+
* ========================================================================= */
|
|
4554
|
+
|
|
4555
|
+
:where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
|
|
4556
|
+
container-type: inline-size;
|
|
4557
|
+
}
|
|
4558
|
+
|
|
4559
|
+
/* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
|
|
4560
|
+
window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
|
|
4561
|
+
Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
|
|
4562
|
+
(at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
|
|
4563
|
+
right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
|
|
4564
|
+
hidden, so all content stays reachable. */
|
|
4565
|
+
@media (max-width: 64rem) {
|
|
4566
|
+
:where(.grail-layout) {
|
|
4567
|
+
grid-template-areas:
|
|
4568
|
+
"header header"
|
|
4569
|
+
"left main"
|
|
4570
|
+
"right right"
|
|
4571
|
+
"footer footer";
|
|
4572
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
|
|
4573
|
+
grid-template-rows: auto auto auto auto;
|
|
4574
|
+
}
|
|
4575
|
+
}
|
|
4576
|
+
|
|
4577
|
+
@media (max-width: 48rem) {
|
|
4578
|
+
:where(.grail-layout) {
|
|
4579
|
+
grid-template-areas:
|
|
4580
|
+
"header"
|
|
4581
|
+
"left"
|
|
4582
|
+
"main"
|
|
4583
|
+
"right"
|
|
4584
|
+
"footer";
|
|
4585
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4586
|
+
grid-template-rows: auto auto auto auto auto;
|
|
4587
|
+
}
|
|
4588
|
+
}
|
|
4589
|
+
|
|
4590
|
+
@container (max-width: 30rem) {
|
|
4591
|
+
:where(.summary-list) {
|
|
4592
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4593
|
+
row-gap: 0.25rem;
|
|
4594
|
+
}
|
|
4595
|
+
|
|
4596
|
+
:where(.kanban-table-td) {
|
|
4597
|
+
min-width: 10rem;
|
|
4598
|
+
}
|
|
4599
|
+
|
|
4600
|
+
:where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
|
|
4601
|
+
padding-inline: 0.5rem;
|
|
4602
|
+
}
|
|
4603
|
+
}
|
|
4604
|
+
|
|
4605
|
+
/* ============================================================================
|
|
4606
|
+
* Focus not obscured — shared verbatim by all themes.
|
|
4607
|
+
*
|
|
4608
|
+
* WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
|
|
4609
|
+
* entirely hidden by author-created content, such as a bar fixed to the top or
|
|
4610
|
+
* bottom of the viewport. The browser scrolls a focused control into view, but
|
|
4611
|
+
* only as far as the edge of the viewport, which is where a fixed bar sits.
|
|
4612
|
+
* `scroll-padding` moves that edge in by the bar's height.
|
|
4613
|
+
*
|
|
4614
|
+
* Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
|
|
4615
|
+
* theme's or an app's own fixed header, a mobile bottom navigation) sets the
|
|
4616
|
+
* bar's height on the root element:
|
|
4617
|
+
*
|
|
4618
|
+
* --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
|
|
4619
|
+
* --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
|
|
4620
|
+
*
|
|
4621
|
+
* With both bars, set both. The defaults are 0px, so a page without a fixed bar
|
|
4622
|
+
* is unchanged. Specificity is zero (`:where`), so an app's own
|
|
4623
|
+
* `scroll-padding` wins.
|
|
4624
|
+
* ========================================================================= */
|
|
4625
|
+
|
|
4626
|
+
:where(html) {
|
|
4627
|
+
scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
|
|
4628
|
+
}
|
|
4629
|
+
|
|
4630
|
+
/* ============================================================================
|
|
4631
|
+
* Text size and motion preferences — shared verbatim by all themes.
|
|
4632
|
+
*
|
|
4633
|
+
* The text-size-picker sets `data-text-size` on the root and the motion-picker
|
|
4634
|
+
* sets `data-motion`; neither styles anything itself. These rules are what make
|
|
4635
|
+
* the choice visible.
|
|
4636
|
+
*
|
|
4637
|
+
* Text size: the seven steps scale the root font size, and every theme sizes in
|
|
4638
|
+
* `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
|
|
4639
|
+
* own browser setting), and the scale is percentages of that, never pixels, so
|
|
4640
|
+
* a viewer who raised their browser font size keeps it. The steps below
|
|
4641
|
+
* `normal` are the viewer's explicit choice.
|
|
4642
|
+
*
|
|
4643
|
+
* Motion: `data-motion="reduce"` shortens every animation and transition to
|
|
4644
|
+
* 0.01ms instead of removing it. The end state still arrives and `animationend`
|
|
4645
|
+
* / `transitionend` still fire, so nothing that depends on them breaks and no
|
|
4646
|
+
* information is lost: a spinner's `role="status"` text, a disclosure's open
|
|
4647
|
+
* state and a toast's content are untouched. Scrolling is instant.
|
|
4648
|
+
* ========================================================================= */
|
|
4649
|
+
|
|
4650
|
+
:where(html[data-text-size="smallest"]) { font-size: 80%; }
|
|
4651
|
+
:where(html[data-text-size="smaller"]) { font-size: 90%; }
|
|
4652
|
+
:where(html[data-text-size="small"]) { font-size: 95%; }
|
|
4653
|
+
:where(html[data-text-size="normal"]) { font-size: 100%; }
|
|
4654
|
+
:where(html[data-text-size="large"]) { font-size: 110%; }
|
|
4655
|
+
:where(html[data-text-size="larger"]) { font-size: 125%; }
|
|
4656
|
+
:where(html[data-text-size="largest"]) { font-size: 150%; }
|
|
4657
|
+
|
|
4658
|
+
:where(html[data-motion="reduce"]) {
|
|
4659
|
+
scroll-behavior: auto;
|
|
4660
|
+
}
|
|
4661
|
+
:where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
|
|
4662
|
+
animation-duration: 0.01ms !important;
|
|
4663
|
+
animation-iteration-count: 1 !important;
|
|
4664
|
+
animation-delay: 0s !important;
|
|
4665
|
+
transition-duration: 0.01ms !important;
|
|
4666
|
+
transition-delay: 0s !important;
|
|
4667
|
+
scroll-behavior: auto !important;
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4670
|
+
/* ============================================================================
|
|
4671
|
+
* Forced colours and contrast preference — shared verbatim by all themes.
|
|
4672
|
+
*
|
|
4673
|
+
* Forced colours (Windows High Contrast, `forced-colors: active`): the browser
|
|
4674
|
+
* replaces every colour with a system colour, which erases anything a control
|
|
4675
|
+
* told apart by background alone. These rules give such controls a border,
|
|
4676
|
+
* keep the focus ring, and mark selected and current items with `Highlight`
|
|
4677
|
+
* and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
|
|
4678
|
+
*
|
|
4679
|
+
* Contrast preference (`prefers-contrast: more`): a heavier border on controls
|
|
4680
|
+
* and a thicker focus ring. Colours are not changed here; a theme's colours are
|
|
4681
|
+
* its author's decision.
|
|
4682
|
+
* ========================================================================= */
|
|
4683
|
+
|
|
4684
|
+
@media (forced-colors: active) {
|
|
4685
|
+
:where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
|
|
4686
|
+
border: 1px solid ButtonBorder;
|
|
4687
|
+
}
|
|
4688
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4689
|
+
outline: 3px solid Highlight;
|
|
4690
|
+
outline-offset: 2px;
|
|
4691
|
+
}
|
|
4692
|
+
:where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
|
|
4693
|
+
background: SelectedItem;
|
|
4694
|
+
color: SelectedItemText;
|
|
4695
|
+
forced-color-adjust: none;
|
|
4696
|
+
}
|
|
4697
|
+
:where([aria-current]:not([aria-current="false"])) {
|
|
4698
|
+
outline: 2px solid Highlight;
|
|
4699
|
+
outline-offset: -2px;
|
|
4700
|
+
}
|
|
4701
|
+
:where(:disabled, [aria-disabled="true"]) {
|
|
4702
|
+
border-color: GrayText;
|
|
4703
|
+
color: GrayText;
|
|
4704
|
+
}
|
|
4705
|
+
}
|
|
4706
|
+
|
|
4707
|
+
@media (prefers-contrast: more) {
|
|
4708
|
+
:where(button, input, select, textarea, [role="button"], [class$="-button"]) {
|
|
4709
|
+
border-width: 2px;
|
|
4710
|
+
border-style: solid;
|
|
4711
|
+
border-color: currentColor;
|
|
4712
|
+
}
|
|
4713
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4714
|
+
outline-width: 3px;
|
|
4715
|
+
outline-offset: 2px;
|
|
4716
|
+
}
|
|
4717
|
+
}
|
|
4718
|
+
|
|
4719
|
+
/* ============================================================================
|
|
4720
|
+
* Writing systems — shared verbatim by all themes.
|
|
4721
|
+
*
|
|
4722
|
+
* A theme names its Latin font stack (`--lily-font-body-latin`). This section
|
|
4723
|
+
* builds `--lily-font-body` from it, with the system fonts of the element's
|
|
4724
|
+
* script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
|
|
4725
|
+
* Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
|
|
4726
|
+
* scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
|
|
4727
|
+
* Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
|
|
4728
|
+
* Chinese and Japanese but drawn differently, so the language picks the font,
|
|
4729
|
+
* not the script.
|
|
4730
|
+
*
|
|
4731
|
+
* `--lily-font-body` is re-declared on every element with a `lang`, so a
|
|
4732
|
+
* `<p lang="ja">` inside an English page gets Japanese fonts and a
|
|
4733
|
+
* `<span lang="en">` inside it gets none. A language not listed here keeps the
|
|
4734
|
+
* Latin stack, whose final generic family the browser resolves per language.
|
|
4735
|
+
*
|
|
4736
|
+
* `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
|
|
4737
|
+
* and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
|
|
4738
|
+
* Elements with a `lang` use it; the app's body text should too.
|
|
4739
|
+
*
|
|
4740
|
+
* To change a theme's font, set `--lily-font-body-latin`; to change a script's,
|
|
4741
|
+
* set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
|
|
4742
|
+
* itself still works on the element you set it on.
|
|
4743
|
+
* ========================================================================= */
|
|
4744
|
+
|
|
4745
|
+
:where(:root, [lang]) {
|
|
4746
|
+
--lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
|
|
4747
|
+
--lily-line-height-body: 1.5;
|
|
4748
|
+
}
|
|
4749
|
+
|
|
4750
|
+
:where([lang]) {
|
|
4751
|
+
--lily-font-script: initial;
|
|
4752
|
+
line-height: var(--lily-line-height-body);
|
|
4753
|
+
}
|
|
4754
|
+
|
|
4755
|
+
:where([lang|="zh"], [lang|="wuu"]) {
|
|
4756
|
+
--lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
|
|
4757
|
+
}
|
|
4758
|
+
:where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
|
|
4759
|
+
--lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
|
|
4760
|
+
}
|
|
4761
|
+
:where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
|
|
4762
|
+
--lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
|
|
4763
|
+
}
|
|
4764
|
+
:where([lang|="ja"]) {
|
|
4765
|
+
--lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
|
|
4766
|
+
}
|
|
4767
|
+
:where([lang|="ko"]) {
|
|
4768
|
+
--lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
|
|
4769
|
+
}
|
|
4770
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
|
|
4771
|
+
--lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
|
|
4772
|
+
}
|
|
4773
|
+
:where([lang|="ur"]) {
|
|
4774
|
+
--lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
|
|
4775
|
+
}
|
|
4776
|
+
:where([lang|="he"], [lang|="yi"]) {
|
|
4777
|
+
--lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
|
|
4778
|
+
}
|
|
4779
|
+
:where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
|
|
4780
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
|
|
4781
|
+
}
|
|
4782
|
+
:where([lang|="bn"], [lang|="as"]) {
|
|
4783
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
|
|
4784
|
+
}
|
|
4785
|
+
:where([lang|="gu"]) {
|
|
4786
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
|
|
4787
|
+
}
|
|
4788
|
+
:where([lang|="pa"]) {
|
|
4789
|
+
--lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
|
|
4790
|
+
}
|
|
4791
|
+
:where([lang|="kn"]) {
|
|
4792
|
+
--lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
|
|
4793
|
+
}
|
|
4794
|
+
:where([lang|="ta"]) {
|
|
4795
|
+
--lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
|
|
4796
|
+
}
|
|
4797
|
+
:where([lang|="te"]) {
|
|
4798
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
|
|
4799
|
+
}
|
|
4800
|
+
:where([lang|="th"]) {
|
|
4801
|
+
--lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
|
|
4802
|
+
}
|
|
4803
|
+
:where([lang|="lo"]) {
|
|
4804
|
+
--lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
|
|
4805
|
+
}
|
|
4806
|
+
:where([lang|="km"]) {
|
|
4807
|
+
--lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
|
|
4808
|
+
}
|
|
4809
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
|
|
4810
|
+
[lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
|
|
4811
|
+
[lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
|
|
4812
|
+
[lang|="lo"], [lang|="km"]) {
|
|
4813
|
+
--lily-line-height-body: 1.75;
|
|
4814
|
+
}
|