@lilydesignsystem/themes 0.4.0 → 0.6.0
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/dist/abyss.css +360 -9
- package/dist/acid.css +360 -9
- package/dist/adobe-spectrum.css +360 -9
- package/dist/ant-design.css +3961 -0
- package/dist/aqua.css +360 -9
- package/dist/atlassian.css +3961 -0
- package/dist/autumn.css +360 -9
- package/dist/black.css +360 -9
- package/dist/bumblebee.css +360 -9
- package/dist/business.css +360 -9
- package/dist/cappuccino.css +3961 -0
- package/dist/caramellatte.css +360 -9
- package/dist/cmyk.css +360 -9
- package/dist/coffee.css +360 -9
- package/dist/corporate.css +360 -9
- package/dist/cupcake.css +360 -9
- package/dist/cyberpunk.css +360 -9
- package/dist/dark.css +360 -9
- package/dist/dim.css +360 -9
- package/dist/dracula.css +360 -9
- package/dist/emerald.css +360 -9
- package/dist/excel.css +3961 -0
- package/dist/fantasy.css +360 -9
- package/dist/fluent.css +3961 -0
- package/dist/forest.css +360 -9
- package/dist/garden.css +360 -9
- package/dist/github-primer.css +3961 -0
- package/dist/halloween.css +360 -9
- package/dist/ibm-carbon.css +3961 -0
- package/dist/lemonade.css +360 -9
- package/dist/light.css +360 -9
- package/dist/linear.css +3961 -0
- package/dist/lofi.css +360 -9
- package/dist/luxury.css +360 -9
- package/dist/mozilla-protocol.css +360 -9
- package/dist/night.css +360 -9
- package/dist/nord.css +360 -9
- package/dist/notion.css +3961 -0
- package/dist/pastel.css +360 -9
- package/dist/retro.css +360 -9
- package/dist/salesforce.css +3961 -0
- package/dist/sap-fiori.css +3961 -0
- package/dist/silk.css +360 -9
- package/dist/sunset.css +360 -9
- package/dist/synthwave.css +360 -9
- package/dist/united-kingdom-government-digital-service.css +360 -9
- package/dist/united-kingdom-national-health-service-england-for-patients.css +360 -9
- package/dist/united-kingdom-national-health-service-england-for-practitioners.css +360 -9
- package/dist/united-kingdom-national-health-service-scotland-for-patients.css +360 -9
- package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +360 -9
- package/dist/united-kingdom-national-health-service-wales-for-patients.css +362 -11
- package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +362 -11
- package/dist/united-states-web-design-system.css +360 -9
- package/dist/valentine.css +360 -9
- package/dist/vercel.css +3961 -0
- package/dist/winter.css +360 -9
- package/dist/wireframe.css +360 -9
- package/index.md +14 -10
- package/package.json +5 -4
|
@@ -976,7 +976,7 @@
|
|
|
976
976
|
color: var(--lily-text-muted);
|
|
977
977
|
}
|
|
978
978
|
/* Final crumb (the current page) — muted because it isn't a link. */
|
|
979
|
-
:where(.breadcrumb-list-item[aria-current="page"]) {
|
|
979
|
+
:where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
|
|
980
980
|
color: var(--lily-text-muted);
|
|
981
981
|
}
|
|
982
982
|
|
|
@@ -1248,11 +1248,114 @@
|
|
|
1248
1248
|
background-color: var(--color-primary);
|
|
1249
1249
|
color: var(--color-primary-content);
|
|
1250
1250
|
}
|
|
1251
|
-
/* Today — outlined
|
|
1252
|
-
|
|
1251
|
+
/* Today — outlined and bold, never filled, so a selected non-today date still
|
|
1252
|
+
reads as "selected". The ring takes the cell's own text colour (currentColor),
|
|
1253
|
+
so it holds its contrast on a light page, a dark page and a selected cell
|
|
1254
|
+
alike, and the bold number says it without colour. */
|
|
1253
1255
|
:where(.calendar-table-td[aria-current="date"]) {
|
|
1254
|
-
outline: 2px solid
|
|
1255
|
-
outline-offset: -
|
|
1256
|
+
outline: 2px solid currentColor;
|
|
1257
|
+
outline-offset: -3px;
|
|
1258
|
+
font-weight: 700;
|
|
1259
|
+
}
|
|
1260
|
+
/* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
|
|
1261
|
+
:where(.calendar-table) {
|
|
1262
|
+
table-layout: fixed;
|
|
1263
|
+
}
|
|
1264
|
+
:where(.calendar-table-td, .calendar-table-th) {
|
|
1265
|
+
min-width: 0;
|
|
1266
|
+
overflow-wrap: anywhere;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
|
|
1270
|
+
:where(.data-grid-toolbar) {
|
|
1271
|
+
display: flex;
|
|
1272
|
+
flex-wrap: wrap;
|
|
1273
|
+
gap: var(--lily-space-sm);
|
|
1274
|
+
align-items: center;
|
|
1275
|
+
margin-block-end: var(--lily-space-sm);
|
|
1276
|
+
}
|
|
1277
|
+
:where(.data-grid-search, .data-grid-search-field) {
|
|
1278
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1279
|
+
border: var(--border) solid var(--lily-border);
|
|
1280
|
+
border-radius: var(--lily-radius-sm);
|
|
1281
|
+
background-color: var(--lily-surface);
|
|
1282
|
+
color: var(--lily-text);
|
|
1283
|
+
font: inherit;
|
|
1284
|
+
}
|
|
1285
|
+
/* A sortable header is a button that looks like its text; the arrow follows aria-sort,
|
|
1286
|
+
so the state is in the markup for assistive technology and on screen for everyone. */
|
|
1287
|
+
:where(.data-grid-sort-button) {
|
|
1288
|
+
padding: 0;
|
|
1289
|
+
border: 0;
|
|
1290
|
+
background: none;
|
|
1291
|
+
color: inherit;
|
|
1292
|
+
font: inherit;
|
|
1293
|
+
text-align: start;
|
|
1294
|
+
cursor: pointer;
|
|
1295
|
+
}
|
|
1296
|
+
:where(.data-grid-sort-button:focus-visible) {
|
|
1297
|
+
outline: 2px solid var(--color-accent);
|
|
1298
|
+
outline-offset: 2px;
|
|
1299
|
+
}
|
|
1300
|
+
:where([aria-sort="none"] .data-grid-sort-button)::after {
|
|
1301
|
+
content: " \21C5";
|
|
1302
|
+
opacity: 0.5;
|
|
1303
|
+
}
|
|
1304
|
+
:where([aria-sort="ascending"] .data-grid-sort-button)::after {
|
|
1305
|
+
content: " \25B2";
|
|
1306
|
+
}
|
|
1307
|
+
:where([aria-sort="descending"] .data-grid-sort-button)::after {
|
|
1308
|
+
content: " \25BC";
|
|
1309
|
+
}
|
|
1310
|
+
:where(.data-grid-pagination) {
|
|
1311
|
+
display: flex;
|
|
1312
|
+
flex-wrap: wrap;
|
|
1313
|
+
gap: var(--lily-space-sm);
|
|
1314
|
+
align-items: center;
|
|
1315
|
+
justify-content: flex-end;
|
|
1316
|
+
margin-block-start: var(--lily-space-sm);
|
|
1317
|
+
}
|
|
1318
|
+
:where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
|
|
1319
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
1320
|
+
border: var(--border) solid var(--lily-border);
|
|
1321
|
+
border-radius: var(--lily-radius-sm);
|
|
1322
|
+
background-color: var(--lily-surface);
|
|
1323
|
+
color: var(--lily-text);
|
|
1324
|
+
font: inherit;
|
|
1325
|
+
cursor: pointer;
|
|
1326
|
+
}
|
|
1327
|
+
:where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
|
|
1328
|
+
opacity: 0.5;
|
|
1329
|
+
cursor: not-allowed;
|
|
1330
|
+
}
|
|
1331
|
+
:where(.data-grid-column-visibility) {
|
|
1332
|
+
display: flex;
|
|
1333
|
+
flex-wrap: wrap;
|
|
1334
|
+
gap: var(--lily-space-sm);
|
|
1335
|
+
margin: 0;
|
|
1336
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1337
|
+
border: var(--border) solid var(--lily-border);
|
|
1338
|
+
border-radius: var(--lily-radius-sm);
|
|
1339
|
+
}
|
|
1340
|
+
/* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
|
|
1341
|
+
:where([data-pinned="start"]) {
|
|
1342
|
+
position: sticky;
|
|
1343
|
+
inset-inline-start: 0;
|
|
1344
|
+
z-index: 1;
|
|
1345
|
+
background-color: var(--lily-surface);
|
|
1346
|
+
}
|
|
1347
|
+
:where([data-pinned="end"]) {
|
|
1348
|
+
position: sticky;
|
|
1349
|
+
inset-inline-end: 0;
|
|
1350
|
+
z-index: 1;
|
|
1351
|
+
background-color: var(--lily-surface);
|
|
1352
|
+
}
|
|
1353
|
+
:where(th[data-pinned]) {
|
|
1354
|
+
z-index: 2;
|
|
1355
|
+
}
|
|
1356
|
+
/* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
|
|
1357
|
+
:where(.data-table-td[data-empty]) {
|
|
1358
|
+
opacity: 0.7;
|
|
1256
1359
|
}
|
|
1257
1360
|
|
|
1258
1361
|
/* --- Kanban specifics --------------------------------------------------- */
|
|
@@ -1266,6 +1369,20 @@
|
|
|
1266
1369
|
min-width: 14rem;
|
|
1267
1370
|
}
|
|
1268
1371
|
|
|
1372
|
+
/* Dragging a card: the column it would land in is outlined; one that refuses it
|
|
1373
|
+
(canMove, allowedColumns, a full strict WIP limit) is striped and shows the
|
|
1374
|
+
not-allowed cursor, so "you can't drop here" is visible before the drop. */
|
|
1375
|
+
:where(.kanban-table-td[data-drop-target]) {
|
|
1376
|
+
outline: 2px dashed var(--color-accent);
|
|
1377
|
+
outline-offset: -3px;
|
|
1378
|
+
}
|
|
1379
|
+
:where(.kanban-table-td[data-drop-blocked]) {
|
|
1380
|
+
outline: 2px solid var(--color-error);
|
|
1381
|
+
outline-offset: -3px;
|
|
1382
|
+
cursor: not-allowed;
|
|
1383
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1269
1386
|
/* --- Gantt specifics ---------------------------------------------------- */
|
|
1270
1387
|
/* Cells marked as bars are filled with the primary colour to render the
|
|
1271
1388
|
schedule bar inline within the grid. */
|
|
@@ -1273,6 +1390,20 @@
|
|
|
1273
1390
|
background-color: var(--color-primary);
|
|
1274
1391
|
}
|
|
1275
1392
|
|
|
1393
|
+
/* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
|
|
1394
|
+
is tinted; a day marked as a holiday or time off (data-unavailable /
|
|
1395
|
+
data-range) is striped as well, so no day is told apart by colour alone;
|
|
1396
|
+
a column only partly unavailable gets a bar under its header. */
|
|
1397
|
+
:where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
|
|
1398
|
+
background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
|
|
1399
|
+
}
|
|
1400
|
+
:where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
|
|
1401
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
|
|
1402
|
+
}
|
|
1403
|
+
:where(.gantt-table-th[data-partly-unavailable]) {
|
|
1404
|
+
box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1276
1407
|
/* ==========================================================================
|
|
1277
1408
|
* Cards, panels, surfaces
|
|
1278
1409
|
* --------------------------------------------------------------------------
|
|
@@ -2209,8 +2340,11 @@
|
|
|
2209
2340
|
.theme-picker,
|
|
2210
2341
|
.locale-picker,
|
|
2211
2342
|
.text-size-picker,
|
|
2343
|
+
.time-zone-picker,
|
|
2212
2344
|
.search-picker,
|
|
2213
2345
|
.link-picker,
|
|
2346
|
+
.menu-picker,
|
|
2347
|
+
.settings-picker,
|
|
2214
2348
|
.share-picker,
|
|
2215
2349
|
.date-time-picker
|
|
2216
2350
|
) {
|
|
@@ -2222,8 +2356,11 @@
|
|
|
2222
2356
|
.theme-picker-button,
|
|
2223
2357
|
.locale-picker-button,
|
|
2224
2358
|
.text-size-picker-button,
|
|
2359
|
+
.time-zone-picker-button,
|
|
2225
2360
|
.search-picker-button,
|
|
2226
2361
|
.link-picker-button,
|
|
2362
|
+
.menu-picker-button,
|
|
2363
|
+
.settings-picker-button,
|
|
2227
2364
|
.share-picker-button,
|
|
2228
2365
|
.date-time-picker-button
|
|
2229
2366
|
) {
|
|
@@ -2258,8 +2395,11 @@
|
|
|
2258
2395
|
.theme-picker-icon,
|
|
2259
2396
|
.locale-picker-icon,
|
|
2260
2397
|
.text-size-picker-icon,
|
|
2398
|
+
.time-zone-picker-icon,
|
|
2261
2399
|
.motion-picker-icon,
|
|
2262
2400
|
.link-picker-icon,
|
|
2401
|
+
.menu-picker-icon,
|
|
2402
|
+
.settings-picker-icon,
|
|
2263
2403
|
.share-picker-icon,
|
|
2264
2404
|
.search-picker-icon
|
|
2265
2405
|
) {
|
|
@@ -2623,8 +2763,11 @@
|
|
|
2623
2763
|
.theme-picker-tooltip,
|
|
2624
2764
|
.locale-picker-tooltip,
|
|
2625
2765
|
.text-size-picker-tooltip,
|
|
2766
|
+
.time-zone-picker-tooltip,
|
|
2626
2767
|
.motion-picker-tooltip,
|
|
2627
2768
|
.link-picker-tooltip,
|
|
2769
|
+
.menu-picker-tooltip,
|
|
2770
|
+
.settings-picker-tooltip,
|
|
2628
2771
|
.share-picker-tooltip,
|
|
2629
2772
|
.search-picker-tooltip,
|
|
2630
2773
|
.date-time-picker-tooltip
|
|
@@ -2648,8 +2791,11 @@
|
|
|
2648
2791
|
.theme-picker-tooltip,
|
|
2649
2792
|
.locale-picker-tooltip,
|
|
2650
2793
|
.text-size-picker-tooltip,
|
|
2794
|
+
.time-zone-picker-tooltip,
|
|
2651
2795
|
.motion-picker-tooltip,
|
|
2652
2796
|
.link-picker-tooltip,
|
|
2797
|
+
.menu-picker-tooltip,
|
|
2798
|
+
.settings-picker-tooltip,
|
|
2653
2799
|
.share-picker-tooltip,
|
|
2654
2800
|
.search-picker-tooltip,
|
|
2655
2801
|
.date-time-picker-tooltip
|
|
@@ -2665,8 +2811,11 @@
|
|
|
2665
2811
|
.theme-picker-tooltip,
|
|
2666
2812
|
.locale-picker-tooltip,
|
|
2667
2813
|
.text-size-picker-tooltip,
|
|
2814
|
+
.time-zone-picker-tooltip,
|
|
2668
2815
|
.motion-picker-tooltip,
|
|
2669
2816
|
.link-picker-tooltip,
|
|
2817
|
+
.menu-picker-tooltip,
|
|
2818
|
+
.settings-picker-tooltip,
|
|
2670
2819
|
.share-picker-tooltip,
|
|
2671
2820
|
.search-picker-tooltip,
|
|
2672
2821
|
.date-time-picker-tooltip
|
|
@@ -2719,8 +2868,11 @@
|
|
|
2719
2868
|
.theme-picker-list,
|
|
2720
2869
|
.locale-picker-list,
|
|
2721
2870
|
.text-size-picker-list,
|
|
2871
|
+
.time-zone-picker-list,
|
|
2722
2872
|
.motion-picker-list,
|
|
2723
2873
|
.link-picker-list,
|
|
2874
|
+
.menu-picker-panel,
|
|
2875
|
+
.settings-picker-panel,
|
|
2724
2876
|
.share-picker-list,
|
|
2725
2877
|
.search-picker-panel
|
|
2726
2878
|
) {
|
|
@@ -2746,8 +2898,11 @@
|
|
|
2746
2898
|
.theme-picker-list,
|
|
2747
2899
|
.locale-picker-list,
|
|
2748
2900
|
.text-size-picker-list,
|
|
2901
|
+
.time-zone-picker-list,
|
|
2749
2902
|
.motion-picker-list,
|
|
2750
2903
|
.link-picker-list,
|
|
2904
|
+
.menu-picker-panel,
|
|
2905
|
+
.settings-picker-panel,
|
|
2751
2906
|
.share-picker-list,
|
|
2752
2907
|
.search-picker-panel
|
|
2753
2908
|
)[hidden] {
|
|
@@ -2764,23 +2919,32 @@
|
|
|
2764
2919
|
:where(.theme-picker) { anchor-name: --lily-theme-picker; }
|
|
2765
2920
|
:where(.locale-picker) { anchor-name: --lily-locale-picker; }
|
|
2766
2921
|
:where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
|
|
2922
|
+
:where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
|
|
2767
2923
|
:where(.motion-picker) { anchor-name: --lily-motion-picker; }
|
|
2768
2924
|
:where(.link-picker) { anchor-name: --lily-link-picker; }
|
|
2925
|
+
:where(.menu-picker) { anchor-name: --lily-menu-picker; }
|
|
2926
|
+
:where(.settings-picker) { anchor-name: --lily-settings-picker; }
|
|
2769
2927
|
:where(.share-picker) { anchor-name: --lily-share-picker; }
|
|
2770
2928
|
:where(.search-picker) { anchor-name: --lily-search-picker; }
|
|
2771
2929
|
:where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
|
|
2772
2930
|
:where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
|
|
2773
2931
|
:where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
|
|
2932
|
+
:where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
|
|
2774
2933
|
:where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
|
|
2775
2934
|
:where(.link-picker-list) { position-anchor: --lily-link-picker; }
|
|
2935
|
+
:where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
|
|
2936
|
+
:where(.settings-picker-panel) { position-anchor: --lily-settings-picker; }
|
|
2776
2937
|
:where(.share-picker-list) { position-anchor: --lily-share-picker; }
|
|
2777
2938
|
:where(.search-picker-panel) { position-anchor: --lily-search-picker; }
|
|
2778
2939
|
:where(
|
|
2779
2940
|
.theme-picker-list,
|
|
2780
2941
|
.locale-picker-list,
|
|
2781
2942
|
.text-size-picker-list,
|
|
2943
|
+
.time-zone-picker-list,
|
|
2782
2944
|
.motion-picker-list,
|
|
2783
2945
|
.link-picker-list,
|
|
2946
|
+
.menu-picker-panel,
|
|
2947
|
+
.settings-picker-panel,
|
|
2784
2948
|
.share-picker-list,
|
|
2785
2949
|
.search-picker-panel
|
|
2786
2950
|
) {
|
|
@@ -2794,11 +2958,12 @@
|
|
|
2794
2958
|
}
|
|
2795
2959
|
}
|
|
2796
2960
|
|
|
2797
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2961
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2798
2962
|
> :where(
|
|
2799
2963
|
.theme-picker-option,
|
|
2800
2964
|
.locale-picker-option,
|
|
2801
2965
|
.text-size-picker-option,
|
|
2966
|
+
.time-zone-picker-option,
|
|
2802
2967
|
.motion-picker-option
|
|
2803
2968
|
) {
|
|
2804
2969
|
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
@@ -2808,7 +2973,7 @@
|
|
|
2808
2973
|
|
|
2809
2974
|
/* data-active is the keyboard cursor (aria-activedescendant); focus
|
|
2810
2975
|
stays on the listbox, so this is the only visible cue for it. */
|
|
2811
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2976
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2812
2977
|
> :where([data-active]) {
|
|
2813
2978
|
background-color: var(--lily-surface-alt);
|
|
2814
2979
|
outline: var(--lily-focus-ring);
|
|
@@ -2817,7 +2982,7 @@
|
|
|
2817
2982
|
|
|
2818
2983
|
/* aria-selected marks the applied theme/locale, which is not the
|
|
2819
2984
|
same thing as the keyboard cursor. Both can be visible at once. */
|
|
2820
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2985
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2821
2986
|
> :where([aria-selected="true"]) {
|
|
2822
2987
|
font-weight: 600;
|
|
2823
2988
|
background-color: var(--lily-surface-sunken);
|
|
@@ -3170,7 +3335,7 @@
|
|
|
3170
3335
|
}
|
|
3171
3336
|
/* Screen-reader-only — visually hidden but available to AT. The
|
|
3172
3337
|
classic clip-rect pattern (works in every screen reader). */
|
|
3173
|
-
:where(.screen-reader-span) {
|
|
3338
|
+
:where(.screen-reader-span, .middle-truncation-full) {
|
|
3174
3339
|
position: absolute;
|
|
3175
3340
|
width: 1px;
|
|
3176
3341
|
height: 1px;
|
|
@@ -3181,6 +3346,42 @@
|
|
|
3181
3346
|
white-space: nowrap;
|
|
3182
3347
|
border: 0;
|
|
3183
3348
|
}
|
|
3349
|
+
/* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
|
|
3350
|
+
text (hidden above) stays in the accessibility tree. */
|
|
3351
|
+
:where(.middle-truncation) {
|
|
3352
|
+
display: block;
|
|
3353
|
+
position: relative;
|
|
3354
|
+
overflow: hidden;
|
|
3355
|
+
white-space: nowrap;
|
|
3356
|
+
}
|
|
3357
|
+
/* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
|
|
3358
|
+
primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
|
|
3359
|
+
:where(.wheel-picker-list) {
|
|
3360
|
+
max-block-size: 10em;
|
|
3361
|
+
overflow-y: auto;
|
|
3362
|
+
overscroll-behavior: contain;
|
|
3363
|
+
scroll-snap-type: y mandatory;
|
|
3364
|
+
border: 1px solid var(--color-base-300);
|
|
3365
|
+
border-radius: var(--lily-radius-md);
|
|
3366
|
+
}
|
|
3367
|
+
:where(.wheel-picker-list:focus-visible) {
|
|
3368
|
+
outline: 2px solid var(--lily-focus-ring);
|
|
3369
|
+
outline-offset: 2px;
|
|
3370
|
+
}
|
|
3371
|
+
:where(.wheel-picker-option) {
|
|
3372
|
+
padding: 0.5rem 1rem;
|
|
3373
|
+
scroll-snap-align: center;
|
|
3374
|
+
cursor: pointer;
|
|
3375
|
+
}
|
|
3376
|
+
:where(.wheel-picker-option[aria-selected="true"]) {
|
|
3377
|
+
background-color: var(--color-primary);
|
|
3378
|
+
color: var(--color-primary-content);
|
|
3379
|
+
font-weight: 600;
|
|
3380
|
+
}
|
|
3381
|
+
:where(.wheel-picker-option[aria-disabled="true"]) {
|
|
3382
|
+
opacity: 0.5;
|
|
3383
|
+
cursor: not-allowed;
|
|
3384
|
+
}
|
|
3184
3385
|
|
|
3185
3386
|
/* ==========================================================================
|
|
3186
3387
|
* Hero, figure, photo, media
|
|
@@ -3742,3 +3943,153 @@
|
|
|
3742
3943
|
:where(a, code) {
|
|
3743
3944
|
overflow-wrap: anywhere;
|
|
3744
3945
|
}
|
|
3946
|
+
|
|
3947
|
+
/* ============================================================================
|
|
3948
|
+
* Helper packages — layout and look, shared verbatim by all themes.
|
|
3949
|
+
*
|
|
3950
|
+
* The data grid, kanban board, Gantt chart and calendar view are wide by nature.
|
|
3951
|
+
* Each root scrolls sideways inside its own box and its table sizes to its content,
|
|
3952
|
+
* so a narrow screen scrolls the table instead of wrapping every cell to a letter
|
|
3953
|
+
* (the overflow guard above lets cells break anywhere, which is right for prose and
|
|
3954
|
+
* wrong for a table that has a scroller). The toolbar controls of all four helpers
|
|
3955
|
+
* share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
|
|
3956
|
+
* the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
|
|
3957
|
+
* today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
|
|
3958
|
+
* ========================================================================= */
|
|
3959
|
+
|
|
3960
|
+
:where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
|
|
3961
|
+
max-inline-size: 100%;
|
|
3962
|
+
overflow-x: auto;
|
|
3963
|
+
}
|
|
3964
|
+
|
|
3965
|
+
:where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
|
|
3966
|
+
inline-size: max-content;
|
|
3967
|
+
min-inline-size: 100%;
|
|
3968
|
+
}
|
|
3969
|
+
|
|
3970
|
+
:where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
|
|
3971
|
+
.calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
|
|
3972
|
+
display: flex;
|
|
3973
|
+
flex-wrap: wrap;
|
|
3974
|
+
gap: var(--lily-space-sm);
|
|
3975
|
+
align-items: center;
|
|
3976
|
+
margin-block-end: var(--lily-space-sm);
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3979
|
+
:where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
|
|
3980
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
3981
|
+
border: var(--border) solid var(--lily-border);
|
|
3982
|
+
border-radius: var(--lily-radius-sm);
|
|
3983
|
+
background-color: var(--lily-surface);
|
|
3984
|
+
color: var(--lily-text);
|
|
3985
|
+
font: inherit;
|
|
3986
|
+
min-block-size: 24px;
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3989
|
+
:where(.kanban-board-export-button,
|
|
3990
|
+
.kanban-board-add-button,
|
|
3991
|
+
.kanban-board-undo-button,
|
|
3992
|
+
.kanban-board-collapse-button,
|
|
3993
|
+
.kanban-board-lane-toggle,
|
|
3994
|
+
.kanban-board-move-button,
|
|
3995
|
+
.gantt-chart-export-button,
|
|
3996
|
+
.gantt-chart-zoom-in-button,
|
|
3997
|
+
.gantt-chart-zoom-out-button,
|
|
3998
|
+
.gantt-chart-collapse-button,
|
|
3999
|
+
.gantt-chart-collapse-all-button,
|
|
4000
|
+
.gantt-chart-expand-all-button,
|
|
4001
|
+
.gantt-chart-save-button,
|
|
4002
|
+
.gantt-chart-cancel-button,
|
|
4003
|
+
.calendar-view-export-button,
|
|
4004
|
+
.calendar-view-previous-button,
|
|
4005
|
+
.calendar-view-next-button,
|
|
4006
|
+
.calendar-view-today-button,
|
|
4007
|
+
.calendar-view-switcher-button) {
|
|
4008
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
4009
|
+
border: var(--border) solid var(--lily-border);
|
|
4010
|
+
border-radius: var(--lily-radius-sm);
|
|
4011
|
+
background-color: var(--lily-surface);
|
|
4012
|
+
color: var(--lily-text);
|
|
4013
|
+
font: inherit;
|
|
4014
|
+
cursor: pointer;
|
|
4015
|
+
min-inline-size: 24px;
|
|
4016
|
+
min-block-size: 24px;
|
|
4017
|
+
}
|
|
4018
|
+
|
|
4019
|
+
:where(.kanban-board-export-button:disabled,
|
|
4020
|
+
.kanban-board-add-button:disabled,
|
|
4021
|
+
.kanban-board-undo-button:disabled,
|
|
4022
|
+
.gantt-chart-export-button:disabled,
|
|
4023
|
+
.gantt-chart-zoom-in-button:disabled,
|
|
4024
|
+
.gantt-chart-zoom-out-button:disabled,
|
|
4025
|
+
.calendar-view-export-button:disabled,
|
|
4026
|
+
.calendar-view-previous-button[aria-disabled="true"],
|
|
4027
|
+
.calendar-view-next-button[aria-disabled="true"]) {
|
|
4028
|
+
opacity: 0.5;
|
|
4029
|
+
cursor: not-allowed;
|
|
4030
|
+
}
|
|
4031
|
+
|
|
4032
|
+
:where(.calendar-view-switcher-button[aria-pressed="true"]) {
|
|
4033
|
+
background-color: var(--color-base-300);
|
|
4034
|
+
font-weight: 600;
|
|
4035
|
+
}
|
|
4036
|
+
|
|
4037
|
+
:where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
|
|
4038
|
+
margin-block-start: var(--lily-space-sm);
|
|
4039
|
+
font-size: 0.875em;
|
|
4040
|
+
opacity: 0.8;
|
|
4041
|
+
}
|
|
4042
|
+
|
|
4043
|
+
:where(.calendar-view-event) {
|
|
4044
|
+
display: block;
|
|
4045
|
+
padding: 0 var(--lily-space-xs);
|
|
4046
|
+
border-radius: var(--lily-radius-sm);
|
|
4047
|
+
background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
|
|
4048
|
+
font-size: 0.75rem;
|
|
4049
|
+
}
|
|
4050
|
+
|
|
4051
|
+
:where(.gantt-table-th) {
|
|
4052
|
+
min-inline-size: 2rem;
|
|
4053
|
+
padding-inline: 0.25rem;
|
|
4054
|
+
font-size: 0.75rem;
|
|
4055
|
+
text-align: center;
|
|
4056
|
+
white-space: nowrap;
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
:where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
|
|
4060
|
+
min-inline-size: 10rem;
|
|
4061
|
+
padding-inline: var(--lily-space-sm);
|
|
4062
|
+
font-size: inherit;
|
|
4063
|
+
text-align: start;
|
|
4064
|
+
white-space: normal;
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4067
|
+
:where(.gantt-table-td) {
|
|
4068
|
+
min-block-size: 1.7rem;
|
|
4069
|
+
padding: 0;
|
|
4070
|
+
}
|
|
4071
|
+
|
|
4072
|
+
:where(.gantt-table-td[data-in-range]) {
|
|
4073
|
+
background-color: var(--color-primary);
|
|
4074
|
+
}
|
|
4075
|
+
|
|
4076
|
+
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
4077
|
+
clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
|
|
4078
|
+
}
|
|
4079
|
+
|
|
4080
|
+
:where(.gantt-table-td[data-today]) {
|
|
4081
|
+
border-inline-start: 2px solid var(--color-accent);
|
|
4082
|
+
}
|
|
4083
|
+
|
|
4084
|
+
/* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
|
|
4085
|
+
option up to a cap, then wrap, rather than clipping the name or running off a phone. */
|
|
4086
|
+
:where(.time-zone-picker-list) {
|
|
4087
|
+
inline-size: max-content;
|
|
4088
|
+
max-inline-size: min(26rem, 90vw);
|
|
4089
|
+
max-block-size: min(24rem, 70vh);
|
|
4090
|
+
overflow-y: auto;
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
:where(.time-zone-picker-option) {
|
|
4094
|
+
overflow-wrap: anywhere;
|
|
4095
|
+
}
|