@lilydesignsystem/themes 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +8 -8
- package/dist/abyss.css +967 -31
- package/dist/acid.css +966 -30
- package/dist/adobe-spectrum.css +968 -32
- package/dist/ant-design.css +966 -30
- package/dist/aqua.css +968 -32
- package/dist/atlassian.css +966 -30
- package/dist/australia-agriculture-design-system.css +4569 -0
- package/dist/autumn.css +968 -32
- package/dist/black.css +967 -31
- package/dist/brazil-padrao-digital-de-governo.css +4569 -0
- package/dist/bumblebee.css +969 -33
- package/dist/business.css +967 -31
- package/dist/canada-government-of-canada-design-system.css +4569 -0
- package/dist/cappuccino.css +966 -30
- package/dist/caramellatte.css +967 -31
- package/dist/cmyk.css +966 -30
- package/dist/coffee.css +966 -30
- package/dist/corporate.css +970 -34
- package/dist/cupcake.css +967 -31
- package/dist/cyberpunk.css +966 -30
- package/dist/dark.css +968 -32
- package/dist/dim.css +966 -30
- package/dist/dracula.css +966 -30
- package/dist/emerald.css +967 -31
- package/dist/european-union-europa-component-library.css +4569 -0
- package/dist/excel.css +966 -30
- package/dist/fantasy.css +967 -31
- package/dist/fluent.css +966 -30
- package/dist/forest.css +966 -30
- package/dist/garden.css +968 -32
- package/dist/github-primer.css +966 -30
- package/dist/halloween.css +967 -31
- package/dist/ibm-carbon.css +966 -30
- package/dist/japan-digital-agency-design-system.css +4569 -0
- package/dist/lemonade.css +966 -30
- package/dist/light.css +967 -31
- package/dist/linear.css +966 -30
- package/dist/lofi.css +966 -30
- package/dist/luxury.css +966 -30
- package/dist/mozilla-protocol.css +968 -32
- package/dist/night.css +966 -30
- package/dist/nord.css +966 -30
- package/dist/notion.css +966 -30
- package/dist/pastel.css +973 -37
- package/dist/retro.css +970 -34
- package/dist/salesforce.css +966 -30
- package/dist/sap-fiori.css +966 -30
- package/dist/silk.css +967 -31
- package/dist/singapore-government-design-system.css +4569 -0
- package/dist/sunset.css +966 -30
- package/dist/synthwave.css +966 -30
- package/dist/united-kingdom-government-digital-service.css +966 -30
- package/dist/united-kingdom-national-health-service-england-for-patients.css +990 -41
- package/dist/united-kingdom-national-health-service-england-for-practitioners.css +988 -39
- package/dist/united-kingdom-national-health-service-scotland-for-patients.css +1001 -49
- package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +996 -44
- package/dist/united-kingdom-national-health-service-wales-for-patients.css +1003 -49
- package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +996 -42
- package/dist/united-states-web-design-system.css +967 -31
- package/dist/valentine.css +970 -34
- package/dist/vercel.css +966 -30
- package/dist/winter.css +967 -31
- package/dist/wireframe.css +966 -30
- package/index.md +8 -4
- package/package.json +3 -3
package/dist/wireframe.css
CHANGED
|
@@ -111,6 +111,14 @@
|
|
|
111
111
|
want to layer a subtle texture; the baseline rules do not
|
|
112
112
|
consume it. */
|
|
113
113
|
--noise: 0;
|
|
114
|
+
/* Fluid inline gutter for page containers and the main
|
|
115
|
+
region: grows with the viewport from a 1rem floor to a 2rem
|
|
116
|
+
ceiling. Spacing only, never text. */
|
|
117
|
+
--space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
|
|
118
|
+
/* Fluid gap between sections (stacks and grids): grows with
|
|
119
|
+
the viewport from a 1rem floor to a 2rem ceiling. Spacing
|
|
120
|
+
only, never text. */
|
|
121
|
+
--space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
|
|
114
122
|
}
|
|
115
123
|
|
|
116
124
|
/* ----------------------------------------------------------------------------
|
|
@@ -212,7 +220,7 @@
|
|
|
212
220
|
/* --- Typography ---------------------------------------------------- */
|
|
213
221
|
/* Body font stack — system fonts first so consumers get a
|
|
214
222
|
native-feeling baseline without shipping a web font. */
|
|
215
|
-
--lily-font-body:
|
|
223
|
+
--lily-font-body-latin:
|
|
216
224
|
system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
|
|
217
225
|
Arial, sans-serif;
|
|
218
226
|
/* Monospaced font stack — used by code, kbd, identifiers, and
|
|
@@ -319,9 +327,12 @@
|
|
|
319
327
|
}
|
|
320
328
|
|
|
321
329
|
/* Invalid input — red border. The `aria-invalid="true"` attribute is the
|
|
322
|
-
ARIA contract
|
|
323
|
-
|
|
324
|
-
|
|
330
|
+
ARIA contract (server-rendered errors); `:user-invalid` is the native
|
|
331
|
+
state that matches only after the user has interacted, so a required
|
|
332
|
+
field is not styled invalid on load. Pairing a colour change with the
|
|
333
|
+
ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
|
|
334
|
+
:where([class$="-input"], .input)[aria-invalid="true"],
|
|
335
|
+
:where([class$="-input"], .input):user-invalid {
|
|
325
336
|
border-color: var(--color-error);
|
|
326
337
|
}
|
|
327
338
|
|
|
@@ -858,7 +869,7 @@
|
|
|
858
869
|
color: var(--lily-text-muted);
|
|
859
870
|
}
|
|
860
871
|
/* Final crumb (the current page) — muted because it isn't a link. */
|
|
861
|
-
:where(.breadcrumb-list-item[aria-current="page"]) {
|
|
872
|
+
:where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
|
|
862
873
|
color: var(--lily-text-muted);
|
|
863
874
|
}
|
|
864
875
|
|
|
@@ -1127,11 +1138,114 @@
|
|
|
1127
1138
|
background-color: var(--color-primary);
|
|
1128
1139
|
color: var(--color-primary-content);
|
|
1129
1140
|
}
|
|
1130
|
-
/* Today — outlined
|
|
1131
|
-
|
|
1141
|
+
/* Today — outlined and bold, never filled, so a selected non-today date still
|
|
1142
|
+
reads as "selected". The ring takes the cell's own text colour (currentColor),
|
|
1143
|
+
so it holds its contrast on a light page, a dark page and a selected cell
|
|
1144
|
+
alike, and the bold number says it without colour. */
|
|
1132
1145
|
:where(.calendar-table-td[aria-current="date"]) {
|
|
1133
|
-
outline: 2px solid
|
|
1134
|
-
outline-offset: -
|
|
1146
|
+
outline: 2px solid currentColor;
|
|
1147
|
+
outline-offset: -3px;
|
|
1148
|
+
font-weight: 700;
|
|
1149
|
+
}
|
|
1150
|
+
/* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
|
|
1151
|
+
:where(.calendar-table) {
|
|
1152
|
+
table-layout: fixed;
|
|
1153
|
+
}
|
|
1154
|
+
:where(.calendar-table-td, .calendar-table-th) {
|
|
1155
|
+
min-width: 0;
|
|
1156
|
+
overflow-wrap: anywhere;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
/* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
|
|
1160
|
+
:where(.data-grid-toolbar) {
|
|
1161
|
+
display: flex;
|
|
1162
|
+
flex-wrap: wrap;
|
|
1163
|
+
gap: var(--lily-space-sm);
|
|
1164
|
+
align-items: center;
|
|
1165
|
+
margin-block-end: var(--lily-space-sm);
|
|
1166
|
+
}
|
|
1167
|
+
:where(.data-grid-search, .data-grid-search-field) {
|
|
1168
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1169
|
+
border: var(--border) solid var(--lily-border);
|
|
1170
|
+
border-radius: var(--lily-radius-sm);
|
|
1171
|
+
background-color: var(--lily-surface);
|
|
1172
|
+
color: var(--lily-text);
|
|
1173
|
+
font: inherit;
|
|
1174
|
+
}
|
|
1175
|
+
/* A sortable header is a button that looks like its text; the arrow follows aria-sort,
|
|
1176
|
+
so the state is in the markup for assistive technology and on screen for everyone. */
|
|
1177
|
+
:where(.data-grid-sort-button) {
|
|
1178
|
+
padding: 0;
|
|
1179
|
+
border: 0;
|
|
1180
|
+
background: none;
|
|
1181
|
+
color: inherit;
|
|
1182
|
+
font: inherit;
|
|
1183
|
+
text-align: start;
|
|
1184
|
+
cursor: pointer;
|
|
1185
|
+
}
|
|
1186
|
+
:where(.data-grid-sort-button:focus-visible) {
|
|
1187
|
+
outline: 2px solid var(--color-accent);
|
|
1188
|
+
outline-offset: 2px;
|
|
1189
|
+
}
|
|
1190
|
+
:where([aria-sort="none"] .data-grid-sort-button)::after {
|
|
1191
|
+
content: " \21C5";
|
|
1192
|
+
opacity: 0.5;
|
|
1193
|
+
}
|
|
1194
|
+
:where([aria-sort="ascending"] .data-grid-sort-button)::after {
|
|
1195
|
+
content: " \25B2";
|
|
1196
|
+
}
|
|
1197
|
+
:where([aria-sort="descending"] .data-grid-sort-button)::after {
|
|
1198
|
+
content: " \25BC";
|
|
1199
|
+
}
|
|
1200
|
+
:where(.data-grid-pagination) {
|
|
1201
|
+
display: flex;
|
|
1202
|
+
flex-wrap: wrap;
|
|
1203
|
+
gap: var(--lily-space-sm);
|
|
1204
|
+
align-items: center;
|
|
1205
|
+
justify-content: flex-end;
|
|
1206
|
+
margin-block-start: var(--lily-space-sm);
|
|
1207
|
+
}
|
|
1208
|
+
:where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
|
|
1209
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
1210
|
+
border: var(--border) solid var(--lily-border);
|
|
1211
|
+
border-radius: var(--lily-radius-sm);
|
|
1212
|
+
background-color: var(--lily-surface);
|
|
1213
|
+
color: var(--lily-text);
|
|
1214
|
+
font: inherit;
|
|
1215
|
+
cursor: pointer;
|
|
1216
|
+
}
|
|
1217
|
+
:where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
|
|
1218
|
+
opacity: 0.5;
|
|
1219
|
+
cursor: not-allowed;
|
|
1220
|
+
}
|
|
1221
|
+
:where(.data-grid-column-visibility) {
|
|
1222
|
+
display: flex;
|
|
1223
|
+
flex-wrap: wrap;
|
|
1224
|
+
gap: var(--lily-space-sm);
|
|
1225
|
+
margin: 0;
|
|
1226
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1227
|
+
border: var(--border) solid var(--lily-border);
|
|
1228
|
+
border-radius: var(--lily-radius-sm);
|
|
1229
|
+
}
|
|
1230
|
+
/* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
|
|
1231
|
+
:where([data-pinned="start"]) {
|
|
1232
|
+
position: sticky;
|
|
1233
|
+
inset-inline-start: 0;
|
|
1234
|
+
z-index: 1;
|
|
1235
|
+
background-color: var(--lily-surface);
|
|
1236
|
+
}
|
|
1237
|
+
:where([data-pinned="end"]) {
|
|
1238
|
+
position: sticky;
|
|
1239
|
+
inset-inline-end: 0;
|
|
1240
|
+
z-index: 1;
|
|
1241
|
+
background-color: var(--lily-surface);
|
|
1242
|
+
}
|
|
1243
|
+
:where(th[data-pinned]) {
|
|
1244
|
+
z-index: 2;
|
|
1245
|
+
}
|
|
1246
|
+
/* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
|
|
1247
|
+
:where(.data-table-td[data-empty]) {
|
|
1248
|
+
opacity: 0.7;
|
|
1135
1249
|
}
|
|
1136
1250
|
|
|
1137
1251
|
/* --- Kanban specifics --------------------------------------------------- */
|
|
@@ -1145,6 +1259,20 @@
|
|
|
1145
1259
|
min-width: 14rem;
|
|
1146
1260
|
}
|
|
1147
1261
|
|
|
1262
|
+
/* Dragging a card: the column it would land in is outlined; one that refuses it
|
|
1263
|
+
(canMove, allowedColumns, a full strict WIP limit) is striped and shows the
|
|
1264
|
+
not-allowed cursor, so "you can't drop here" is visible before the drop. */
|
|
1265
|
+
:where(.kanban-table-td[data-drop-target]) {
|
|
1266
|
+
outline: 2px dashed var(--color-accent);
|
|
1267
|
+
outline-offset: -3px;
|
|
1268
|
+
}
|
|
1269
|
+
:where(.kanban-table-td[data-drop-blocked]) {
|
|
1270
|
+
outline: 2px solid var(--color-error);
|
|
1271
|
+
outline-offset: -3px;
|
|
1272
|
+
cursor: not-allowed;
|
|
1273
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1148
1276
|
/* --- Gantt specifics ---------------------------------------------------- */
|
|
1149
1277
|
/* Cells marked as bars are filled with the primary colour to render the
|
|
1150
1278
|
schedule bar inline within the grid. */
|
|
@@ -1152,6 +1280,20 @@
|
|
|
1152
1280
|
background-color: var(--color-primary);
|
|
1153
1281
|
}
|
|
1154
1282
|
|
|
1283
|
+
/* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
|
|
1284
|
+
is tinted; a day marked as a holiday or time off (data-unavailable /
|
|
1285
|
+
data-range) is striped as well, so no day is told apart by colour alone;
|
|
1286
|
+
a column only partly unavailable gets a bar under its header. */
|
|
1287
|
+
:where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
|
|
1288
|
+
background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
|
|
1289
|
+
}
|
|
1290
|
+
:where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
|
|
1291
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
|
|
1292
|
+
}
|
|
1293
|
+
:where(.gantt-table-th[data-partly-unavailable]) {
|
|
1294
|
+
box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1155
1297
|
/* ==========================================================================
|
|
1156
1298
|
* Cards, panels, surfaces
|
|
1157
1299
|
* --------------------------------------------------------------------------
|
|
@@ -1334,13 +1476,17 @@
|
|
|
1334
1476
|
padding: 0.75rem 1rem;
|
|
1335
1477
|
}
|
|
1336
1478
|
|
|
1337
|
-
/* Sticky promo —
|
|
1479
|
+
/* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
|
|
1480
|
+
the component's own bottom: 0 it would stretch over the whole page and take every click. */
|
|
1338
1481
|
:where(.sticky-promo-banner) {
|
|
1339
1482
|
position: sticky;
|
|
1340
|
-
inset-block-start: 0;
|
|
1341
1483
|
z-index: 10;
|
|
1342
1484
|
}
|
|
1343
1485
|
|
|
1486
|
+
:where(.sticky-promo-banner:not([data-position="bottom"])) {
|
|
1487
|
+
inset-block-start: 0;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1344
1490
|
/* Error message — inline form-validation message. */
|
|
1345
1491
|
:where(.error-message) {
|
|
1346
1492
|
color: var(--lily-error-text);
|
|
@@ -1420,7 +1566,7 @@
|
|
|
1420
1566
|
display: block;
|
|
1421
1567
|
width: 100%;
|
|
1422
1568
|
margin-inline: auto;
|
|
1423
|
-
padding-inline:
|
|
1569
|
+
padding-inline: var(--space-fluid-gutter);
|
|
1424
1570
|
box-sizing: border-box;
|
|
1425
1571
|
}
|
|
1426
1572
|
/* Fixed-width — caps at a comfortable reading width (~1152px). */
|
|
@@ -1440,11 +1586,11 @@
|
|
|
1440
1586
|
:where(.flex-stack) {
|
|
1441
1587
|
display: flex;
|
|
1442
1588
|
flex-direction: column;
|
|
1443
|
-
gap:
|
|
1589
|
+
gap: var(--space-fluid-section);
|
|
1444
1590
|
}
|
|
1445
1591
|
:where(.grid) {
|
|
1446
1592
|
display: grid;
|
|
1447
|
-
gap:
|
|
1593
|
+
gap: var(--space-fluid-section);
|
|
1448
1594
|
}
|
|
1449
1595
|
:where(.masonry) {
|
|
1450
1596
|
column-count: 3;
|
|
@@ -1499,7 +1645,7 @@
|
|
|
1499
1645
|
:where(.content-block) {
|
|
1500
1646
|
max-width: var(--content-width-normal);
|
|
1501
1647
|
margin-inline: auto;
|
|
1502
|
-
padding-inline:
|
|
1648
|
+
padding-inline: var(--space-fluid-gutter);
|
|
1503
1649
|
box-sizing: border-box;
|
|
1504
1650
|
}
|
|
1505
1651
|
:where(.content-block[data-width="narrower"]) {
|
|
@@ -1517,7 +1663,8 @@
|
|
|
1517
1663
|
|
|
1518
1664
|
/* --- Grail layout (5-region responsive page shell) --------------------- */
|
|
1519
1665
|
/* Header spans the top; left-aside / main / right-aside fill the middle;
|
|
1520
|
-
footer spans the bottom.
|
|
1666
|
+
footer spans the bottom. The collapse as the window narrows is in the shared
|
|
1667
|
+
container section at the end of this file. */
|
|
1521
1668
|
:where(.grail-layout) {
|
|
1522
1669
|
display: grid;
|
|
1523
1670
|
min-height: 100vh;
|
|
@@ -1557,15 +1704,7 @@
|
|
|
1557
1704
|
}
|
|
1558
1705
|
/* Main content area — primary surface, more generous padding. */
|
|
1559
1706
|
:where(.grail-layout-center-main) {
|
|
1560
|
-
padding:
|
|
1561
|
-
}
|
|
1562
|
-
/* Mobile breakpoint — collapse to a single column, stacking the regions. */
|
|
1563
|
-
@media (max-width: 48rem) {
|
|
1564
|
-
:where(.grail-layout) {
|
|
1565
|
-
grid-template-areas: "header" "main" "left" "right" "footer";
|
|
1566
|
-
grid-template-columns: 1fr;
|
|
1567
|
-
grid-template-rows: auto auto auto auto auto;
|
|
1568
|
-
}
|
|
1707
|
+
padding: var(--space-fluid-gutter);
|
|
1569
1708
|
}
|
|
1570
1709
|
|
|
1571
1710
|
/* Standalone semantic header / footer landmarks. */
|
|
@@ -1656,6 +1795,15 @@
|
|
|
1656
1795
|
/* Drawers — side panels (right edge by default; RTL-aware via logical
|
|
1657
1796
|
properties). Sit above the overlay container (z-index 101). */
|
|
1658
1797
|
:where(.drawer, .slide-out-drawer, .sheet) {
|
|
1798
|
+
/* These are <dialog> elements opened with showModal() (P18-T6): undo the
|
|
1799
|
+
browser's centred-box defaults so the panel docks to the edge. */
|
|
1800
|
+
margin: 0;
|
|
1801
|
+
border: 0;
|
|
1802
|
+
inset-inline-start: auto;
|
|
1803
|
+
max-block-size: none;
|
|
1804
|
+
max-inline-size: none;
|
|
1805
|
+
block-size: 100%;
|
|
1806
|
+
box-sizing: border-box;
|
|
1659
1807
|
position: fixed;
|
|
1660
1808
|
inset-block: 0;
|
|
1661
1809
|
inset-inline-end: 0;
|
|
@@ -1668,6 +1816,10 @@
|
|
|
1668
1816
|
z-index: 101;
|
|
1669
1817
|
}
|
|
1670
1818
|
|
|
1819
|
+
:where(.drawer, .slide-out-drawer, .sheet)::backdrop {
|
|
1820
|
+
background-color: color-mix(in oklch, black 50%, transparent);
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1671
1823
|
/* ==========================================================================
|
|
1672
1824
|
* Menus
|
|
1673
1825
|
* ====================================================================== */
|
|
@@ -1720,7 +1872,7 @@
|
|
|
1720
1872
|
gap: 0.25rem;
|
|
1721
1873
|
}
|
|
1722
1874
|
/* Hamburger — bordered icon-button. */
|
|
1723
|
-
:where(.hamburger-menu) {
|
|
1875
|
+
:where(.hamburger-menu > button) {
|
|
1724
1876
|
display: inline-flex;
|
|
1725
1877
|
align-items: center;
|
|
1726
1878
|
justify-content: center;
|
|
@@ -2078,6 +2230,7 @@
|
|
|
2078
2230
|
.theme-picker,
|
|
2079
2231
|
.locale-picker,
|
|
2080
2232
|
.text-size-picker,
|
|
2233
|
+
.time-zone-picker,
|
|
2081
2234
|
.search-picker,
|
|
2082
2235
|
.link-picker,
|
|
2083
2236
|
.menu-picker,
|
|
@@ -2093,6 +2246,7 @@
|
|
|
2093
2246
|
.theme-picker-button,
|
|
2094
2247
|
.locale-picker-button,
|
|
2095
2248
|
.text-size-picker-button,
|
|
2249
|
+
.time-zone-picker-button,
|
|
2096
2250
|
.search-picker-button,
|
|
2097
2251
|
.link-picker-button,
|
|
2098
2252
|
.menu-picker-button,
|
|
@@ -2131,6 +2285,7 @@
|
|
|
2131
2285
|
.theme-picker-icon,
|
|
2132
2286
|
.locale-picker-icon,
|
|
2133
2287
|
.text-size-picker-icon,
|
|
2288
|
+
.time-zone-picker-icon,
|
|
2134
2289
|
.motion-picker-icon,
|
|
2135
2290
|
.link-picker-icon,
|
|
2136
2291
|
.menu-picker-icon,
|
|
@@ -2498,6 +2653,7 @@
|
|
|
2498
2653
|
.theme-picker-tooltip,
|
|
2499
2654
|
.locale-picker-tooltip,
|
|
2500
2655
|
.text-size-picker-tooltip,
|
|
2656
|
+
.time-zone-picker-tooltip,
|
|
2501
2657
|
.motion-picker-tooltip,
|
|
2502
2658
|
.link-picker-tooltip,
|
|
2503
2659
|
.menu-picker-tooltip,
|
|
@@ -2525,6 +2681,7 @@
|
|
|
2525
2681
|
.theme-picker-tooltip,
|
|
2526
2682
|
.locale-picker-tooltip,
|
|
2527
2683
|
.text-size-picker-tooltip,
|
|
2684
|
+
.time-zone-picker-tooltip,
|
|
2528
2685
|
.motion-picker-tooltip,
|
|
2529
2686
|
.link-picker-tooltip,
|
|
2530
2687
|
.menu-picker-tooltip,
|
|
@@ -2544,6 +2701,7 @@
|
|
|
2544
2701
|
.theme-picker-tooltip,
|
|
2545
2702
|
.locale-picker-tooltip,
|
|
2546
2703
|
.text-size-picker-tooltip,
|
|
2704
|
+
.time-zone-picker-tooltip,
|
|
2547
2705
|
.motion-picker-tooltip,
|
|
2548
2706
|
.link-picker-tooltip,
|
|
2549
2707
|
.menu-picker-tooltip,
|
|
@@ -2600,6 +2758,7 @@
|
|
|
2600
2758
|
.theme-picker-list,
|
|
2601
2759
|
.locale-picker-list,
|
|
2602
2760
|
.text-size-picker-list,
|
|
2761
|
+
.time-zone-picker-list,
|
|
2603
2762
|
.motion-picker-list,
|
|
2604
2763
|
.link-picker-list,
|
|
2605
2764
|
.menu-picker-panel,
|
|
@@ -2629,6 +2788,7 @@
|
|
|
2629
2788
|
.theme-picker-list,
|
|
2630
2789
|
.locale-picker-list,
|
|
2631
2790
|
.text-size-picker-list,
|
|
2791
|
+
.time-zone-picker-list,
|
|
2632
2792
|
.motion-picker-list,
|
|
2633
2793
|
.link-picker-list,
|
|
2634
2794
|
.menu-picker-panel,
|
|
@@ -2649,6 +2809,7 @@
|
|
|
2649
2809
|
:where(.theme-picker) { anchor-name: --lily-theme-picker; }
|
|
2650
2810
|
:where(.locale-picker) { anchor-name: --lily-locale-picker; }
|
|
2651
2811
|
:where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
|
|
2812
|
+
:where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
|
|
2652
2813
|
:where(.motion-picker) { anchor-name: --lily-motion-picker; }
|
|
2653
2814
|
:where(.link-picker) { anchor-name: --lily-link-picker; }
|
|
2654
2815
|
:where(.menu-picker) { anchor-name: --lily-menu-picker; }
|
|
@@ -2658,6 +2819,7 @@
|
|
|
2658
2819
|
:where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
|
|
2659
2820
|
:where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
|
|
2660
2821
|
:where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
|
|
2822
|
+
:where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
|
|
2661
2823
|
:where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
|
|
2662
2824
|
:where(.link-picker-list) { position-anchor: --lily-link-picker; }
|
|
2663
2825
|
:where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
|
|
@@ -2668,6 +2830,7 @@
|
|
|
2668
2830
|
.theme-picker-list,
|
|
2669
2831
|
.locale-picker-list,
|
|
2670
2832
|
.text-size-picker-list,
|
|
2833
|
+
.time-zone-picker-list,
|
|
2671
2834
|
.motion-picker-list,
|
|
2672
2835
|
.link-picker-list,
|
|
2673
2836
|
.menu-picker-panel,
|
|
@@ -2685,11 +2848,56 @@
|
|
|
2685
2848
|
}
|
|
2686
2849
|
}
|
|
2687
2850
|
|
|
2688
|
-
|
|
2851
|
+
/* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
|
|
2852
|
+
browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
|
|
2853
|
+
where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
|
|
2854
|
+
open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
|
|
2855
|
+
hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
|
|
2856
|
+
`position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
|
|
2857
|
+
position-area: with no anchor, position-area does nothing and a static position can be off screen. */
|
|
2858
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
|
|
2859
|
+
display: none;
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
|
|
2863
|
+
display: none;
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2866
|
+
@supports (position-area: block-end) {
|
|
2867
|
+
:where(.cascader-trigger) { anchor-name: --lily-cascader; }
|
|
2868
|
+
:where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
|
|
2869
|
+
:where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
|
|
2870
|
+
:where(.combobox > input) { anchor-name: --lily-combobox; }
|
|
2871
|
+
:where(.cascader-panel) { position-anchor: --lily-cascader; }
|
|
2872
|
+
:where(.tree-select-panel) { position-anchor: --lily-tree-select; }
|
|
2873
|
+
:where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
|
|
2874
|
+
:where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
|
|
2875
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
2876
|
+
position: fixed;
|
|
2877
|
+
inset: auto;
|
|
2878
|
+
margin: 0;
|
|
2879
|
+
position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
|
|
2880
|
+
width: max-content;
|
|
2881
|
+
max-width: calc(100vw - 1rem);
|
|
2882
|
+
}
|
|
2883
|
+
:where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
|
|
2884
|
+
inset-block-start: anchor(end, 25%);
|
|
2885
|
+
inset-inline-start: anchor(start, 25%);
|
|
2886
|
+
}
|
|
2887
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
2888
|
+
position-area: block-end span-inline-end;
|
|
2889
|
+
}
|
|
2890
|
+
:where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
|
|
2891
|
+
min-inline-size: anchor-size(inline);
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
|
|
2895
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2689
2896
|
> :where(
|
|
2690
2897
|
.theme-picker-option,
|
|
2691
2898
|
.locale-picker-option,
|
|
2692
2899
|
.text-size-picker-option,
|
|
2900
|
+
.time-zone-picker-option,
|
|
2693
2901
|
.motion-picker-option
|
|
2694
2902
|
) {
|
|
2695
2903
|
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
@@ -2699,7 +2907,7 @@
|
|
|
2699
2907
|
|
|
2700
2908
|
/* data-active is the keyboard cursor (aria-activedescendant); focus
|
|
2701
2909
|
stays on the listbox, so this is the only visible cue for it. */
|
|
2702
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2910
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2703
2911
|
> :where([data-active]) {
|
|
2704
2912
|
background-color: var(--lily-surface-alt);
|
|
2705
2913
|
outline: var(--lily-focus-ring);
|
|
@@ -2708,7 +2916,7 @@
|
|
|
2708
2916
|
|
|
2709
2917
|
/* aria-selected marks the applied theme/locale, which is not the
|
|
2710
2918
|
same thing as the keyboard cursor. Both can be visible at once. */
|
|
2711
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2919
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2712
2920
|
> :where([aria-selected="true"]) {
|
|
2713
2921
|
font-weight: 600;
|
|
2714
2922
|
background-color: var(--lily-surface-sunken);
|
|
@@ -3061,7 +3269,7 @@
|
|
|
3061
3269
|
}
|
|
3062
3270
|
/* Screen-reader-only — visually hidden but available to AT. The
|
|
3063
3271
|
classic clip-rect pattern (works in every screen reader). */
|
|
3064
|
-
:where(.screen-reader-span) {
|
|
3272
|
+
:where(.screen-reader-span, .middle-truncation-full) {
|
|
3065
3273
|
position: absolute;
|
|
3066
3274
|
width: 1px;
|
|
3067
3275
|
height: 1px;
|
|
@@ -3072,6 +3280,42 @@
|
|
|
3072
3280
|
white-space: nowrap;
|
|
3073
3281
|
border: 0;
|
|
3074
3282
|
}
|
|
3283
|
+
/* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
|
|
3284
|
+
text (hidden above) stays in the accessibility tree. */
|
|
3285
|
+
:where(.middle-truncation) {
|
|
3286
|
+
display: block;
|
|
3287
|
+
position: relative;
|
|
3288
|
+
overflow: hidden;
|
|
3289
|
+
white-space: nowrap;
|
|
3290
|
+
}
|
|
3291
|
+
/* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
|
|
3292
|
+
primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
|
|
3293
|
+
:where(.wheel-picker-list) {
|
|
3294
|
+
max-block-size: 10em;
|
|
3295
|
+
overflow-y: auto;
|
|
3296
|
+
overscroll-behavior: contain;
|
|
3297
|
+
scroll-snap-type: y mandatory;
|
|
3298
|
+
border: 1px solid var(--color-base-300);
|
|
3299
|
+
border-radius: var(--lily-radius-md);
|
|
3300
|
+
}
|
|
3301
|
+
:where(.wheel-picker-list:focus-visible) {
|
|
3302
|
+
outline: 2px solid var(--lily-focus-ring);
|
|
3303
|
+
outline-offset: 2px;
|
|
3304
|
+
}
|
|
3305
|
+
:where(.wheel-picker-option) {
|
|
3306
|
+
padding: 0.5rem 1rem;
|
|
3307
|
+
scroll-snap-align: center;
|
|
3308
|
+
cursor: pointer;
|
|
3309
|
+
}
|
|
3310
|
+
:where(.wheel-picker-option[aria-selected="true"]) {
|
|
3311
|
+
background-color: var(--color-primary);
|
|
3312
|
+
color: var(--color-primary-content);
|
|
3313
|
+
font-weight: 600;
|
|
3314
|
+
}
|
|
3315
|
+
:where(.wheel-picker-option[aria-disabled="true"]) {
|
|
3316
|
+
opacity: 0.5;
|
|
3317
|
+
cursor: not-allowed;
|
|
3318
|
+
}
|
|
3075
3319
|
|
|
3076
3320
|
/* ==========================================================================
|
|
3077
3321
|
* Hero, figure, photo, media
|
|
@@ -3604,6 +3848,81 @@
|
|
|
3604
3848
|
min-block-size: 24px;
|
|
3605
3849
|
}
|
|
3606
3850
|
|
|
3851
|
+
/* ============================================================================
|
|
3852
|
+
* Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
|
|
3853
|
+
*
|
|
3854
|
+
* Where the primary pointer is coarse (a finger), interactive hooks are at least
|
|
3855
|
+
* 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
|
|
3856
|
+
* buttons, form fields, checkboxes and radios, and the link-shaped navigation
|
|
3857
|
+
* hooks. Links inside running text are exempt, so bare `a` is not listed. The
|
|
3858
|
+
* query is the capability, never a viewport width. :where() keeps specificity
|
|
3859
|
+
* at zero, so any consumer rule still wins.
|
|
3860
|
+
* ========================================================================= */
|
|
3861
|
+
|
|
3862
|
+
@media (pointer: coarse) {
|
|
3863
|
+
:where(button,
|
|
3864
|
+
[role="button"],
|
|
3865
|
+
[role="tab"],
|
|
3866
|
+
[role="option"],
|
|
3867
|
+
[role="menuitem"],
|
|
3868
|
+
[class*="-picker-button"],
|
|
3869
|
+
summary,
|
|
3870
|
+
input:not([type="hidden"]),
|
|
3871
|
+
select,
|
|
3872
|
+
textarea,
|
|
3873
|
+
.action-link,
|
|
3874
|
+
.back-link,
|
|
3875
|
+
.breadcrumb-list-item > a,
|
|
3876
|
+
.pagination-list-item > a,
|
|
3877
|
+
.contents-list-item > a,
|
|
3878
|
+
.section-list-item > a) {
|
|
3879
|
+
min-inline-size: 44px;
|
|
3880
|
+
min-block-size: 44px;
|
|
3881
|
+
}
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3884
|
+
/* ============================================================================
|
|
3885
|
+
* Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
|
|
3886
|
+
*
|
|
3887
|
+
* --lily-brand is the identity's decorative colour: a header band, a rule, a
|
|
3888
|
+
* logo background. It is NEVER a text colour or a control's boundary, because a
|
|
3889
|
+
* brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
|
|
3890
|
+
* text drawn on it. By default they follow the theme's primary pair, which every
|
|
3891
|
+
* theme keeps readable; an adopter whose brand colour is lighter or darker sets
|
|
3892
|
+
* both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
|
|
3893
|
+
* content pairs (--color-base-content, --lily-error-text and so on).
|
|
3894
|
+
* ========================================================================== */
|
|
3895
|
+
|
|
3896
|
+
:where(:root) {
|
|
3897
|
+
--lily-brand: var(--color-primary);
|
|
3898
|
+
--lily-on-brand: var(--color-primary-content);
|
|
3899
|
+
}
|
|
3900
|
+
|
|
3901
|
+
/* ============================================================================
|
|
3902
|
+
* Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
|
|
3903
|
+
*
|
|
3904
|
+
* The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
|
|
3905
|
+
* adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
|
|
3906
|
+
* and no clear-space rule, because national and local guidelines disagree: a
|
|
3907
|
+
* theme or the adopter sets --lily-logo-clear-space (padding around the mark)
|
|
3908
|
+
* and --lily-logo-min-size (its smallest inline size). Both are unset by
|
|
3909
|
+
* default, so nothing changes until one is set.
|
|
3910
|
+
* ========================================================================== */
|
|
3911
|
+
|
|
3912
|
+
@layer lily {
|
|
3913
|
+
:where([data-lily-logo]) {
|
|
3914
|
+
display: inline-block;
|
|
3915
|
+
padding: var(--lily-logo-clear-space, 0);
|
|
3916
|
+
}
|
|
3917
|
+
|
|
3918
|
+
:where([data-lily-logo] > img, [data-lily-logo] > svg) {
|
|
3919
|
+
display: block;
|
|
3920
|
+
min-inline-size: var(--lily-logo-min-size, 0);
|
|
3921
|
+
max-inline-size: 100%;
|
|
3922
|
+
block-size: auto;
|
|
3923
|
+
}
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3607
3926
|
/* ============================================================================
|
|
3608
3927
|
* Overflow guards — narrow-viewport safety, shared verbatim by all themes.
|
|
3609
3928
|
*
|
|
@@ -3631,3 +3950,620 @@
|
|
|
3631
3950
|
:where(a, code) {
|
|
3632
3951
|
overflow-wrap: anywhere;
|
|
3633
3952
|
}
|
|
3953
|
+
|
|
3954
|
+
/* ============================================================================
|
|
3955
|
+
* Scoped overflow — shared verbatim by all themes.
|
|
3956
|
+
*
|
|
3957
|
+
* Long unbroken strings (a national identifier, an email address, a URL) and
|
|
3958
|
+
* grid/flex tracks that refuse to shrink are the usual causes of horizontal
|
|
3959
|
+
* page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
|
|
3960
|
+
* `overflow-wrap: anywhere` on the places a long value lands (table cells are
|
|
3961
|
+
* covered by Overflow guards above), and `min-inline-size: 0` on the direct
|
|
3962
|
+
* children of Lily's grid and flex containers so a child can shrink below its
|
|
3963
|
+
* content. The identifier `-view` list below is the catalog's 70 national
|
|
3964
|
+
* identifier views (components-categories.tsv); bin/check-theme fails when it
|
|
3965
|
+
* drifts from the catalog. :where() keeps specificity at zero.
|
|
3966
|
+
* ========================================================================= */
|
|
3967
|
+
|
|
3968
|
+
:where(
|
|
3969
|
+
.alba-community-health-index-view,
|
|
3970
|
+
.australia-individual-healthcare-identifier-view,
|
|
3971
|
+
.belgique-numero-de-registre-national-view,
|
|
3972
|
+
.bulgaria-edinen-grazhdanski-nomer-view,
|
|
3973
|
+
.cesko-cestovni-pas-view,
|
|
3974
|
+
.cesko-rodne-cislo-view,
|
|
3975
|
+
.cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
|
|
3976
|
+
.kypros-national-passport-number-view,
|
|
3977
|
+
.danmark-personnummer-view,
|
|
3978
|
+
.deutschland-krankenversichertennummer-view,
|
|
3979
|
+
.eesti-isikukood-view,
|
|
3980
|
+
.ellada-dematerialised-securities-system-view,
|
|
3981
|
+
.england-national-health-service-number-view,
|
|
3982
|
+
.espana-codigo-de-identificacion-fiscal-view,
|
|
3983
|
+
.espana-tarjeta-sanitaria-individual-view,
|
|
3984
|
+
.france-numero-d-identification-au-repertoire-view,
|
|
3985
|
+
.hrvatska-osobni-identifikacijski-broj-view,
|
|
3986
|
+
.eire-individual-health-identifier-view,
|
|
3987
|
+
.island-kennitala-view,
|
|
3988
|
+
.italia-codice-fiscale-view,
|
|
3989
|
+
.latvija-personas-kods-view,
|
|
3990
|
+
.liechtenstein-national-identity-card-number-view,
|
|
3991
|
+
.liechtenstein-passport-number-view,
|
|
3992
|
+
.lietuva-asmens-kodas-view,
|
|
3993
|
+
.lietuva-pasas-view,
|
|
3994
|
+
.malta-national-identification-number-view,
|
|
3995
|
+
.malta-passport-number-view,
|
|
3996
|
+
.nederland-burgerservice-nummer-view,
|
|
3997
|
+
.nederland-identiteitskaart-nummer-view,
|
|
3998
|
+
.nederland-paspoort-nummer-view,
|
|
3999
|
+
.norge-fodselsnummer-view,
|
|
4000
|
+
.tuaisceart-eireann-health-and-care-number-view,
|
|
4001
|
+
.polska-numer-identyfikacji-podatkowej-view,
|
|
4002
|
+
.polska-pesel-view,
|
|
4003
|
+
.portugal-numero-de-identificacao-fiscal-view,
|
|
4004
|
+
.portugal-passaporte-view,
|
|
4005
|
+
.romania-cod-numeric-personal-view,
|
|
4006
|
+
.romania-pasaport-view,
|
|
4007
|
+
.slovenija-emso-view,
|
|
4008
|
+
.slovensko-pas-view,
|
|
4009
|
+
.slovensko-rodne-cislo-view,
|
|
4010
|
+
.suomi-henkilotunnus-view,
|
|
4011
|
+
.sverige-personnummer-view,
|
|
4012
|
+
.iban-view,
|
|
4013
|
+
.united-kingdom-national-health-service-number-view,
|
|
4014
|
+
.united-kingdom-national-insurance-number-view,
|
|
4015
|
+
.united-states-social-security-number-view,
|
|
4016
|
+
.aotearoa-national-health-index-view,
|
|
4017
|
+
.pilipinas-philhealth-identification-number-view,
|
|
4018
|
+
.brasil-cartao-nacional-de-saude-view,
|
|
4019
|
+
.schweiz-ahv-nummer-view,
|
|
4020
|
+
.canada-social-insurance-number-view,
|
|
4021
|
+
.hanguk-jumin-deungnok-beonho-view,
|
|
4022
|
+
.nihon-kojin-bango-view,
|
|
4023
|
+
.bharat-aadhaar-view,
|
|
4024
|
+
.yisrael-teudat-zehut-view,
|
|
4025
|
+
.south-africa-identity-number-view,
|
|
4026
|
+
.mexico-clave-unica-de-registro-de-poblacion-view,
|
|
4027
|
+
.singapore-national-registration-identity-card-view,
|
|
4028
|
+
.osterreich-sozialversicherungsnummer-view,
|
|
4029
|
+
.magyarorszag-taj-szam-view,
|
|
4030
|
+
.luxembourg-matricule-view,
|
|
4031
|
+
.zhongguo-jumin-shenfenzheng-haoma-view,
|
|
4032
|
+
.rossiya-snils-view,
|
|
4033
|
+
.turkiye-tc-kimlik-numarasi-view,
|
|
4034
|
+
.argentina-codigo-unico-de-identificacion-laboral-view,
|
|
4035
|
+
.ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
|
|
4036
|
+
.indonesia-nomor-induk-kependudukan-view,
|
|
4037
|
+
.prathet-thai-lek-prajam-tua-prachachon-view,
|
|
4038
|
+
.chile-rol-unico-nacional-view,
|
|
4039
|
+
.taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
|
|
4040
|
+
.hong-kong-identity-card-view,
|
|
4041
|
+
.iran-kod-e-melli-view,
|
|
4042
|
+
.as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
|
|
4043
|
+
.malaysia-kad-pengenalan-view,
|
|
4044
|
+
.viet-nam-can-cuoc-cong-dan-view,
|
|
4045
|
+
.pakistan-computerized-national-identity-card-view,
|
|
4046
|
+
.uruguay-cedula-de-identidad-view,
|
|
4047
|
+
.ecuador-cedula-de-identidad-view,
|
|
4048
|
+
.colombia-cedula-de-ciudadania-view,
|
|
4049
|
+
.australia-tax-file-number-view,
|
|
4050
|
+
.nigeria-national-identification-number-view,
|
|
4051
|
+
.misr-al-raqm-al-qawmi-view
|
|
4052
|
+
) {
|
|
4053
|
+
overflow-wrap: anywhere;
|
|
4054
|
+
}
|
|
4055
|
+
|
|
4056
|
+
/* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
|
|
4057
|
+
:where(.summary-list, .summary-list-item, .description-list) {
|
|
4058
|
+
overflow-wrap: anywhere;
|
|
4059
|
+
}
|
|
4060
|
+
|
|
4061
|
+
:where(
|
|
4062
|
+
.grid,
|
|
4063
|
+
.flex-stack,
|
|
4064
|
+
.grail-layout,
|
|
4065
|
+
.summary-list,
|
|
4066
|
+
.summary-list-item,
|
|
4067
|
+
.description-list,
|
|
4068
|
+
.form,
|
|
4069
|
+
.editable-form,
|
|
4070
|
+
.field,
|
|
4071
|
+
.input-group,
|
|
4072
|
+
.button-group,
|
|
4073
|
+
.radio-group,
|
|
4074
|
+
.checkbox-group,
|
|
4075
|
+
.toggle-group,
|
|
4076
|
+
.tag-group,
|
|
4077
|
+
.split-view,
|
|
4078
|
+
.photo-pack,
|
|
4079
|
+
.data-filter-form,
|
|
4080
|
+
.action-bar,
|
|
4081
|
+
.tool-bar,
|
|
4082
|
+
.menu-bar,
|
|
4083
|
+
.tab-bar
|
|
4084
|
+
) > :where(*) {
|
|
4085
|
+
min-inline-size: 0;
|
|
4086
|
+
}
|
|
4087
|
+
|
|
4088
|
+
/* ============================================================================
|
|
4089
|
+
* Helper packages — layout and look, shared verbatim by all themes.
|
|
4090
|
+
*
|
|
4091
|
+
* The data grid, kanban board, Gantt chart and calendar view are wide by nature.
|
|
4092
|
+
* Each root scrolls sideways inside its own box and its table sizes to its content,
|
|
4093
|
+
* so a narrow screen scrolls the table instead of wrapping every cell to a letter
|
|
4094
|
+
* (the overflow guard above lets cells break anywhere, which is right for prose and
|
|
4095
|
+
* wrong for a table that has a scroller). The toolbar controls of all four helpers
|
|
4096
|
+
* share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
|
|
4097
|
+
* the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
|
|
4098
|
+
* today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
|
|
4099
|
+
* ========================================================================= */
|
|
4100
|
+
|
|
4101
|
+
:where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
|
|
4102
|
+
max-inline-size: 100%;
|
|
4103
|
+
overflow-x: auto;
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
:where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
|
|
4107
|
+
inline-size: max-content;
|
|
4108
|
+
min-inline-size: 100%;
|
|
4109
|
+
}
|
|
4110
|
+
|
|
4111
|
+
:where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
|
|
4112
|
+
.calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
|
|
4113
|
+
display: flex;
|
|
4114
|
+
flex-wrap: wrap;
|
|
4115
|
+
gap: var(--lily-space-sm);
|
|
4116
|
+
align-items: center;
|
|
4117
|
+
margin-block-end: var(--lily-space-sm);
|
|
4118
|
+
}
|
|
4119
|
+
|
|
4120
|
+
:where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
|
|
4121
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
4122
|
+
border: var(--border) solid var(--lily-border);
|
|
4123
|
+
border-radius: var(--lily-radius-sm);
|
|
4124
|
+
background-color: var(--lily-surface);
|
|
4125
|
+
color: var(--lily-text);
|
|
4126
|
+
font: inherit;
|
|
4127
|
+
min-block-size: 24px;
|
|
4128
|
+
}
|
|
4129
|
+
|
|
4130
|
+
:where(.kanban-board-export-button,
|
|
4131
|
+
.kanban-board-add-button,
|
|
4132
|
+
.kanban-board-undo-button,
|
|
4133
|
+
.kanban-board-collapse-button,
|
|
4134
|
+
.kanban-board-lane-toggle,
|
|
4135
|
+
.kanban-board-move-button,
|
|
4136
|
+
.gantt-chart-export-button,
|
|
4137
|
+
.gantt-chart-zoom-in-button,
|
|
4138
|
+
.gantt-chart-zoom-out-button,
|
|
4139
|
+
.gantt-chart-collapse-button,
|
|
4140
|
+
.gantt-chart-collapse-all-button,
|
|
4141
|
+
.gantt-chart-expand-all-button,
|
|
4142
|
+
.gantt-chart-save-button,
|
|
4143
|
+
.gantt-chart-cancel-button,
|
|
4144
|
+
.calendar-view-export-button,
|
|
4145
|
+
.calendar-view-previous-button,
|
|
4146
|
+
.calendar-view-next-button,
|
|
4147
|
+
.calendar-view-today-button,
|
|
4148
|
+
.calendar-view-switcher-button) {
|
|
4149
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
4150
|
+
border: var(--border) solid var(--lily-border);
|
|
4151
|
+
border-radius: var(--lily-radius-sm);
|
|
4152
|
+
background-color: var(--lily-surface);
|
|
4153
|
+
color: var(--lily-text);
|
|
4154
|
+
font: inherit;
|
|
4155
|
+
cursor: pointer;
|
|
4156
|
+
min-inline-size: 24px;
|
|
4157
|
+
min-block-size: 24px;
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
:where(.kanban-board-export-button:disabled,
|
|
4161
|
+
.kanban-board-add-button:disabled,
|
|
4162
|
+
.kanban-board-undo-button:disabled,
|
|
4163
|
+
.gantt-chart-export-button:disabled,
|
|
4164
|
+
.gantt-chart-zoom-in-button:disabled,
|
|
4165
|
+
.gantt-chart-zoom-out-button:disabled,
|
|
4166
|
+
.calendar-view-export-button:disabled,
|
|
4167
|
+
.calendar-view-previous-button[aria-disabled="true"],
|
|
4168
|
+
.calendar-view-next-button[aria-disabled="true"]) {
|
|
4169
|
+
opacity: 0.5;
|
|
4170
|
+
cursor: not-allowed;
|
|
4171
|
+
}
|
|
4172
|
+
|
|
4173
|
+
:where(.calendar-view-switcher-button[aria-pressed="true"]) {
|
|
4174
|
+
background-color: var(--color-base-300);
|
|
4175
|
+
font-weight: 600;
|
|
4176
|
+
}
|
|
4177
|
+
|
|
4178
|
+
:where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
|
|
4179
|
+
margin-block-start: var(--lily-space-sm);
|
|
4180
|
+
font-size: 0.875em;
|
|
4181
|
+
opacity: 0.8;
|
|
4182
|
+
}
|
|
4183
|
+
|
|
4184
|
+
:where(.calendar-view-event) {
|
|
4185
|
+
display: block;
|
|
4186
|
+
padding: 0 var(--lily-space-xs);
|
|
4187
|
+
border-radius: var(--lily-radius-sm);
|
|
4188
|
+
background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
|
|
4189
|
+
font-size: 0.75rem;
|
|
4190
|
+
}
|
|
4191
|
+
|
|
4192
|
+
:where(.gantt-table-th) {
|
|
4193
|
+
min-inline-size: 2rem;
|
|
4194
|
+
padding-inline: 0.25rem;
|
|
4195
|
+
font-size: 0.75rem;
|
|
4196
|
+
text-align: center;
|
|
4197
|
+
white-space: nowrap;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4200
|
+
:where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
|
|
4201
|
+
min-inline-size: 10rem;
|
|
4202
|
+
padding-inline: var(--lily-space-sm);
|
|
4203
|
+
font-size: inherit;
|
|
4204
|
+
text-align: start;
|
|
4205
|
+
white-space: normal;
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4208
|
+
:where(.gantt-table-td) {
|
|
4209
|
+
min-block-size: 1.7rem;
|
|
4210
|
+
padding: 0;
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4213
|
+
:where(.gantt-table-td[data-in-range]) {
|
|
4214
|
+
background-color: var(--color-primary);
|
|
4215
|
+
/* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
|
|
4216
|
+
color: var(--color-primary-content);
|
|
4217
|
+
}
|
|
4218
|
+
|
|
4219
|
+
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
4220
|
+
clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
|
|
4221
|
+
}
|
|
4222
|
+
|
|
4223
|
+
:where(.gantt-table-td[data-today]) {
|
|
4224
|
+
border-inline-start: 2px solid var(--color-accent);
|
|
4225
|
+
}
|
|
4226
|
+
|
|
4227
|
+
/* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
|
|
4228
|
+
option up to a cap, then wrap, rather than clipping the name or running off a phone. */
|
|
4229
|
+
:where(.time-zone-picker-list) {
|
|
4230
|
+
inline-size: max-content;
|
|
4231
|
+
max-inline-size: min(26rem, 90vw);
|
|
4232
|
+
max-block-size: min(24rem, 70vh);
|
|
4233
|
+
overflow-y: auto;
|
|
4234
|
+
}
|
|
4235
|
+
|
|
4236
|
+
:where(.time-zone-picker-option) {
|
|
4237
|
+
overflow-wrap: anywhere;
|
|
4238
|
+
}
|
|
4239
|
+
|
|
4240
|
+
/* ============================================================================
|
|
4241
|
+
* Overflow navigation — shared verbatim by all themes.
|
|
4242
|
+
*
|
|
4243
|
+
* The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
|
|
4244
|
+
* With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
|
|
4245
|
+
* (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
|
|
4246
|
+
* the links that do not fit into the More list. That list is in normal flow (position
|
|
4247
|
+
* static, never absolute), so opening it pushes the content below down and never covers it
|
|
4248
|
+
* (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
|
|
4249
|
+
* specificity at zero, so any consumer rule wins.
|
|
4250
|
+
* ========================================================================= */
|
|
4251
|
+
|
|
4252
|
+
:where(.navigation-menu-list) {
|
|
4253
|
+
display: flex;
|
|
4254
|
+
flex: 1 1 auto;
|
|
4255
|
+
flex-wrap: wrap;
|
|
4256
|
+
align-items: flex-start;
|
|
4257
|
+
gap: 0.25rem 0.5rem;
|
|
4258
|
+
min-inline-size: 0;
|
|
4259
|
+
margin: 0;
|
|
4260
|
+
padding: 0;
|
|
4261
|
+
list-style: none;
|
|
4262
|
+
}
|
|
4263
|
+
|
|
4264
|
+
:where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
|
|
4265
|
+
display: inline-block;
|
|
4266
|
+
min-inline-size: 24px;
|
|
4267
|
+
min-block-size: 24px;
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4270
|
+
:where(.navigation-menu-more) {
|
|
4271
|
+
position: static;
|
|
4272
|
+
}
|
|
4273
|
+
|
|
4274
|
+
:where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
|
|
4275
|
+
display: none;
|
|
4276
|
+
}
|
|
4277
|
+
|
|
4278
|
+
:where(.navigation-menu-more-button) {
|
|
4279
|
+
min-inline-size: 24px;
|
|
4280
|
+
min-block-size: 24px;
|
|
4281
|
+
padding: 0.25rem 0.5rem;
|
|
4282
|
+
font: inherit;
|
|
4283
|
+
color: inherit;
|
|
4284
|
+
background: transparent;
|
|
4285
|
+
border: 1px solid currentcolor;
|
|
4286
|
+
cursor: pointer;
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
:where(.navigation-menu-more-list) {
|
|
4290
|
+
position: static;
|
|
4291
|
+
margin: 0.25rem 0 0;
|
|
4292
|
+
padding: 0;
|
|
4293
|
+
list-style: none;
|
|
4294
|
+
}
|
|
4295
|
+
|
|
4296
|
+
/* ============================================================================
|
|
4297
|
+
* Container queries — shared verbatim by all themes.
|
|
4298
|
+
*
|
|
4299
|
+
* A component answers to the space it is given, not to the window: a summary
|
|
4300
|
+
* list in a narrow aside on a wide screen needs the narrow layout, which the
|
|
4301
|
+
* viewport query above cannot know. The three grail-layout regions are the
|
|
4302
|
+
* containers because their width comes from a grid track (`minmax(0, 1fr)`), so
|
|
4303
|
+
* inline-size containment cannot collapse them. `.card` is deliberately not a
|
|
4304
|
+
* container: in a shrink-to-fit parent (a flex row, an inline grid) containment
|
|
4305
|
+
* would collapse it to nothing. A component outside a grail region has no
|
|
4306
|
+
* container and keeps its wide layout. :where() keeps specificity at zero, so
|
|
4307
|
+
* any consumer rule wins.
|
|
4308
|
+
* ========================================================================= */
|
|
4309
|
+
|
|
4310
|
+
:where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
|
|
4311
|
+
container-type: inline-size;
|
|
4312
|
+
}
|
|
4313
|
+
|
|
4314
|
+
/* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
|
|
4315
|
+
window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
|
|
4316
|
+
Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
|
|
4317
|
+
(at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
|
|
4318
|
+
right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
|
|
4319
|
+
hidden, so all content stays reachable. */
|
|
4320
|
+
@media (max-width: 64rem) {
|
|
4321
|
+
:where(.grail-layout) {
|
|
4322
|
+
grid-template-areas:
|
|
4323
|
+
"header header"
|
|
4324
|
+
"left main"
|
|
4325
|
+
"right right"
|
|
4326
|
+
"footer footer";
|
|
4327
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
|
|
4328
|
+
grid-template-rows: auto auto auto auto;
|
|
4329
|
+
}
|
|
4330
|
+
}
|
|
4331
|
+
|
|
4332
|
+
@media (max-width: 48rem) {
|
|
4333
|
+
:where(.grail-layout) {
|
|
4334
|
+
grid-template-areas:
|
|
4335
|
+
"header"
|
|
4336
|
+
"left"
|
|
4337
|
+
"main"
|
|
4338
|
+
"right"
|
|
4339
|
+
"footer";
|
|
4340
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4341
|
+
grid-template-rows: auto auto auto auto auto;
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4344
|
+
|
|
4345
|
+
@container (max-width: 30rem) {
|
|
4346
|
+
:where(.summary-list) {
|
|
4347
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4348
|
+
row-gap: 0.25rem;
|
|
4349
|
+
}
|
|
4350
|
+
|
|
4351
|
+
:where(.kanban-table-td) {
|
|
4352
|
+
min-width: 10rem;
|
|
4353
|
+
}
|
|
4354
|
+
|
|
4355
|
+
:where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
|
|
4356
|
+
padding-inline: 0.5rem;
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4359
|
+
|
|
4360
|
+
/* ============================================================================
|
|
4361
|
+
* Focus not obscured — shared verbatim by all themes.
|
|
4362
|
+
*
|
|
4363
|
+
* WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
|
|
4364
|
+
* entirely hidden by author-created content, such as a bar fixed to the top or
|
|
4365
|
+
* bottom of the viewport. The browser scrolls a focused control into view, but
|
|
4366
|
+
* only as far as the edge of the viewport, which is where a fixed bar sits.
|
|
4367
|
+
* `scroll-padding` moves that edge in by the bar's height.
|
|
4368
|
+
*
|
|
4369
|
+
* Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
|
|
4370
|
+
* theme's or an app's own fixed header, a mobile bottom navigation) sets the
|
|
4371
|
+
* bar's height on the root element:
|
|
4372
|
+
*
|
|
4373
|
+
* --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
|
|
4374
|
+
* --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
|
|
4375
|
+
*
|
|
4376
|
+
* With both bars, set both. The defaults are 0px, so a page without a fixed bar
|
|
4377
|
+
* is unchanged. Specificity is zero (`:where`), so an app's own
|
|
4378
|
+
* `scroll-padding` wins.
|
|
4379
|
+
* ========================================================================= */
|
|
4380
|
+
|
|
4381
|
+
:where(html) {
|
|
4382
|
+
scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
|
|
4383
|
+
}
|
|
4384
|
+
|
|
4385
|
+
/* ============================================================================
|
|
4386
|
+
* Text size and motion preferences — shared verbatim by all themes.
|
|
4387
|
+
*
|
|
4388
|
+
* The text-size-picker sets `data-text-size` on the root and the motion-picker
|
|
4389
|
+
* sets `data-motion`; neither styles anything itself. These rules are what make
|
|
4390
|
+
* the choice visible.
|
|
4391
|
+
*
|
|
4392
|
+
* Text size: the seven steps scale the root font size, and every theme sizes in
|
|
4393
|
+
* `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
|
|
4394
|
+
* own browser setting), and the scale is percentages of that, never pixels, so
|
|
4395
|
+
* a viewer who raised their browser font size keeps it. The steps below
|
|
4396
|
+
* `normal` are the viewer's explicit choice.
|
|
4397
|
+
*
|
|
4398
|
+
* Motion: `data-motion="reduce"` shortens every animation and transition to
|
|
4399
|
+
* 0.01ms instead of removing it. The end state still arrives and `animationend`
|
|
4400
|
+
* / `transitionend` still fire, so nothing that depends on them breaks and no
|
|
4401
|
+
* information is lost: a spinner's `role="status"` text, a disclosure's open
|
|
4402
|
+
* state and a toast's content are untouched. Scrolling is instant.
|
|
4403
|
+
* ========================================================================= */
|
|
4404
|
+
|
|
4405
|
+
:where(html[data-text-size="smallest"]) { font-size: 80%; }
|
|
4406
|
+
:where(html[data-text-size="smaller"]) { font-size: 90%; }
|
|
4407
|
+
:where(html[data-text-size="small"]) { font-size: 95%; }
|
|
4408
|
+
:where(html[data-text-size="normal"]) { font-size: 100%; }
|
|
4409
|
+
:where(html[data-text-size="large"]) { font-size: 110%; }
|
|
4410
|
+
:where(html[data-text-size="larger"]) { font-size: 125%; }
|
|
4411
|
+
:where(html[data-text-size="largest"]) { font-size: 150%; }
|
|
4412
|
+
|
|
4413
|
+
:where(html[data-motion="reduce"]) {
|
|
4414
|
+
scroll-behavior: auto;
|
|
4415
|
+
}
|
|
4416
|
+
:where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
|
|
4417
|
+
animation-duration: 0.01ms !important;
|
|
4418
|
+
animation-iteration-count: 1 !important;
|
|
4419
|
+
animation-delay: 0s !important;
|
|
4420
|
+
transition-duration: 0.01ms !important;
|
|
4421
|
+
transition-delay: 0s !important;
|
|
4422
|
+
scroll-behavior: auto !important;
|
|
4423
|
+
}
|
|
4424
|
+
|
|
4425
|
+
/* ============================================================================
|
|
4426
|
+
* Forced colours and contrast preference — shared verbatim by all themes.
|
|
4427
|
+
*
|
|
4428
|
+
* Forced colours (Windows High Contrast, `forced-colors: active`): the browser
|
|
4429
|
+
* replaces every colour with a system colour, which erases anything a control
|
|
4430
|
+
* told apart by background alone. These rules give such controls a border,
|
|
4431
|
+
* keep the focus ring, and mark selected and current items with `Highlight`
|
|
4432
|
+
* and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
|
|
4433
|
+
*
|
|
4434
|
+
* Contrast preference (`prefers-contrast: more`): a heavier border on controls
|
|
4435
|
+
* and a thicker focus ring. Colours are not changed here; a theme's colours are
|
|
4436
|
+
* its author's decision.
|
|
4437
|
+
* ========================================================================= */
|
|
4438
|
+
|
|
4439
|
+
@media (forced-colors: active) {
|
|
4440
|
+
:where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
|
|
4441
|
+
border: 1px solid ButtonBorder;
|
|
4442
|
+
}
|
|
4443
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4444
|
+
outline: 3px solid Highlight;
|
|
4445
|
+
outline-offset: 2px;
|
|
4446
|
+
}
|
|
4447
|
+
:where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
|
|
4448
|
+
background: SelectedItem;
|
|
4449
|
+
color: SelectedItemText;
|
|
4450
|
+
forced-color-adjust: none;
|
|
4451
|
+
}
|
|
4452
|
+
:where([aria-current]:not([aria-current="false"])) {
|
|
4453
|
+
outline: 2px solid Highlight;
|
|
4454
|
+
outline-offset: -2px;
|
|
4455
|
+
}
|
|
4456
|
+
:where(:disabled, [aria-disabled="true"]) {
|
|
4457
|
+
border-color: GrayText;
|
|
4458
|
+
color: GrayText;
|
|
4459
|
+
}
|
|
4460
|
+
}
|
|
4461
|
+
|
|
4462
|
+
@media (prefers-contrast: more) {
|
|
4463
|
+
:where(button, input, select, textarea, [role="button"], [class$="-button"]) {
|
|
4464
|
+
border-width: 2px;
|
|
4465
|
+
border-style: solid;
|
|
4466
|
+
border-color: currentColor;
|
|
4467
|
+
}
|
|
4468
|
+
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
|
|
4469
|
+
outline-width: 3px;
|
|
4470
|
+
outline-offset: 2px;
|
|
4471
|
+
}
|
|
4472
|
+
}
|
|
4473
|
+
|
|
4474
|
+
/* ============================================================================
|
|
4475
|
+
* Writing systems — shared verbatim by all themes.
|
|
4476
|
+
*
|
|
4477
|
+
* A theme names its Latin font stack (`--lily-font-body-latin`). This section
|
|
4478
|
+
* builds `--lily-font-body` from it, with the system fonts of the element's
|
|
4479
|
+
* script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
|
|
4480
|
+
* Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
|
|
4481
|
+
* scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
|
|
4482
|
+
* Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
|
|
4483
|
+
* Chinese and Japanese but drawn differently, so the language picks the font,
|
|
4484
|
+
* not the script.
|
|
4485
|
+
*
|
|
4486
|
+
* `--lily-font-body` is re-declared on every element with a `lang`, so a
|
|
4487
|
+
* `<p lang="ja">` inside an English page gets Japanese fonts and a
|
|
4488
|
+
* `<span lang="en">` inside it gets none. A language not listed here keeps the
|
|
4489
|
+
* Latin stack, whose final generic family the browser resolves per language.
|
|
4490
|
+
*
|
|
4491
|
+
* `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
|
|
4492
|
+
* and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
|
|
4493
|
+
* Elements with a `lang` use it; the app's body text should too.
|
|
4494
|
+
*
|
|
4495
|
+
* To change a theme's font, set `--lily-font-body-latin`; to change a script's,
|
|
4496
|
+
* set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
|
|
4497
|
+
* itself still works on the element you set it on.
|
|
4498
|
+
* ========================================================================= */
|
|
4499
|
+
|
|
4500
|
+
:where(:root, [lang]) {
|
|
4501
|
+
--lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
|
|
4502
|
+
--lily-line-height-body: 1.5;
|
|
4503
|
+
}
|
|
4504
|
+
|
|
4505
|
+
:where([lang]) {
|
|
4506
|
+
--lily-font-script: initial;
|
|
4507
|
+
line-height: var(--lily-line-height-body);
|
|
4508
|
+
}
|
|
4509
|
+
|
|
4510
|
+
:where([lang|="zh"], [lang|="wuu"]) {
|
|
4511
|
+
--lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
|
|
4512
|
+
}
|
|
4513
|
+
:where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
|
|
4514
|
+
--lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
|
|
4515
|
+
}
|
|
4516
|
+
:where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
|
|
4517
|
+
--lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
|
|
4518
|
+
}
|
|
4519
|
+
:where([lang|="ja"]) {
|
|
4520
|
+
--lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
|
|
4521
|
+
}
|
|
4522
|
+
:where([lang|="ko"]) {
|
|
4523
|
+
--lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
|
|
4524
|
+
}
|
|
4525
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
|
|
4526
|
+
--lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
|
|
4527
|
+
}
|
|
4528
|
+
:where([lang|="ur"]) {
|
|
4529
|
+
--lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
|
|
4530
|
+
}
|
|
4531
|
+
:where([lang|="he"], [lang|="yi"]) {
|
|
4532
|
+
--lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
|
|
4533
|
+
}
|
|
4534
|
+
:where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
|
|
4535
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
|
|
4536
|
+
}
|
|
4537
|
+
:where([lang|="bn"], [lang|="as"]) {
|
|
4538
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
|
|
4539
|
+
}
|
|
4540
|
+
:where([lang|="gu"]) {
|
|
4541
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
|
|
4542
|
+
}
|
|
4543
|
+
:where([lang|="pa"]) {
|
|
4544
|
+
--lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
|
|
4545
|
+
}
|
|
4546
|
+
:where([lang|="kn"]) {
|
|
4547
|
+
--lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
|
|
4548
|
+
}
|
|
4549
|
+
:where([lang|="ta"]) {
|
|
4550
|
+
--lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
|
|
4551
|
+
}
|
|
4552
|
+
:where([lang|="te"]) {
|
|
4553
|
+
--lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
|
|
4554
|
+
}
|
|
4555
|
+
:where([lang|="th"]) {
|
|
4556
|
+
--lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
|
|
4557
|
+
}
|
|
4558
|
+
:where([lang|="lo"]) {
|
|
4559
|
+
--lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
|
|
4560
|
+
}
|
|
4561
|
+
:where([lang|="km"]) {
|
|
4562
|
+
--lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
|
|
4563
|
+
}
|
|
4564
|
+
:where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
|
|
4565
|
+
[lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
|
|
4566
|
+
[lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
|
|
4567
|
+
[lang|="lo"], [lang|="km"]) {
|
|
4568
|
+
--lily-line-height-body: 1.75;
|
|
4569
|
+
}
|