@lilydesignsystem/themes 0.6.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 +629 -22
- package/dist/acid.css +628 -21
- package/dist/adobe-spectrum.css +630 -23
- package/dist/ant-design.css +628 -21
- package/dist/aqua.css +630 -23
- package/dist/atlassian.css +628 -21
- package/dist/australia-agriculture-design-system.css +4569 -0
- package/dist/autumn.css +630 -23
- package/dist/black.css +629 -22
- package/dist/brazil-padrao-digital-de-governo.css +4569 -0
- package/dist/bumblebee.css +631 -24
- package/dist/business.css +629 -22
- package/dist/canada-government-of-canada-design-system.css +4569 -0
- package/dist/cappuccino.css +628 -21
- package/dist/caramellatte.css +629 -22
- package/dist/cmyk.css +628 -21
- package/dist/coffee.css +628 -21
- package/dist/corporate.css +632 -25
- package/dist/cupcake.css +629 -22
- package/dist/cyberpunk.css +628 -21
- package/dist/dark.css +630 -23
- package/dist/dim.css +628 -21
- package/dist/dracula.css +628 -21
- package/dist/emerald.css +629 -22
- package/dist/european-union-europa-component-library.css +4569 -0
- package/dist/excel.css +628 -21
- package/dist/fantasy.css +629 -22
- package/dist/fluent.css +628 -21
- package/dist/forest.css +628 -21
- package/dist/garden.css +630 -23
- package/dist/github-primer.css +628 -21
- package/dist/halloween.css +629 -22
- package/dist/ibm-carbon.css +628 -21
- package/dist/japan-digital-agency-design-system.css +4569 -0
- package/dist/lemonade.css +628 -21
- package/dist/light.css +629 -22
- package/dist/linear.css +628 -21
- package/dist/lofi.css +628 -21
- package/dist/luxury.css +628 -21
- package/dist/mozilla-protocol.css +630 -23
- package/dist/night.css +628 -21
- package/dist/nord.css +628 -21
- package/dist/notion.css +628 -21
- package/dist/pastel.css +635 -28
- package/dist/retro.css +632 -25
- package/dist/salesforce.css +628 -21
- package/dist/sap-fiori.css +628 -21
- package/dist/silk.css +629 -22
- package/dist/singapore-government-design-system.css +4569 -0
- package/dist/sunset.css +628 -21
- package/dist/synthwave.css +628 -21
- package/dist/united-kingdom-government-digital-service.css +628 -21
- package/dist/united-kingdom-national-health-service-england-for-patients.css +652 -32
- package/dist/united-kingdom-national-health-service-england-for-practitioners.css +650 -30
- package/dist/united-kingdom-national-health-service-scotland-for-patients.css +663 -40
- package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +658 -35
- package/dist/united-kingdom-national-health-service-wales-for-patients.css +663 -38
- package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +656 -31
- package/dist/united-states-web-design-system.css +629 -22
- package/dist/valentine.css +632 -25
- package/dist/vercel.css +628 -21
- package/dist/winter.css +629 -22
- package/dist/wireframe.css +628 -21
- package/index.md +8 -4
- package/package.json +2 -2
|
@@ -56,8 +56,10 @@
|
|
|
56
56
|
* more clinical reading of the same palette with magenta/violet
|
|
57
57
|
* callouts reserved for safety messaging.
|
|
58
58
|
*
|
|
59
|
-
* Upstream tracked:
|
|
60
|
-
*
|
|
59
|
+
* Upstream tracked: nhsuk-frontend 10.7.1 (npm, published 2026-10-29;
|
|
60
|
+
* re-baselined from 9.x on 2026-10-29 against the package's Sass
|
|
61
|
+
* settings and CHANGELOG; v10 has been stable since 10.0.0 on
|
|
62
|
+
* 2025-08-26). Independent
|
|
61
63
|
* implementation against Lily class hooks; not affiliated with or
|
|
62
64
|
* endorsed by the NHS.
|
|
63
65
|
*
|
|
@@ -75,10 +77,15 @@
|
|
|
75
77
|
* https://www.gov.scot/publications/digital-scotland-service-standard/
|
|
76
78
|
* - Typography: Frutiger W01 (primary, shared with NHS UK), Roboto for
|
|
77
79
|
* NHS Inform body copy, Arial / system-ui as the universal fallback.
|
|
78
|
-
* - Base font size: 16px;
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
80
|
+
* - Base font size: 16px; type scale follows nhsuk-frontend 10 (tablet
|
|
81
|
+
* px 14/16/19/22/26/36/48/64; point 24 was removed in 10.0.0) so
|
|
82
|
+
* components ported from the NHS UK frontend "just work".
|
|
83
|
+
* - Spacing: nhsuk-frontend 10 spacing points (px) are 0, 4, 8, 16, 24,
|
|
84
|
+
* 32, 40, 48, 56, 64 (`$nhsuk-spacing-points`, unchanged from 9.x).
|
|
85
|
+
* - Scotland: no NHS Scotland or NHS Inform frontend package is
|
|
86
|
+
* published (npm search, 2026-10-29), so this theme takes
|
|
87
|
+
* nhsuk-frontend plus the Scottish palette below, which keeps its own
|
|
88
|
+
* values.
|
|
82
89
|
* - WCAG 2.2 AA mandated by the Digital Scotland Service Standard;
|
|
83
90
|
* Lily targets AAA. The focus indicator below clears AAA at 3:1
|
|
84
91
|
* against every surface in the theme.
|
|
@@ -122,7 +129,10 @@
|
|
|
122
129
|
* NHS Emergency Red #DA291C error / destructive action, also
|
|
123
130
|
* the colour used on the "999" badge
|
|
124
131
|
* inside NHS Inform.
|
|
125
|
-
* NHS Green
|
|
132
|
+
* NHS.UK Green #007F3B success / confirmation (nhsuk-frontend
|
|
133
|
+
* 10 `$nhsuk-success-colour`; was NHS
|
|
134
|
+
* Identity green #009639 until
|
|
135
|
+
* 2026-10-29).
|
|
126
136
|
* NHS Dark Green #006747 success hover / pressed state.
|
|
127
137
|
*
|
|
128
138
|
* Geometry rules (shared with NHS UK frontend)
|
|
@@ -236,13 +246,17 @@
|
|
|
236
246
|
--color-info: oklch(54% 0.17 247);
|
|
237
247
|
--color-info-content: oklch(100% 0 0);
|
|
238
248
|
/* ---- Success (NHS Green)
|
|
239
|
-
-------------------------------------------- */ /* NHS
|
|
240
|
-
|
|
241
|
-
indicators */ /* ("you have been booked"), and the
|
|
242
|
-
state on form summaries. */ /* Identical role and
|
|
243
|
-
target as the NHS UK system so shared */ /*
|
|
244
|
-
carry the same meaning across the border.
|
|
245
|
-
|
|
249
|
+
-------------------------------------------- */ /* NHS.UK
|
|
250
|
+
frontend green #007F3B — confirmation panels, completed-
|
|
251
|
+
step indicators */ /* ("you have been booked"), and the
|
|
252
|
+
success state on form summaries. */ /* Identical role and
|
|
253
|
+
contrast target as the NHS UK system so shared */ /*
|
|
254
|
+
components carry the same meaning across the border. Re-
|
|
255
|
+
baselined 2026-10-29 to nhsuk-frontend 10.7.1 `$nhsuk-
|
|
256
|
+
success-colour` (core/settings/_colours-applied.scss, new
|
|
257
|
+
in v10); it was NHS Identity green #009639, which gave
|
|
258
|
+
white content 4.37:1 (below AA). Now 5.19:1. */
|
|
259
|
+
--color-success: oklch(52% 0.14 151);
|
|
246
260
|
--color-success-content: oklch(100% 0 0);
|
|
247
261
|
/* ---- Warning (NHS Warm Yellow)
|
|
248
262
|
-------------------------------------- */ /* NHS Warm
|
|
@@ -286,11 +300,13 @@
|
|
|
286
300
|
so */ /* checklist rows and field grids pack tightly. */
|
|
287
301
|
--size-selector: 0.125rem;
|
|
288
302
|
--size-field: 0.125rem;
|
|
289
|
-
/* Border width: 1px hairline,
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
303
|
+
/* Border width: 1px hairline, Lily's own hairline, not an
|
|
304
|
+
upstream value: nhsuk-frontend 10 has no `$nhsuk-border-
|
|
305
|
+
width-form`; its form controls use `$nhsuk-border-width-
|
|
306
|
+
form-element` (2px). */ /* The hairline is the smallest
|
|
307
|
+
legible border on the LCDs used in */ /* clinical settings;
|
|
308
|
+
going to 0.5px loses the edge on non-Retina */ /*
|
|
309
|
+
workstation displays still common in NHS estate. */
|
|
294
310
|
--border: 1px;
|
|
295
311
|
/* Depth & noise off — NHS Scotland identity guidance, like
|
|
296
312
|
NHS UK, */ /* avoids shadows, gradients, and textures so
|
|
@@ -299,6 +315,14 @@
|
|
|
299
315
|
settings. */
|
|
300
316
|
--depth: 0;
|
|
301
317
|
--noise: 0;
|
|
318
|
+
/* Fluid inline gutter for page containers and the main
|
|
319
|
+
region: grows with the viewport from a 1rem floor to a 2rem
|
|
320
|
+
ceiling. Spacing only, never text. */
|
|
321
|
+
--space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
|
|
322
|
+
/* Fluid gap between sections (stacks and grids): grows with
|
|
323
|
+
the viewport from a 1rem floor to a 2rem ceiling. Spacing
|
|
324
|
+
only, never text. */
|
|
325
|
+
--space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
|
|
302
326
|
}
|
|
303
327
|
|
|
304
328
|
/* ----------------------------------------------------------------------------
|
|
@@ -400,7 +424,7 @@
|
|
|
400
424
|
/* --- Typography ---------------------------------------------------- */
|
|
401
425
|
/* Body font stack — system fonts first so consumers get a
|
|
402
426
|
native-feeling baseline without shipping a web font. */
|
|
403
|
-
--lily-font-body:
|
|
427
|
+
--lily-font-body-latin:
|
|
404
428
|
system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
|
|
405
429
|
Arial, sans-serif;
|
|
406
430
|
/* Monospaced font stack — used by code, kbd, identifiers, and
|
|
@@ -527,9 +551,12 @@
|
|
|
527
551
|
}
|
|
528
552
|
|
|
529
553
|
/* Invalid input — red border. The `aria-invalid="true"` attribute is the
|
|
530
|
-
ARIA contract
|
|
531
|
-
|
|
532
|
-
|
|
554
|
+
ARIA contract (server-rendered errors); `:user-invalid` is the native
|
|
555
|
+
state that matches only after the user has interacted, so a required
|
|
556
|
+
field is not styled invalid on load. Pairing a colour change with the
|
|
557
|
+
ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
|
|
558
|
+
:where([class$="-input"], .input)[aria-invalid="true"],
|
|
559
|
+
:where([class$="-input"], .input):user-invalid {
|
|
533
560
|
border-color: var(--color-error);
|
|
534
561
|
}
|
|
535
562
|
|
|
@@ -1686,13 +1713,17 @@
|
|
|
1686
1713
|
padding: 0.25rem 0.5rem;
|
|
1687
1714
|
}
|
|
1688
1715
|
|
|
1689
|
-
/* Sticky promo —
|
|
1716
|
+
/* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
|
|
1717
|
+
the component's own bottom: 0 it would stretch over the whole page and take every click. */
|
|
1690
1718
|
:where(.sticky-promo-banner) {
|
|
1691
1719
|
position: sticky;
|
|
1692
|
-
inset-block-start: 0;
|
|
1693
1720
|
z-index: 10;
|
|
1694
1721
|
}
|
|
1695
1722
|
|
|
1723
|
+
:where(.sticky-promo-banner:not([data-position="bottom"])) {
|
|
1724
|
+
inset-block-start: 0;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1696
1727
|
/* Error message — inline form-validation message. */
|
|
1697
1728
|
:where(.error-message) {
|
|
1698
1729
|
color: var(--lily-error-text);
|
|
@@ -1871,7 +1902,8 @@
|
|
|
1871
1902
|
|
|
1872
1903
|
/* --- Grail layout (5-region responsive page shell) --------------------- */
|
|
1873
1904
|
/* Header spans the top; left-aside / main / right-aside fill the middle;
|
|
1874
|
-
footer spans the bottom.
|
|
1905
|
+
footer spans the bottom. The collapse as the window narrows is in the shared
|
|
1906
|
+
container section at the end of this file. */
|
|
1875
1907
|
:where(.grail-layout) {
|
|
1876
1908
|
display: grid;
|
|
1877
1909
|
min-height: 100vh;
|
|
@@ -1914,14 +1946,6 @@
|
|
|
1914
1946
|
:where(.grail-layout-center-main) {
|
|
1915
1947
|
padding: 0.75rem;
|
|
1916
1948
|
}
|
|
1917
|
-
/* Mobile breakpoint — collapse to a single column, stacking the regions. */
|
|
1918
|
-
@media (max-width: 48rem) {
|
|
1919
|
-
:where(.grail-layout) {
|
|
1920
|
-
grid-template-areas: "header" "main" "left" "right" "footer";
|
|
1921
|
-
grid-template-columns: 1fr;
|
|
1922
|
-
grid-template-rows: auto auto auto auto auto;
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
1949
|
|
|
1926
1950
|
/* Standalone semantic header / footer landmarks. */
|
|
1927
1951
|
:where(.header) {
|
|
@@ -2011,6 +2035,15 @@
|
|
|
2011
2035
|
/* Drawers — side panels (right edge by default; RTL-aware via logical
|
|
2012
2036
|
properties). Sit above the overlay container (z-index 101). */
|
|
2013
2037
|
:where(.drawer, .slide-out-drawer, .sheet) {
|
|
2038
|
+
/* These are <dialog> elements opened with showModal() (P18-T6): undo the
|
|
2039
|
+
browser's centred-box defaults so the panel docks to the edge. */
|
|
2040
|
+
margin: 0;
|
|
2041
|
+
border: 0;
|
|
2042
|
+
inset-inline-start: auto;
|
|
2043
|
+
max-block-size: none;
|
|
2044
|
+
max-inline-size: none;
|
|
2045
|
+
block-size: 100%;
|
|
2046
|
+
box-sizing: border-box;
|
|
2014
2047
|
position: fixed;
|
|
2015
2048
|
inset-block: 0;
|
|
2016
2049
|
inset-inline-end: 0;
|
|
@@ -2023,6 +2056,10 @@
|
|
|
2023
2056
|
z-index: 101;
|
|
2024
2057
|
}
|
|
2025
2058
|
|
|
2059
|
+
:where(.drawer, .slide-out-drawer, .sheet)::backdrop {
|
|
2060
|
+
background-color: color-mix(in oklch, black 50%, transparent);
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2026
2063
|
/* ==========================================================================
|
|
2027
2064
|
* Menus
|
|
2028
2065
|
* ====================================================================== */
|
|
@@ -2075,7 +2112,7 @@
|
|
|
2075
2112
|
gap: 0.25rem;
|
|
2076
2113
|
}
|
|
2077
2114
|
/* Hamburger — bordered icon-button. */
|
|
2078
|
-
:where(.hamburger-menu) {
|
|
2115
|
+
:where(.hamburger-menu > button) {
|
|
2079
2116
|
display: inline-flex;
|
|
2080
2117
|
align-items: center;
|
|
2081
2118
|
justify-content: center;
|
|
@@ -3054,6 +3091,50 @@
|
|
|
3054
3091
|
}
|
|
3055
3092
|
}
|
|
3056
3093
|
|
|
3094
|
+
/* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
|
|
3095
|
+
browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
|
|
3096
|
+
where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
|
|
3097
|
+
open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
|
|
3098
|
+
hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
|
|
3099
|
+
`position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
|
|
3100
|
+
position-area: with no anchor, position-area does nothing and a static position can be off screen. */
|
|
3101
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
|
|
3102
|
+
display: none;
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
|
|
3106
|
+
display: none;
|
|
3107
|
+
}
|
|
3108
|
+
|
|
3109
|
+
@supports (position-area: block-end) {
|
|
3110
|
+
:where(.cascader-trigger) { anchor-name: --lily-cascader; }
|
|
3111
|
+
:where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
|
|
3112
|
+
:where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
|
|
3113
|
+
:where(.combobox > input) { anchor-name: --lily-combobox; }
|
|
3114
|
+
:where(.cascader-panel) { position-anchor: --lily-cascader; }
|
|
3115
|
+
:where(.tree-select-panel) { position-anchor: --lily-tree-select; }
|
|
3116
|
+
:where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
|
|
3117
|
+
:where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
|
|
3118
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
3119
|
+
position: fixed;
|
|
3120
|
+
inset: auto;
|
|
3121
|
+
margin: 0;
|
|
3122
|
+
position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
|
|
3123
|
+
width: max-content;
|
|
3124
|
+
max-width: calc(100vw - 1rem);
|
|
3125
|
+
}
|
|
3126
|
+
:where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
3127
|
+
inset-block-start: anchor(end, 25%);
|
|
3128
|
+
inset-inline-start: anchor(start, 25%);
|
|
3129
|
+
}
|
|
3130
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
3131
|
+
position-area: block-end span-inline-end;
|
|
3132
|
+
}
|
|
3133
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
3134
|
+
min-inline-size: anchor-size(inline);
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3057
3138
|
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
3058
3139
|
> :where(
|
|
3059
3140
|
.theme-picker-option,
|
|
@@ -4012,6 +4093,81 @@
|
|
|
4012
4093
|
min-block-size: 24px;
|
|
4013
4094
|
}
|
|
4014
4095
|
|
|
4096
|
+
/* ============================================================================
|
|
4097
|
+
* Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
|
|
4098
|
+
*
|
|
4099
|
+
* Where the primary pointer is coarse (a finger), interactive hooks are at least
|
|
4100
|
+
* 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
|
|
4101
|
+
* buttons, form fields, checkboxes and radios, and the link-shaped navigation
|
|
4102
|
+
* hooks. Links inside running text are exempt, so bare `a` is not listed. The
|
|
4103
|
+
* query is the capability, never a viewport width. :where() keeps specificity
|
|
4104
|
+
* at zero, so any consumer rule still wins.
|
|
4105
|
+
* ========================================================================= */
|
|
4106
|
+
|
|
4107
|
+
@media (pointer: coarse) {
|
|
4108
|
+
:where(button,
|
|
4109
|
+
[role="button"],
|
|
4110
|
+
[role="tab"],
|
|
4111
|
+
[role="option"],
|
|
4112
|
+
[role="menuitem"],
|
|
4113
|
+
[class*="-picker-button"],
|
|
4114
|
+
summary,
|
|
4115
|
+
input:not([type="hidden"]),
|
|
4116
|
+
select,
|
|
4117
|
+
textarea,
|
|
4118
|
+
.action-link,
|
|
4119
|
+
.back-link,
|
|
4120
|
+
.breadcrumb-list-item > a,
|
|
4121
|
+
.pagination-list-item > a,
|
|
4122
|
+
.contents-list-item > a,
|
|
4123
|
+
.section-list-item > a) {
|
|
4124
|
+
min-inline-size: 44px;
|
|
4125
|
+
min-block-size: 44px;
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
/* ============================================================================
|
|
4130
|
+
* Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
|
|
4131
|
+
*
|
|
4132
|
+
* --lily-brand is the identity's decorative colour: a header band, a rule, a
|
|
4133
|
+
* logo background. It is NEVER a text colour or a control's boundary, because a
|
|
4134
|
+
* brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
|
|
4135
|
+
* text drawn on it. By default they follow the theme's primary pair, which every
|
|
4136
|
+
* theme keeps readable; an adopter whose brand colour is lighter or darker sets
|
|
4137
|
+
* both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
|
|
4138
|
+
* content pairs (--color-base-content, --lily-error-text and so on).
|
|
4139
|
+
* ========================================================================== */
|
|
4140
|
+
|
|
4141
|
+
:where(:root) {
|
|
4142
|
+
--lily-brand: var(--color-primary);
|
|
4143
|
+
--lily-on-brand: var(--color-primary-content);
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
/* ============================================================================
|
|
4147
|
+
* Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
|
|
4148
|
+
*
|
|
4149
|
+
* The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
|
|
4150
|
+
* adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
|
|
4151
|
+
* and no clear-space rule, because national and local guidelines disagree: a
|
|
4152
|
+
* theme or the adopter sets --lily-logo-clear-space (padding around the mark)
|
|
4153
|
+
* and --lily-logo-min-size (its smallest inline size). Both are unset by
|
|
4154
|
+
* default, so nothing changes until one is set.
|
|
4155
|
+
* ========================================================================== */
|
|
4156
|
+
|
|
4157
|
+
@layer lily {
|
|
4158
|
+
:where([data-lily-logo]) {
|
|
4159
|
+
display: inline-block;
|
|
4160
|
+
padding: var(--lily-logo-clear-space, 0);
|
|
4161
|
+
}
|
|
4162
|
+
|
|
4163
|
+
:where([data-lily-logo] > img, [data-lily-logo] > svg) {
|
|
4164
|
+
display: block;
|
|
4165
|
+
min-inline-size: var(--lily-logo-min-size, 0);
|
|
4166
|
+
max-inline-size: 100%;
|
|
4167
|
+
block-size: auto;
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4015
4171
|
/* ============================================================================
|
|
4016
4172
|
* Overflow guards — narrow-viewport safety, shared verbatim by all themes.
|
|
4017
4173
|
*
|
|
@@ -4040,6 +4196,140 @@
|
|
|
4040
4196
|
overflow-wrap: anywhere;
|
|
4041
4197
|
}
|
|
4042
4198
|
|
|
4199
|
+
/* ============================================================================
|
|
4200
|
+
* Scoped overflow — shared verbatim by all themes.
|
|
4201
|
+
*
|
|
4202
|
+
* Long unbroken strings (a national identifier, an email address, a URL) and
|
|
4203
|
+
* grid/flex tracks that refuse to shrink are the usual causes of horizontal
|
|
4204
|
+
* page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
|
|
4205
|
+
* `overflow-wrap: anywhere` on the places a long value lands (table cells are
|
|
4206
|
+
* covered by Overflow guards above), and `min-inline-size: 0` on the direct
|
|
4207
|
+
* children of Lily's grid and flex containers so a child can shrink below its
|
|
4208
|
+
* content. The identifier `-view` list below is the catalog's 70 national
|
|
4209
|
+
* identifier views (components-categories.tsv); bin/check-theme fails when it
|
|
4210
|
+
* drifts from the catalog. :where() keeps specificity at zero.
|
|
4211
|
+
* ========================================================================= */
|
|
4212
|
+
|
|
4213
|
+
:where(
|
|
4214
|
+
.alba-community-health-index-view,
|
|
4215
|
+
.australia-individual-healthcare-identifier-view,
|
|
4216
|
+
.belgique-numero-de-registre-national-view,
|
|
4217
|
+
.bulgaria-edinen-grazhdanski-nomer-view,
|
|
4218
|
+
.cesko-cestovni-pas-view,
|
|
4219
|
+
.cesko-rodne-cislo-view,
|
|
4220
|
+
.cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
|
|
4221
|
+
.kypros-national-passport-number-view,
|
|
4222
|
+
.danmark-personnummer-view,
|
|
4223
|
+
.deutschland-krankenversichertennummer-view,
|
|
4224
|
+
.eesti-isikukood-view,
|
|
4225
|
+
.ellada-dematerialised-securities-system-view,
|
|
4226
|
+
.england-national-health-service-number-view,
|
|
4227
|
+
.espana-codigo-de-identificacion-fiscal-view,
|
|
4228
|
+
.espana-tarjeta-sanitaria-individual-view,
|
|
4229
|
+
.france-numero-d-identification-au-repertoire-view,
|
|
4230
|
+
.hrvatska-osobni-identifikacijski-broj-view,
|
|
4231
|
+
.eire-individual-health-identifier-view,
|
|
4232
|
+
.island-kennitala-view,
|
|
4233
|
+
.italia-codice-fiscale-view,
|
|
4234
|
+
.latvija-personas-kods-view,
|
|
4235
|
+
.liechtenstein-national-identity-card-number-view,
|
|
4236
|
+
.liechtenstein-passport-number-view,
|
|
4237
|
+
.lietuva-asmens-kodas-view,
|
|
4238
|
+
.lietuva-pasas-view,
|
|
4239
|
+
.malta-national-identification-number-view,
|
|
4240
|
+
.malta-passport-number-view,
|
|
4241
|
+
.nederland-burgerservice-nummer-view,
|
|
4242
|
+
.nederland-identiteitskaart-nummer-view,
|
|
4243
|
+
.nederland-paspoort-nummer-view,
|
|
4244
|
+
.norge-fodselsnummer-view,
|
|
4245
|
+
.tuaisceart-eireann-health-and-care-number-view,
|
|
4246
|
+
.polska-numer-identyfikacji-podatkowej-view,
|
|
4247
|
+
.polska-pesel-view,
|
|
4248
|
+
.portugal-numero-de-identificacao-fiscal-view,
|
|
4249
|
+
.portugal-passaporte-view,
|
|
4250
|
+
.romania-cod-numeric-personal-view,
|
|
4251
|
+
.romania-pasaport-view,
|
|
4252
|
+
.slovenija-emso-view,
|
|
4253
|
+
.slovensko-pas-view,
|
|
4254
|
+
.slovensko-rodne-cislo-view,
|
|
4255
|
+
.suomi-henkilotunnus-view,
|
|
4256
|
+
.sverige-personnummer-view,
|
|
4257
|
+
.iban-view,
|
|
4258
|
+
.united-kingdom-national-health-service-number-view,
|
|
4259
|
+
.united-kingdom-national-insurance-number-view,
|
|
4260
|
+
.united-states-social-security-number-view,
|
|
4261
|
+
.aotearoa-national-health-index-view,
|
|
4262
|
+
.pilipinas-philhealth-identification-number-view,
|
|
4263
|
+
.brasil-cartao-nacional-de-saude-view,
|
|
4264
|
+
.schweiz-ahv-nummer-view,
|
|
4265
|
+
.canada-social-insurance-number-view,
|
|
4266
|
+
.hanguk-jumin-deungnok-beonho-view,
|
|
4267
|
+
.nihon-kojin-bango-view,
|
|
4268
|
+
.bharat-aadhaar-view,
|
|
4269
|
+
.yisrael-teudat-zehut-view,
|
|
4270
|
+
.south-africa-identity-number-view,
|
|
4271
|
+
.mexico-clave-unica-de-registro-de-poblacion-view,
|
|
4272
|
+
.singapore-national-registration-identity-card-view,
|
|
4273
|
+
.osterreich-sozialversicherungsnummer-view,
|
|
4274
|
+
.magyarorszag-taj-szam-view,
|
|
4275
|
+
.luxembourg-matricule-view,
|
|
4276
|
+
.zhongguo-jumin-shenfenzheng-haoma-view,
|
|
4277
|
+
.rossiya-snils-view,
|
|
4278
|
+
.turkiye-tc-kimlik-numarasi-view,
|
|
4279
|
+
.argentina-codigo-unico-de-identificacion-laboral-view,
|
|
4280
|
+
.ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
|
|
4281
|
+
.indonesia-nomor-induk-kependudukan-view,
|
|
4282
|
+
.prathet-thai-lek-prajam-tua-prachachon-view,
|
|
4283
|
+
.chile-rol-unico-nacional-view,
|
|
4284
|
+
.taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
|
|
4285
|
+
.hong-kong-identity-card-view,
|
|
4286
|
+
.iran-kod-e-melli-view,
|
|
4287
|
+
.as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
|
|
4288
|
+
.malaysia-kad-pengenalan-view,
|
|
4289
|
+
.viet-nam-can-cuoc-cong-dan-view,
|
|
4290
|
+
.pakistan-computerized-national-identity-card-view,
|
|
4291
|
+
.uruguay-cedula-de-identidad-view,
|
|
4292
|
+
.ecuador-cedula-de-identidad-view,
|
|
4293
|
+
.colombia-cedula-de-ciudadania-view,
|
|
4294
|
+
.australia-tax-file-number-view,
|
|
4295
|
+
.nigeria-national-identification-number-view,
|
|
4296
|
+
.misr-al-raqm-al-qawmi-view
|
|
4297
|
+
) {
|
|
4298
|
+
overflow-wrap: anywhere;
|
|
4299
|
+
}
|
|
4300
|
+
|
|
4301
|
+
/* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
|
|
4302
|
+
:where(.summary-list, .summary-list-item, .description-list) {
|
|
4303
|
+
overflow-wrap: anywhere;
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
:where(
|
|
4307
|
+
.grid,
|
|
4308
|
+
.flex-stack,
|
|
4309
|
+
.grail-layout,
|
|
4310
|
+
.summary-list,
|
|
4311
|
+
.summary-list-item,
|
|
4312
|
+
.description-list,
|
|
4313
|
+
.form,
|
|
4314
|
+
.editable-form,
|
|
4315
|
+
.field,
|
|
4316
|
+
.input-group,
|
|
4317
|
+
.button-group,
|
|
4318
|
+
.radio-group,
|
|
4319
|
+
.checkbox-group,
|
|
4320
|
+
.toggle-group,
|
|
4321
|
+
.tag-group,
|
|
4322
|
+
.split-view,
|
|
4323
|
+
.photo-pack,
|
|
4324
|
+
.data-filter-form,
|
|
4325
|
+
.action-bar,
|
|
4326
|
+
.tool-bar,
|
|
4327
|
+
.menu-bar,
|
|
4328
|
+
.tab-bar
|
|
4329
|
+
) > :where(*) {
|
|
4330
|
+
min-inline-size: 0;
|
|
4331
|
+
}
|
|
4332
|
+
|
|
4043
4333
|
/* ============================================================================
|
|
4044
4334
|
* Helper packages — layout and look, shared verbatim by all themes.
|
|
4045
4335
|
*
|
|
@@ -4167,6 +4457,8 @@
|
|
|
4167
4457
|
|
|
4168
4458
|
:where(.gantt-table-td[data-in-range]) {
|
|
4169
4459
|
background-color: var(--color-primary);
|
|
4460
|
+
/* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
|
|
4461
|
+
color: var(--color-primary-content);
|
|
4170
4462
|
}
|
|
4171
4463
|
|
|
4172
4464
|
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
@@ -4189,3 +4481,334 @@
|
|
|
4189
4481
|
:where(.time-zone-picker-option) {
|
|
4190
4482
|
overflow-wrap: anywhere;
|
|
4191
4483
|
}
|
|
4484
|
+
|
|
4485
|
+
/* ============================================================================
|
|
4486
|
+
* Overflow navigation — shared verbatim by all themes.
|
|
4487
|
+
*
|
|
4488
|
+
* The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
|
|
4489
|
+
* With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
|
|
4490
|
+
* (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
|
|
4491
|
+
* the links that do not fit into the More list. That list is in normal flow (position
|
|
4492
|
+
* static, never absolute), so opening it pushes the content below down and never covers it
|
|
4493
|
+
* (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
|
|
4494
|
+
* specificity at zero, so any consumer rule wins.
|
|
4495
|
+
* ========================================================================= */
|
|
4496
|
+
|
|
4497
|
+
:where(.navigation-menu-list) {
|
|
4498
|
+
display: flex;
|
|
4499
|
+
flex: 1 1 auto;
|
|
4500
|
+
flex-wrap: wrap;
|
|
4501
|
+
align-items: flex-start;
|
|
4502
|
+
gap: 0.25rem 0.5rem;
|
|
4503
|
+
min-inline-size: 0;
|
|
4504
|
+
margin: 0;
|
|
4505
|
+
padding: 0;
|
|
4506
|
+
list-style: none;
|
|
4507
|
+
}
|
|
4508
|
+
|
|
4509
|
+
:where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
|
|
4510
|
+
display: inline-block;
|
|
4511
|
+
min-inline-size: 24px;
|
|
4512
|
+
min-block-size: 24px;
|
|
4513
|
+
}
|
|
4514
|
+
|
|
4515
|
+
:where(.navigation-menu-more) {
|
|
4516
|
+
position: static;
|
|
4517
|
+
}
|
|
4518
|
+
|
|
4519
|
+
:where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
|
|
4520
|
+
display: none;
|
|
4521
|
+
}
|
|
4522
|
+
|
|
4523
|
+
:where(.navigation-menu-more-button) {
|
|
4524
|
+
min-inline-size: 24px;
|
|
4525
|
+
min-block-size: 24px;
|
|
4526
|
+
padding: 0.25rem 0.5rem;
|
|
4527
|
+
font: inherit;
|
|
4528
|
+
color: inherit;
|
|
4529
|
+
background: transparent;
|
|
4530
|
+
border: 1px solid currentcolor;
|
|
4531
|
+
cursor: pointer;
|
|
4532
|
+
}
|
|
4533
|
+
|
|
4534
|
+
:where(.navigation-menu-more-list) {
|
|
4535
|
+
position: static;
|
|
4536
|
+
margin: 0.25rem 0 0;
|
|
4537
|
+
padding: 0;
|
|
4538
|
+
list-style: none;
|
|
4539
|
+
}
|
|
4540
|
+
|
|
4541
|
+
/* ============================================================================
|
|
4542
|
+
* Container queries — shared verbatim by all themes.
|
|
4543
|
+
*
|
|
4544
|
+
* A component answers to the space it is given, not to the window: a summary
|
|
4545
|
+
* list in a narrow aside on a wide screen needs the narrow layout, which the
|
|
4546
|
+
* viewport query above cannot know. The three grail-layout regions are the
|
|
4547
|
+
* containers because their width comes from a grid track (`minmax(0, 1fr)`), so
|
|
4548
|
+
* inline-size containment cannot collapse them. `.card` is deliberately not a
|
|
4549
|
+
* container: in a shrink-to-fit parent (a flex row, an inline grid) containment
|
|
4550
|
+
* would collapse it to nothing. A component outside a grail region has no
|
|
4551
|
+
* container and keeps its wide layout. :where() keeps specificity at zero, so
|
|
4552
|
+
* any consumer rule wins.
|
|
4553
|
+
* ========================================================================= */
|
|
4554
|
+
|
|
4555
|
+
:where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
|
|
4556
|
+
container-type: inline-size;
|
|
4557
|
+
}
|
|
4558
|
+
|
|
4559
|
+
/* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
|
|
4560
|
+
window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
|
|
4561
|
+
Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
|
|
4562
|
+
(at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
|
|
4563
|
+
right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
|
|
4564
|
+
hidden, so all content stays reachable. */
|
|
4565
|
+
@media (max-width: 64rem) {
|
|
4566
|
+
:where(.grail-layout) {
|
|
4567
|
+
grid-template-areas:
|
|
4568
|
+
"header header"
|
|
4569
|
+
"left main"
|
|
4570
|
+
"right right"
|
|
4571
|
+
"footer footer";
|
|
4572
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
|
|
4573
|
+
grid-template-rows: auto auto auto auto;
|
|
4574
|
+
}
|
|
4575
|
+
}
|
|
4576
|
+
|
|
4577
|
+
@media (max-width: 48rem) {
|
|
4578
|
+
:where(.grail-layout) {
|
|
4579
|
+
grid-template-areas:
|
|
4580
|
+
"header"
|
|
4581
|
+
"left"
|
|
4582
|
+
"main"
|
|
4583
|
+
"right"
|
|
4584
|
+
"footer";
|
|
4585
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4586
|
+
grid-template-rows: auto auto auto auto auto;
|
|
4587
|
+
}
|
|
4588
|
+
}
|
|
4589
|
+
|
|
4590
|
+
@container (max-width: 30rem) {
|
|
4591
|
+
:where(.summary-list) {
|
|
4592
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4593
|
+
row-gap: 0.25rem;
|
|
4594
|
+
}
|
|
4595
|
+
|
|
4596
|
+
:where(.kanban-table-td) {
|
|
4597
|
+
min-width: 10rem;
|
|
4598
|
+
}
|
|
4599
|
+
|
|
4600
|
+
:where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
|
|
4601
|
+
padding-inline: 0.5rem;
|
|
4602
|
+
}
|
|
4603
|
+
}
|
|
4604
|
+
|
|
4605
|
+
/* ============================================================================
|
|
4606
|
+
* Focus not obscured — shared verbatim by all themes.
|
|
4607
|
+
*
|
|
4608
|
+
* WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
|
|
4609
|
+
* entirely hidden by author-created content, such as a bar fixed to the top or
|
|
4610
|
+
* bottom of the viewport. The browser scrolls a focused control into view, but
|
|
4611
|
+
* only as far as the edge of the viewport, which is where a fixed bar sits.
|
|
4612
|
+
* `scroll-padding` moves that edge in by the bar's height.
|
|
4613
|
+
*
|
|
4614
|
+
* Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
|
|
4615
|
+
* theme's or an app's own fixed header, a mobile bottom navigation) sets the
|
|
4616
|
+
* bar's height on the root element:
|
|
4617
|
+
*
|
|
4618
|
+
* --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
|
|
4619
|
+
* --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
|
|
4620
|
+
*
|
|
4621
|
+
* With both bars, set both. The defaults are 0px, so a page without a fixed bar
|
|
4622
|
+
* is unchanged. Specificity is zero (`:where`), so an app's own
|
|
4623
|
+
* `scroll-padding` wins.
|
|
4624
|
+
* ========================================================================= */
|
|
4625
|
+
|
|
4626
|
+
:where(html) {
|
|
4627
|
+
scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
|
|
4628
|
+
}
|
|
4629
|
+
|
|
4630
|
+
/* ============================================================================
|
|
4631
|
+
* Text size and motion preferences — shared verbatim by all themes.
|
|
4632
|
+
*
|
|
4633
|
+
* The text-size-picker sets `data-text-size` on the root and the motion-picker
|
|
4634
|
+
* sets `data-motion`; neither styles anything itself. These rules are what make
|
|
4635
|
+
* the choice visible.
|
|
4636
|
+
*
|
|
4637
|
+
* Text size: the seven steps scale the root font size, and every theme sizes in
|
|
4638
|
+
* `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
|
|
4639
|
+
* own browser setting), and the scale is percentages of that, never pixels, so
|
|
4640
|
+
* a viewer who raised their browser font size keeps it. The steps below
|
|
4641
|
+
* `normal` are the viewer's explicit choice.
|
|
4642
|
+
*
|
|
4643
|
+
* Motion: `data-motion="reduce"` shortens every animation and transition to
|
|
4644
|
+
* 0.01ms instead of removing it. The end state still arrives and `animationend`
|
|
4645
|
+
* / `transitionend` still fire, so nothing that depends on them breaks and no
|
|
4646
|
+
* information is lost: a spinner's `role="status"` text, a disclosure's open
|
|
4647
|
+
* state and a toast's content are untouched. Scrolling is instant.
|
|
4648
|
+
* ========================================================================= */
|
|
4649
|
+
|
|
4650
|
+
:where(html[data-text-size="smallest"]) { font-size: 80%; }
|
|
4651
|
+
:where(html[data-text-size="smaller"]) { font-size: 90%; }
|
|
4652
|
+
:where(html[data-text-size="small"]) { font-size: 95%; }
|
|
4653
|
+
:where(html[data-text-size="normal"]) { font-size: 100%; }
|
|
4654
|
+
:where(html[data-text-size="large"]) { font-size: 110%; }
|
|
4655
|
+
:where(html[data-text-size="larger"]) { font-size: 125%; }
|
|
4656
|
+
:where(html[data-text-size="largest"]) { font-size: 150%; }
|
|
4657
|
+
|
|
4658
|
+
:where(html[data-motion="reduce"]) {
|
|
4659
|
+
scroll-behavior: auto;
|
|
4660
|
+
}
|
|
4661
|
+
:where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
|
|
4662
|
+
animation-duration: 0.01ms !important;
|
|
4663
|
+
animation-iteration-count: 1 !important;
|
|
4664
|
+
animation-delay: 0s !important;
|
|
4665
|
+
transition-duration: 0.01ms !important;
|
|
4666
|
+
transition-delay: 0s !important;
|
|
4667
|
+
scroll-behavior: auto !important;
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4670
|
+
/* ============================================================================
|
|
4671
|
+
* Forced colours and contrast preference — shared verbatim by all themes.
|
|
4672
|
+
*
|
|
4673
|
+
* Forced colours (Windows High Contrast, `forced-colors: active`): the browser
|
|
4674
|
+
* replaces every colour with a system colour, which erases anything a control
|
|
4675
|
+
* told apart by background alone. These rules give such controls a border,
|
|
4676
|
+
* keep the focus ring, and mark selected and current items with `Highlight`
|
|
4677
|
+
* and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
|
|
4678
|
+
*
|
|
4679
|
+
* Contrast preference (`prefers-contrast: more`): a heavier border on controls
|
|
4680
|
+
* and a thicker focus ring. Colours are not changed here; a theme's colours are
|
|
4681
|
+
* its author's decision.
|
|
4682
|
+
* ========================================================================= */
|
|
4683
|
+
|
|
4684
|
+
@media (forced-colors: active) {
|
|
4685
|
+
:where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
|
|
4686
|
+
border: 1px solid ButtonBorder;
|
|
4687
|
+
}
|
|
4688
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4689
|
+
outline: 3px solid Highlight;
|
|
4690
|
+
outline-offset: 2px;
|
|
4691
|
+
}
|
|
4692
|
+
:where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
|
|
4693
|
+
background: SelectedItem;
|
|
4694
|
+
color: SelectedItemText;
|
|
4695
|
+
forced-color-adjust: none;
|
|
4696
|
+
}
|
|
4697
|
+
:where([aria-current]:not([aria-current="false"])) {
|
|
4698
|
+
outline: 2px solid Highlight;
|
|
4699
|
+
outline-offset: -2px;
|
|
4700
|
+
}
|
|
4701
|
+
:where(:disabled, [aria-disabled="true"]) {
|
|
4702
|
+
border-color: GrayText;
|
|
4703
|
+
color: GrayText;
|
|
4704
|
+
}
|
|
4705
|
+
}
|
|
4706
|
+
|
|
4707
|
+
@media (prefers-contrast: more) {
|
|
4708
|
+
:where(button, input, select, textarea, [role="button"], [class$="-button"]) {
|
|
4709
|
+
border-width: 2px;
|
|
4710
|
+
border-style: solid;
|
|
4711
|
+
border-color: currentColor;
|
|
4712
|
+
}
|
|
4713
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4714
|
+
outline-width: 3px;
|
|
4715
|
+
outline-offset: 2px;
|
|
4716
|
+
}
|
|
4717
|
+
}
|
|
4718
|
+
|
|
4719
|
+
/* ============================================================================
|
|
4720
|
+
* Writing systems — shared verbatim by all themes.
|
|
4721
|
+
*
|
|
4722
|
+
* A theme names its Latin font stack (`--lily-font-body-latin`). This section
|
|
4723
|
+
* builds `--lily-font-body` from it, with the system fonts of the element's
|
|
4724
|
+
* script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
|
|
4725
|
+
* Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
|
|
4726
|
+
* scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
|
|
4727
|
+
* Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
|
|
4728
|
+
* Chinese and Japanese but drawn differently, so the language picks the font,
|
|
4729
|
+
* not the script.
|
|
4730
|
+
*
|
|
4731
|
+
* `--lily-font-body` is re-declared on every element with a `lang`, so a
|
|
4732
|
+
* `<p lang="ja">` inside an English page gets Japanese fonts and a
|
|
4733
|
+
* `<span lang="en">` inside it gets none. A language not listed here keeps the
|
|
4734
|
+
* Latin stack, whose final generic family the browser resolves per language.
|
|
4735
|
+
*
|
|
4736
|
+
* `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
|
|
4737
|
+
* and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
|
|
4738
|
+
* Elements with a `lang` use it; the app's body text should too.
|
|
4739
|
+
*
|
|
4740
|
+
* To change a theme's font, set `--lily-font-body-latin`; to change a script's,
|
|
4741
|
+
* set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
|
|
4742
|
+
* itself still works on the element you set it on.
|
|
4743
|
+
* ========================================================================= */
|
|
4744
|
+
|
|
4745
|
+
:where(:root, [lang]) {
|
|
4746
|
+
--lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
|
|
4747
|
+
--lily-line-height-body: 1.5;
|
|
4748
|
+
}
|
|
4749
|
+
|
|
4750
|
+
:where([lang]) {
|
|
4751
|
+
--lily-font-script: initial;
|
|
4752
|
+
line-height: var(--lily-line-height-body);
|
|
4753
|
+
}
|
|
4754
|
+
|
|
4755
|
+
:where([lang|="zh"], [lang|="wuu"]) {
|
|
4756
|
+
--lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
|
|
4757
|
+
}
|
|
4758
|
+
:where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
|
|
4759
|
+
--lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
|
|
4760
|
+
}
|
|
4761
|
+
:where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
|
|
4762
|
+
--lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
|
|
4763
|
+
}
|
|
4764
|
+
:where([lang|="ja"]) {
|
|
4765
|
+
--lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
|
|
4766
|
+
}
|
|
4767
|
+
:where([lang|="ko"]) {
|
|
4768
|
+
--lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
|
|
4769
|
+
}
|
|
4770
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
|
|
4771
|
+
--lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
|
|
4772
|
+
}
|
|
4773
|
+
:where([lang|="ur"]) {
|
|
4774
|
+
--lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
|
|
4775
|
+
}
|
|
4776
|
+
:where([lang|="he"], [lang|="yi"]) {
|
|
4777
|
+
--lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
|
|
4778
|
+
}
|
|
4779
|
+
:where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
|
|
4780
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
|
|
4781
|
+
}
|
|
4782
|
+
:where([lang|="bn"], [lang|="as"]) {
|
|
4783
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
|
|
4784
|
+
}
|
|
4785
|
+
:where([lang|="gu"]) {
|
|
4786
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
|
|
4787
|
+
}
|
|
4788
|
+
:where([lang|="pa"]) {
|
|
4789
|
+
--lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
|
|
4790
|
+
}
|
|
4791
|
+
:where([lang|="kn"]) {
|
|
4792
|
+
--lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
|
|
4793
|
+
}
|
|
4794
|
+
:where([lang|="ta"]) {
|
|
4795
|
+
--lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
|
|
4796
|
+
}
|
|
4797
|
+
:where([lang|="te"]) {
|
|
4798
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
|
|
4799
|
+
}
|
|
4800
|
+
:where([lang|="th"]) {
|
|
4801
|
+
--lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
|
|
4802
|
+
}
|
|
4803
|
+
:where([lang|="lo"]) {
|
|
4804
|
+
--lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
|
|
4805
|
+
}
|
|
4806
|
+
:where([lang|="km"]) {
|
|
4807
|
+
--lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
|
|
4808
|
+
}
|
|
4809
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
|
|
4810
|
+
[lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
|
|
4811
|
+
[lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
|
|
4812
|
+
[lang|="lo"], [lang|="km"]) {
|
|
4813
|
+
--lily-line-height-body: 1.75;
|
|
4814
|
+
}
|