@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
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
/* ============================================================================
|
|
2
|
-
* Theme: united-kingdom-national-health-service-wales-practitioners
|
|
2
|
+
* Theme: united-kingdom-national-health-service-wales-for-practitioners
|
|
3
3
|
* Brand: NHS Wales / GIG Cymru (Gwasanaeth Iechyd Gwladol Cymru) — practitioners
|
|
4
4
|
* Format: Lily standalone theme
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Upstream tracked: DHCW / NHS Wales design system (2026 — navy primary,
|
|
8
|
-
* gold rail accent, yellow focus
|
|
9
|
-
*
|
|
8
|
+
* gold rail accent, yellow focus; link, hover, visited and active colours
|
|
9
|
+
* from the DHCW Design System private beta of 2026-10-23, read 2026-10-28).
|
|
10
|
+
* Independent implementation against Lily class hooks; not affiliated with
|
|
11
|
+
* or endorsed by NHS Wales / DHCW.
|
|
10
12
|
* --------------------------------------------------------------------------
|
|
11
13
|
* Practitioners variant
|
|
12
14
|
* --------------------------------------------------------------------------
|
|
13
15
|
* This is the *practitioners* / high-density variant of the NHS Wales
|
|
14
16
|
* theme. It shares the NHS Wales colour palette, brand intent, and
|
|
15
17
|
* component grammar with the patient-facing
|
|
16
|
-
* `united-kingdom-national-health-service-wales-patients.css`, and
|
|
18
|
+
* `united-kingdom-national-health-service-wales-for-patients.css`, and
|
|
17
19
|
* deliberately diverges on geometry and rhythm to serve a different
|
|
18
20
|
* audience: healthcare practitioners (doctors, nurses, midwives,
|
|
19
21
|
* pharmacists, AHPs, paramedics, dentists, ward clerks, MDT
|
|
@@ -455,12 +457,20 @@
|
|
|
455
457
|
/* #007F3B — the DHCW action-link green. Not NHS Green: it is
|
|
456
458
|
a shade darker so the chevron reads at 5.1:1 on white. */
|
|
457
459
|
--lily-action-green: oklch(52% 0.141 151);
|
|
458
|
-
/* #
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
460
|
+
/* #005AA8 — `$nhswales-link-colour`, DHCW Design System
|
|
461
|
+
(private beta, 2026-10-23). 6.94:1 on white, 6.26:1 on
|
|
462
|
+
#F0F4F5: AA, just short of AAA. NHS Blue #005EB8 stays on
|
|
463
|
+
--color-secondary for the header band and brand chrome. */
|
|
464
|
+
--lily-link: oklch(46.8% 0.145 253.1);
|
|
465
|
+
/* #002F5C — `$nhswales-link-active-colour`. 13.45:1 on white. */
|
|
466
|
+
--lily-link-active: oklch(30.5% 0.093 252.7);
|
|
467
|
+
/* #330072 — `$nhswales-link-visited-colour`. 15.18:1 on
|
|
468
|
+
white. (Until 2026-10-28 this was #7C2855, which the DHCW
|
|
469
|
+
Design System uses for hover.) */
|
|
470
|
+
--lily-link-visited: oklch(29% 0.162 292.2);
|
|
471
|
+
/* #7C2855 — `$nhswales-link-hover-colour`. 9.16:1 on white.
|
|
472
|
+
(Until 2026-10-28 this was NHS Dark Blue #003087.) */
|
|
473
|
+
--lily-link-hover: oklch(41.8% 0.126 350.8);
|
|
464
474
|
/* #00A499 — NHS Aqua Green / Pantone 3272. Demoted from the
|
|
465
475
|
accent slot but retained: DHCW ships an `aqua-green` tag
|
|
466
476
|
tone, and Public Health Wales and the Welsh Ambulance
|
|
@@ -493,6 +503,14 @@
|
|
|
493
503
|
--border: 1px;
|
|
494
504
|
--depth: 0;
|
|
495
505
|
--noise: 0;
|
|
506
|
+
/* Fluid inline gutter for page containers and the main
|
|
507
|
+
region: grows with the viewport from a 1rem floor to a 2rem
|
|
508
|
+
ceiling. Spacing only, never text. */
|
|
509
|
+
--space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
|
|
510
|
+
/* Fluid gap between sections (stacks and grids): grows with
|
|
511
|
+
the viewport from a 1rem floor to a 2rem ceiling. Spacing
|
|
512
|
+
only, never text. */
|
|
513
|
+
--space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
|
|
496
514
|
}
|
|
497
515
|
|
|
498
516
|
/* ----------------------------------------------------------------------------
|
|
@@ -611,7 +629,7 @@
|
|
|
611
629
|
/* --- Typography ---------------------------------------------------- */
|
|
612
630
|
/* Body font stack — system fonts first so consumers get a
|
|
613
631
|
native-feeling baseline without shipping a web font. */
|
|
614
|
-
--lily-font-body:
|
|
632
|
+
--lily-font-body-latin:
|
|
615
633
|
system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
|
|
616
634
|
Arial, sans-serif;
|
|
617
635
|
/* Monospaced font stack — used by code, kbd, identifiers, and
|
|
@@ -795,9 +813,12 @@
|
|
|
795
813
|
}
|
|
796
814
|
|
|
797
815
|
/* Invalid input — red border. The `aria-invalid="true"` attribute is the
|
|
798
|
-
ARIA contract
|
|
799
|
-
|
|
800
|
-
|
|
816
|
+
ARIA contract (server-rendered errors); `:user-invalid` is the native
|
|
817
|
+
state that matches only after the user has interacted, so a required
|
|
818
|
+
field is not styled invalid on load. Pairing a colour change with the
|
|
819
|
+
ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
|
|
820
|
+
:where([class$="-input"], .input)[aria-invalid="true"],
|
|
821
|
+
:where([class$="-input"], .input):user-invalid {
|
|
801
822
|
border-color: var(--color-error);
|
|
802
823
|
}
|
|
803
824
|
|
|
@@ -1167,11 +1188,14 @@
|
|
|
1167
1188
|
On a clinical surface, reserve this for actions that destroy or
|
|
1168
1189
|
retract a record. A red button in a worklist toolbar that merely
|
|
1169
1190
|
filters is how people learn to click red buttons without reading. */
|
|
1191
|
+
/* DHCW's delete red #D5281B is 5.06:1 under a white label: AA, not the
|
|
1192
|
+
AAA this system targets. The fill is mixed 20% towards black (8.2:1)
|
|
1193
|
+
so the label meets 7:1; the hue is unchanged. */
|
|
1170
1194
|
:where([class$="-button"], .button)[data-variant="warning"] {
|
|
1171
|
-
background-color: var(--color-error);
|
|
1195
|
+
background-color: color-mix(in oklch, var(--color-error) 80%, black);
|
|
1172
1196
|
color: var(--color-error-content);
|
|
1173
|
-
border-color: var(--color-error);
|
|
1174
|
-
box-shadow: 0 1px 0 color-mix(in oklch, var(--color-error)
|
|
1197
|
+
border-color: color-mix(in oklch, var(--color-error) 80%, black);
|
|
1198
|
+
box-shadow: 0 1px 0 color-mix(in oklch, var(--color-error) 50%, black);
|
|
1175
1199
|
}
|
|
1176
1200
|
:where([class$="-button"], .button)[data-variant="warning"]:hover:not(
|
|
1177
1201
|
:disabled
|
|
@@ -1365,16 +1389,17 @@
|
|
|
1365
1389
|
* exclusions (`skip-link`, `back-link`) are styled as buttons above.
|
|
1366
1390
|
* ====================================================================== */
|
|
1367
1391
|
|
|
1368
|
-
/* Links are
|
|
1369
|
-
|
|
1392
|
+
/* Links are `$nhswales-link-colour` #005AA8 (--lily-link), a shade
|
|
1393
|
+
off NHS Blue #005EB8, which stays on --color-secondary for the
|
|
1394
|
+
header band — not the navy primary. Keeping links blue and
|
|
1370
1395
|
buttons navy is what lets a reader tell "this navigates" from "this
|
|
1371
1396
|
acts" without reading either one. */
|
|
1372
1397
|
:where([class$="-link"]:not(.skip-link):not(.back-link)) {
|
|
1373
|
-
color: var(--
|
|
1398
|
+
color: var(--lily-link);
|
|
1374
1399
|
text-decoration: underline;
|
|
1375
1400
|
text-underline-offset: 0.12em;
|
|
1376
1401
|
}
|
|
1377
|
-
/* Hover — DHCW
|
|
1402
|
+
/* Hover — DHCW moves to #7C2855 and thickens the rule.
|
|
1378
1403
|
Both, not either: colour alone is not a state change (WCAG 1.4.1). */
|
|
1379
1404
|
:where([class$="-link"]):hover {
|
|
1380
1405
|
color: var(--lily-link-hover);
|
|
@@ -1388,6 +1413,10 @@
|
|
|
1388
1413
|
:where([class$="-link"]):visited {
|
|
1389
1414
|
color: var(--lily-link-visited);
|
|
1390
1415
|
}
|
|
1416
|
+
/* Active — #002F5C while the link is pressed. */
|
|
1417
|
+
:where([class$="-link"]):active {
|
|
1418
|
+
color: var(--lily-link-active);
|
|
1419
|
+
}
|
|
1391
1420
|
:where(
|
|
1392
1421
|
.data-table,
|
|
1393
1422
|
.table,
|
|
@@ -1548,7 +1577,7 @@
|
|
|
1548
1577
|
color: var(--lily-text-muted);
|
|
1549
1578
|
}
|
|
1550
1579
|
/* Final crumb (the current page) — muted because it isn't a link. */
|
|
1551
|
-
:where(.breadcrumb-list-item[aria-current="page"]) {
|
|
1580
|
+
:where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
|
|
1552
1581
|
color: var(--lily-text-muted);
|
|
1553
1582
|
}
|
|
1554
1583
|
|
|
@@ -1820,11 +1849,114 @@
|
|
|
1820
1849
|
background-color: var(--color-primary);
|
|
1821
1850
|
color: var(--color-primary-content);
|
|
1822
1851
|
}
|
|
1823
|
-
/* Today — outlined
|
|
1824
|
-
|
|
1852
|
+
/* Today — outlined and bold, never filled, so a selected non-today date still
|
|
1853
|
+
reads as "selected". The ring takes the cell's own text colour (currentColor),
|
|
1854
|
+
so it holds its contrast on a light page, a dark page and a selected cell
|
|
1855
|
+
alike, and the bold number says it without colour. */
|
|
1825
1856
|
:where(.calendar-table-td[aria-current="date"]) {
|
|
1826
|
-
outline: 2px solid
|
|
1827
|
-
outline-offset: -
|
|
1857
|
+
outline: 2px solid currentColor;
|
|
1858
|
+
outline-offset: -3px;
|
|
1859
|
+
font-weight: 700;
|
|
1860
|
+
}
|
|
1861
|
+
/* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
|
|
1862
|
+
:where(.calendar-table) {
|
|
1863
|
+
table-layout: fixed;
|
|
1864
|
+
}
|
|
1865
|
+
:where(.calendar-table-td, .calendar-table-th) {
|
|
1866
|
+
min-width: 0;
|
|
1867
|
+
overflow-wrap: anywhere;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
/* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
|
|
1871
|
+
:where(.data-grid-toolbar) {
|
|
1872
|
+
display: flex;
|
|
1873
|
+
flex-wrap: wrap;
|
|
1874
|
+
gap: var(--lily-space-sm);
|
|
1875
|
+
align-items: center;
|
|
1876
|
+
margin-block-end: var(--lily-space-sm);
|
|
1877
|
+
}
|
|
1878
|
+
:where(.data-grid-search, .data-grid-search-field) {
|
|
1879
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1880
|
+
border: var(--border) solid var(--lily-border);
|
|
1881
|
+
border-radius: var(--lily-radius-sm);
|
|
1882
|
+
background-color: var(--lily-surface);
|
|
1883
|
+
color: var(--lily-text);
|
|
1884
|
+
font: inherit;
|
|
1885
|
+
}
|
|
1886
|
+
/* A sortable header is a button that looks like its text; the arrow follows aria-sort,
|
|
1887
|
+
so the state is in the markup for assistive technology and on screen for everyone. */
|
|
1888
|
+
:where(.data-grid-sort-button) {
|
|
1889
|
+
padding: 0;
|
|
1890
|
+
border: 0;
|
|
1891
|
+
background: none;
|
|
1892
|
+
color: inherit;
|
|
1893
|
+
font: inherit;
|
|
1894
|
+
text-align: start;
|
|
1895
|
+
cursor: pointer;
|
|
1896
|
+
}
|
|
1897
|
+
:where(.data-grid-sort-button:focus-visible) {
|
|
1898
|
+
outline: 2px solid var(--color-accent);
|
|
1899
|
+
outline-offset: 2px;
|
|
1900
|
+
}
|
|
1901
|
+
:where([aria-sort="none"] .data-grid-sort-button)::after {
|
|
1902
|
+
content: " \21C5";
|
|
1903
|
+
opacity: 0.5;
|
|
1904
|
+
}
|
|
1905
|
+
:where([aria-sort="ascending"] .data-grid-sort-button)::after {
|
|
1906
|
+
content: " \25B2";
|
|
1907
|
+
}
|
|
1908
|
+
:where([aria-sort="descending"] .data-grid-sort-button)::after {
|
|
1909
|
+
content: " \25BC";
|
|
1910
|
+
}
|
|
1911
|
+
:where(.data-grid-pagination) {
|
|
1912
|
+
display: flex;
|
|
1913
|
+
flex-wrap: wrap;
|
|
1914
|
+
gap: var(--lily-space-sm);
|
|
1915
|
+
align-items: center;
|
|
1916
|
+
justify-content: flex-end;
|
|
1917
|
+
margin-block-start: var(--lily-space-sm);
|
|
1918
|
+
}
|
|
1919
|
+
:where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
|
|
1920
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
1921
|
+
border: var(--border) solid var(--lily-border);
|
|
1922
|
+
border-radius: var(--lily-radius-sm);
|
|
1923
|
+
background-color: var(--lily-surface);
|
|
1924
|
+
color: var(--lily-text);
|
|
1925
|
+
font: inherit;
|
|
1926
|
+
cursor: pointer;
|
|
1927
|
+
}
|
|
1928
|
+
:where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
|
|
1929
|
+
opacity: 0.5;
|
|
1930
|
+
cursor: not-allowed;
|
|
1931
|
+
}
|
|
1932
|
+
:where(.data-grid-column-visibility) {
|
|
1933
|
+
display: flex;
|
|
1934
|
+
flex-wrap: wrap;
|
|
1935
|
+
gap: var(--lily-space-sm);
|
|
1936
|
+
margin: 0;
|
|
1937
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1938
|
+
border: var(--border) solid var(--lily-border);
|
|
1939
|
+
border-radius: var(--lily-radius-sm);
|
|
1940
|
+
}
|
|
1941
|
+
/* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
|
|
1942
|
+
:where([data-pinned="start"]) {
|
|
1943
|
+
position: sticky;
|
|
1944
|
+
inset-inline-start: 0;
|
|
1945
|
+
z-index: 1;
|
|
1946
|
+
background-color: var(--lily-surface);
|
|
1947
|
+
}
|
|
1948
|
+
:where([data-pinned="end"]) {
|
|
1949
|
+
position: sticky;
|
|
1950
|
+
inset-inline-end: 0;
|
|
1951
|
+
z-index: 1;
|
|
1952
|
+
background-color: var(--lily-surface);
|
|
1953
|
+
}
|
|
1954
|
+
:where(th[data-pinned]) {
|
|
1955
|
+
z-index: 2;
|
|
1956
|
+
}
|
|
1957
|
+
/* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
|
|
1958
|
+
:where(.data-table-td[data-empty]) {
|
|
1959
|
+
opacity: 0.7;
|
|
1828
1960
|
}
|
|
1829
1961
|
|
|
1830
1962
|
/* --- Kanban specifics --------------------------------------------------- */
|
|
@@ -1838,6 +1970,20 @@
|
|
|
1838
1970
|
min-width: 10rem;
|
|
1839
1971
|
}
|
|
1840
1972
|
|
|
1973
|
+
/* Dragging a card: the column it would land in is outlined; one that refuses it
|
|
1974
|
+
(canMove, allowedColumns, a full strict WIP limit) is striped and shows the
|
|
1975
|
+
not-allowed cursor, so "you can't drop here" is visible before the drop. */
|
|
1976
|
+
:where(.kanban-table-td[data-drop-target]) {
|
|
1977
|
+
outline: 2px dashed var(--color-accent);
|
|
1978
|
+
outline-offset: -3px;
|
|
1979
|
+
}
|
|
1980
|
+
:where(.kanban-table-td[data-drop-blocked]) {
|
|
1981
|
+
outline: 2px solid var(--color-error);
|
|
1982
|
+
outline-offset: -3px;
|
|
1983
|
+
cursor: not-allowed;
|
|
1984
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1841
1987
|
/* --- Gantt specifics ---------------------------------------------------- */
|
|
1842
1988
|
/* Cells marked as bars are filled with the primary colour to render the
|
|
1843
1989
|
schedule bar inline within the grid. */
|
|
@@ -1845,6 +1991,20 @@
|
|
|
1845
1991
|
background-color: var(--color-primary);
|
|
1846
1992
|
}
|
|
1847
1993
|
|
|
1994
|
+
/* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
|
|
1995
|
+
is tinted; a day marked as a holiday or time off (data-unavailable /
|
|
1996
|
+
data-range) is striped as well, so no day is told apart by colour alone;
|
|
1997
|
+
a column only partly unavailable gets a bar under its header. */
|
|
1998
|
+
:where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
|
|
1999
|
+
background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
|
|
2000
|
+
}
|
|
2001
|
+
:where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
|
|
2002
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
|
|
2003
|
+
}
|
|
2004
|
+
:where(.gantt-table-th[data-partly-unavailable]) {
|
|
2005
|
+
box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
|
|
2006
|
+
}
|
|
2007
|
+
|
|
1848
2008
|
/* ==========================================================================
|
|
1849
2009
|
* Cards, panels, surfaces
|
|
1850
2010
|
* --------------------------------------------------------------------------
|
|
@@ -2153,13 +2313,17 @@
|
|
|
2153
2313
|
padding: 0.25rem 0.5rem;
|
|
2154
2314
|
}
|
|
2155
2315
|
|
|
2156
|
-
/* Sticky promo —
|
|
2316
|
+
/* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
|
|
2317
|
+
the component's own bottom: 0 it would stretch over the whole page and take every click. */
|
|
2157
2318
|
:where(.sticky-promo-banner) {
|
|
2158
2319
|
position: sticky;
|
|
2159
|
-
inset-block-start: 0;
|
|
2160
2320
|
z-index: 10;
|
|
2161
2321
|
}
|
|
2162
2322
|
|
|
2323
|
+
:where(.sticky-promo-banner:not([data-position="bottom"])) {
|
|
2324
|
+
inset-block-start: 0;
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2163
2327
|
/* Error message — inline form-validation message. */
|
|
2164
2328
|
:where(.error-message) {
|
|
2165
2329
|
color: var(--lily-error-text);
|
|
@@ -2337,7 +2501,8 @@
|
|
|
2337
2501
|
|
|
2338
2502
|
/* --- Grail layout (5-region responsive page shell) --------------------- */
|
|
2339
2503
|
/* Header spans the top; left-aside / main / right-aside fill the middle;
|
|
2340
|
-
footer spans the bottom.
|
|
2504
|
+
footer spans the bottom. The collapse as the window narrows is in the shared
|
|
2505
|
+
container section at the end of this file. */
|
|
2341
2506
|
:where(.grail-layout) {
|
|
2342
2507
|
display: grid;
|
|
2343
2508
|
min-height: 100vh;
|
|
@@ -2379,14 +2544,6 @@
|
|
|
2379
2544
|
:where(.grail-layout-center-main) {
|
|
2380
2545
|
padding: 0.5rem;
|
|
2381
2546
|
}
|
|
2382
|
-
/* Mobile breakpoint — collapse to a single column, stacking the regions. */
|
|
2383
|
-
@media (max-width: 48rem) {
|
|
2384
|
-
:where(.grail-layout) {
|
|
2385
|
-
grid-template-areas: "header" "main" "left" "right" "footer";
|
|
2386
|
-
grid-template-columns: 1fr;
|
|
2387
|
-
grid-template-rows: auto auto auto auto auto;
|
|
2388
|
-
}
|
|
2389
|
-
}
|
|
2390
2547
|
|
|
2391
2548
|
/* Standalone semantic header / footer landmarks. */
|
|
2392
2549
|
:where(.header) {
|
|
@@ -2476,6 +2633,15 @@
|
|
|
2476
2633
|
/* Drawers — side panels (right edge by default; RTL-aware via logical
|
|
2477
2634
|
properties). Sit above the overlay container (z-index 101). */
|
|
2478
2635
|
:where(.drawer, .slide-out-drawer, .sheet) {
|
|
2636
|
+
/* These are <dialog> elements opened with showModal() (P18-T6): undo the
|
|
2637
|
+
browser's centred-box defaults so the panel docks to the edge. */
|
|
2638
|
+
margin: 0;
|
|
2639
|
+
border: 0;
|
|
2640
|
+
inset-inline-start: auto;
|
|
2641
|
+
max-block-size: none;
|
|
2642
|
+
max-inline-size: none;
|
|
2643
|
+
block-size: 100%;
|
|
2644
|
+
box-sizing: border-box;
|
|
2479
2645
|
position: fixed;
|
|
2480
2646
|
inset-block: 0;
|
|
2481
2647
|
inset-inline-end: 0;
|
|
@@ -2488,6 +2654,10 @@
|
|
|
2488
2654
|
z-index: 101;
|
|
2489
2655
|
}
|
|
2490
2656
|
|
|
2657
|
+
:where(.drawer, .slide-out-drawer, .sheet)::backdrop {
|
|
2658
|
+
background-color: color-mix(in oklch, black 50%, transparent);
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2491
2661
|
/* ==========================================================================
|
|
2492
2662
|
* Menus
|
|
2493
2663
|
* ====================================================================== */
|
|
@@ -2540,7 +2710,7 @@
|
|
|
2540
2710
|
gap: 0.125rem;
|
|
2541
2711
|
}
|
|
2542
2712
|
/* Hamburger — bordered icon-button. */
|
|
2543
|
-
:where(.hamburger-menu) {
|
|
2713
|
+
:where(.hamburger-menu > button) {
|
|
2544
2714
|
display: inline-flex;
|
|
2545
2715
|
align-items: center;
|
|
2546
2716
|
justify-content: center;
|
|
@@ -3034,6 +3204,7 @@
|
|
|
3034
3204
|
.theme-picker,
|
|
3035
3205
|
.locale-picker,
|
|
3036
3206
|
.text-size-picker,
|
|
3207
|
+
.time-zone-picker,
|
|
3037
3208
|
.search-picker,
|
|
3038
3209
|
.link-picker,
|
|
3039
3210
|
.menu-picker,
|
|
@@ -3049,6 +3220,7 @@
|
|
|
3049
3220
|
.theme-picker-button,
|
|
3050
3221
|
.locale-picker-button,
|
|
3051
3222
|
.text-size-picker-button,
|
|
3223
|
+
.time-zone-picker-button,
|
|
3052
3224
|
.search-picker-button,
|
|
3053
3225
|
.link-picker-button,
|
|
3054
3226
|
.menu-picker-button,
|
|
@@ -3087,6 +3259,7 @@
|
|
|
3087
3259
|
.theme-picker-icon,
|
|
3088
3260
|
.locale-picker-icon,
|
|
3089
3261
|
.text-size-picker-icon,
|
|
3262
|
+
.time-zone-picker-icon,
|
|
3090
3263
|
.motion-picker-icon,
|
|
3091
3264
|
.link-picker-icon,
|
|
3092
3265
|
.menu-picker-icon,
|
|
@@ -3454,6 +3627,7 @@
|
|
|
3454
3627
|
.theme-picker-tooltip,
|
|
3455
3628
|
.locale-picker-tooltip,
|
|
3456
3629
|
.text-size-picker-tooltip,
|
|
3630
|
+
.time-zone-picker-tooltip,
|
|
3457
3631
|
.motion-picker-tooltip,
|
|
3458
3632
|
.link-picker-tooltip,
|
|
3459
3633
|
.menu-picker-tooltip,
|
|
@@ -3481,6 +3655,7 @@
|
|
|
3481
3655
|
.theme-picker-tooltip,
|
|
3482
3656
|
.locale-picker-tooltip,
|
|
3483
3657
|
.text-size-picker-tooltip,
|
|
3658
|
+
.time-zone-picker-tooltip,
|
|
3484
3659
|
.motion-picker-tooltip,
|
|
3485
3660
|
.link-picker-tooltip,
|
|
3486
3661
|
.menu-picker-tooltip,
|
|
@@ -3500,6 +3675,7 @@
|
|
|
3500
3675
|
.theme-picker-tooltip,
|
|
3501
3676
|
.locale-picker-tooltip,
|
|
3502
3677
|
.text-size-picker-tooltip,
|
|
3678
|
+
.time-zone-picker-tooltip,
|
|
3503
3679
|
.motion-picker-tooltip,
|
|
3504
3680
|
.link-picker-tooltip,
|
|
3505
3681
|
.menu-picker-tooltip,
|
|
@@ -3556,6 +3732,7 @@
|
|
|
3556
3732
|
.theme-picker-list,
|
|
3557
3733
|
.locale-picker-list,
|
|
3558
3734
|
.text-size-picker-list,
|
|
3735
|
+
.time-zone-picker-list,
|
|
3559
3736
|
.motion-picker-list,
|
|
3560
3737
|
.link-picker-list,
|
|
3561
3738
|
.menu-picker-panel,
|
|
@@ -3585,6 +3762,7 @@
|
|
|
3585
3762
|
.theme-picker-list,
|
|
3586
3763
|
.locale-picker-list,
|
|
3587
3764
|
.text-size-picker-list,
|
|
3765
|
+
.time-zone-picker-list,
|
|
3588
3766
|
.motion-picker-list,
|
|
3589
3767
|
.link-picker-list,
|
|
3590
3768
|
.menu-picker-panel,
|
|
@@ -3605,6 +3783,7 @@
|
|
|
3605
3783
|
:where(.theme-picker) { anchor-name: --lily-theme-picker; }
|
|
3606
3784
|
:where(.locale-picker) { anchor-name: --lily-locale-picker; }
|
|
3607
3785
|
:where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
|
|
3786
|
+
:where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
|
|
3608
3787
|
:where(.motion-picker) { anchor-name: --lily-motion-picker; }
|
|
3609
3788
|
:where(.link-picker) { anchor-name: --lily-link-picker; }
|
|
3610
3789
|
:where(.menu-picker) { anchor-name: --lily-menu-picker; }
|
|
@@ -3614,6 +3793,7 @@
|
|
|
3614
3793
|
:where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
|
|
3615
3794
|
:where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
|
|
3616
3795
|
:where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
|
|
3796
|
+
:where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
|
|
3617
3797
|
:where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
|
|
3618
3798
|
:where(.link-picker-list) { position-anchor: --lily-link-picker; }
|
|
3619
3799
|
:where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
|
|
@@ -3624,6 +3804,7 @@
|
|
|
3624
3804
|
.theme-picker-list,
|
|
3625
3805
|
.locale-picker-list,
|
|
3626
3806
|
.text-size-picker-list,
|
|
3807
|
+
.time-zone-picker-list,
|
|
3627
3808
|
.motion-picker-list,
|
|
3628
3809
|
.link-picker-list,
|
|
3629
3810
|
.menu-picker-panel,
|
|
@@ -3641,11 +3822,56 @@
|
|
|
3641
3822
|
}
|
|
3642
3823
|
}
|
|
3643
3824
|
|
|
3644
|
-
|
|
3825
|
+
/* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
|
|
3826
|
+
browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
|
|
3827
|
+
where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
|
|
3828
|
+
open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
|
|
3829
|
+
hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
|
|
3830
|
+
`position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
|
|
3831
|
+
position-area: with no anchor, position-area does nothing and a static position can be off screen. */
|
|
3832
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
|
|
3833
|
+
display: none;
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3836
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
|
|
3837
|
+
display: none;
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
@supports (position-area: block-end) {
|
|
3841
|
+
:where(.cascader-trigger) { anchor-name: --lily-cascader; }
|
|
3842
|
+
:where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
|
|
3843
|
+
:where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
|
|
3844
|
+
:where(.combobox > input) { anchor-name: --lily-combobox; }
|
|
3845
|
+
:where(.cascader-panel) { position-anchor: --lily-cascader; }
|
|
3846
|
+
:where(.tree-select-panel) { position-anchor: --lily-tree-select; }
|
|
3847
|
+
:where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
|
|
3848
|
+
:where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
|
|
3849
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
3850
|
+
position: fixed;
|
|
3851
|
+
inset: auto;
|
|
3852
|
+
margin: 0;
|
|
3853
|
+
position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
|
|
3854
|
+
width: max-content;
|
|
3855
|
+
max-width: calc(100vw - 1rem);
|
|
3856
|
+
}
|
|
3857
|
+
:where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
3858
|
+
inset-block-start: anchor(end, 25%);
|
|
3859
|
+
inset-inline-start: anchor(start, 25%);
|
|
3860
|
+
}
|
|
3861
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
3862
|
+
position-area: block-end span-inline-end;
|
|
3863
|
+
}
|
|
3864
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
3865
|
+
min-inline-size: anchor-size(inline);
|
|
3866
|
+
}
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3869
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
3645
3870
|
> :where(
|
|
3646
3871
|
.theme-picker-option,
|
|
3647
3872
|
.locale-picker-option,
|
|
3648
3873
|
.text-size-picker-option,
|
|
3874
|
+
.time-zone-picker-option,
|
|
3649
3875
|
.motion-picker-option
|
|
3650
3876
|
) {
|
|
3651
3877
|
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
@@ -3655,7 +3881,7 @@
|
|
|
3655
3881
|
|
|
3656
3882
|
/* data-active is the keyboard cursor (aria-activedescendant); focus
|
|
3657
3883
|
stays on the listbox, so this is the only visible cue for it. */
|
|
3658
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
3884
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
3659
3885
|
> :where([data-active]) {
|
|
3660
3886
|
background-color: var(--lily-surface-alt);
|
|
3661
3887
|
outline: var(--lily-focus-ring);
|
|
@@ -3664,7 +3890,7 @@
|
|
|
3664
3890
|
|
|
3665
3891
|
/* aria-selected marks the applied theme/locale, which is not the
|
|
3666
3892
|
same thing as the keyboard cursor. Both can be visible at once. */
|
|
3667
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
3893
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
3668
3894
|
> :where([aria-selected="true"]) {
|
|
3669
3895
|
font-weight: 600;
|
|
3670
3896
|
background-color: var(--lily-surface-sunken);
|
|
@@ -4061,7 +4287,7 @@
|
|
|
4061
4287
|
}
|
|
4062
4288
|
/* Screen-reader-only — visually hidden but available to AT. The
|
|
4063
4289
|
classic clip-rect pattern (works in every screen reader). */
|
|
4064
|
-
:where(.screen-reader-span) {
|
|
4290
|
+
:where(.screen-reader-span, .middle-truncation-full) {
|
|
4065
4291
|
position: absolute;
|
|
4066
4292
|
width: 1px;
|
|
4067
4293
|
height: 1px;
|
|
@@ -4072,6 +4298,42 @@
|
|
|
4072
4298
|
white-space: nowrap;
|
|
4073
4299
|
border: 0;
|
|
4074
4300
|
}
|
|
4301
|
+
/* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
|
|
4302
|
+
text (hidden above) stays in the accessibility tree. */
|
|
4303
|
+
:where(.middle-truncation) {
|
|
4304
|
+
display: block;
|
|
4305
|
+
position: relative;
|
|
4306
|
+
overflow: hidden;
|
|
4307
|
+
white-space: nowrap;
|
|
4308
|
+
}
|
|
4309
|
+
/* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
|
|
4310
|
+
primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
|
|
4311
|
+
:where(.wheel-picker-list) {
|
|
4312
|
+
max-block-size: 10em;
|
|
4313
|
+
overflow-y: auto;
|
|
4314
|
+
overscroll-behavior: contain;
|
|
4315
|
+
scroll-snap-type: y mandatory;
|
|
4316
|
+
border: 1px solid var(--color-base-300);
|
|
4317
|
+
border-radius: var(--lily-radius-md);
|
|
4318
|
+
}
|
|
4319
|
+
:where(.wheel-picker-list:focus-visible) {
|
|
4320
|
+
outline: 2px solid var(--lily-focus-ring);
|
|
4321
|
+
outline-offset: 2px;
|
|
4322
|
+
}
|
|
4323
|
+
:where(.wheel-picker-option) {
|
|
4324
|
+
padding: 0.5rem 1rem;
|
|
4325
|
+
scroll-snap-align: center;
|
|
4326
|
+
cursor: pointer;
|
|
4327
|
+
}
|
|
4328
|
+
:where(.wheel-picker-option[aria-selected="true"]) {
|
|
4329
|
+
background-color: var(--color-primary);
|
|
4330
|
+
color: var(--color-primary-content);
|
|
4331
|
+
font-weight: 600;
|
|
4332
|
+
}
|
|
4333
|
+
:where(.wheel-picker-option[aria-disabled="true"]) {
|
|
4334
|
+
opacity: 0.5;
|
|
4335
|
+
cursor: not-allowed;
|
|
4336
|
+
}
|
|
4075
4337
|
|
|
4076
4338
|
/* ==========================================================================
|
|
4077
4339
|
* Hero, figure, photo, media
|
|
@@ -4816,6 +5078,81 @@
|
|
|
4816
5078
|
min-block-size: 24px;
|
|
4817
5079
|
}
|
|
4818
5080
|
|
|
5081
|
+
/* ============================================================================
|
|
5082
|
+
* Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
|
|
5083
|
+
*
|
|
5084
|
+
* Where the primary pointer is coarse (a finger), interactive hooks are at least
|
|
5085
|
+
* 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
|
|
5086
|
+
* buttons, form fields, checkboxes and radios, and the link-shaped navigation
|
|
5087
|
+
* hooks. Links inside running text are exempt, so bare `a` is not listed. The
|
|
5088
|
+
* query is the capability, never a viewport width. :where() keeps specificity
|
|
5089
|
+
* at zero, so any consumer rule still wins.
|
|
5090
|
+
* ========================================================================= */
|
|
5091
|
+
|
|
5092
|
+
@media (pointer: coarse) {
|
|
5093
|
+
:where(button,
|
|
5094
|
+
[role="button"],
|
|
5095
|
+
[role="tab"],
|
|
5096
|
+
[role="option"],
|
|
5097
|
+
[role="menuitem"],
|
|
5098
|
+
[class*="-picker-button"],
|
|
5099
|
+
summary,
|
|
5100
|
+
input:not([type="hidden"]),
|
|
5101
|
+
select,
|
|
5102
|
+
textarea,
|
|
5103
|
+
.action-link,
|
|
5104
|
+
.back-link,
|
|
5105
|
+
.breadcrumb-list-item > a,
|
|
5106
|
+
.pagination-list-item > a,
|
|
5107
|
+
.contents-list-item > a,
|
|
5108
|
+
.section-list-item > a) {
|
|
5109
|
+
min-inline-size: 44px;
|
|
5110
|
+
min-block-size: 44px;
|
|
5111
|
+
}
|
|
5112
|
+
}
|
|
5113
|
+
|
|
5114
|
+
/* ============================================================================
|
|
5115
|
+
* Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
|
|
5116
|
+
*
|
|
5117
|
+
* --lily-brand is the identity's decorative colour: a header band, a rule, a
|
|
5118
|
+
* logo background. It is NEVER a text colour or a control's boundary, because a
|
|
5119
|
+
* brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
|
|
5120
|
+
* text drawn on it. By default they follow the theme's primary pair, which every
|
|
5121
|
+
* theme keeps readable; an adopter whose brand colour is lighter or darker sets
|
|
5122
|
+
* both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
|
|
5123
|
+
* content pairs (--color-base-content, --lily-error-text and so on).
|
|
5124
|
+
* ========================================================================== */
|
|
5125
|
+
|
|
5126
|
+
:where(:root) {
|
|
5127
|
+
--lily-brand: var(--color-primary);
|
|
5128
|
+
--lily-on-brand: var(--color-primary-content);
|
|
5129
|
+
}
|
|
5130
|
+
|
|
5131
|
+
/* ============================================================================
|
|
5132
|
+
* Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
|
|
5133
|
+
*
|
|
5134
|
+
* The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
|
|
5135
|
+
* adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
|
|
5136
|
+
* and no clear-space rule, because national and local guidelines disagree: a
|
|
5137
|
+
* theme or the adopter sets --lily-logo-clear-space (padding around the mark)
|
|
5138
|
+
* and --lily-logo-min-size (its smallest inline size). Both are unset by
|
|
5139
|
+
* default, so nothing changes until one is set.
|
|
5140
|
+
* ========================================================================== */
|
|
5141
|
+
|
|
5142
|
+
@layer lily {
|
|
5143
|
+
:where([data-lily-logo]) {
|
|
5144
|
+
display: inline-block;
|
|
5145
|
+
padding: var(--lily-logo-clear-space, 0);
|
|
5146
|
+
}
|
|
5147
|
+
|
|
5148
|
+
:where([data-lily-logo] > img, [data-lily-logo] > svg) {
|
|
5149
|
+
display: block;
|
|
5150
|
+
min-inline-size: var(--lily-logo-min-size, 0);
|
|
5151
|
+
max-inline-size: 100%;
|
|
5152
|
+
block-size: auto;
|
|
5153
|
+
}
|
|
5154
|
+
}
|
|
5155
|
+
|
|
4819
5156
|
/* ============================================================================
|
|
4820
5157
|
* Overflow guards — narrow-viewport safety, shared verbatim by all themes.
|
|
4821
5158
|
*
|
|
@@ -4843,3 +5180,620 @@
|
|
|
4843
5180
|
:where(a, code) {
|
|
4844
5181
|
overflow-wrap: anywhere;
|
|
4845
5182
|
}
|
|
5183
|
+
|
|
5184
|
+
/* ============================================================================
|
|
5185
|
+
* Scoped overflow — shared verbatim by all themes.
|
|
5186
|
+
*
|
|
5187
|
+
* Long unbroken strings (a national identifier, an email address, a URL) and
|
|
5188
|
+
* grid/flex tracks that refuse to shrink are the usual causes of horizontal
|
|
5189
|
+
* page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
|
|
5190
|
+
* `overflow-wrap: anywhere` on the places a long value lands (table cells are
|
|
5191
|
+
* covered by Overflow guards above), and `min-inline-size: 0` on the direct
|
|
5192
|
+
* children of Lily's grid and flex containers so a child can shrink below its
|
|
5193
|
+
* content. The identifier `-view` list below is the catalog's 70 national
|
|
5194
|
+
* identifier views (components-categories.tsv); bin/check-theme fails when it
|
|
5195
|
+
* drifts from the catalog. :where() keeps specificity at zero.
|
|
5196
|
+
* ========================================================================= */
|
|
5197
|
+
|
|
5198
|
+
:where(
|
|
5199
|
+
.alba-community-health-index-view,
|
|
5200
|
+
.australia-individual-healthcare-identifier-view,
|
|
5201
|
+
.belgique-numero-de-registre-national-view,
|
|
5202
|
+
.bulgaria-edinen-grazhdanski-nomer-view,
|
|
5203
|
+
.cesko-cestovni-pas-view,
|
|
5204
|
+
.cesko-rodne-cislo-view,
|
|
5205
|
+
.cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
|
|
5206
|
+
.kypros-national-passport-number-view,
|
|
5207
|
+
.danmark-personnummer-view,
|
|
5208
|
+
.deutschland-krankenversichertennummer-view,
|
|
5209
|
+
.eesti-isikukood-view,
|
|
5210
|
+
.ellada-dematerialised-securities-system-view,
|
|
5211
|
+
.england-national-health-service-number-view,
|
|
5212
|
+
.espana-codigo-de-identificacion-fiscal-view,
|
|
5213
|
+
.espana-tarjeta-sanitaria-individual-view,
|
|
5214
|
+
.france-numero-d-identification-au-repertoire-view,
|
|
5215
|
+
.hrvatska-osobni-identifikacijski-broj-view,
|
|
5216
|
+
.eire-individual-health-identifier-view,
|
|
5217
|
+
.island-kennitala-view,
|
|
5218
|
+
.italia-codice-fiscale-view,
|
|
5219
|
+
.latvija-personas-kods-view,
|
|
5220
|
+
.liechtenstein-national-identity-card-number-view,
|
|
5221
|
+
.liechtenstein-passport-number-view,
|
|
5222
|
+
.lietuva-asmens-kodas-view,
|
|
5223
|
+
.lietuva-pasas-view,
|
|
5224
|
+
.malta-national-identification-number-view,
|
|
5225
|
+
.malta-passport-number-view,
|
|
5226
|
+
.nederland-burgerservice-nummer-view,
|
|
5227
|
+
.nederland-identiteitskaart-nummer-view,
|
|
5228
|
+
.nederland-paspoort-nummer-view,
|
|
5229
|
+
.norge-fodselsnummer-view,
|
|
5230
|
+
.tuaisceart-eireann-health-and-care-number-view,
|
|
5231
|
+
.polska-numer-identyfikacji-podatkowej-view,
|
|
5232
|
+
.polska-pesel-view,
|
|
5233
|
+
.portugal-numero-de-identificacao-fiscal-view,
|
|
5234
|
+
.portugal-passaporte-view,
|
|
5235
|
+
.romania-cod-numeric-personal-view,
|
|
5236
|
+
.romania-pasaport-view,
|
|
5237
|
+
.slovenija-emso-view,
|
|
5238
|
+
.slovensko-pas-view,
|
|
5239
|
+
.slovensko-rodne-cislo-view,
|
|
5240
|
+
.suomi-henkilotunnus-view,
|
|
5241
|
+
.sverige-personnummer-view,
|
|
5242
|
+
.iban-view,
|
|
5243
|
+
.united-kingdom-national-health-service-number-view,
|
|
5244
|
+
.united-kingdom-national-insurance-number-view,
|
|
5245
|
+
.united-states-social-security-number-view,
|
|
5246
|
+
.aotearoa-national-health-index-view,
|
|
5247
|
+
.pilipinas-philhealth-identification-number-view,
|
|
5248
|
+
.brasil-cartao-nacional-de-saude-view,
|
|
5249
|
+
.schweiz-ahv-nummer-view,
|
|
5250
|
+
.canada-social-insurance-number-view,
|
|
5251
|
+
.hanguk-jumin-deungnok-beonho-view,
|
|
5252
|
+
.nihon-kojin-bango-view,
|
|
5253
|
+
.bharat-aadhaar-view,
|
|
5254
|
+
.yisrael-teudat-zehut-view,
|
|
5255
|
+
.south-africa-identity-number-view,
|
|
5256
|
+
.mexico-clave-unica-de-registro-de-poblacion-view,
|
|
5257
|
+
.singapore-national-registration-identity-card-view,
|
|
5258
|
+
.osterreich-sozialversicherungsnummer-view,
|
|
5259
|
+
.magyarorszag-taj-szam-view,
|
|
5260
|
+
.luxembourg-matricule-view,
|
|
5261
|
+
.zhongguo-jumin-shenfenzheng-haoma-view,
|
|
5262
|
+
.rossiya-snils-view,
|
|
5263
|
+
.turkiye-tc-kimlik-numarasi-view,
|
|
5264
|
+
.argentina-codigo-unico-de-identificacion-laboral-view,
|
|
5265
|
+
.ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
|
|
5266
|
+
.indonesia-nomor-induk-kependudukan-view,
|
|
5267
|
+
.prathet-thai-lek-prajam-tua-prachachon-view,
|
|
5268
|
+
.chile-rol-unico-nacional-view,
|
|
5269
|
+
.taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
|
|
5270
|
+
.hong-kong-identity-card-view,
|
|
5271
|
+
.iran-kod-e-melli-view,
|
|
5272
|
+
.as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
|
|
5273
|
+
.malaysia-kad-pengenalan-view,
|
|
5274
|
+
.viet-nam-can-cuoc-cong-dan-view,
|
|
5275
|
+
.pakistan-computerized-national-identity-card-view,
|
|
5276
|
+
.uruguay-cedula-de-identidad-view,
|
|
5277
|
+
.ecuador-cedula-de-identidad-view,
|
|
5278
|
+
.colombia-cedula-de-ciudadania-view,
|
|
5279
|
+
.australia-tax-file-number-view,
|
|
5280
|
+
.nigeria-national-identification-number-view,
|
|
5281
|
+
.misr-al-raqm-al-qawmi-view
|
|
5282
|
+
) {
|
|
5283
|
+
overflow-wrap: anywhere;
|
|
5284
|
+
}
|
|
5285
|
+
|
|
5286
|
+
/* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
|
|
5287
|
+
:where(.summary-list, .summary-list-item, .description-list) {
|
|
5288
|
+
overflow-wrap: anywhere;
|
|
5289
|
+
}
|
|
5290
|
+
|
|
5291
|
+
:where(
|
|
5292
|
+
.grid,
|
|
5293
|
+
.flex-stack,
|
|
5294
|
+
.grail-layout,
|
|
5295
|
+
.summary-list,
|
|
5296
|
+
.summary-list-item,
|
|
5297
|
+
.description-list,
|
|
5298
|
+
.form,
|
|
5299
|
+
.editable-form,
|
|
5300
|
+
.field,
|
|
5301
|
+
.input-group,
|
|
5302
|
+
.button-group,
|
|
5303
|
+
.radio-group,
|
|
5304
|
+
.checkbox-group,
|
|
5305
|
+
.toggle-group,
|
|
5306
|
+
.tag-group,
|
|
5307
|
+
.split-view,
|
|
5308
|
+
.photo-pack,
|
|
5309
|
+
.data-filter-form,
|
|
5310
|
+
.action-bar,
|
|
5311
|
+
.tool-bar,
|
|
5312
|
+
.menu-bar,
|
|
5313
|
+
.tab-bar
|
|
5314
|
+
) > :where(*) {
|
|
5315
|
+
min-inline-size: 0;
|
|
5316
|
+
}
|
|
5317
|
+
|
|
5318
|
+
/* ============================================================================
|
|
5319
|
+
* Helper packages — layout and look, shared verbatim by all themes.
|
|
5320
|
+
*
|
|
5321
|
+
* The data grid, kanban board, Gantt chart and calendar view are wide by nature.
|
|
5322
|
+
* Each root scrolls sideways inside its own box and its table sizes to its content,
|
|
5323
|
+
* so a narrow screen scrolls the table instead of wrapping every cell to a letter
|
|
5324
|
+
* (the overflow guard above lets cells break anywhere, which is right for prose and
|
|
5325
|
+
* wrong for a table that has a scroller). The toolbar controls of all four helpers
|
|
5326
|
+
* share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
|
|
5327
|
+
* the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
|
|
5328
|
+
* today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
|
|
5329
|
+
* ========================================================================= */
|
|
5330
|
+
|
|
5331
|
+
:where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
|
|
5332
|
+
max-inline-size: 100%;
|
|
5333
|
+
overflow-x: auto;
|
|
5334
|
+
}
|
|
5335
|
+
|
|
5336
|
+
:where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
|
|
5337
|
+
inline-size: max-content;
|
|
5338
|
+
min-inline-size: 100%;
|
|
5339
|
+
}
|
|
5340
|
+
|
|
5341
|
+
:where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
|
|
5342
|
+
.calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
|
|
5343
|
+
display: flex;
|
|
5344
|
+
flex-wrap: wrap;
|
|
5345
|
+
gap: var(--lily-space-sm);
|
|
5346
|
+
align-items: center;
|
|
5347
|
+
margin-block-end: var(--lily-space-sm);
|
|
5348
|
+
}
|
|
5349
|
+
|
|
5350
|
+
:where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
|
|
5351
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
5352
|
+
border: var(--border) solid var(--lily-border);
|
|
5353
|
+
border-radius: var(--lily-radius-sm);
|
|
5354
|
+
background-color: var(--lily-surface);
|
|
5355
|
+
color: var(--lily-text);
|
|
5356
|
+
font: inherit;
|
|
5357
|
+
min-block-size: 24px;
|
|
5358
|
+
}
|
|
5359
|
+
|
|
5360
|
+
:where(.kanban-board-export-button,
|
|
5361
|
+
.kanban-board-add-button,
|
|
5362
|
+
.kanban-board-undo-button,
|
|
5363
|
+
.kanban-board-collapse-button,
|
|
5364
|
+
.kanban-board-lane-toggle,
|
|
5365
|
+
.kanban-board-move-button,
|
|
5366
|
+
.gantt-chart-export-button,
|
|
5367
|
+
.gantt-chart-zoom-in-button,
|
|
5368
|
+
.gantt-chart-zoom-out-button,
|
|
5369
|
+
.gantt-chart-collapse-button,
|
|
5370
|
+
.gantt-chart-collapse-all-button,
|
|
5371
|
+
.gantt-chart-expand-all-button,
|
|
5372
|
+
.gantt-chart-save-button,
|
|
5373
|
+
.gantt-chart-cancel-button,
|
|
5374
|
+
.calendar-view-export-button,
|
|
5375
|
+
.calendar-view-previous-button,
|
|
5376
|
+
.calendar-view-next-button,
|
|
5377
|
+
.calendar-view-today-button,
|
|
5378
|
+
.calendar-view-switcher-button) {
|
|
5379
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
5380
|
+
border: var(--border) solid var(--lily-border);
|
|
5381
|
+
border-radius: var(--lily-radius-sm);
|
|
5382
|
+
background-color: var(--lily-surface);
|
|
5383
|
+
color: var(--lily-text);
|
|
5384
|
+
font: inherit;
|
|
5385
|
+
cursor: pointer;
|
|
5386
|
+
min-inline-size: 24px;
|
|
5387
|
+
min-block-size: 24px;
|
|
5388
|
+
}
|
|
5389
|
+
|
|
5390
|
+
:where(.kanban-board-export-button:disabled,
|
|
5391
|
+
.kanban-board-add-button:disabled,
|
|
5392
|
+
.kanban-board-undo-button:disabled,
|
|
5393
|
+
.gantt-chart-export-button:disabled,
|
|
5394
|
+
.gantt-chart-zoom-in-button:disabled,
|
|
5395
|
+
.gantt-chart-zoom-out-button:disabled,
|
|
5396
|
+
.calendar-view-export-button:disabled,
|
|
5397
|
+
.calendar-view-previous-button[aria-disabled="true"],
|
|
5398
|
+
.calendar-view-next-button[aria-disabled="true"]) {
|
|
5399
|
+
opacity: 0.5;
|
|
5400
|
+
cursor: not-allowed;
|
|
5401
|
+
}
|
|
5402
|
+
|
|
5403
|
+
:where(.calendar-view-switcher-button[aria-pressed="true"]) {
|
|
5404
|
+
background-color: var(--color-base-300);
|
|
5405
|
+
font-weight: 600;
|
|
5406
|
+
}
|
|
5407
|
+
|
|
5408
|
+
:where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
|
|
5409
|
+
margin-block-start: var(--lily-space-sm);
|
|
5410
|
+
font-size: 0.875em;
|
|
5411
|
+
opacity: 0.8;
|
|
5412
|
+
}
|
|
5413
|
+
|
|
5414
|
+
:where(.calendar-view-event) {
|
|
5415
|
+
display: block;
|
|
5416
|
+
padding: 0 var(--lily-space-xs);
|
|
5417
|
+
border-radius: var(--lily-radius-sm);
|
|
5418
|
+
background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
|
|
5419
|
+
font-size: 0.75rem;
|
|
5420
|
+
}
|
|
5421
|
+
|
|
5422
|
+
:where(.gantt-table-th) {
|
|
5423
|
+
min-inline-size: 2rem;
|
|
5424
|
+
padding-inline: 0.25rem;
|
|
5425
|
+
font-size: 0.75rem;
|
|
5426
|
+
text-align: center;
|
|
5427
|
+
white-space: nowrap;
|
|
5428
|
+
}
|
|
5429
|
+
|
|
5430
|
+
:where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
|
|
5431
|
+
min-inline-size: 10rem;
|
|
5432
|
+
padding-inline: var(--lily-space-sm);
|
|
5433
|
+
font-size: inherit;
|
|
5434
|
+
text-align: start;
|
|
5435
|
+
white-space: normal;
|
|
5436
|
+
}
|
|
5437
|
+
|
|
5438
|
+
:where(.gantt-table-td) {
|
|
5439
|
+
min-block-size: 1.7rem;
|
|
5440
|
+
padding: 0;
|
|
5441
|
+
}
|
|
5442
|
+
|
|
5443
|
+
:where(.gantt-table-td[data-in-range]) {
|
|
5444
|
+
background-color: var(--color-primary);
|
|
5445
|
+
/* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
|
|
5446
|
+
color: var(--color-primary-content);
|
|
5447
|
+
}
|
|
5448
|
+
|
|
5449
|
+
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
5450
|
+
clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
|
|
5451
|
+
}
|
|
5452
|
+
|
|
5453
|
+
:where(.gantt-table-td[data-today]) {
|
|
5454
|
+
border-inline-start: 2px solid var(--color-accent);
|
|
5455
|
+
}
|
|
5456
|
+
|
|
5457
|
+
/* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
|
|
5458
|
+
option up to a cap, then wrap, rather than clipping the name or running off a phone. */
|
|
5459
|
+
:where(.time-zone-picker-list) {
|
|
5460
|
+
inline-size: max-content;
|
|
5461
|
+
max-inline-size: min(26rem, 90vw);
|
|
5462
|
+
max-block-size: min(24rem, 70vh);
|
|
5463
|
+
overflow-y: auto;
|
|
5464
|
+
}
|
|
5465
|
+
|
|
5466
|
+
:where(.time-zone-picker-option) {
|
|
5467
|
+
overflow-wrap: anywhere;
|
|
5468
|
+
}
|
|
5469
|
+
|
|
5470
|
+
/* ============================================================================
|
|
5471
|
+
* Overflow navigation — shared verbatim by all themes.
|
|
5472
|
+
*
|
|
5473
|
+
* The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
|
|
5474
|
+
* With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
|
|
5475
|
+
* (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
|
|
5476
|
+
* the links that do not fit into the More list. That list is in normal flow (position
|
|
5477
|
+
* static, never absolute), so opening it pushes the content below down and never covers it
|
|
5478
|
+
* (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
|
|
5479
|
+
* specificity at zero, so any consumer rule wins.
|
|
5480
|
+
* ========================================================================= */
|
|
5481
|
+
|
|
5482
|
+
:where(.navigation-menu-list) {
|
|
5483
|
+
display: flex;
|
|
5484
|
+
flex: 1 1 auto;
|
|
5485
|
+
flex-wrap: wrap;
|
|
5486
|
+
align-items: flex-start;
|
|
5487
|
+
gap: 0.25rem 0.5rem;
|
|
5488
|
+
min-inline-size: 0;
|
|
5489
|
+
margin: 0;
|
|
5490
|
+
padding: 0;
|
|
5491
|
+
list-style: none;
|
|
5492
|
+
}
|
|
5493
|
+
|
|
5494
|
+
:where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
|
|
5495
|
+
display: inline-block;
|
|
5496
|
+
min-inline-size: 24px;
|
|
5497
|
+
min-block-size: 24px;
|
|
5498
|
+
}
|
|
5499
|
+
|
|
5500
|
+
:where(.navigation-menu-more) {
|
|
5501
|
+
position: static;
|
|
5502
|
+
}
|
|
5503
|
+
|
|
5504
|
+
:where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
|
|
5505
|
+
display: none;
|
|
5506
|
+
}
|
|
5507
|
+
|
|
5508
|
+
:where(.navigation-menu-more-button) {
|
|
5509
|
+
min-inline-size: 24px;
|
|
5510
|
+
min-block-size: 24px;
|
|
5511
|
+
padding: 0.25rem 0.5rem;
|
|
5512
|
+
font: inherit;
|
|
5513
|
+
color: inherit;
|
|
5514
|
+
background: transparent;
|
|
5515
|
+
border: 1px solid currentcolor;
|
|
5516
|
+
cursor: pointer;
|
|
5517
|
+
}
|
|
5518
|
+
|
|
5519
|
+
:where(.navigation-menu-more-list) {
|
|
5520
|
+
position: static;
|
|
5521
|
+
margin: 0.25rem 0 0;
|
|
5522
|
+
padding: 0;
|
|
5523
|
+
list-style: none;
|
|
5524
|
+
}
|
|
5525
|
+
|
|
5526
|
+
/* ============================================================================
|
|
5527
|
+
* Container queries — shared verbatim by all themes.
|
|
5528
|
+
*
|
|
5529
|
+
* A component answers to the space it is given, not to the window: a summary
|
|
5530
|
+
* list in a narrow aside on a wide screen needs the narrow layout, which the
|
|
5531
|
+
* viewport query above cannot know. The three grail-layout regions are the
|
|
5532
|
+
* containers because their width comes from a grid track (`minmax(0, 1fr)`), so
|
|
5533
|
+
* inline-size containment cannot collapse them. `.card` is deliberately not a
|
|
5534
|
+
* container: in a shrink-to-fit parent (a flex row, an inline grid) containment
|
|
5535
|
+
* would collapse it to nothing. A component outside a grail region has no
|
|
5536
|
+
* container and keeps its wide layout. :where() keeps specificity at zero, so
|
|
5537
|
+
* any consumer rule wins.
|
|
5538
|
+
* ========================================================================= */
|
|
5539
|
+
|
|
5540
|
+
:where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
|
|
5541
|
+
container-type: inline-size;
|
|
5542
|
+
}
|
|
5543
|
+
|
|
5544
|
+
/* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
|
|
5545
|
+
window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
|
|
5546
|
+
Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
|
|
5547
|
+
(at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
|
|
5548
|
+
right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
|
|
5549
|
+
hidden, so all content stays reachable. */
|
|
5550
|
+
@media (max-width: 64rem) {
|
|
5551
|
+
:where(.grail-layout) {
|
|
5552
|
+
grid-template-areas:
|
|
5553
|
+
"header header"
|
|
5554
|
+
"left main"
|
|
5555
|
+
"right right"
|
|
5556
|
+
"footer footer";
|
|
5557
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
|
|
5558
|
+
grid-template-rows: auto auto auto auto;
|
|
5559
|
+
}
|
|
5560
|
+
}
|
|
5561
|
+
|
|
5562
|
+
@media (max-width: 48rem) {
|
|
5563
|
+
:where(.grail-layout) {
|
|
5564
|
+
grid-template-areas:
|
|
5565
|
+
"header"
|
|
5566
|
+
"left"
|
|
5567
|
+
"main"
|
|
5568
|
+
"right"
|
|
5569
|
+
"footer";
|
|
5570
|
+
grid-template-columns: minmax(0, 1fr);
|
|
5571
|
+
grid-template-rows: auto auto auto auto auto;
|
|
5572
|
+
}
|
|
5573
|
+
}
|
|
5574
|
+
|
|
5575
|
+
@container (max-width: 30rem) {
|
|
5576
|
+
:where(.summary-list) {
|
|
5577
|
+
grid-template-columns: minmax(0, 1fr);
|
|
5578
|
+
row-gap: 0.25rem;
|
|
5579
|
+
}
|
|
5580
|
+
|
|
5581
|
+
:where(.kanban-table-td) {
|
|
5582
|
+
min-width: 10rem;
|
|
5583
|
+
}
|
|
5584
|
+
|
|
5585
|
+
:where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
|
|
5586
|
+
padding-inline: 0.5rem;
|
|
5587
|
+
}
|
|
5588
|
+
}
|
|
5589
|
+
|
|
5590
|
+
/* ============================================================================
|
|
5591
|
+
* Focus not obscured — shared verbatim by all themes.
|
|
5592
|
+
*
|
|
5593
|
+
* WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
|
|
5594
|
+
* entirely hidden by author-created content, such as a bar fixed to the top or
|
|
5595
|
+
* bottom of the viewport. The browser scrolls a focused control into view, but
|
|
5596
|
+
* only as far as the edge of the viewport, which is where a fixed bar sits.
|
|
5597
|
+
* `scroll-padding` moves that edge in by the bar's height.
|
|
5598
|
+
*
|
|
5599
|
+
* Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
|
|
5600
|
+
* theme's or an app's own fixed header, a mobile bottom navigation) sets the
|
|
5601
|
+
* bar's height on the root element:
|
|
5602
|
+
*
|
|
5603
|
+
* --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
|
|
5604
|
+
* --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
|
|
5605
|
+
*
|
|
5606
|
+
* With both bars, set both. The defaults are 0px, so a page without a fixed bar
|
|
5607
|
+
* is unchanged. Specificity is zero (`:where`), so an app's own
|
|
5608
|
+
* `scroll-padding` wins.
|
|
5609
|
+
* ========================================================================= */
|
|
5610
|
+
|
|
5611
|
+
:where(html) {
|
|
5612
|
+
scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
|
|
5613
|
+
}
|
|
5614
|
+
|
|
5615
|
+
/* ============================================================================
|
|
5616
|
+
* Text size and motion preferences — shared verbatim by all themes.
|
|
5617
|
+
*
|
|
5618
|
+
* The text-size-picker sets `data-text-size` on the root and the motion-picker
|
|
5619
|
+
* sets `data-motion`; neither styles anything itself. These rules are what make
|
|
5620
|
+
* the choice visible.
|
|
5621
|
+
*
|
|
5622
|
+
* Text size: the seven steps scale the root font size, and every theme sizes in
|
|
5623
|
+
* `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
|
|
5624
|
+
* own browser setting), and the scale is percentages of that, never pixels, so
|
|
5625
|
+
* a viewer who raised their browser font size keeps it. The steps below
|
|
5626
|
+
* `normal` are the viewer's explicit choice.
|
|
5627
|
+
*
|
|
5628
|
+
* Motion: `data-motion="reduce"` shortens every animation and transition to
|
|
5629
|
+
* 0.01ms instead of removing it. The end state still arrives and `animationend`
|
|
5630
|
+
* / `transitionend` still fire, so nothing that depends on them breaks and no
|
|
5631
|
+
* information is lost: a spinner's `role="status"` text, a disclosure's open
|
|
5632
|
+
* state and a toast's content are untouched. Scrolling is instant.
|
|
5633
|
+
* ========================================================================= */
|
|
5634
|
+
|
|
5635
|
+
:where(html[data-text-size="smallest"]) { font-size: 80%; }
|
|
5636
|
+
:where(html[data-text-size="smaller"]) { font-size: 90%; }
|
|
5637
|
+
:where(html[data-text-size="small"]) { font-size: 95%; }
|
|
5638
|
+
:where(html[data-text-size="normal"]) { font-size: 100%; }
|
|
5639
|
+
:where(html[data-text-size="large"]) { font-size: 110%; }
|
|
5640
|
+
:where(html[data-text-size="larger"]) { font-size: 125%; }
|
|
5641
|
+
:where(html[data-text-size="largest"]) { font-size: 150%; }
|
|
5642
|
+
|
|
5643
|
+
:where(html[data-motion="reduce"]) {
|
|
5644
|
+
scroll-behavior: auto;
|
|
5645
|
+
}
|
|
5646
|
+
:where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
|
|
5647
|
+
animation-duration: 0.01ms !important;
|
|
5648
|
+
animation-iteration-count: 1 !important;
|
|
5649
|
+
animation-delay: 0s !important;
|
|
5650
|
+
transition-duration: 0.01ms !important;
|
|
5651
|
+
transition-delay: 0s !important;
|
|
5652
|
+
scroll-behavior: auto !important;
|
|
5653
|
+
}
|
|
5654
|
+
|
|
5655
|
+
/* ============================================================================
|
|
5656
|
+
* Forced colours and contrast preference — shared verbatim by all themes.
|
|
5657
|
+
*
|
|
5658
|
+
* Forced colours (Windows High Contrast, `forced-colors: active`): the browser
|
|
5659
|
+
* replaces every colour with a system colour, which erases anything a control
|
|
5660
|
+
* told apart by background alone. These rules give such controls a border,
|
|
5661
|
+
* keep the focus ring, and mark selected and current items with `Highlight`
|
|
5662
|
+
* and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
|
|
5663
|
+
*
|
|
5664
|
+
* Contrast preference (`prefers-contrast: more`): a heavier border on controls
|
|
5665
|
+
* and a thicker focus ring. Colours are not changed here; a theme's colours are
|
|
5666
|
+
* its author's decision.
|
|
5667
|
+
* ========================================================================= */
|
|
5668
|
+
|
|
5669
|
+
@media (forced-colors: active) {
|
|
5670
|
+
:where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
|
|
5671
|
+
border: 1px solid ButtonBorder;
|
|
5672
|
+
}
|
|
5673
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
5674
|
+
outline: 3px solid Highlight;
|
|
5675
|
+
outline-offset: 2px;
|
|
5676
|
+
}
|
|
5677
|
+
:where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
|
|
5678
|
+
background: SelectedItem;
|
|
5679
|
+
color: SelectedItemText;
|
|
5680
|
+
forced-color-adjust: none;
|
|
5681
|
+
}
|
|
5682
|
+
:where([aria-current]:not([aria-current="false"])) {
|
|
5683
|
+
outline: 2px solid Highlight;
|
|
5684
|
+
outline-offset: -2px;
|
|
5685
|
+
}
|
|
5686
|
+
:where(:disabled, [aria-disabled="true"]) {
|
|
5687
|
+
border-color: GrayText;
|
|
5688
|
+
color: GrayText;
|
|
5689
|
+
}
|
|
5690
|
+
}
|
|
5691
|
+
|
|
5692
|
+
@media (prefers-contrast: more) {
|
|
5693
|
+
:where(button, input, select, textarea, [role="button"], [class$="-button"]) {
|
|
5694
|
+
border-width: 2px;
|
|
5695
|
+
border-style: solid;
|
|
5696
|
+
border-color: currentColor;
|
|
5697
|
+
}
|
|
5698
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
5699
|
+
outline-width: 3px;
|
|
5700
|
+
outline-offset: 2px;
|
|
5701
|
+
}
|
|
5702
|
+
}
|
|
5703
|
+
|
|
5704
|
+
/* ============================================================================
|
|
5705
|
+
* Writing systems — shared verbatim by all themes.
|
|
5706
|
+
*
|
|
5707
|
+
* A theme names its Latin font stack (`--lily-font-body-latin`). This section
|
|
5708
|
+
* builds `--lily-font-body` from it, with the system fonts of the element's
|
|
5709
|
+
* script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
|
|
5710
|
+
* Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
|
|
5711
|
+
* scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
|
|
5712
|
+
* Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
|
|
5713
|
+
* Chinese and Japanese but drawn differently, so the language picks the font,
|
|
5714
|
+
* not the script.
|
|
5715
|
+
*
|
|
5716
|
+
* `--lily-font-body` is re-declared on every element with a `lang`, so a
|
|
5717
|
+
* `<p lang="ja">` inside an English page gets Japanese fonts and a
|
|
5718
|
+
* `<span lang="en">` inside it gets none. A language not listed here keeps the
|
|
5719
|
+
* Latin stack, whose final generic family the browser resolves per language.
|
|
5720
|
+
*
|
|
5721
|
+
* `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
|
|
5722
|
+
* and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
|
|
5723
|
+
* Elements with a `lang` use it; the app's body text should too.
|
|
5724
|
+
*
|
|
5725
|
+
* To change a theme's font, set `--lily-font-body-latin`; to change a script's,
|
|
5726
|
+
* set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
|
|
5727
|
+
* itself still works on the element you set it on.
|
|
5728
|
+
* ========================================================================= */
|
|
5729
|
+
|
|
5730
|
+
:where(:root, [lang]) {
|
|
5731
|
+
--lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
|
|
5732
|
+
--lily-line-height-body: 1.5;
|
|
5733
|
+
}
|
|
5734
|
+
|
|
5735
|
+
:where([lang]) {
|
|
5736
|
+
--lily-font-script: initial;
|
|
5737
|
+
line-height: var(--lily-line-height-body);
|
|
5738
|
+
}
|
|
5739
|
+
|
|
5740
|
+
:where([lang|="zh"], [lang|="wuu"]) {
|
|
5741
|
+
--lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
|
|
5742
|
+
}
|
|
5743
|
+
:where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
|
|
5744
|
+
--lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
|
|
5745
|
+
}
|
|
5746
|
+
:where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
|
|
5747
|
+
--lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
|
|
5748
|
+
}
|
|
5749
|
+
:where([lang|="ja"]) {
|
|
5750
|
+
--lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
|
|
5751
|
+
}
|
|
5752
|
+
:where([lang|="ko"]) {
|
|
5753
|
+
--lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
|
|
5754
|
+
}
|
|
5755
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
|
|
5756
|
+
--lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
|
|
5757
|
+
}
|
|
5758
|
+
:where([lang|="ur"]) {
|
|
5759
|
+
--lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
|
|
5760
|
+
}
|
|
5761
|
+
:where([lang|="he"], [lang|="yi"]) {
|
|
5762
|
+
--lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
|
|
5763
|
+
}
|
|
5764
|
+
:where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
|
|
5765
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
|
|
5766
|
+
}
|
|
5767
|
+
:where([lang|="bn"], [lang|="as"]) {
|
|
5768
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
|
|
5769
|
+
}
|
|
5770
|
+
:where([lang|="gu"]) {
|
|
5771
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
|
|
5772
|
+
}
|
|
5773
|
+
:where([lang|="pa"]) {
|
|
5774
|
+
--lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
|
|
5775
|
+
}
|
|
5776
|
+
:where([lang|="kn"]) {
|
|
5777
|
+
--lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
|
|
5778
|
+
}
|
|
5779
|
+
:where([lang|="ta"]) {
|
|
5780
|
+
--lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
|
|
5781
|
+
}
|
|
5782
|
+
:where([lang|="te"]) {
|
|
5783
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
|
|
5784
|
+
}
|
|
5785
|
+
:where([lang|="th"]) {
|
|
5786
|
+
--lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
|
|
5787
|
+
}
|
|
5788
|
+
:where([lang|="lo"]) {
|
|
5789
|
+
--lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
|
|
5790
|
+
}
|
|
5791
|
+
:where([lang|="km"]) {
|
|
5792
|
+
--lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
|
|
5793
|
+
}
|
|
5794
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
|
|
5795
|
+
[lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
|
|
5796
|
+
[lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
|
|
5797
|
+
[lang|="lo"], [lang|="km"]) {
|
|
5798
|
+
--lily-line-height-body: 1.75;
|
|
5799
|
+
}
|