@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/garden.css
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
--color-primary: oklch(62.45% 0.278 3.836);
|
|
40
40
|
/* Foreground colour used over `--color-primary` fills (so
|
|
41
41
|
primary buttons retain a guaranteed contrast ratio). */
|
|
42
|
-
--color-primary-content:
|
|
42
|
+
--color-primary-content: #000000;
|
|
43
43
|
/* Secondary brand colour. Pressed/hover state for primary
|
|
44
44
|
buttons and visited links; also drives the secondary chrome
|
|
45
45
|
family. */
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
illustrations, and tertiary call-outs. */
|
|
51
51
|
--color-accent: oklch(56.27% 0.054 154.39);
|
|
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. */
|
|
@@ -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
|
|
|
@@ -857,7 +868,7 @@
|
|
|
857
868
|
color: var(--lily-text-muted);
|
|
858
869
|
}
|
|
859
870
|
/* Final crumb (the current page) — muted because it isn't a link. */
|
|
860
|
-
:where(.breadcrumb-list-item[aria-current="page"]) {
|
|
871
|
+
:where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
|
|
861
872
|
color: var(--lily-text-muted);
|
|
862
873
|
}
|
|
863
874
|
|
|
@@ -1126,11 +1137,114 @@
|
|
|
1126
1137
|
background-color: var(--color-primary);
|
|
1127
1138
|
color: var(--color-primary-content);
|
|
1128
1139
|
}
|
|
1129
|
-
/* Today — outlined
|
|
1130
|
-
|
|
1140
|
+
/* Today — outlined and bold, never filled, so a selected non-today date still
|
|
1141
|
+
reads as "selected". The ring takes the cell's own text colour (currentColor),
|
|
1142
|
+
so it holds its contrast on a light page, a dark page and a selected cell
|
|
1143
|
+
alike, and the bold number says it without colour. */
|
|
1131
1144
|
:where(.calendar-table-td[aria-current="date"]) {
|
|
1132
|
-
outline: 2px solid
|
|
1133
|
-
outline-offset: -
|
|
1145
|
+
outline: 2px solid currentColor;
|
|
1146
|
+
outline-offset: -3px;
|
|
1147
|
+
font-weight: 700;
|
|
1148
|
+
}
|
|
1149
|
+
/* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
|
|
1150
|
+
:where(.calendar-table) {
|
|
1151
|
+
table-layout: fixed;
|
|
1152
|
+
}
|
|
1153
|
+
:where(.calendar-table-td, .calendar-table-th) {
|
|
1154
|
+
min-width: 0;
|
|
1155
|
+
overflow-wrap: anywhere;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
/* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
|
|
1159
|
+
:where(.data-grid-toolbar) {
|
|
1160
|
+
display: flex;
|
|
1161
|
+
flex-wrap: wrap;
|
|
1162
|
+
gap: var(--lily-space-sm);
|
|
1163
|
+
align-items: center;
|
|
1164
|
+
margin-block-end: var(--lily-space-sm);
|
|
1165
|
+
}
|
|
1166
|
+
:where(.data-grid-search, .data-grid-search-field) {
|
|
1167
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1168
|
+
border: var(--border) solid var(--lily-border);
|
|
1169
|
+
border-radius: var(--lily-radius-sm);
|
|
1170
|
+
background-color: var(--lily-surface);
|
|
1171
|
+
color: var(--lily-text);
|
|
1172
|
+
font: inherit;
|
|
1173
|
+
}
|
|
1174
|
+
/* A sortable header is a button that looks like its text; the arrow follows aria-sort,
|
|
1175
|
+
so the state is in the markup for assistive technology and on screen for everyone. */
|
|
1176
|
+
:where(.data-grid-sort-button) {
|
|
1177
|
+
padding: 0;
|
|
1178
|
+
border: 0;
|
|
1179
|
+
background: none;
|
|
1180
|
+
color: inherit;
|
|
1181
|
+
font: inherit;
|
|
1182
|
+
text-align: start;
|
|
1183
|
+
cursor: pointer;
|
|
1184
|
+
}
|
|
1185
|
+
:where(.data-grid-sort-button:focus-visible) {
|
|
1186
|
+
outline: 2px solid var(--color-accent);
|
|
1187
|
+
outline-offset: 2px;
|
|
1188
|
+
}
|
|
1189
|
+
:where([aria-sort="none"] .data-grid-sort-button)::after {
|
|
1190
|
+
content: " \21C5";
|
|
1191
|
+
opacity: 0.5;
|
|
1192
|
+
}
|
|
1193
|
+
:where([aria-sort="ascending"] .data-grid-sort-button)::after {
|
|
1194
|
+
content: " \25B2";
|
|
1195
|
+
}
|
|
1196
|
+
:where([aria-sort="descending"] .data-grid-sort-button)::after {
|
|
1197
|
+
content: " \25BC";
|
|
1198
|
+
}
|
|
1199
|
+
:where(.data-grid-pagination) {
|
|
1200
|
+
display: flex;
|
|
1201
|
+
flex-wrap: wrap;
|
|
1202
|
+
gap: var(--lily-space-sm);
|
|
1203
|
+
align-items: center;
|
|
1204
|
+
justify-content: flex-end;
|
|
1205
|
+
margin-block-start: var(--lily-space-sm);
|
|
1206
|
+
}
|
|
1207
|
+
:where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
|
|
1208
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
1209
|
+
border: var(--border) solid var(--lily-border);
|
|
1210
|
+
border-radius: var(--lily-radius-sm);
|
|
1211
|
+
background-color: var(--lily-surface);
|
|
1212
|
+
color: var(--lily-text);
|
|
1213
|
+
font: inherit;
|
|
1214
|
+
cursor: pointer;
|
|
1215
|
+
}
|
|
1216
|
+
:where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
|
|
1217
|
+
opacity: 0.5;
|
|
1218
|
+
cursor: not-allowed;
|
|
1219
|
+
}
|
|
1220
|
+
:where(.data-grid-column-visibility) {
|
|
1221
|
+
display: flex;
|
|
1222
|
+
flex-wrap: wrap;
|
|
1223
|
+
gap: var(--lily-space-sm);
|
|
1224
|
+
margin: 0;
|
|
1225
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1226
|
+
border: var(--border) solid var(--lily-border);
|
|
1227
|
+
border-radius: var(--lily-radius-sm);
|
|
1228
|
+
}
|
|
1229
|
+
/* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
|
|
1230
|
+
:where([data-pinned="start"]) {
|
|
1231
|
+
position: sticky;
|
|
1232
|
+
inset-inline-start: 0;
|
|
1233
|
+
z-index: 1;
|
|
1234
|
+
background-color: var(--lily-surface);
|
|
1235
|
+
}
|
|
1236
|
+
:where([data-pinned="end"]) {
|
|
1237
|
+
position: sticky;
|
|
1238
|
+
inset-inline-end: 0;
|
|
1239
|
+
z-index: 1;
|
|
1240
|
+
background-color: var(--lily-surface);
|
|
1241
|
+
}
|
|
1242
|
+
:where(th[data-pinned]) {
|
|
1243
|
+
z-index: 2;
|
|
1244
|
+
}
|
|
1245
|
+
/* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
|
|
1246
|
+
:where(.data-table-td[data-empty]) {
|
|
1247
|
+
opacity: 0.7;
|
|
1134
1248
|
}
|
|
1135
1249
|
|
|
1136
1250
|
/* --- Kanban specifics --------------------------------------------------- */
|
|
@@ -1144,6 +1258,20 @@
|
|
|
1144
1258
|
min-width: 14rem;
|
|
1145
1259
|
}
|
|
1146
1260
|
|
|
1261
|
+
/* Dragging a card: the column it would land in is outlined; one that refuses it
|
|
1262
|
+
(canMove, allowedColumns, a full strict WIP limit) is striped and shows the
|
|
1263
|
+
not-allowed cursor, so "you can't drop here" is visible before the drop. */
|
|
1264
|
+
:where(.kanban-table-td[data-drop-target]) {
|
|
1265
|
+
outline: 2px dashed var(--color-accent);
|
|
1266
|
+
outline-offset: -3px;
|
|
1267
|
+
}
|
|
1268
|
+
:where(.kanban-table-td[data-drop-blocked]) {
|
|
1269
|
+
outline: 2px solid var(--color-error);
|
|
1270
|
+
outline-offset: -3px;
|
|
1271
|
+
cursor: not-allowed;
|
|
1272
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1147
1275
|
/* --- Gantt specifics ---------------------------------------------------- */
|
|
1148
1276
|
/* Cells marked as bars are filled with the primary colour to render the
|
|
1149
1277
|
schedule bar inline within the grid. */
|
|
@@ -1151,6 +1279,20 @@
|
|
|
1151
1279
|
background-color: var(--color-primary);
|
|
1152
1280
|
}
|
|
1153
1281
|
|
|
1282
|
+
/* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
|
|
1283
|
+
is tinted; a day marked as a holiday or time off (data-unavailable /
|
|
1284
|
+
data-range) is striped as well, so no day is told apart by colour alone;
|
|
1285
|
+
a column only partly unavailable gets a bar under its header. */
|
|
1286
|
+
:where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
|
|
1287
|
+
background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
|
|
1288
|
+
}
|
|
1289
|
+
:where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
|
|
1290
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
|
|
1291
|
+
}
|
|
1292
|
+
:where(.gantt-table-th[data-partly-unavailable]) {
|
|
1293
|
+
box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1154
1296
|
/* ==========================================================================
|
|
1155
1297
|
* Cards, panels, surfaces
|
|
1156
1298
|
* --------------------------------------------------------------------------
|
|
@@ -1333,13 +1475,17 @@
|
|
|
1333
1475
|
padding: 0.75rem 1rem;
|
|
1334
1476
|
}
|
|
1335
1477
|
|
|
1336
|
-
/* 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. */
|
|
1337
1480
|
:where(.sticky-promo-banner) {
|
|
1338
1481
|
position: sticky;
|
|
1339
|
-
inset-block-start: 0;
|
|
1340
1482
|
z-index: 10;
|
|
1341
1483
|
}
|
|
1342
1484
|
|
|
1485
|
+
:where(.sticky-promo-banner:not([data-position="bottom"])) {
|
|
1486
|
+
inset-block-start: 0;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1343
1489
|
/* Error message — inline form-validation message. */
|
|
1344
1490
|
:where(.error-message) {
|
|
1345
1491
|
color: var(--lily-error-text);
|
|
@@ -1419,7 +1565,7 @@
|
|
|
1419
1565
|
display: block;
|
|
1420
1566
|
width: 100%;
|
|
1421
1567
|
margin-inline: auto;
|
|
1422
|
-
padding-inline:
|
|
1568
|
+
padding-inline: var(--space-fluid-gutter);
|
|
1423
1569
|
box-sizing: border-box;
|
|
1424
1570
|
}
|
|
1425
1571
|
/* Fixed-width — caps at a comfortable reading width (~1152px). */
|
|
@@ -1439,11 +1585,11 @@
|
|
|
1439
1585
|
:where(.flex-stack) {
|
|
1440
1586
|
display: flex;
|
|
1441
1587
|
flex-direction: column;
|
|
1442
|
-
gap:
|
|
1588
|
+
gap: var(--space-fluid-section);
|
|
1443
1589
|
}
|
|
1444
1590
|
:where(.grid) {
|
|
1445
1591
|
display: grid;
|
|
1446
|
-
gap:
|
|
1592
|
+
gap: var(--space-fluid-section);
|
|
1447
1593
|
}
|
|
1448
1594
|
:where(.masonry) {
|
|
1449
1595
|
column-count: 3;
|
|
@@ -1498,7 +1644,7 @@
|
|
|
1498
1644
|
:where(.content-block) {
|
|
1499
1645
|
max-width: var(--content-width-normal);
|
|
1500
1646
|
margin-inline: auto;
|
|
1501
|
-
padding-inline:
|
|
1647
|
+
padding-inline: var(--space-fluid-gutter);
|
|
1502
1648
|
box-sizing: border-box;
|
|
1503
1649
|
}
|
|
1504
1650
|
:where(.content-block[data-width="narrower"]) {
|
|
@@ -1516,7 +1662,8 @@
|
|
|
1516
1662
|
|
|
1517
1663
|
/* --- Grail layout (5-region responsive page shell) --------------------- */
|
|
1518
1664
|
/* Header spans the top; left-aside / main / right-aside fill the middle;
|
|
1519
|
-
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. */
|
|
1520
1667
|
:where(.grail-layout) {
|
|
1521
1668
|
display: grid;
|
|
1522
1669
|
min-height: 100vh;
|
|
@@ -1556,15 +1703,7 @@
|
|
|
1556
1703
|
}
|
|
1557
1704
|
/* Main content area — primary surface, more generous padding. */
|
|
1558
1705
|
:where(.grail-layout-center-main) {
|
|
1559
|
-
padding:
|
|
1560
|
-
}
|
|
1561
|
-
/* Mobile breakpoint — collapse to a single column, stacking the regions. */
|
|
1562
|
-
@media (max-width: 48rem) {
|
|
1563
|
-
:where(.grail-layout) {
|
|
1564
|
-
grid-template-areas: "header" "main" "left" "right" "footer";
|
|
1565
|
-
grid-template-columns: 1fr;
|
|
1566
|
-
grid-template-rows: auto auto auto auto auto;
|
|
1567
|
-
}
|
|
1706
|
+
padding: var(--space-fluid-gutter);
|
|
1568
1707
|
}
|
|
1569
1708
|
|
|
1570
1709
|
/* Standalone semantic header / footer landmarks. */
|
|
@@ -1655,6 +1794,15 @@
|
|
|
1655
1794
|
/* Drawers — side panels (right edge by default; RTL-aware via logical
|
|
1656
1795
|
properties). Sit above the overlay container (z-index 101). */
|
|
1657
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;
|
|
1658
1806
|
position: fixed;
|
|
1659
1807
|
inset-block: 0;
|
|
1660
1808
|
inset-inline-end: 0;
|
|
@@ -1667,6 +1815,10 @@
|
|
|
1667
1815
|
z-index: 101;
|
|
1668
1816
|
}
|
|
1669
1817
|
|
|
1818
|
+
:where(.drawer, .slide-out-drawer, .sheet)::backdrop {
|
|
1819
|
+
background-color: color-mix(in oklch, black 50%, transparent);
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1670
1822
|
/* ==========================================================================
|
|
1671
1823
|
* Menus
|
|
1672
1824
|
* ====================================================================== */
|
|
@@ -1719,7 +1871,7 @@
|
|
|
1719
1871
|
gap: 0.25rem;
|
|
1720
1872
|
}
|
|
1721
1873
|
/* Hamburger — bordered icon-button. */
|
|
1722
|
-
:where(.hamburger-menu) {
|
|
1874
|
+
:where(.hamburger-menu > button) {
|
|
1723
1875
|
display: inline-flex;
|
|
1724
1876
|
align-items: center;
|
|
1725
1877
|
justify-content: center;
|
|
@@ -2077,6 +2229,7 @@
|
|
|
2077
2229
|
.theme-picker,
|
|
2078
2230
|
.locale-picker,
|
|
2079
2231
|
.text-size-picker,
|
|
2232
|
+
.time-zone-picker,
|
|
2080
2233
|
.search-picker,
|
|
2081
2234
|
.link-picker,
|
|
2082
2235
|
.menu-picker,
|
|
@@ -2092,6 +2245,7 @@
|
|
|
2092
2245
|
.theme-picker-button,
|
|
2093
2246
|
.locale-picker-button,
|
|
2094
2247
|
.text-size-picker-button,
|
|
2248
|
+
.time-zone-picker-button,
|
|
2095
2249
|
.search-picker-button,
|
|
2096
2250
|
.link-picker-button,
|
|
2097
2251
|
.menu-picker-button,
|
|
@@ -2130,6 +2284,7 @@
|
|
|
2130
2284
|
.theme-picker-icon,
|
|
2131
2285
|
.locale-picker-icon,
|
|
2132
2286
|
.text-size-picker-icon,
|
|
2287
|
+
.time-zone-picker-icon,
|
|
2133
2288
|
.motion-picker-icon,
|
|
2134
2289
|
.link-picker-icon,
|
|
2135
2290
|
.menu-picker-icon,
|
|
@@ -2497,6 +2652,7 @@
|
|
|
2497
2652
|
.theme-picker-tooltip,
|
|
2498
2653
|
.locale-picker-tooltip,
|
|
2499
2654
|
.text-size-picker-tooltip,
|
|
2655
|
+
.time-zone-picker-tooltip,
|
|
2500
2656
|
.motion-picker-tooltip,
|
|
2501
2657
|
.link-picker-tooltip,
|
|
2502
2658
|
.menu-picker-tooltip,
|
|
@@ -2524,6 +2680,7 @@
|
|
|
2524
2680
|
.theme-picker-tooltip,
|
|
2525
2681
|
.locale-picker-tooltip,
|
|
2526
2682
|
.text-size-picker-tooltip,
|
|
2683
|
+
.time-zone-picker-tooltip,
|
|
2527
2684
|
.motion-picker-tooltip,
|
|
2528
2685
|
.link-picker-tooltip,
|
|
2529
2686
|
.menu-picker-tooltip,
|
|
@@ -2543,6 +2700,7 @@
|
|
|
2543
2700
|
.theme-picker-tooltip,
|
|
2544
2701
|
.locale-picker-tooltip,
|
|
2545
2702
|
.text-size-picker-tooltip,
|
|
2703
|
+
.time-zone-picker-tooltip,
|
|
2546
2704
|
.motion-picker-tooltip,
|
|
2547
2705
|
.link-picker-tooltip,
|
|
2548
2706
|
.menu-picker-tooltip,
|
|
@@ -2599,6 +2757,7 @@
|
|
|
2599
2757
|
.theme-picker-list,
|
|
2600
2758
|
.locale-picker-list,
|
|
2601
2759
|
.text-size-picker-list,
|
|
2760
|
+
.time-zone-picker-list,
|
|
2602
2761
|
.motion-picker-list,
|
|
2603
2762
|
.link-picker-list,
|
|
2604
2763
|
.menu-picker-panel,
|
|
@@ -2628,6 +2787,7 @@
|
|
|
2628
2787
|
.theme-picker-list,
|
|
2629
2788
|
.locale-picker-list,
|
|
2630
2789
|
.text-size-picker-list,
|
|
2790
|
+
.time-zone-picker-list,
|
|
2631
2791
|
.motion-picker-list,
|
|
2632
2792
|
.link-picker-list,
|
|
2633
2793
|
.menu-picker-panel,
|
|
@@ -2648,6 +2808,7 @@
|
|
|
2648
2808
|
:where(.theme-picker) { anchor-name: --lily-theme-picker; }
|
|
2649
2809
|
:where(.locale-picker) { anchor-name: --lily-locale-picker; }
|
|
2650
2810
|
:where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
|
|
2811
|
+
:where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
|
|
2651
2812
|
:where(.motion-picker) { anchor-name: --lily-motion-picker; }
|
|
2652
2813
|
:where(.link-picker) { anchor-name: --lily-link-picker; }
|
|
2653
2814
|
:where(.menu-picker) { anchor-name: --lily-menu-picker; }
|
|
@@ -2657,6 +2818,7 @@
|
|
|
2657
2818
|
:where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
|
|
2658
2819
|
:where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
|
|
2659
2820
|
:where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
|
|
2821
|
+
:where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
|
|
2660
2822
|
:where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
|
|
2661
2823
|
:where(.link-picker-list) { position-anchor: --lily-link-picker; }
|
|
2662
2824
|
:where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
|
|
@@ -2667,6 +2829,7 @@
|
|
|
2667
2829
|
.theme-picker-list,
|
|
2668
2830
|
.locale-picker-list,
|
|
2669
2831
|
.text-size-picker-list,
|
|
2832
|
+
.time-zone-picker-list,
|
|
2670
2833
|
.motion-picker-list,
|
|
2671
2834
|
.link-picker-list,
|
|
2672
2835
|
.menu-picker-panel,
|
|
@@ -2684,11 +2847,56 @@
|
|
|
2684
2847
|
}
|
|
2685
2848
|
}
|
|
2686
2849
|
|
|
2687
|
-
|
|
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
|
+
|
|
2894
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2688
2895
|
> :where(
|
|
2689
2896
|
.theme-picker-option,
|
|
2690
2897
|
.locale-picker-option,
|
|
2691
2898
|
.text-size-picker-option,
|
|
2899
|
+
.time-zone-picker-option,
|
|
2692
2900
|
.motion-picker-option
|
|
2693
2901
|
) {
|
|
2694
2902
|
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
@@ -2698,7 +2906,7 @@
|
|
|
2698
2906
|
|
|
2699
2907
|
/* data-active is the keyboard cursor (aria-activedescendant); focus
|
|
2700
2908
|
stays on the listbox, so this is the only visible cue for it. */
|
|
2701
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2909
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2702
2910
|
> :where([data-active]) {
|
|
2703
2911
|
background-color: var(--lily-surface-alt);
|
|
2704
2912
|
outline: var(--lily-focus-ring);
|
|
@@ -2707,7 +2915,7 @@
|
|
|
2707
2915
|
|
|
2708
2916
|
/* aria-selected marks the applied theme/locale, which is not the
|
|
2709
2917
|
same thing as the keyboard cursor. Both can be visible at once. */
|
|
2710
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2918
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2711
2919
|
> :where([aria-selected="true"]) {
|
|
2712
2920
|
font-weight: 600;
|
|
2713
2921
|
background-color: var(--lily-surface-sunken);
|
|
@@ -3060,7 +3268,7 @@
|
|
|
3060
3268
|
}
|
|
3061
3269
|
/* Screen-reader-only — visually hidden but available to AT. The
|
|
3062
3270
|
classic clip-rect pattern (works in every screen reader). */
|
|
3063
|
-
:where(.screen-reader-span) {
|
|
3271
|
+
:where(.screen-reader-span, .middle-truncation-full) {
|
|
3064
3272
|
position: absolute;
|
|
3065
3273
|
width: 1px;
|
|
3066
3274
|
height: 1px;
|
|
@@ -3071,6 +3279,42 @@
|
|
|
3071
3279
|
white-space: nowrap;
|
|
3072
3280
|
border: 0;
|
|
3073
3281
|
}
|
|
3282
|
+
/* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
|
|
3283
|
+
text (hidden above) stays in the accessibility tree. */
|
|
3284
|
+
:where(.middle-truncation) {
|
|
3285
|
+
display: block;
|
|
3286
|
+
position: relative;
|
|
3287
|
+
overflow: hidden;
|
|
3288
|
+
white-space: nowrap;
|
|
3289
|
+
}
|
|
3290
|
+
/* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
|
|
3291
|
+
primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
|
|
3292
|
+
:where(.wheel-picker-list) {
|
|
3293
|
+
max-block-size: 10em;
|
|
3294
|
+
overflow-y: auto;
|
|
3295
|
+
overscroll-behavior: contain;
|
|
3296
|
+
scroll-snap-type: y mandatory;
|
|
3297
|
+
border: 1px solid var(--color-base-300);
|
|
3298
|
+
border-radius: var(--lily-radius-md);
|
|
3299
|
+
}
|
|
3300
|
+
:where(.wheel-picker-list:focus-visible) {
|
|
3301
|
+
outline: 2px solid var(--lily-focus-ring);
|
|
3302
|
+
outline-offset: 2px;
|
|
3303
|
+
}
|
|
3304
|
+
:where(.wheel-picker-option) {
|
|
3305
|
+
padding: 0.5rem 1rem;
|
|
3306
|
+
scroll-snap-align: center;
|
|
3307
|
+
cursor: pointer;
|
|
3308
|
+
}
|
|
3309
|
+
:where(.wheel-picker-option[aria-selected="true"]) {
|
|
3310
|
+
background-color: var(--color-primary);
|
|
3311
|
+
color: var(--color-primary-content);
|
|
3312
|
+
font-weight: 600;
|
|
3313
|
+
}
|
|
3314
|
+
:where(.wheel-picker-option[aria-disabled="true"]) {
|
|
3315
|
+
opacity: 0.5;
|
|
3316
|
+
cursor: not-allowed;
|
|
3317
|
+
}
|
|
3074
3318
|
|
|
3075
3319
|
/* ==========================================================================
|
|
3076
3320
|
* Hero, figure, photo, media
|
|
@@ -3603,6 +3847,81 @@
|
|
|
3603
3847
|
min-block-size: 24px;
|
|
3604
3848
|
}
|
|
3605
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
|
+
|
|
3606
3925
|
/* ============================================================================
|
|
3607
3926
|
* Overflow guards — narrow-viewport safety, shared verbatim by all themes.
|
|
3608
3927
|
*
|
|
@@ -3630,3 +3949,620 @@
|
|
|
3630
3949
|
:where(a, code) {
|
|
3631
3950
|
overflow-wrap: anywhere;
|
|
3632
3951
|
}
|
|
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
|
+
|
|
4087
|
+
/* ============================================================================
|
|
4088
|
+
* Helper packages — layout and look, shared verbatim by all themes.
|
|
4089
|
+
*
|
|
4090
|
+
* The data grid, kanban board, Gantt chart and calendar view are wide by nature.
|
|
4091
|
+
* Each root scrolls sideways inside its own box and its table sizes to its content,
|
|
4092
|
+
* so a narrow screen scrolls the table instead of wrapping every cell to a letter
|
|
4093
|
+
* (the overflow guard above lets cells break anywhere, which is right for prose and
|
|
4094
|
+
* wrong for a table that has a scroller). The toolbar controls of all four helpers
|
|
4095
|
+
* share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
|
|
4096
|
+
* the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
|
|
4097
|
+
* today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
|
|
4098
|
+
* ========================================================================= */
|
|
4099
|
+
|
|
4100
|
+
:where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
|
|
4101
|
+
max-inline-size: 100%;
|
|
4102
|
+
overflow-x: auto;
|
|
4103
|
+
}
|
|
4104
|
+
|
|
4105
|
+
:where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
|
|
4106
|
+
inline-size: max-content;
|
|
4107
|
+
min-inline-size: 100%;
|
|
4108
|
+
}
|
|
4109
|
+
|
|
4110
|
+
:where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
|
|
4111
|
+
.calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
|
|
4112
|
+
display: flex;
|
|
4113
|
+
flex-wrap: wrap;
|
|
4114
|
+
gap: var(--lily-space-sm);
|
|
4115
|
+
align-items: center;
|
|
4116
|
+
margin-block-end: var(--lily-space-sm);
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4119
|
+
:where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
|
|
4120
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
4121
|
+
border: var(--border) solid var(--lily-border);
|
|
4122
|
+
border-radius: var(--lily-radius-sm);
|
|
4123
|
+
background-color: var(--lily-surface);
|
|
4124
|
+
color: var(--lily-text);
|
|
4125
|
+
font: inherit;
|
|
4126
|
+
min-block-size: 24px;
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
:where(.kanban-board-export-button,
|
|
4130
|
+
.kanban-board-add-button,
|
|
4131
|
+
.kanban-board-undo-button,
|
|
4132
|
+
.kanban-board-collapse-button,
|
|
4133
|
+
.kanban-board-lane-toggle,
|
|
4134
|
+
.kanban-board-move-button,
|
|
4135
|
+
.gantt-chart-export-button,
|
|
4136
|
+
.gantt-chart-zoom-in-button,
|
|
4137
|
+
.gantt-chart-zoom-out-button,
|
|
4138
|
+
.gantt-chart-collapse-button,
|
|
4139
|
+
.gantt-chart-collapse-all-button,
|
|
4140
|
+
.gantt-chart-expand-all-button,
|
|
4141
|
+
.gantt-chart-save-button,
|
|
4142
|
+
.gantt-chart-cancel-button,
|
|
4143
|
+
.calendar-view-export-button,
|
|
4144
|
+
.calendar-view-previous-button,
|
|
4145
|
+
.calendar-view-next-button,
|
|
4146
|
+
.calendar-view-today-button,
|
|
4147
|
+
.calendar-view-switcher-button) {
|
|
4148
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
4149
|
+
border: var(--border) solid var(--lily-border);
|
|
4150
|
+
border-radius: var(--lily-radius-sm);
|
|
4151
|
+
background-color: var(--lily-surface);
|
|
4152
|
+
color: var(--lily-text);
|
|
4153
|
+
font: inherit;
|
|
4154
|
+
cursor: pointer;
|
|
4155
|
+
min-inline-size: 24px;
|
|
4156
|
+
min-block-size: 24px;
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
:where(.kanban-board-export-button:disabled,
|
|
4160
|
+
.kanban-board-add-button:disabled,
|
|
4161
|
+
.kanban-board-undo-button:disabled,
|
|
4162
|
+
.gantt-chart-export-button:disabled,
|
|
4163
|
+
.gantt-chart-zoom-in-button:disabled,
|
|
4164
|
+
.gantt-chart-zoom-out-button:disabled,
|
|
4165
|
+
.calendar-view-export-button:disabled,
|
|
4166
|
+
.calendar-view-previous-button[aria-disabled="true"],
|
|
4167
|
+
.calendar-view-next-button[aria-disabled="true"]) {
|
|
4168
|
+
opacity: 0.5;
|
|
4169
|
+
cursor: not-allowed;
|
|
4170
|
+
}
|
|
4171
|
+
|
|
4172
|
+
:where(.calendar-view-switcher-button[aria-pressed="true"]) {
|
|
4173
|
+
background-color: var(--color-base-300);
|
|
4174
|
+
font-weight: 600;
|
|
4175
|
+
}
|
|
4176
|
+
|
|
4177
|
+
:where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
|
|
4178
|
+
margin-block-start: var(--lily-space-sm);
|
|
4179
|
+
font-size: 0.875em;
|
|
4180
|
+
opacity: 0.8;
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4183
|
+
:where(.calendar-view-event) {
|
|
4184
|
+
display: block;
|
|
4185
|
+
padding: 0 var(--lily-space-xs);
|
|
4186
|
+
border-radius: var(--lily-radius-sm);
|
|
4187
|
+
background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
|
|
4188
|
+
font-size: 0.75rem;
|
|
4189
|
+
}
|
|
4190
|
+
|
|
4191
|
+
:where(.gantt-table-th) {
|
|
4192
|
+
min-inline-size: 2rem;
|
|
4193
|
+
padding-inline: 0.25rem;
|
|
4194
|
+
font-size: 0.75rem;
|
|
4195
|
+
text-align: center;
|
|
4196
|
+
white-space: nowrap;
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4199
|
+
:where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
|
|
4200
|
+
min-inline-size: 10rem;
|
|
4201
|
+
padding-inline: var(--lily-space-sm);
|
|
4202
|
+
font-size: inherit;
|
|
4203
|
+
text-align: start;
|
|
4204
|
+
white-space: normal;
|
|
4205
|
+
}
|
|
4206
|
+
|
|
4207
|
+
:where(.gantt-table-td) {
|
|
4208
|
+
min-block-size: 1.7rem;
|
|
4209
|
+
padding: 0;
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
:where(.gantt-table-td[data-in-range]) {
|
|
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);
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
4219
|
+
clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
:where(.gantt-table-td[data-today]) {
|
|
4223
|
+
border-inline-start: 2px solid var(--color-accent);
|
|
4224
|
+
}
|
|
4225
|
+
|
|
4226
|
+
/* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
|
|
4227
|
+
option up to a cap, then wrap, rather than clipping the name or running off a phone. */
|
|
4228
|
+
:where(.time-zone-picker-list) {
|
|
4229
|
+
inline-size: max-content;
|
|
4230
|
+
max-inline-size: min(26rem, 90vw);
|
|
4231
|
+
max-block-size: min(24rem, 70vh);
|
|
4232
|
+
overflow-y: auto;
|
|
4233
|
+
}
|
|
4234
|
+
|
|
4235
|
+
:where(.time-zone-picker-option) {
|
|
4236
|
+
overflow-wrap: anywhere;
|
|
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
|
+
}
|