@lilydesignsystem/themes 0.6.0 → 0.6.2
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 +635 -22
- package/dist/acid.css +634 -21
- package/dist/adobe-spectrum.css +636 -23
- package/dist/ant-design.css +634 -21
- package/dist/aqua.css +636 -23
- package/dist/atlassian.css +634 -21
- package/dist/australia-agriculture-design-system.css +4575 -0
- package/dist/autumn.css +636 -23
- package/dist/black.css +635 -22
- package/dist/brazil-padrao-digital-de-governo.css +4575 -0
- package/dist/bumblebee.css +637 -24
- package/dist/business.css +635 -22
- package/dist/canada-government-of-canada-design-system.css +4575 -0
- package/dist/cappuccino.css +634 -21
- package/dist/caramellatte.css +635 -22
- package/dist/cmyk.css +634 -21
- package/dist/coffee.css +634 -21
- package/dist/corporate.css +638 -25
- package/dist/cupcake.css +635 -22
- package/dist/cyberpunk.css +634 -21
- package/dist/dark.css +636 -23
- package/dist/dim.css +634 -21
- package/dist/dracula.css +634 -21
- package/dist/emerald.css +635 -22
- package/dist/european-union-europa-component-library.css +4575 -0
- package/dist/excel.css +634 -21
- package/dist/fantasy.css +635 -22
- package/dist/fluent.css +634 -21
- package/dist/forest.css +634 -21
- package/dist/garden.css +636 -23
- package/dist/github-primer.css +634 -21
- package/dist/halloween.css +635 -22
- package/dist/ibm-carbon.css +634 -21
- package/dist/japan-digital-agency-design-system.css +4575 -0
- package/dist/lemonade.css +634 -21
- package/dist/light.css +635 -22
- package/dist/linear.css +634 -21
- package/dist/lofi.css +634 -21
- package/dist/luxury.css +634 -21
- package/dist/mozilla-protocol.css +636 -23
- package/dist/night.css +634 -21
- package/dist/nord.css +634 -21
- package/dist/notion.css +634 -21
- package/dist/pastel.css +641 -28
- package/dist/retro.css +638 -25
- package/dist/salesforce.css +634 -21
- package/dist/sap-fiori.css +634 -21
- package/dist/silk.css +635 -22
- package/dist/singapore-government-design-system.css +4575 -0
- package/dist/sunset.css +634 -21
- package/dist/synthwave.css +634 -21
- package/dist/united-kingdom-government-digital-service.css +634 -21
- package/dist/united-kingdom-national-health-service-england-for-patients.css +658 -32
- package/dist/united-kingdom-national-health-service-england-for-practitioners.css +656 -30
- package/dist/united-kingdom-national-health-service-scotland-for-patients.css +669 -40
- package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +664 -35
- package/dist/united-kingdom-national-health-service-wales-for-patients.css +669 -38
- package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +662 -31
- package/dist/united-states-web-design-system.css +635 -22
- package/dist/valentine.css +638 -25
- package/dist/vercel.css +634 -21
- package/dist/winter.css +635 -22
- package/dist/wireframe.css +634 -21
- package/index.md +8 -4
- package/package.json +2 -2
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/* ============================================================================
|
|
2
2
|
* NHS England (United Kingdom) Design System
|
|
3
3
|
* ----------------------------------------------------------------------------
|
|
4
|
-
* Upstream tracked:
|
|
5
|
-
*
|
|
4
|
+
* Upstream tracked: nhsuk-frontend 10.7.1 (npm, published 2026-10-29;
|
|
5
|
+
* re-baselined from 9.x on 2026-10-29 against the package's Sass
|
|
6
|
+
* settings and CHANGELOG; v10 has been stable since 10.0.0 on
|
|
7
|
+
* 2025-08-26). Independent
|
|
6
8
|
* implementation against Lily class hooks; not affiliated with or
|
|
7
9
|
* endorsed by the NHS.
|
|
8
10
|
*
|
|
@@ -13,9 +15,13 @@
|
|
|
13
15
|
* - NHS frontend tokens (Sass source):
|
|
14
16
|
* https://github.com/nhsuk/nhsuk-frontend
|
|
15
17
|
* - Typography: Frutiger W01 (primary), Arial / system-ui fallback
|
|
16
|
-
* - Base font size: 16px
|
|
17
|
-
*
|
|
18
|
-
* -
|
|
18
|
+
* - Base font size: 16px; nhsuk-frontend 10 type scale points (tablet px):
|
|
19
|
+
* 14 / 16 / 19 / 22 / 26 / 36 / 48 / 64 (point 24 was removed in 10.0.0)
|
|
20
|
+
* - nhsuk-frontend 10 spacing points (px): 0, 4, 8, 16, 24, 32, 40, 48, 56, 64
|
|
21
|
+
* (unchanged from 9.x)
|
|
22
|
+
* - WCAG 2.2 AAA target. Upstream focus style (unchanged in v10): #FFEB3B
|
|
23
|
+
* fill with a 4px #212B32 bar (`$nhsuk-focus-width`); this theme's own
|
|
24
|
+
* focus ring is `--lily-focus-ring` below
|
|
19
25
|
*
|
|
20
26
|
* Brand palette (sRGB → OKLCH conversions used below)
|
|
21
27
|
* NHS Blue #005EB8 primary brand colour
|
|
@@ -30,7 +36,9 @@
|
|
|
30
36
|
* NHS White #FFFFFF page background
|
|
31
37
|
* NHS Warm Yellow #FFB81C warning / focus indicator
|
|
32
38
|
* NHS Emergency Red #DA291C error / destructive action
|
|
33
|
-
* NHS Green
|
|
39
|
+
* NHS.UK Green #007F3B success / confirmation (nhsuk-frontend 10
|
|
40
|
+
* `$nhsuk-success-colour`; was NHS Identity
|
|
41
|
+
* green #009639 until 2026-10-29)
|
|
34
42
|
* NHS Dark Green #006747 success hover
|
|
35
43
|
*
|
|
36
44
|
* Geometry rules (NHS frontend defaults)
|
|
@@ -113,9 +121,12 @@
|
|
|
113
121
|
/* ---- Success (NHS Green)
|
|
114
122
|
-------------------------------------------- */ /*
|
|
115
123
|
Confirmation, completed-step, "you have been booked"
|
|
116
|
-
panels. */ /* NHS
|
|
117
|
-
|
|
118
|
-
|
|
124
|
+
panels. */ /* NHS.UK frontend green #007F3B, nhsuk-frontend
|
|
125
|
+
10.7.1 `$nhsuk-success-colour` (core/settings/_colours-
|
|
126
|
+
applied.scss, new in v10). Re-baselined 2026-10-29 from NHS
|
|
127
|
+
Identity green #009639, which gave white content 4.37:1
|
|
128
|
+
(below AA); white content is now 5.19:1. */
|
|
129
|
+
--color-success: oklch(52% 0.14 151);
|
|
119
130
|
--color-success-content: oklch(100% 0 0);
|
|
120
131
|
/* ---- Warning (NHS Warm Yellow)
|
|
121
132
|
-------------------------------------- */ /* Caution
|
|
@@ -146,14 +157,24 @@
|
|
|
146
157
|
/* Inner padding hints for selectors and fields (Lily sizing). */
|
|
147
158
|
--size-selector: 0.25rem;
|
|
148
159
|
--size-field: 0.25rem;
|
|
149
|
-
/* Border width: 1px hairline,
|
|
150
|
-
|
|
160
|
+
/* Border width: 1px hairline, Lily's own hairline, not an
|
|
161
|
+
upstream value: nhsuk-frontend 10 has no `$nhsuk-border-
|
|
162
|
+
width-form`; its form controls use `$nhsuk-border-width-
|
|
163
|
+
form-element` (2px). */
|
|
151
164
|
--border: 1px;
|
|
152
165
|
/* Depth & noise off — NHS guidance avoids shadows and
|
|
153
166
|
textures so */ /* the interface looks clinical, calm, and
|
|
154
167
|
easy to read. */
|
|
155
168
|
--depth: 0;
|
|
156
169
|
--noise: 0;
|
|
170
|
+
/* Fluid inline gutter for page containers and the main
|
|
171
|
+
region: grows with the viewport from a 1rem floor to a 2rem
|
|
172
|
+
ceiling. Spacing only, never text. */
|
|
173
|
+
--space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
|
|
174
|
+
/* Fluid gap between sections (stacks and grids): grows with
|
|
175
|
+
the viewport from a 1rem floor to a 2rem ceiling. Spacing
|
|
176
|
+
only, never text. */
|
|
177
|
+
--space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
|
|
157
178
|
}
|
|
158
179
|
|
|
159
180
|
/* ----------------------------------------------------------------------------
|
|
@@ -252,7 +273,7 @@
|
|
|
252
273
|
/* --- Typography ---------------------------------------------------- */
|
|
253
274
|
/* Body font stack — system fonts first so consumers get a
|
|
254
275
|
native-feeling baseline without shipping a web font. */
|
|
255
|
-
--lily-font-body:
|
|
276
|
+
--lily-font-body-latin:
|
|
256
277
|
system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
|
|
257
278
|
Arial, sans-serif;
|
|
258
279
|
/* Monospaced font stack — used by code, kbd, identifiers, and
|
|
@@ -359,9 +380,12 @@
|
|
|
359
380
|
}
|
|
360
381
|
|
|
361
382
|
/* Invalid input — red border. The `aria-invalid="true"` attribute is the
|
|
362
|
-
ARIA contract
|
|
363
|
-
|
|
364
|
-
|
|
383
|
+
ARIA contract (server-rendered errors); `:user-invalid` is the native
|
|
384
|
+
state that matches only after the user has interacted, so a required
|
|
385
|
+
field is not styled invalid on load. Pairing a colour change with the
|
|
386
|
+
ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
|
|
387
|
+
:where([class$="-input"], .input)[aria-invalid="true"],
|
|
388
|
+
:where([class$="-input"], .input):user-invalid {
|
|
365
389
|
border-color: var(--color-error);
|
|
366
390
|
}
|
|
367
391
|
|
|
@@ -1505,13 +1529,17 @@
|
|
|
1505
1529
|
padding: 0.75rem 1rem;
|
|
1506
1530
|
}
|
|
1507
1531
|
|
|
1508
|
-
/* Sticky promo —
|
|
1532
|
+
/* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
|
|
1533
|
+
the component's own bottom: 0 it would stretch over the whole page and take every click. */
|
|
1509
1534
|
:where(.sticky-promo-banner) {
|
|
1510
1535
|
position: sticky;
|
|
1511
|
-
inset-block-start: 0;
|
|
1512
1536
|
z-index: 10;
|
|
1513
1537
|
}
|
|
1514
1538
|
|
|
1539
|
+
:where(.sticky-promo-banner:not([data-position="bottom"])) {
|
|
1540
|
+
inset-block-start: 0;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1515
1543
|
/* Error message — inline form-validation message. */
|
|
1516
1544
|
:where(.error-message) {
|
|
1517
1545
|
color: var(--lily-error-text);
|
|
@@ -1591,7 +1619,7 @@
|
|
|
1591
1619
|
display: block;
|
|
1592
1620
|
width: 100%;
|
|
1593
1621
|
margin-inline: auto;
|
|
1594
|
-
padding-inline:
|
|
1622
|
+
padding-inline: var(--space-fluid-gutter);
|
|
1595
1623
|
box-sizing: border-box;
|
|
1596
1624
|
}
|
|
1597
1625
|
/* Fixed-width — caps at a comfortable reading width (~1152px). */
|
|
@@ -1611,11 +1639,11 @@
|
|
|
1611
1639
|
:where(.flex-stack) {
|
|
1612
1640
|
display: flex;
|
|
1613
1641
|
flex-direction: column;
|
|
1614
|
-
gap:
|
|
1642
|
+
gap: var(--space-fluid-section);
|
|
1615
1643
|
}
|
|
1616
1644
|
:where(.grid) {
|
|
1617
1645
|
display: grid;
|
|
1618
|
-
gap:
|
|
1646
|
+
gap: var(--space-fluid-section);
|
|
1619
1647
|
}
|
|
1620
1648
|
:where(.masonry) {
|
|
1621
1649
|
column-count: 3;
|
|
@@ -1670,7 +1698,7 @@
|
|
|
1670
1698
|
:where(.content-block) {
|
|
1671
1699
|
max-width: var(--content-width-normal);
|
|
1672
1700
|
margin-inline: auto;
|
|
1673
|
-
padding-inline:
|
|
1701
|
+
padding-inline: var(--space-fluid-gutter);
|
|
1674
1702
|
box-sizing: border-box;
|
|
1675
1703
|
}
|
|
1676
1704
|
:where(.content-block[data-width="narrower"]) {
|
|
@@ -1688,7 +1716,8 @@
|
|
|
1688
1716
|
|
|
1689
1717
|
/* --- Grail layout (5-region responsive page shell) --------------------- */
|
|
1690
1718
|
/* Header spans the top; left-aside / main / right-aside fill the middle;
|
|
1691
|
-
footer spans the bottom.
|
|
1719
|
+
footer spans the bottom. The collapse as the window narrows is in the shared
|
|
1720
|
+
container section at the end of this file. */
|
|
1692
1721
|
:where(.grail-layout) {
|
|
1693
1722
|
display: grid;
|
|
1694
1723
|
min-height: 100vh;
|
|
@@ -1728,15 +1757,7 @@
|
|
|
1728
1757
|
}
|
|
1729
1758
|
/* Main content area — primary surface, more generous padding. */
|
|
1730
1759
|
:where(.grail-layout-center-main) {
|
|
1731
|
-
padding:
|
|
1732
|
-
}
|
|
1733
|
-
/* Mobile breakpoint — collapse to a single column, stacking the regions. */
|
|
1734
|
-
@media (max-width: 48rem) {
|
|
1735
|
-
:where(.grail-layout) {
|
|
1736
|
-
grid-template-areas: "header" "main" "left" "right" "footer";
|
|
1737
|
-
grid-template-columns: 1fr;
|
|
1738
|
-
grid-template-rows: auto auto auto auto auto;
|
|
1739
|
-
}
|
|
1760
|
+
padding: var(--space-fluid-gutter);
|
|
1740
1761
|
}
|
|
1741
1762
|
|
|
1742
1763
|
/* Standalone semantic header / footer landmarks. */
|
|
@@ -1827,6 +1848,15 @@
|
|
|
1827
1848
|
/* Drawers — side panels (right edge by default; RTL-aware via logical
|
|
1828
1849
|
properties). Sit above the overlay container (z-index 101). */
|
|
1829
1850
|
:where(.drawer, .slide-out-drawer, .sheet) {
|
|
1851
|
+
/* These are <dialog> elements opened with showModal() (P18-T6): undo the
|
|
1852
|
+
browser's centred-box defaults so the panel docks to the edge. */
|
|
1853
|
+
margin: 0;
|
|
1854
|
+
border: 0;
|
|
1855
|
+
inset-inline-start: auto;
|
|
1856
|
+
max-block-size: none;
|
|
1857
|
+
max-inline-size: none;
|
|
1858
|
+
block-size: 100%;
|
|
1859
|
+
box-sizing: border-box;
|
|
1830
1860
|
position: fixed;
|
|
1831
1861
|
inset-block: 0;
|
|
1832
1862
|
inset-inline-end: 0;
|
|
@@ -1839,6 +1869,10 @@
|
|
|
1839
1869
|
z-index: 101;
|
|
1840
1870
|
}
|
|
1841
1871
|
|
|
1872
|
+
:where(.drawer, .slide-out-drawer, .sheet)::backdrop {
|
|
1873
|
+
background-color: color-mix(in oklch, black 50%, transparent);
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1842
1876
|
/* ==========================================================================
|
|
1843
1877
|
* Menus
|
|
1844
1878
|
* ====================================================================== */
|
|
@@ -1891,7 +1925,7 @@
|
|
|
1891
1925
|
gap: 0.25rem;
|
|
1892
1926
|
}
|
|
1893
1927
|
/* Hamburger — bordered icon-button. */
|
|
1894
|
-
:where(.hamburger-menu) {
|
|
1928
|
+
:where(.hamburger-menu > button) {
|
|
1895
1929
|
display: inline-flex;
|
|
1896
1930
|
align-items: center;
|
|
1897
1931
|
justify-content: center;
|
|
@@ -2867,6 +2901,56 @@
|
|
|
2867
2901
|
}
|
|
2868
2902
|
}
|
|
2869
2903
|
|
|
2904
|
+
/* A closed popover stays closed. Author `display` beats the browser's own rule for a closed popover, so the
|
|
2905
|
+
menu rule above would otherwise leave every closed dropdown-menu and context-menu on the page. */
|
|
2906
|
+
:where([popover]:not(:popover-open)) {
|
|
2907
|
+
display: none;
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
/* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
|
|
2911
|
+
browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
|
|
2912
|
+
where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
|
|
2913
|
+
open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
|
|
2914
|
+
hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
|
|
2915
|
+
`position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
|
|
2916
|
+
position-area: with no anchor, position-area does nothing and a static position can be off screen. */
|
|
2917
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
|
|
2918
|
+
display: none;
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
|
|
2922
|
+
display: none;
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
@supports (position-area: block-end) {
|
|
2926
|
+
:where(.cascader-trigger) { anchor-name: --lily-cascader; }
|
|
2927
|
+
:where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
|
|
2928
|
+
:where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
|
|
2929
|
+
:where(.combobox > input) { anchor-name: --lily-combobox; }
|
|
2930
|
+
:where(.cascader-panel) { position-anchor: --lily-cascader; }
|
|
2931
|
+
:where(.tree-select-panel) { position-anchor: --lily-tree-select; }
|
|
2932
|
+
:where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
|
|
2933
|
+
:where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
|
|
2934
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
2935
|
+
position: fixed;
|
|
2936
|
+
inset: auto;
|
|
2937
|
+
margin: 0;
|
|
2938
|
+
position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
|
|
2939
|
+
width: max-content;
|
|
2940
|
+
max-width: calc(100vw - 1rem);
|
|
2941
|
+
}
|
|
2942
|
+
:where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
2943
|
+
inset-block-start: anchor(end, 25%);
|
|
2944
|
+
inset-inline-start: anchor(start, 25%);
|
|
2945
|
+
}
|
|
2946
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
2947
|
+
position-area: block-end span-inline-end;
|
|
2948
|
+
}
|
|
2949
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
2950
|
+
min-inline-size: anchor-size(inline);
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2870
2954
|
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2871
2955
|
> :where(
|
|
2872
2956
|
.theme-picker-option,
|
|
@@ -3823,6 +3907,81 @@
|
|
|
3823
3907
|
min-block-size: 24px;
|
|
3824
3908
|
}
|
|
3825
3909
|
|
|
3910
|
+
/* ============================================================================
|
|
3911
|
+
* Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
|
|
3912
|
+
*
|
|
3913
|
+
* Where the primary pointer is coarse (a finger), interactive hooks are at least
|
|
3914
|
+
* 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
|
|
3915
|
+
* buttons, form fields, checkboxes and radios, and the link-shaped navigation
|
|
3916
|
+
* hooks. Links inside running text are exempt, so bare `a` is not listed. The
|
|
3917
|
+
* query is the capability, never a viewport width. :where() keeps specificity
|
|
3918
|
+
* at zero, so any consumer rule still wins.
|
|
3919
|
+
* ========================================================================= */
|
|
3920
|
+
|
|
3921
|
+
@media (pointer: coarse) {
|
|
3922
|
+
:where(button,
|
|
3923
|
+
[role="button"],
|
|
3924
|
+
[role="tab"],
|
|
3925
|
+
[role="option"],
|
|
3926
|
+
[role="menuitem"],
|
|
3927
|
+
[class*="-picker-button"],
|
|
3928
|
+
summary,
|
|
3929
|
+
input:not([type="hidden"]),
|
|
3930
|
+
select,
|
|
3931
|
+
textarea,
|
|
3932
|
+
.action-link,
|
|
3933
|
+
.back-link,
|
|
3934
|
+
.breadcrumb-list-item > a,
|
|
3935
|
+
.pagination-list-item > a,
|
|
3936
|
+
.contents-list-item > a,
|
|
3937
|
+
.section-list-item > a) {
|
|
3938
|
+
min-inline-size: 44px;
|
|
3939
|
+
min-block-size: 44px;
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
|
|
3943
|
+
/* ============================================================================
|
|
3944
|
+
* Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
|
|
3945
|
+
*
|
|
3946
|
+
* --lily-brand is the identity's decorative colour: a header band, a rule, a
|
|
3947
|
+
* logo background. It is NEVER a text colour or a control's boundary, because a
|
|
3948
|
+
* brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
|
|
3949
|
+
* text drawn on it. By default they follow the theme's primary pair, which every
|
|
3950
|
+
* theme keeps readable; an adopter whose brand colour is lighter or darker sets
|
|
3951
|
+
* both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
|
|
3952
|
+
* content pairs (--color-base-content, --lily-error-text and so on).
|
|
3953
|
+
* ========================================================================== */
|
|
3954
|
+
|
|
3955
|
+
:where(:root) {
|
|
3956
|
+
--lily-brand: var(--color-primary);
|
|
3957
|
+
--lily-on-brand: var(--color-primary-content);
|
|
3958
|
+
}
|
|
3959
|
+
|
|
3960
|
+
/* ============================================================================
|
|
3961
|
+
* Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
|
|
3962
|
+
*
|
|
3963
|
+
* The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
|
|
3964
|
+
* adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
|
|
3965
|
+
* and no clear-space rule, because national and local guidelines disagree: a
|
|
3966
|
+
* theme or the adopter sets --lily-logo-clear-space (padding around the mark)
|
|
3967
|
+
* and --lily-logo-min-size (its smallest inline size). Both are unset by
|
|
3968
|
+
* default, so nothing changes until one is set.
|
|
3969
|
+
* ========================================================================== */
|
|
3970
|
+
|
|
3971
|
+
@layer lily {
|
|
3972
|
+
:where([data-lily-logo]) {
|
|
3973
|
+
display: inline-block;
|
|
3974
|
+
padding: var(--lily-logo-clear-space, 0);
|
|
3975
|
+
}
|
|
3976
|
+
|
|
3977
|
+
:where([data-lily-logo] > img, [data-lily-logo] > svg) {
|
|
3978
|
+
display: block;
|
|
3979
|
+
min-inline-size: var(--lily-logo-min-size, 0);
|
|
3980
|
+
max-inline-size: 100%;
|
|
3981
|
+
block-size: auto;
|
|
3982
|
+
}
|
|
3983
|
+
}
|
|
3984
|
+
|
|
3826
3985
|
/* ============================================================================
|
|
3827
3986
|
* Overflow guards — narrow-viewport safety, shared verbatim by all themes.
|
|
3828
3987
|
*
|
|
@@ -3851,6 +4010,140 @@
|
|
|
3851
4010
|
overflow-wrap: anywhere;
|
|
3852
4011
|
}
|
|
3853
4012
|
|
|
4013
|
+
/* ============================================================================
|
|
4014
|
+
* Scoped overflow — shared verbatim by all themes.
|
|
4015
|
+
*
|
|
4016
|
+
* Long unbroken strings (a national identifier, an email address, a URL) and
|
|
4017
|
+
* grid/flex tracks that refuse to shrink are the usual causes of horizontal
|
|
4018
|
+
* page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
|
|
4019
|
+
* `overflow-wrap: anywhere` on the places a long value lands (table cells are
|
|
4020
|
+
* covered by Overflow guards above), and `min-inline-size: 0` on the direct
|
|
4021
|
+
* children of Lily's grid and flex containers so a child can shrink below its
|
|
4022
|
+
* content. The identifier `-view` list below is the catalog's 70 national
|
|
4023
|
+
* identifier views (components-categories.tsv); bin/check-theme fails when it
|
|
4024
|
+
* drifts from the catalog. :where() keeps specificity at zero.
|
|
4025
|
+
* ========================================================================= */
|
|
4026
|
+
|
|
4027
|
+
:where(
|
|
4028
|
+
.alba-community-health-index-view,
|
|
4029
|
+
.australia-individual-healthcare-identifier-view,
|
|
4030
|
+
.belgique-numero-de-registre-national-view,
|
|
4031
|
+
.bulgaria-edinen-grazhdanski-nomer-view,
|
|
4032
|
+
.cesko-cestovni-pas-view,
|
|
4033
|
+
.cesko-rodne-cislo-view,
|
|
4034
|
+
.cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
|
|
4035
|
+
.kypros-national-passport-number-view,
|
|
4036
|
+
.danmark-personnummer-view,
|
|
4037
|
+
.deutschland-krankenversichertennummer-view,
|
|
4038
|
+
.eesti-isikukood-view,
|
|
4039
|
+
.ellada-dematerialised-securities-system-view,
|
|
4040
|
+
.england-national-health-service-number-view,
|
|
4041
|
+
.espana-codigo-de-identificacion-fiscal-view,
|
|
4042
|
+
.espana-tarjeta-sanitaria-individual-view,
|
|
4043
|
+
.france-numero-d-identification-au-repertoire-view,
|
|
4044
|
+
.hrvatska-osobni-identifikacijski-broj-view,
|
|
4045
|
+
.eire-individual-health-identifier-view,
|
|
4046
|
+
.island-kennitala-view,
|
|
4047
|
+
.italia-codice-fiscale-view,
|
|
4048
|
+
.latvija-personas-kods-view,
|
|
4049
|
+
.liechtenstein-national-identity-card-number-view,
|
|
4050
|
+
.liechtenstein-passport-number-view,
|
|
4051
|
+
.lietuva-asmens-kodas-view,
|
|
4052
|
+
.lietuva-pasas-view,
|
|
4053
|
+
.malta-national-identification-number-view,
|
|
4054
|
+
.malta-passport-number-view,
|
|
4055
|
+
.nederland-burgerservice-nummer-view,
|
|
4056
|
+
.nederland-identiteitskaart-nummer-view,
|
|
4057
|
+
.nederland-paspoort-nummer-view,
|
|
4058
|
+
.norge-fodselsnummer-view,
|
|
4059
|
+
.tuaisceart-eireann-health-and-care-number-view,
|
|
4060
|
+
.polska-numer-identyfikacji-podatkowej-view,
|
|
4061
|
+
.polska-pesel-view,
|
|
4062
|
+
.portugal-numero-de-identificacao-fiscal-view,
|
|
4063
|
+
.portugal-passaporte-view,
|
|
4064
|
+
.romania-cod-numeric-personal-view,
|
|
4065
|
+
.romania-pasaport-view,
|
|
4066
|
+
.slovenija-emso-view,
|
|
4067
|
+
.slovensko-pas-view,
|
|
4068
|
+
.slovensko-rodne-cislo-view,
|
|
4069
|
+
.suomi-henkilotunnus-view,
|
|
4070
|
+
.sverige-personnummer-view,
|
|
4071
|
+
.iban-view,
|
|
4072
|
+
.united-kingdom-national-health-service-number-view,
|
|
4073
|
+
.united-kingdom-national-insurance-number-view,
|
|
4074
|
+
.united-states-social-security-number-view,
|
|
4075
|
+
.aotearoa-national-health-index-view,
|
|
4076
|
+
.pilipinas-philhealth-identification-number-view,
|
|
4077
|
+
.brasil-cartao-nacional-de-saude-view,
|
|
4078
|
+
.schweiz-ahv-nummer-view,
|
|
4079
|
+
.canada-social-insurance-number-view,
|
|
4080
|
+
.hanguk-jumin-deungnok-beonho-view,
|
|
4081
|
+
.nihon-kojin-bango-view,
|
|
4082
|
+
.bharat-aadhaar-view,
|
|
4083
|
+
.yisrael-teudat-zehut-view,
|
|
4084
|
+
.south-africa-identity-number-view,
|
|
4085
|
+
.mexico-clave-unica-de-registro-de-poblacion-view,
|
|
4086
|
+
.singapore-national-registration-identity-card-view,
|
|
4087
|
+
.osterreich-sozialversicherungsnummer-view,
|
|
4088
|
+
.magyarorszag-taj-szam-view,
|
|
4089
|
+
.luxembourg-matricule-view,
|
|
4090
|
+
.zhongguo-jumin-shenfenzheng-haoma-view,
|
|
4091
|
+
.rossiya-snils-view,
|
|
4092
|
+
.turkiye-tc-kimlik-numarasi-view,
|
|
4093
|
+
.argentina-codigo-unico-de-identificacion-laboral-view,
|
|
4094
|
+
.ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
|
|
4095
|
+
.indonesia-nomor-induk-kependudukan-view,
|
|
4096
|
+
.prathet-thai-lek-prajam-tua-prachachon-view,
|
|
4097
|
+
.chile-rol-unico-nacional-view,
|
|
4098
|
+
.taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
|
|
4099
|
+
.hong-kong-identity-card-view,
|
|
4100
|
+
.iran-kod-e-melli-view,
|
|
4101
|
+
.as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
|
|
4102
|
+
.malaysia-kad-pengenalan-view,
|
|
4103
|
+
.viet-nam-can-cuoc-cong-dan-view,
|
|
4104
|
+
.pakistan-computerized-national-identity-card-view,
|
|
4105
|
+
.uruguay-cedula-de-identidad-view,
|
|
4106
|
+
.ecuador-cedula-de-identidad-view,
|
|
4107
|
+
.colombia-cedula-de-ciudadania-view,
|
|
4108
|
+
.australia-tax-file-number-view,
|
|
4109
|
+
.nigeria-national-identification-number-view,
|
|
4110
|
+
.misr-al-raqm-al-qawmi-view
|
|
4111
|
+
) {
|
|
4112
|
+
overflow-wrap: anywhere;
|
|
4113
|
+
}
|
|
4114
|
+
|
|
4115
|
+
/* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
|
|
4116
|
+
:where(.summary-list, .summary-list-item, .description-list) {
|
|
4117
|
+
overflow-wrap: anywhere;
|
|
4118
|
+
}
|
|
4119
|
+
|
|
4120
|
+
:where(
|
|
4121
|
+
.grid,
|
|
4122
|
+
.flex-stack,
|
|
4123
|
+
.grail-layout,
|
|
4124
|
+
.summary-list,
|
|
4125
|
+
.summary-list-item,
|
|
4126
|
+
.description-list,
|
|
4127
|
+
.form,
|
|
4128
|
+
.editable-form,
|
|
4129
|
+
.field,
|
|
4130
|
+
.input-group,
|
|
4131
|
+
.button-group,
|
|
4132
|
+
.radio-group,
|
|
4133
|
+
.checkbox-group,
|
|
4134
|
+
.toggle-group,
|
|
4135
|
+
.tag-group,
|
|
4136
|
+
.split-view,
|
|
4137
|
+
.photo-pack,
|
|
4138
|
+
.data-filter-form,
|
|
4139
|
+
.action-bar,
|
|
4140
|
+
.tool-bar,
|
|
4141
|
+
.menu-bar,
|
|
4142
|
+
.tab-bar
|
|
4143
|
+
) > :where(*) {
|
|
4144
|
+
min-inline-size: 0;
|
|
4145
|
+
}
|
|
4146
|
+
|
|
3854
4147
|
/* ============================================================================
|
|
3855
4148
|
* Helper packages — layout and look, shared verbatim by all themes.
|
|
3856
4149
|
*
|
|
@@ -3978,6 +4271,8 @@
|
|
|
3978
4271
|
|
|
3979
4272
|
:where(.gantt-table-td[data-in-range]) {
|
|
3980
4273
|
background-color: var(--color-primary);
|
|
4274
|
+
/* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
|
|
4275
|
+
color: var(--color-primary-content);
|
|
3981
4276
|
}
|
|
3982
4277
|
|
|
3983
4278
|
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
@@ -4000,3 +4295,334 @@
|
|
|
4000
4295
|
:where(.time-zone-picker-option) {
|
|
4001
4296
|
overflow-wrap: anywhere;
|
|
4002
4297
|
}
|
|
4298
|
+
|
|
4299
|
+
/* ============================================================================
|
|
4300
|
+
* Overflow navigation — shared verbatim by all themes.
|
|
4301
|
+
*
|
|
4302
|
+
* The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
|
|
4303
|
+
* With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
|
|
4304
|
+
* (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
|
|
4305
|
+
* the links that do not fit into the More list. That list is in normal flow (position
|
|
4306
|
+
* static, never absolute), so opening it pushes the content below down and never covers it
|
|
4307
|
+
* (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
|
|
4308
|
+
* specificity at zero, so any consumer rule wins.
|
|
4309
|
+
* ========================================================================= */
|
|
4310
|
+
|
|
4311
|
+
:where(.navigation-menu-list) {
|
|
4312
|
+
display: flex;
|
|
4313
|
+
flex: 1 1 auto;
|
|
4314
|
+
flex-wrap: wrap;
|
|
4315
|
+
align-items: flex-start;
|
|
4316
|
+
gap: 0.25rem 0.5rem;
|
|
4317
|
+
min-inline-size: 0;
|
|
4318
|
+
margin: 0;
|
|
4319
|
+
padding: 0;
|
|
4320
|
+
list-style: none;
|
|
4321
|
+
}
|
|
4322
|
+
|
|
4323
|
+
:where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
|
|
4324
|
+
display: inline-block;
|
|
4325
|
+
min-inline-size: 24px;
|
|
4326
|
+
min-block-size: 24px;
|
|
4327
|
+
}
|
|
4328
|
+
|
|
4329
|
+
:where(.navigation-menu-more) {
|
|
4330
|
+
position: static;
|
|
4331
|
+
}
|
|
4332
|
+
|
|
4333
|
+
:where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
|
|
4334
|
+
display: none;
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4337
|
+
:where(.navigation-menu-more-button) {
|
|
4338
|
+
min-inline-size: 24px;
|
|
4339
|
+
min-block-size: 24px;
|
|
4340
|
+
padding: 0.25rem 0.5rem;
|
|
4341
|
+
font: inherit;
|
|
4342
|
+
color: inherit;
|
|
4343
|
+
background: transparent;
|
|
4344
|
+
border: 1px solid currentcolor;
|
|
4345
|
+
cursor: pointer;
|
|
4346
|
+
}
|
|
4347
|
+
|
|
4348
|
+
:where(.navigation-menu-more-list) {
|
|
4349
|
+
position: static;
|
|
4350
|
+
margin: 0.25rem 0 0;
|
|
4351
|
+
padding: 0;
|
|
4352
|
+
list-style: none;
|
|
4353
|
+
}
|
|
4354
|
+
|
|
4355
|
+
/* ============================================================================
|
|
4356
|
+
* Container queries — shared verbatim by all themes.
|
|
4357
|
+
*
|
|
4358
|
+
* A component answers to the space it is given, not to the window: a summary
|
|
4359
|
+
* list in a narrow aside on a wide screen needs the narrow layout, which the
|
|
4360
|
+
* viewport query above cannot know. The three grail-layout regions are the
|
|
4361
|
+
* containers because their width comes from a grid track (`minmax(0, 1fr)`), so
|
|
4362
|
+
* inline-size containment cannot collapse them. `.card` is deliberately not a
|
|
4363
|
+
* container: in a shrink-to-fit parent (a flex row, an inline grid) containment
|
|
4364
|
+
* would collapse it to nothing. A component outside a grail region has no
|
|
4365
|
+
* container and keeps its wide layout. :where() keeps specificity at zero, so
|
|
4366
|
+
* any consumer rule wins.
|
|
4367
|
+
* ========================================================================= */
|
|
4368
|
+
|
|
4369
|
+
:where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
|
|
4370
|
+
container-type: inline-size;
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4373
|
+
/* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
|
|
4374
|
+
window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
|
|
4375
|
+
Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
|
|
4376
|
+
(at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
|
|
4377
|
+
right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
|
|
4378
|
+
hidden, so all content stays reachable. */
|
|
4379
|
+
@media (max-width: 64rem) {
|
|
4380
|
+
:where(.grail-layout) {
|
|
4381
|
+
grid-template-areas:
|
|
4382
|
+
"header header"
|
|
4383
|
+
"left main"
|
|
4384
|
+
"right right"
|
|
4385
|
+
"footer footer";
|
|
4386
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
|
|
4387
|
+
grid-template-rows: auto auto auto auto;
|
|
4388
|
+
}
|
|
4389
|
+
}
|
|
4390
|
+
|
|
4391
|
+
@media (max-width: 48rem) {
|
|
4392
|
+
:where(.grail-layout) {
|
|
4393
|
+
grid-template-areas:
|
|
4394
|
+
"header"
|
|
4395
|
+
"left"
|
|
4396
|
+
"main"
|
|
4397
|
+
"right"
|
|
4398
|
+
"footer";
|
|
4399
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4400
|
+
grid-template-rows: auto auto auto auto auto;
|
|
4401
|
+
}
|
|
4402
|
+
}
|
|
4403
|
+
|
|
4404
|
+
@container (max-width: 30rem) {
|
|
4405
|
+
:where(.summary-list) {
|
|
4406
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4407
|
+
row-gap: 0.25rem;
|
|
4408
|
+
}
|
|
4409
|
+
|
|
4410
|
+
:where(.kanban-table-td) {
|
|
4411
|
+
min-width: 10rem;
|
|
4412
|
+
}
|
|
4413
|
+
|
|
4414
|
+
:where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
|
|
4415
|
+
padding-inline: 0.5rem;
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
|
|
4419
|
+
/* ============================================================================
|
|
4420
|
+
* Focus not obscured — shared verbatim by all themes.
|
|
4421
|
+
*
|
|
4422
|
+
* WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
|
|
4423
|
+
* entirely hidden by author-created content, such as a bar fixed to the top or
|
|
4424
|
+
* bottom of the viewport. The browser scrolls a focused control into view, but
|
|
4425
|
+
* only as far as the edge of the viewport, which is where a fixed bar sits.
|
|
4426
|
+
* `scroll-padding` moves that edge in by the bar's height.
|
|
4427
|
+
*
|
|
4428
|
+
* Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
|
|
4429
|
+
* theme's or an app's own fixed header, a mobile bottom navigation) sets the
|
|
4430
|
+
* bar's height on the root element:
|
|
4431
|
+
*
|
|
4432
|
+
* --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
|
|
4433
|
+
* --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
|
|
4434
|
+
*
|
|
4435
|
+
* With both bars, set both. The defaults are 0px, so a page without a fixed bar
|
|
4436
|
+
* is unchanged. Specificity is zero (`:where`), so an app's own
|
|
4437
|
+
* `scroll-padding` wins.
|
|
4438
|
+
* ========================================================================= */
|
|
4439
|
+
|
|
4440
|
+
:where(html) {
|
|
4441
|
+
scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
|
|
4442
|
+
}
|
|
4443
|
+
|
|
4444
|
+
/* ============================================================================
|
|
4445
|
+
* Text size and motion preferences — shared verbatim by all themes.
|
|
4446
|
+
*
|
|
4447
|
+
* The text-size-picker sets `data-text-size` on the root and the motion-picker
|
|
4448
|
+
* sets `data-motion`; neither styles anything itself. These rules are what make
|
|
4449
|
+
* the choice visible.
|
|
4450
|
+
*
|
|
4451
|
+
* Text size: the seven steps scale the root font size, and every theme sizes in
|
|
4452
|
+
* `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
|
|
4453
|
+
* own browser setting), and the scale is percentages of that, never pixels, so
|
|
4454
|
+
* a viewer who raised their browser font size keeps it. The steps below
|
|
4455
|
+
* `normal` are the viewer's explicit choice.
|
|
4456
|
+
*
|
|
4457
|
+
* Motion: `data-motion="reduce"` shortens every animation and transition to
|
|
4458
|
+
* 0.01ms instead of removing it. The end state still arrives and `animationend`
|
|
4459
|
+
* / `transitionend` still fire, so nothing that depends on them breaks and no
|
|
4460
|
+
* information is lost: a spinner's `role="status"` text, a disclosure's open
|
|
4461
|
+
* state and a toast's content are untouched. Scrolling is instant.
|
|
4462
|
+
* ========================================================================= */
|
|
4463
|
+
|
|
4464
|
+
:where(html[data-text-size="smallest"]) { font-size: 80%; }
|
|
4465
|
+
:where(html[data-text-size="smaller"]) { font-size: 90%; }
|
|
4466
|
+
:where(html[data-text-size="small"]) { font-size: 95%; }
|
|
4467
|
+
:where(html[data-text-size="normal"]) { font-size: 100%; }
|
|
4468
|
+
:where(html[data-text-size="large"]) { font-size: 110%; }
|
|
4469
|
+
:where(html[data-text-size="larger"]) { font-size: 125%; }
|
|
4470
|
+
:where(html[data-text-size="largest"]) { font-size: 150%; }
|
|
4471
|
+
|
|
4472
|
+
:where(html[data-motion="reduce"]) {
|
|
4473
|
+
scroll-behavior: auto;
|
|
4474
|
+
}
|
|
4475
|
+
:where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
|
|
4476
|
+
animation-duration: 0.01ms !important;
|
|
4477
|
+
animation-iteration-count: 1 !important;
|
|
4478
|
+
animation-delay: 0s !important;
|
|
4479
|
+
transition-duration: 0.01ms !important;
|
|
4480
|
+
transition-delay: 0s !important;
|
|
4481
|
+
scroll-behavior: auto !important;
|
|
4482
|
+
}
|
|
4483
|
+
|
|
4484
|
+
/* ============================================================================
|
|
4485
|
+
* Forced colours and contrast preference — shared verbatim by all themes.
|
|
4486
|
+
*
|
|
4487
|
+
* Forced colours (Windows High Contrast, `forced-colors: active`): the browser
|
|
4488
|
+
* replaces every colour with a system colour, which erases anything a control
|
|
4489
|
+
* told apart by background alone. These rules give such controls a border,
|
|
4490
|
+
* keep the focus ring, and mark selected and current items with `Highlight`
|
|
4491
|
+
* and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
|
|
4492
|
+
*
|
|
4493
|
+
* Contrast preference (`prefers-contrast: more`): a heavier border on controls
|
|
4494
|
+
* and a thicker focus ring. Colours are not changed here; a theme's colours are
|
|
4495
|
+
* its author's decision.
|
|
4496
|
+
* ========================================================================= */
|
|
4497
|
+
|
|
4498
|
+
@media (forced-colors: active) {
|
|
4499
|
+
:where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
|
|
4500
|
+
border: 1px solid ButtonBorder;
|
|
4501
|
+
}
|
|
4502
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4503
|
+
outline: 3px solid Highlight;
|
|
4504
|
+
outline-offset: 2px;
|
|
4505
|
+
}
|
|
4506
|
+
:where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
|
|
4507
|
+
background: SelectedItem;
|
|
4508
|
+
color: SelectedItemText;
|
|
4509
|
+
forced-color-adjust: none;
|
|
4510
|
+
}
|
|
4511
|
+
:where([aria-current]:not([aria-current="false"])) {
|
|
4512
|
+
outline: 2px solid Highlight;
|
|
4513
|
+
outline-offset: -2px;
|
|
4514
|
+
}
|
|
4515
|
+
:where(:disabled, [aria-disabled="true"]) {
|
|
4516
|
+
border-color: GrayText;
|
|
4517
|
+
color: GrayText;
|
|
4518
|
+
}
|
|
4519
|
+
}
|
|
4520
|
+
|
|
4521
|
+
@media (prefers-contrast: more) {
|
|
4522
|
+
:where(button, input, select, textarea, [role="button"], [class$="-button"]) {
|
|
4523
|
+
border-width: 2px;
|
|
4524
|
+
border-style: solid;
|
|
4525
|
+
border-color: currentColor;
|
|
4526
|
+
}
|
|
4527
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4528
|
+
outline-width: 3px;
|
|
4529
|
+
outline-offset: 2px;
|
|
4530
|
+
}
|
|
4531
|
+
}
|
|
4532
|
+
|
|
4533
|
+
/* ============================================================================
|
|
4534
|
+
* Writing systems — shared verbatim by all themes.
|
|
4535
|
+
*
|
|
4536
|
+
* A theme names its Latin font stack (`--lily-font-body-latin`). This section
|
|
4537
|
+
* builds `--lily-font-body` from it, with the system fonts of the element's
|
|
4538
|
+
* script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
|
|
4539
|
+
* Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
|
|
4540
|
+
* scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
|
|
4541
|
+
* Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
|
|
4542
|
+
* Chinese and Japanese but drawn differently, so the language picks the font,
|
|
4543
|
+
* not the script.
|
|
4544
|
+
*
|
|
4545
|
+
* `--lily-font-body` is re-declared on every element with a `lang`, so a
|
|
4546
|
+
* `<p lang="ja">` inside an English page gets Japanese fonts and a
|
|
4547
|
+
* `<span lang="en">` inside it gets none. A language not listed here keeps the
|
|
4548
|
+
* Latin stack, whose final generic family the browser resolves per language.
|
|
4549
|
+
*
|
|
4550
|
+
* `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
|
|
4551
|
+
* and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
|
|
4552
|
+
* Elements with a `lang` use it; the app's body text should too.
|
|
4553
|
+
*
|
|
4554
|
+
* To change a theme's font, set `--lily-font-body-latin`; to change a script's,
|
|
4555
|
+
* set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
|
|
4556
|
+
* itself still works on the element you set it on.
|
|
4557
|
+
* ========================================================================= */
|
|
4558
|
+
|
|
4559
|
+
:where(:root, [lang]) {
|
|
4560
|
+
--lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
|
|
4561
|
+
--lily-line-height-body: 1.5;
|
|
4562
|
+
}
|
|
4563
|
+
|
|
4564
|
+
:where([lang]) {
|
|
4565
|
+
--lily-font-script: initial;
|
|
4566
|
+
line-height: var(--lily-line-height-body);
|
|
4567
|
+
}
|
|
4568
|
+
|
|
4569
|
+
:where([lang|="zh"], [lang|="wuu"]) {
|
|
4570
|
+
--lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
|
|
4571
|
+
}
|
|
4572
|
+
:where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
|
|
4573
|
+
--lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
|
|
4574
|
+
}
|
|
4575
|
+
:where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
|
|
4576
|
+
--lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
|
|
4577
|
+
}
|
|
4578
|
+
:where([lang|="ja"]) {
|
|
4579
|
+
--lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
|
|
4580
|
+
}
|
|
4581
|
+
:where([lang|="ko"]) {
|
|
4582
|
+
--lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
|
|
4583
|
+
}
|
|
4584
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
|
|
4585
|
+
--lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
|
|
4586
|
+
}
|
|
4587
|
+
:where([lang|="ur"]) {
|
|
4588
|
+
--lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
|
|
4589
|
+
}
|
|
4590
|
+
:where([lang|="he"], [lang|="yi"]) {
|
|
4591
|
+
--lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
|
|
4592
|
+
}
|
|
4593
|
+
:where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
|
|
4594
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
|
|
4595
|
+
}
|
|
4596
|
+
:where([lang|="bn"], [lang|="as"]) {
|
|
4597
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
|
|
4598
|
+
}
|
|
4599
|
+
:where([lang|="gu"]) {
|
|
4600
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
|
|
4601
|
+
}
|
|
4602
|
+
:where([lang|="pa"]) {
|
|
4603
|
+
--lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
|
|
4604
|
+
}
|
|
4605
|
+
:where([lang|="kn"]) {
|
|
4606
|
+
--lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
|
|
4607
|
+
}
|
|
4608
|
+
:where([lang|="ta"]) {
|
|
4609
|
+
--lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
|
|
4610
|
+
}
|
|
4611
|
+
:where([lang|="te"]) {
|
|
4612
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
|
|
4613
|
+
}
|
|
4614
|
+
:where([lang|="th"]) {
|
|
4615
|
+
--lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
|
|
4616
|
+
}
|
|
4617
|
+
:where([lang|="lo"]) {
|
|
4618
|
+
--lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
|
|
4619
|
+
}
|
|
4620
|
+
:where([lang|="km"]) {
|
|
4621
|
+
--lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
|
|
4622
|
+
}
|
|
4623
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
|
|
4624
|
+
[lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
|
|
4625
|
+
[lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
|
|
4626
|
+
[lang|="lo"], [lang|="km"]) {
|
|
4627
|
+
--lily-line-height-body: 1.75;
|
|
4628
|
+
}
|