@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
package/dist/retro.css
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
illustrations, and tertiary call-outs. */
|
|
51
51
|
--color-accent: oklch(68% 0.162 75.834);
|
|
52
52
|
/* Foreground colour used over `--color-accent` fills. */
|
|
53
|
-
--color-accent-content:
|
|
53
|
+
--color-accent-content: #000000;
|
|
54
54
|
/* Neutral chrome surface — footer bars, code blocks,
|
|
55
55
|
tooltips, government-banner strips. Typically the theme's
|
|
56
56
|
darkest neutral. */
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
'did-you-know' callouts. */
|
|
62
62
|
--color-info: oklch(58% 0.158 241.966);
|
|
63
63
|
/* Foreground colour used over `--color-info` fills. */
|
|
64
|
-
--color-info-content:
|
|
64
|
+
--color-info-content: #000000;
|
|
65
65
|
/* Success / confirmation colour — used on success panels,
|
|
66
66
|
completed step indicators, validation pass states, and the
|
|
67
67
|
green RAG status. */
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
--color-warning: oklch(64% 0.222 41.116);
|
|
75
75
|
/* Foreground colour used over `--color-warning` fills. Often
|
|
76
76
|
dark so text remains legible on a bright yellow background. */
|
|
77
|
-
--color-warning-content:
|
|
77
|
+
--color-warning-content: #000000;
|
|
78
78
|
/* Error / destructive colour — used on alert dialogs, error
|
|
79
79
|
messages, validation failures, urgent care cards, and the
|
|
80
80
|
red RAG status. */
|
|
81
81
|
--color-error: oklch(70% 0.191 22.216);
|
|
82
82
|
/* Foreground colour used over `--color-error` fills. */
|
|
83
|
-
--color-error-content:
|
|
83
|
+
--color-error-content: #000000;
|
|
84
84
|
/* Smallest corner radius. Applied to chips, badges, switches,
|
|
85
85
|
and radio/checkbox containers (mapped to `--lily-radius-
|
|
86
86
|
sm`). */
|
|
@@ -113,6 +113,14 @@
|
|
|
113
113
|
want to layer a subtle texture; the baseline rules do not
|
|
114
114
|
consume it. */
|
|
115
115
|
--noise: 0;
|
|
116
|
+
/* Fluid inline gutter for page containers and the main
|
|
117
|
+
region: grows with the viewport from a 1rem floor to a 2rem
|
|
118
|
+
ceiling. Spacing only, never text. */
|
|
119
|
+
--space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
|
|
120
|
+
/* Fluid gap between sections (stacks and grids): grows with
|
|
121
|
+
the viewport from a 1rem floor to a 2rem ceiling. Spacing
|
|
122
|
+
only, never text. */
|
|
123
|
+
--space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
|
|
116
124
|
}
|
|
117
125
|
|
|
118
126
|
/* ----------------------------------------------------------------------------
|
|
@@ -211,7 +219,7 @@
|
|
|
211
219
|
/* --- Typography ---------------------------------------------------- */
|
|
212
220
|
/* Body font stack — system fonts first so consumers get a
|
|
213
221
|
native-feeling baseline without shipping a web font. */
|
|
214
|
-
--lily-font-body:
|
|
222
|
+
--lily-font-body-latin:
|
|
215
223
|
system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
|
|
216
224
|
Arial, sans-serif;
|
|
217
225
|
/* Monospaced font stack — used by code, kbd, identifiers, and
|
|
@@ -318,9 +326,12 @@
|
|
|
318
326
|
}
|
|
319
327
|
|
|
320
328
|
/* Invalid input — red border. The `aria-invalid="true"` attribute is the
|
|
321
|
-
ARIA contract
|
|
322
|
-
|
|
323
|
-
|
|
329
|
+
ARIA contract (server-rendered errors); `:user-invalid` is the native
|
|
330
|
+
state that matches only after the user has interacted, so a required
|
|
331
|
+
field is not styled invalid on load. Pairing a colour change with the
|
|
332
|
+
ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
|
|
333
|
+
:where([class$="-input"], .input)[aria-invalid="true"],
|
|
334
|
+
:where([class$="-input"], .input):user-invalid {
|
|
324
335
|
border-color: var(--color-error);
|
|
325
336
|
}
|
|
326
337
|
|
|
@@ -1464,13 +1475,17 @@
|
|
|
1464
1475
|
padding: 0.75rem 1rem;
|
|
1465
1476
|
}
|
|
1466
1477
|
|
|
1467
|
-
/* Sticky promo —
|
|
1478
|
+
/* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
|
|
1479
|
+
the component's own bottom: 0 it would stretch over the whole page and take every click. */
|
|
1468
1480
|
:where(.sticky-promo-banner) {
|
|
1469
1481
|
position: sticky;
|
|
1470
|
-
inset-block-start: 0;
|
|
1471
1482
|
z-index: 10;
|
|
1472
1483
|
}
|
|
1473
1484
|
|
|
1485
|
+
:where(.sticky-promo-banner:not([data-position="bottom"])) {
|
|
1486
|
+
inset-block-start: 0;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1474
1489
|
/* Error message — inline form-validation message. */
|
|
1475
1490
|
:where(.error-message) {
|
|
1476
1491
|
color: var(--lily-error-text);
|
|
@@ -1550,7 +1565,7 @@
|
|
|
1550
1565
|
display: block;
|
|
1551
1566
|
width: 100%;
|
|
1552
1567
|
margin-inline: auto;
|
|
1553
|
-
padding-inline:
|
|
1568
|
+
padding-inline: var(--space-fluid-gutter);
|
|
1554
1569
|
box-sizing: border-box;
|
|
1555
1570
|
}
|
|
1556
1571
|
/* Fixed-width — caps at a comfortable reading width (~1152px). */
|
|
@@ -1570,11 +1585,11 @@
|
|
|
1570
1585
|
:where(.flex-stack) {
|
|
1571
1586
|
display: flex;
|
|
1572
1587
|
flex-direction: column;
|
|
1573
|
-
gap:
|
|
1588
|
+
gap: var(--space-fluid-section);
|
|
1574
1589
|
}
|
|
1575
1590
|
:where(.grid) {
|
|
1576
1591
|
display: grid;
|
|
1577
|
-
gap:
|
|
1592
|
+
gap: var(--space-fluid-section);
|
|
1578
1593
|
}
|
|
1579
1594
|
:where(.masonry) {
|
|
1580
1595
|
column-count: 3;
|
|
@@ -1629,7 +1644,7 @@
|
|
|
1629
1644
|
:where(.content-block) {
|
|
1630
1645
|
max-width: var(--content-width-normal);
|
|
1631
1646
|
margin-inline: auto;
|
|
1632
|
-
padding-inline:
|
|
1647
|
+
padding-inline: var(--space-fluid-gutter);
|
|
1633
1648
|
box-sizing: border-box;
|
|
1634
1649
|
}
|
|
1635
1650
|
:where(.content-block[data-width="narrower"]) {
|
|
@@ -1647,7 +1662,8 @@
|
|
|
1647
1662
|
|
|
1648
1663
|
/* --- Grail layout (5-region responsive page shell) --------------------- */
|
|
1649
1664
|
/* Header spans the top; left-aside / main / right-aside fill the middle;
|
|
1650
|
-
footer spans the bottom.
|
|
1665
|
+
footer spans the bottom. The collapse as the window narrows is in the shared
|
|
1666
|
+
container section at the end of this file. */
|
|
1651
1667
|
:where(.grail-layout) {
|
|
1652
1668
|
display: grid;
|
|
1653
1669
|
min-height: 100vh;
|
|
@@ -1687,15 +1703,7 @@
|
|
|
1687
1703
|
}
|
|
1688
1704
|
/* Main content area — primary surface, more generous padding. */
|
|
1689
1705
|
:where(.grail-layout-center-main) {
|
|
1690
|
-
padding:
|
|
1691
|
-
}
|
|
1692
|
-
/* Mobile breakpoint — collapse to a single column, stacking the regions. */
|
|
1693
|
-
@media (max-width: 48rem) {
|
|
1694
|
-
:where(.grail-layout) {
|
|
1695
|
-
grid-template-areas: "header" "main" "left" "right" "footer";
|
|
1696
|
-
grid-template-columns: 1fr;
|
|
1697
|
-
grid-template-rows: auto auto auto auto auto;
|
|
1698
|
-
}
|
|
1706
|
+
padding: var(--space-fluid-gutter);
|
|
1699
1707
|
}
|
|
1700
1708
|
|
|
1701
1709
|
/* Standalone semantic header / footer landmarks. */
|
|
@@ -1786,6 +1794,15 @@
|
|
|
1786
1794
|
/* Drawers — side panels (right edge by default; RTL-aware via logical
|
|
1787
1795
|
properties). Sit above the overlay container (z-index 101). */
|
|
1788
1796
|
:where(.drawer, .slide-out-drawer, .sheet) {
|
|
1797
|
+
/* These are <dialog> elements opened with showModal() (P18-T6): undo the
|
|
1798
|
+
browser's centred-box defaults so the panel docks to the edge. */
|
|
1799
|
+
margin: 0;
|
|
1800
|
+
border: 0;
|
|
1801
|
+
inset-inline-start: auto;
|
|
1802
|
+
max-block-size: none;
|
|
1803
|
+
max-inline-size: none;
|
|
1804
|
+
block-size: 100%;
|
|
1805
|
+
box-sizing: border-box;
|
|
1789
1806
|
position: fixed;
|
|
1790
1807
|
inset-block: 0;
|
|
1791
1808
|
inset-inline-end: 0;
|
|
@@ -1798,6 +1815,10 @@
|
|
|
1798
1815
|
z-index: 101;
|
|
1799
1816
|
}
|
|
1800
1817
|
|
|
1818
|
+
:where(.drawer, .slide-out-drawer, .sheet)::backdrop {
|
|
1819
|
+
background-color: color-mix(in oklch, black 50%, transparent);
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1801
1822
|
/* ==========================================================================
|
|
1802
1823
|
* Menus
|
|
1803
1824
|
* ====================================================================== */
|
|
@@ -1850,7 +1871,7 @@
|
|
|
1850
1871
|
gap: 0.25rem;
|
|
1851
1872
|
}
|
|
1852
1873
|
/* Hamburger — bordered icon-button. */
|
|
1853
|
-
:where(.hamburger-menu) {
|
|
1874
|
+
:where(.hamburger-menu > button) {
|
|
1854
1875
|
display: inline-flex;
|
|
1855
1876
|
align-items: center;
|
|
1856
1877
|
justify-content: center;
|
|
@@ -2826,6 +2847,50 @@
|
|
|
2826
2847
|
}
|
|
2827
2848
|
}
|
|
2828
2849
|
|
|
2850
|
+
/* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
|
|
2851
|
+
browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
|
|
2852
|
+
where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
|
|
2853
|
+
open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
|
|
2854
|
+
hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
|
|
2855
|
+
`position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
|
|
2856
|
+
position-area: with no anchor, position-area does nothing and a static position can be off screen. */
|
|
2857
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
|
|
2858
|
+
display: none;
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
|
|
2862
|
+
display: none;
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
@supports (position-area: block-end) {
|
|
2866
|
+
:where(.cascader-trigger) { anchor-name: --lily-cascader; }
|
|
2867
|
+
:where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
|
|
2868
|
+
:where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
|
|
2869
|
+
:where(.combobox > input) { anchor-name: --lily-combobox; }
|
|
2870
|
+
:where(.cascader-panel) { position-anchor: --lily-cascader; }
|
|
2871
|
+
:where(.tree-select-panel) { position-anchor: --lily-tree-select; }
|
|
2872
|
+
:where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
|
|
2873
|
+
:where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
|
|
2874
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
2875
|
+
position: fixed;
|
|
2876
|
+
inset: auto;
|
|
2877
|
+
margin: 0;
|
|
2878
|
+
position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
|
|
2879
|
+
width: max-content;
|
|
2880
|
+
max-width: calc(100vw - 1rem);
|
|
2881
|
+
}
|
|
2882
|
+
:where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
2883
|
+
inset-block-start: anchor(end, 25%);
|
|
2884
|
+
inset-inline-start: anchor(start, 25%);
|
|
2885
|
+
}
|
|
2886
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
2887
|
+
position-area: block-end span-inline-end;
|
|
2888
|
+
}
|
|
2889
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
2890
|
+
min-inline-size: anchor-size(inline);
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2829
2894
|
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2830
2895
|
> :where(
|
|
2831
2896
|
.theme-picker-option,
|
|
@@ -3782,6 +3847,81 @@
|
|
|
3782
3847
|
min-block-size: 24px;
|
|
3783
3848
|
}
|
|
3784
3849
|
|
|
3850
|
+
/* ============================================================================
|
|
3851
|
+
* Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
|
|
3852
|
+
*
|
|
3853
|
+
* Where the primary pointer is coarse (a finger), interactive hooks are at least
|
|
3854
|
+
* 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
|
|
3855
|
+
* buttons, form fields, checkboxes and radios, and the link-shaped navigation
|
|
3856
|
+
* hooks. Links inside running text are exempt, so bare `a` is not listed. The
|
|
3857
|
+
* query is the capability, never a viewport width. :where() keeps specificity
|
|
3858
|
+
* at zero, so any consumer rule still wins.
|
|
3859
|
+
* ========================================================================= */
|
|
3860
|
+
|
|
3861
|
+
@media (pointer: coarse) {
|
|
3862
|
+
:where(button,
|
|
3863
|
+
[role="button"],
|
|
3864
|
+
[role="tab"],
|
|
3865
|
+
[role="option"],
|
|
3866
|
+
[role="menuitem"],
|
|
3867
|
+
[class*="-picker-button"],
|
|
3868
|
+
summary,
|
|
3869
|
+
input:not([type="hidden"]),
|
|
3870
|
+
select,
|
|
3871
|
+
textarea,
|
|
3872
|
+
.action-link,
|
|
3873
|
+
.back-link,
|
|
3874
|
+
.breadcrumb-list-item > a,
|
|
3875
|
+
.pagination-list-item > a,
|
|
3876
|
+
.contents-list-item > a,
|
|
3877
|
+
.section-list-item > a) {
|
|
3878
|
+
min-inline-size: 44px;
|
|
3879
|
+
min-block-size: 44px;
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
|
|
3883
|
+
/* ============================================================================
|
|
3884
|
+
* Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
|
|
3885
|
+
*
|
|
3886
|
+
* --lily-brand is the identity's decorative colour: a header band, a rule, a
|
|
3887
|
+
* logo background. It is NEVER a text colour or a control's boundary, because a
|
|
3888
|
+
* brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
|
|
3889
|
+
* text drawn on it. By default they follow the theme's primary pair, which every
|
|
3890
|
+
* theme keeps readable; an adopter whose brand colour is lighter or darker sets
|
|
3891
|
+
* both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
|
|
3892
|
+
* content pairs (--color-base-content, --lily-error-text and so on).
|
|
3893
|
+
* ========================================================================== */
|
|
3894
|
+
|
|
3895
|
+
:where(:root) {
|
|
3896
|
+
--lily-brand: var(--color-primary);
|
|
3897
|
+
--lily-on-brand: var(--color-primary-content);
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
/* ============================================================================
|
|
3901
|
+
* Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
|
|
3902
|
+
*
|
|
3903
|
+
* The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
|
|
3904
|
+
* adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
|
|
3905
|
+
* and no clear-space rule, because national and local guidelines disagree: a
|
|
3906
|
+
* theme or the adopter sets --lily-logo-clear-space (padding around the mark)
|
|
3907
|
+
* and --lily-logo-min-size (its smallest inline size). Both are unset by
|
|
3908
|
+
* default, so nothing changes until one is set.
|
|
3909
|
+
* ========================================================================== */
|
|
3910
|
+
|
|
3911
|
+
@layer lily {
|
|
3912
|
+
:where([data-lily-logo]) {
|
|
3913
|
+
display: inline-block;
|
|
3914
|
+
padding: var(--lily-logo-clear-space, 0);
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3917
|
+
:where([data-lily-logo] > img, [data-lily-logo] > svg) {
|
|
3918
|
+
display: block;
|
|
3919
|
+
min-inline-size: var(--lily-logo-min-size, 0);
|
|
3920
|
+
max-inline-size: 100%;
|
|
3921
|
+
block-size: auto;
|
|
3922
|
+
}
|
|
3923
|
+
}
|
|
3924
|
+
|
|
3785
3925
|
/* ============================================================================
|
|
3786
3926
|
* Overflow guards — narrow-viewport safety, shared verbatim by all themes.
|
|
3787
3927
|
*
|
|
@@ -3810,6 +3950,140 @@
|
|
|
3810
3950
|
overflow-wrap: anywhere;
|
|
3811
3951
|
}
|
|
3812
3952
|
|
|
3953
|
+
/* ============================================================================
|
|
3954
|
+
* Scoped overflow — shared verbatim by all themes.
|
|
3955
|
+
*
|
|
3956
|
+
* Long unbroken strings (a national identifier, an email address, a URL) and
|
|
3957
|
+
* grid/flex tracks that refuse to shrink are the usual causes of horizontal
|
|
3958
|
+
* page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
|
|
3959
|
+
* `overflow-wrap: anywhere` on the places a long value lands (table cells are
|
|
3960
|
+
* covered by Overflow guards above), and `min-inline-size: 0` on the direct
|
|
3961
|
+
* children of Lily's grid and flex containers so a child can shrink below its
|
|
3962
|
+
* content. The identifier `-view` list below is the catalog's 70 national
|
|
3963
|
+
* identifier views (components-categories.tsv); bin/check-theme fails when it
|
|
3964
|
+
* drifts from the catalog. :where() keeps specificity at zero.
|
|
3965
|
+
* ========================================================================= */
|
|
3966
|
+
|
|
3967
|
+
:where(
|
|
3968
|
+
.alba-community-health-index-view,
|
|
3969
|
+
.australia-individual-healthcare-identifier-view,
|
|
3970
|
+
.belgique-numero-de-registre-national-view,
|
|
3971
|
+
.bulgaria-edinen-grazhdanski-nomer-view,
|
|
3972
|
+
.cesko-cestovni-pas-view,
|
|
3973
|
+
.cesko-rodne-cislo-view,
|
|
3974
|
+
.cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
|
|
3975
|
+
.kypros-national-passport-number-view,
|
|
3976
|
+
.danmark-personnummer-view,
|
|
3977
|
+
.deutschland-krankenversichertennummer-view,
|
|
3978
|
+
.eesti-isikukood-view,
|
|
3979
|
+
.ellada-dematerialised-securities-system-view,
|
|
3980
|
+
.england-national-health-service-number-view,
|
|
3981
|
+
.espana-codigo-de-identificacion-fiscal-view,
|
|
3982
|
+
.espana-tarjeta-sanitaria-individual-view,
|
|
3983
|
+
.france-numero-d-identification-au-repertoire-view,
|
|
3984
|
+
.hrvatska-osobni-identifikacijski-broj-view,
|
|
3985
|
+
.eire-individual-health-identifier-view,
|
|
3986
|
+
.island-kennitala-view,
|
|
3987
|
+
.italia-codice-fiscale-view,
|
|
3988
|
+
.latvija-personas-kods-view,
|
|
3989
|
+
.liechtenstein-national-identity-card-number-view,
|
|
3990
|
+
.liechtenstein-passport-number-view,
|
|
3991
|
+
.lietuva-asmens-kodas-view,
|
|
3992
|
+
.lietuva-pasas-view,
|
|
3993
|
+
.malta-national-identification-number-view,
|
|
3994
|
+
.malta-passport-number-view,
|
|
3995
|
+
.nederland-burgerservice-nummer-view,
|
|
3996
|
+
.nederland-identiteitskaart-nummer-view,
|
|
3997
|
+
.nederland-paspoort-nummer-view,
|
|
3998
|
+
.norge-fodselsnummer-view,
|
|
3999
|
+
.tuaisceart-eireann-health-and-care-number-view,
|
|
4000
|
+
.polska-numer-identyfikacji-podatkowej-view,
|
|
4001
|
+
.polska-pesel-view,
|
|
4002
|
+
.portugal-numero-de-identificacao-fiscal-view,
|
|
4003
|
+
.portugal-passaporte-view,
|
|
4004
|
+
.romania-cod-numeric-personal-view,
|
|
4005
|
+
.romania-pasaport-view,
|
|
4006
|
+
.slovenija-emso-view,
|
|
4007
|
+
.slovensko-pas-view,
|
|
4008
|
+
.slovensko-rodne-cislo-view,
|
|
4009
|
+
.suomi-henkilotunnus-view,
|
|
4010
|
+
.sverige-personnummer-view,
|
|
4011
|
+
.iban-view,
|
|
4012
|
+
.united-kingdom-national-health-service-number-view,
|
|
4013
|
+
.united-kingdom-national-insurance-number-view,
|
|
4014
|
+
.united-states-social-security-number-view,
|
|
4015
|
+
.aotearoa-national-health-index-view,
|
|
4016
|
+
.pilipinas-philhealth-identification-number-view,
|
|
4017
|
+
.brasil-cartao-nacional-de-saude-view,
|
|
4018
|
+
.schweiz-ahv-nummer-view,
|
|
4019
|
+
.canada-social-insurance-number-view,
|
|
4020
|
+
.hanguk-jumin-deungnok-beonho-view,
|
|
4021
|
+
.nihon-kojin-bango-view,
|
|
4022
|
+
.bharat-aadhaar-view,
|
|
4023
|
+
.yisrael-teudat-zehut-view,
|
|
4024
|
+
.south-africa-identity-number-view,
|
|
4025
|
+
.mexico-clave-unica-de-registro-de-poblacion-view,
|
|
4026
|
+
.singapore-national-registration-identity-card-view,
|
|
4027
|
+
.osterreich-sozialversicherungsnummer-view,
|
|
4028
|
+
.magyarorszag-taj-szam-view,
|
|
4029
|
+
.luxembourg-matricule-view,
|
|
4030
|
+
.zhongguo-jumin-shenfenzheng-haoma-view,
|
|
4031
|
+
.rossiya-snils-view,
|
|
4032
|
+
.turkiye-tc-kimlik-numarasi-view,
|
|
4033
|
+
.argentina-codigo-unico-de-identificacion-laboral-view,
|
|
4034
|
+
.ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
|
|
4035
|
+
.indonesia-nomor-induk-kependudukan-view,
|
|
4036
|
+
.prathet-thai-lek-prajam-tua-prachachon-view,
|
|
4037
|
+
.chile-rol-unico-nacional-view,
|
|
4038
|
+
.taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
|
|
4039
|
+
.hong-kong-identity-card-view,
|
|
4040
|
+
.iran-kod-e-melli-view,
|
|
4041
|
+
.as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
|
|
4042
|
+
.malaysia-kad-pengenalan-view,
|
|
4043
|
+
.viet-nam-can-cuoc-cong-dan-view,
|
|
4044
|
+
.pakistan-computerized-national-identity-card-view,
|
|
4045
|
+
.uruguay-cedula-de-identidad-view,
|
|
4046
|
+
.ecuador-cedula-de-identidad-view,
|
|
4047
|
+
.colombia-cedula-de-ciudadania-view,
|
|
4048
|
+
.australia-tax-file-number-view,
|
|
4049
|
+
.nigeria-national-identification-number-view,
|
|
4050
|
+
.misr-al-raqm-al-qawmi-view
|
|
4051
|
+
) {
|
|
4052
|
+
overflow-wrap: anywhere;
|
|
4053
|
+
}
|
|
4054
|
+
|
|
4055
|
+
/* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
|
|
4056
|
+
:where(.summary-list, .summary-list-item, .description-list) {
|
|
4057
|
+
overflow-wrap: anywhere;
|
|
4058
|
+
}
|
|
4059
|
+
|
|
4060
|
+
:where(
|
|
4061
|
+
.grid,
|
|
4062
|
+
.flex-stack,
|
|
4063
|
+
.grail-layout,
|
|
4064
|
+
.summary-list,
|
|
4065
|
+
.summary-list-item,
|
|
4066
|
+
.description-list,
|
|
4067
|
+
.form,
|
|
4068
|
+
.editable-form,
|
|
4069
|
+
.field,
|
|
4070
|
+
.input-group,
|
|
4071
|
+
.button-group,
|
|
4072
|
+
.radio-group,
|
|
4073
|
+
.checkbox-group,
|
|
4074
|
+
.toggle-group,
|
|
4075
|
+
.tag-group,
|
|
4076
|
+
.split-view,
|
|
4077
|
+
.photo-pack,
|
|
4078
|
+
.data-filter-form,
|
|
4079
|
+
.action-bar,
|
|
4080
|
+
.tool-bar,
|
|
4081
|
+
.menu-bar,
|
|
4082
|
+
.tab-bar
|
|
4083
|
+
) > :where(*) {
|
|
4084
|
+
min-inline-size: 0;
|
|
4085
|
+
}
|
|
4086
|
+
|
|
3813
4087
|
/* ============================================================================
|
|
3814
4088
|
* Helper packages — layout and look, shared verbatim by all themes.
|
|
3815
4089
|
*
|
|
@@ -3937,6 +4211,8 @@
|
|
|
3937
4211
|
|
|
3938
4212
|
:where(.gantt-table-td[data-in-range]) {
|
|
3939
4213
|
background-color: var(--color-primary);
|
|
4214
|
+
/* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
|
|
4215
|
+
color: var(--color-primary-content);
|
|
3940
4216
|
}
|
|
3941
4217
|
|
|
3942
4218
|
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
@@ -3959,3 +4235,334 @@
|
|
|
3959
4235
|
:where(.time-zone-picker-option) {
|
|
3960
4236
|
overflow-wrap: anywhere;
|
|
3961
4237
|
}
|
|
4238
|
+
|
|
4239
|
+
/* ============================================================================
|
|
4240
|
+
* Overflow navigation — shared verbatim by all themes.
|
|
4241
|
+
*
|
|
4242
|
+
* The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
|
|
4243
|
+
* With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
|
|
4244
|
+
* (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
|
|
4245
|
+
* the links that do not fit into the More list. That list is in normal flow (position
|
|
4246
|
+
* static, never absolute), so opening it pushes the content below down and never covers it
|
|
4247
|
+
* (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
|
|
4248
|
+
* specificity at zero, so any consumer rule wins.
|
|
4249
|
+
* ========================================================================= */
|
|
4250
|
+
|
|
4251
|
+
:where(.navigation-menu-list) {
|
|
4252
|
+
display: flex;
|
|
4253
|
+
flex: 1 1 auto;
|
|
4254
|
+
flex-wrap: wrap;
|
|
4255
|
+
align-items: flex-start;
|
|
4256
|
+
gap: 0.25rem 0.5rem;
|
|
4257
|
+
min-inline-size: 0;
|
|
4258
|
+
margin: 0;
|
|
4259
|
+
padding: 0;
|
|
4260
|
+
list-style: none;
|
|
4261
|
+
}
|
|
4262
|
+
|
|
4263
|
+
:where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
|
|
4264
|
+
display: inline-block;
|
|
4265
|
+
min-inline-size: 24px;
|
|
4266
|
+
min-block-size: 24px;
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
:where(.navigation-menu-more) {
|
|
4270
|
+
position: static;
|
|
4271
|
+
}
|
|
4272
|
+
|
|
4273
|
+
:where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
|
|
4274
|
+
display: none;
|
|
4275
|
+
}
|
|
4276
|
+
|
|
4277
|
+
:where(.navigation-menu-more-button) {
|
|
4278
|
+
min-inline-size: 24px;
|
|
4279
|
+
min-block-size: 24px;
|
|
4280
|
+
padding: 0.25rem 0.5rem;
|
|
4281
|
+
font: inherit;
|
|
4282
|
+
color: inherit;
|
|
4283
|
+
background: transparent;
|
|
4284
|
+
border: 1px solid currentcolor;
|
|
4285
|
+
cursor: pointer;
|
|
4286
|
+
}
|
|
4287
|
+
|
|
4288
|
+
:where(.navigation-menu-more-list) {
|
|
4289
|
+
position: static;
|
|
4290
|
+
margin: 0.25rem 0 0;
|
|
4291
|
+
padding: 0;
|
|
4292
|
+
list-style: none;
|
|
4293
|
+
}
|
|
4294
|
+
|
|
4295
|
+
/* ============================================================================
|
|
4296
|
+
* Container queries — shared verbatim by all themes.
|
|
4297
|
+
*
|
|
4298
|
+
* A component answers to the space it is given, not to the window: a summary
|
|
4299
|
+
* list in a narrow aside on a wide screen needs the narrow layout, which the
|
|
4300
|
+
* viewport query above cannot know. The three grail-layout regions are the
|
|
4301
|
+
* containers because their width comes from a grid track (`minmax(0, 1fr)`), so
|
|
4302
|
+
* inline-size containment cannot collapse them. `.card` is deliberately not a
|
|
4303
|
+
* container: in a shrink-to-fit parent (a flex row, an inline grid) containment
|
|
4304
|
+
* would collapse it to nothing. A component outside a grail region has no
|
|
4305
|
+
* container and keeps its wide layout. :where() keeps specificity at zero, so
|
|
4306
|
+
* any consumer rule wins.
|
|
4307
|
+
* ========================================================================= */
|
|
4308
|
+
|
|
4309
|
+
:where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
|
|
4310
|
+
container-type: inline-size;
|
|
4311
|
+
}
|
|
4312
|
+
|
|
4313
|
+
/* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
|
|
4314
|
+
window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
|
|
4315
|
+
Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
|
|
4316
|
+
(at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
|
|
4317
|
+
right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
|
|
4318
|
+
hidden, so all content stays reachable. */
|
|
4319
|
+
@media (max-width: 64rem) {
|
|
4320
|
+
:where(.grail-layout) {
|
|
4321
|
+
grid-template-areas:
|
|
4322
|
+
"header header"
|
|
4323
|
+
"left main"
|
|
4324
|
+
"right right"
|
|
4325
|
+
"footer footer";
|
|
4326
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
|
|
4327
|
+
grid-template-rows: auto auto auto auto;
|
|
4328
|
+
}
|
|
4329
|
+
}
|
|
4330
|
+
|
|
4331
|
+
@media (max-width: 48rem) {
|
|
4332
|
+
:where(.grail-layout) {
|
|
4333
|
+
grid-template-areas:
|
|
4334
|
+
"header"
|
|
4335
|
+
"left"
|
|
4336
|
+
"main"
|
|
4337
|
+
"right"
|
|
4338
|
+
"footer";
|
|
4339
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4340
|
+
grid-template-rows: auto auto auto auto auto;
|
|
4341
|
+
}
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
@container (max-width: 30rem) {
|
|
4345
|
+
:where(.summary-list) {
|
|
4346
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4347
|
+
row-gap: 0.25rem;
|
|
4348
|
+
}
|
|
4349
|
+
|
|
4350
|
+
:where(.kanban-table-td) {
|
|
4351
|
+
min-width: 10rem;
|
|
4352
|
+
}
|
|
4353
|
+
|
|
4354
|
+
:where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
|
|
4355
|
+
padding-inline: 0.5rem;
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
|
|
4359
|
+
/* ============================================================================
|
|
4360
|
+
* Focus not obscured — shared verbatim by all themes.
|
|
4361
|
+
*
|
|
4362
|
+
* WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
|
|
4363
|
+
* entirely hidden by author-created content, such as a bar fixed to the top or
|
|
4364
|
+
* bottom of the viewport. The browser scrolls a focused control into view, but
|
|
4365
|
+
* only as far as the edge of the viewport, which is where a fixed bar sits.
|
|
4366
|
+
* `scroll-padding` moves that edge in by the bar's height.
|
|
4367
|
+
*
|
|
4368
|
+
* Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
|
|
4369
|
+
* theme's or an app's own fixed header, a mobile bottom navigation) sets the
|
|
4370
|
+
* bar's height on the root element:
|
|
4371
|
+
*
|
|
4372
|
+
* --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
|
|
4373
|
+
* --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
|
|
4374
|
+
*
|
|
4375
|
+
* With both bars, set both. The defaults are 0px, so a page without a fixed bar
|
|
4376
|
+
* is unchanged. Specificity is zero (`:where`), so an app's own
|
|
4377
|
+
* `scroll-padding` wins.
|
|
4378
|
+
* ========================================================================= */
|
|
4379
|
+
|
|
4380
|
+
:where(html) {
|
|
4381
|
+
scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4384
|
+
/* ============================================================================
|
|
4385
|
+
* Text size and motion preferences — shared verbatim by all themes.
|
|
4386
|
+
*
|
|
4387
|
+
* The text-size-picker sets `data-text-size` on the root and the motion-picker
|
|
4388
|
+
* sets `data-motion`; neither styles anything itself. These rules are what make
|
|
4389
|
+
* the choice visible.
|
|
4390
|
+
*
|
|
4391
|
+
* Text size: the seven steps scale the root font size, and every theme sizes in
|
|
4392
|
+
* `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
|
|
4393
|
+
* own browser setting), and the scale is percentages of that, never pixels, so
|
|
4394
|
+
* a viewer who raised their browser font size keeps it. The steps below
|
|
4395
|
+
* `normal` are the viewer's explicit choice.
|
|
4396
|
+
*
|
|
4397
|
+
* Motion: `data-motion="reduce"` shortens every animation and transition to
|
|
4398
|
+
* 0.01ms instead of removing it. The end state still arrives and `animationend`
|
|
4399
|
+
* / `transitionend` still fire, so nothing that depends on them breaks and no
|
|
4400
|
+
* information is lost: a spinner's `role="status"` text, a disclosure's open
|
|
4401
|
+
* state and a toast's content are untouched. Scrolling is instant.
|
|
4402
|
+
* ========================================================================= */
|
|
4403
|
+
|
|
4404
|
+
:where(html[data-text-size="smallest"]) { font-size: 80%; }
|
|
4405
|
+
:where(html[data-text-size="smaller"]) { font-size: 90%; }
|
|
4406
|
+
:where(html[data-text-size="small"]) { font-size: 95%; }
|
|
4407
|
+
:where(html[data-text-size="normal"]) { font-size: 100%; }
|
|
4408
|
+
:where(html[data-text-size="large"]) { font-size: 110%; }
|
|
4409
|
+
:where(html[data-text-size="larger"]) { font-size: 125%; }
|
|
4410
|
+
:where(html[data-text-size="largest"]) { font-size: 150%; }
|
|
4411
|
+
|
|
4412
|
+
:where(html[data-motion="reduce"]) {
|
|
4413
|
+
scroll-behavior: auto;
|
|
4414
|
+
}
|
|
4415
|
+
:where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
|
|
4416
|
+
animation-duration: 0.01ms !important;
|
|
4417
|
+
animation-iteration-count: 1 !important;
|
|
4418
|
+
animation-delay: 0s !important;
|
|
4419
|
+
transition-duration: 0.01ms !important;
|
|
4420
|
+
transition-delay: 0s !important;
|
|
4421
|
+
scroll-behavior: auto !important;
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
/* ============================================================================
|
|
4425
|
+
* Forced colours and contrast preference — shared verbatim by all themes.
|
|
4426
|
+
*
|
|
4427
|
+
* Forced colours (Windows High Contrast, `forced-colors: active`): the browser
|
|
4428
|
+
* replaces every colour with a system colour, which erases anything a control
|
|
4429
|
+
* told apart by background alone. These rules give such controls a border,
|
|
4430
|
+
* keep the focus ring, and mark selected and current items with `Highlight`
|
|
4431
|
+
* and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
|
|
4432
|
+
*
|
|
4433
|
+
* Contrast preference (`prefers-contrast: more`): a heavier border on controls
|
|
4434
|
+
* and a thicker focus ring. Colours are not changed here; a theme's colours are
|
|
4435
|
+
* its author's decision.
|
|
4436
|
+
* ========================================================================= */
|
|
4437
|
+
|
|
4438
|
+
@media (forced-colors: active) {
|
|
4439
|
+
:where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
|
|
4440
|
+
border: 1px solid ButtonBorder;
|
|
4441
|
+
}
|
|
4442
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4443
|
+
outline: 3px solid Highlight;
|
|
4444
|
+
outline-offset: 2px;
|
|
4445
|
+
}
|
|
4446
|
+
:where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
|
|
4447
|
+
background: SelectedItem;
|
|
4448
|
+
color: SelectedItemText;
|
|
4449
|
+
forced-color-adjust: none;
|
|
4450
|
+
}
|
|
4451
|
+
:where([aria-current]:not([aria-current="false"])) {
|
|
4452
|
+
outline: 2px solid Highlight;
|
|
4453
|
+
outline-offset: -2px;
|
|
4454
|
+
}
|
|
4455
|
+
:where(:disabled, [aria-disabled="true"]) {
|
|
4456
|
+
border-color: GrayText;
|
|
4457
|
+
color: GrayText;
|
|
4458
|
+
}
|
|
4459
|
+
}
|
|
4460
|
+
|
|
4461
|
+
@media (prefers-contrast: more) {
|
|
4462
|
+
:where(button, input, select, textarea, [role="button"], [class$="-button"]) {
|
|
4463
|
+
border-width: 2px;
|
|
4464
|
+
border-style: solid;
|
|
4465
|
+
border-color: currentColor;
|
|
4466
|
+
}
|
|
4467
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4468
|
+
outline-width: 3px;
|
|
4469
|
+
outline-offset: 2px;
|
|
4470
|
+
}
|
|
4471
|
+
}
|
|
4472
|
+
|
|
4473
|
+
/* ============================================================================
|
|
4474
|
+
* Writing systems — shared verbatim by all themes.
|
|
4475
|
+
*
|
|
4476
|
+
* A theme names its Latin font stack (`--lily-font-body-latin`). This section
|
|
4477
|
+
* builds `--lily-font-body` from it, with the system fonts of the element's
|
|
4478
|
+
* script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
|
|
4479
|
+
* Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
|
|
4480
|
+
* scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
|
|
4481
|
+
* Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
|
|
4482
|
+
* Chinese and Japanese but drawn differently, so the language picks the font,
|
|
4483
|
+
* not the script.
|
|
4484
|
+
*
|
|
4485
|
+
* `--lily-font-body` is re-declared on every element with a `lang`, so a
|
|
4486
|
+
* `<p lang="ja">` inside an English page gets Japanese fonts and a
|
|
4487
|
+
* `<span lang="en">` inside it gets none. A language not listed here keeps the
|
|
4488
|
+
* Latin stack, whose final generic family the browser resolves per language.
|
|
4489
|
+
*
|
|
4490
|
+
* `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
|
|
4491
|
+
* and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
|
|
4492
|
+
* Elements with a `lang` use it; the app's body text should too.
|
|
4493
|
+
*
|
|
4494
|
+
* To change a theme's font, set `--lily-font-body-latin`; to change a script's,
|
|
4495
|
+
* set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
|
|
4496
|
+
* itself still works on the element you set it on.
|
|
4497
|
+
* ========================================================================= */
|
|
4498
|
+
|
|
4499
|
+
:where(:root, [lang]) {
|
|
4500
|
+
--lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
|
|
4501
|
+
--lily-line-height-body: 1.5;
|
|
4502
|
+
}
|
|
4503
|
+
|
|
4504
|
+
:where([lang]) {
|
|
4505
|
+
--lily-font-script: initial;
|
|
4506
|
+
line-height: var(--lily-line-height-body);
|
|
4507
|
+
}
|
|
4508
|
+
|
|
4509
|
+
:where([lang|="zh"], [lang|="wuu"]) {
|
|
4510
|
+
--lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
|
|
4511
|
+
}
|
|
4512
|
+
:where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
|
|
4513
|
+
--lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
|
|
4514
|
+
}
|
|
4515
|
+
:where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
|
|
4516
|
+
--lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
|
|
4517
|
+
}
|
|
4518
|
+
:where([lang|="ja"]) {
|
|
4519
|
+
--lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
|
|
4520
|
+
}
|
|
4521
|
+
:where([lang|="ko"]) {
|
|
4522
|
+
--lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
|
|
4523
|
+
}
|
|
4524
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
|
|
4525
|
+
--lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
|
|
4526
|
+
}
|
|
4527
|
+
:where([lang|="ur"]) {
|
|
4528
|
+
--lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
|
|
4529
|
+
}
|
|
4530
|
+
:where([lang|="he"], [lang|="yi"]) {
|
|
4531
|
+
--lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
|
|
4532
|
+
}
|
|
4533
|
+
:where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
|
|
4534
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
|
|
4535
|
+
}
|
|
4536
|
+
:where([lang|="bn"], [lang|="as"]) {
|
|
4537
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
|
|
4538
|
+
}
|
|
4539
|
+
:where([lang|="gu"]) {
|
|
4540
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
|
|
4541
|
+
}
|
|
4542
|
+
:where([lang|="pa"]) {
|
|
4543
|
+
--lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
|
|
4544
|
+
}
|
|
4545
|
+
:where([lang|="kn"]) {
|
|
4546
|
+
--lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
|
|
4547
|
+
}
|
|
4548
|
+
:where([lang|="ta"]) {
|
|
4549
|
+
--lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
|
|
4550
|
+
}
|
|
4551
|
+
:where([lang|="te"]) {
|
|
4552
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
|
|
4553
|
+
}
|
|
4554
|
+
:where([lang|="th"]) {
|
|
4555
|
+
--lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
|
|
4556
|
+
}
|
|
4557
|
+
:where([lang|="lo"]) {
|
|
4558
|
+
--lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
|
|
4559
|
+
}
|
|
4560
|
+
:where([lang|="km"]) {
|
|
4561
|
+
--lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
|
|
4562
|
+
}
|
|
4563
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
|
|
4564
|
+
[lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
|
|
4565
|
+
[lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
|
|
4566
|
+
[lang|="lo"], [lang|="km"]) {
|
|
4567
|
+
--lily-line-height-body: 1.75;
|
|
4568
|
+
}
|