@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
|
@@ -1001,7 +1001,7 @@
|
|
|
1001
1001
|
color: var(--lily-text-muted);
|
|
1002
1002
|
}
|
|
1003
1003
|
/* Final crumb (the current page) — muted because it isn't a link. */
|
|
1004
|
-
:where(.breadcrumb-list-item[aria-current="page"]) {
|
|
1004
|
+
:where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
|
|
1005
1005
|
color: var(--lily-text-muted);
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
@@ -1270,11 +1270,114 @@
|
|
|
1270
1270
|
background-color: var(--color-primary);
|
|
1271
1271
|
color: var(--color-primary-content);
|
|
1272
1272
|
}
|
|
1273
|
-
/* Today — outlined
|
|
1274
|
-
|
|
1273
|
+
/* Today — outlined and bold, never filled, so a selected non-today date still
|
|
1274
|
+
reads as "selected". The ring takes the cell's own text colour (currentColor),
|
|
1275
|
+
so it holds its contrast on a light page, a dark page and a selected cell
|
|
1276
|
+
alike, and the bold number says it without colour. */
|
|
1275
1277
|
:where(.calendar-table-td[aria-current="date"]) {
|
|
1276
|
-
outline: 2px solid
|
|
1277
|
-
outline-offset: -
|
|
1278
|
+
outline: 2px solid currentColor;
|
|
1279
|
+
outline-offset: -3px;
|
|
1280
|
+
font-weight: 700;
|
|
1281
|
+
}
|
|
1282
|
+
/* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
|
|
1283
|
+
:where(.calendar-table) {
|
|
1284
|
+
table-layout: fixed;
|
|
1285
|
+
}
|
|
1286
|
+
:where(.calendar-table-td, .calendar-table-th) {
|
|
1287
|
+
min-width: 0;
|
|
1288
|
+
overflow-wrap: anywhere;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
/* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
|
|
1292
|
+
:where(.data-grid-toolbar) {
|
|
1293
|
+
display: flex;
|
|
1294
|
+
flex-wrap: wrap;
|
|
1295
|
+
gap: var(--lily-space-sm);
|
|
1296
|
+
align-items: center;
|
|
1297
|
+
margin-block-end: var(--lily-space-sm);
|
|
1298
|
+
}
|
|
1299
|
+
:where(.data-grid-search, .data-grid-search-field) {
|
|
1300
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1301
|
+
border: var(--border) solid var(--lily-border);
|
|
1302
|
+
border-radius: var(--lily-radius-sm);
|
|
1303
|
+
background-color: var(--lily-surface);
|
|
1304
|
+
color: var(--lily-text);
|
|
1305
|
+
font: inherit;
|
|
1306
|
+
}
|
|
1307
|
+
/* A sortable header is a button that looks like its text; the arrow follows aria-sort,
|
|
1308
|
+
so the state is in the markup for assistive technology and on screen for everyone. */
|
|
1309
|
+
:where(.data-grid-sort-button) {
|
|
1310
|
+
padding: 0;
|
|
1311
|
+
border: 0;
|
|
1312
|
+
background: none;
|
|
1313
|
+
color: inherit;
|
|
1314
|
+
font: inherit;
|
|
1315
|
+
text-align: start;
|
|
1316
|
+
cursor: pointer;
|
|
1317
|
+
}
|
|
1318
|
+
:where(.data-grid-sort-button:focus-visible) {
|
|
1319
|
+
outline: 2px solid var(--color-accent);
|
|
1320
|
+
outline-offset: 2px;
|
|
1321
|
+
}
|
|
1322
|
+
:where([aria-sort="none"] .data-grid-sort-button)::after {
|
|
1323
|
+
content: " \21C5";
|
|
1324
|
+
opacity: 0.5;
|
|
1325
|
+
}
|
|
1326
|
+
:where([aria-sort="ascending"] .data-grid-sort-button)::after {
|
|
1327
|
+
content: " \25B2";
|
|
1328
|
+
}
|
|
1329
|
+
:where([aria-sort="descending"] .data-grid-sort-button)::after {
|
|
1330
|
+
content: " \25BC";
|
|
1331
|
+
}
|
|
1332
|
+
:where(.data-grid-pagination) {
|
|
1333
|
+
display: flex;
|
|
1334
|
+
flex-wrap: wrap;
|
|
1335
|
+
gap: var(--lily-space-sm);
|
|
1336
|
+
align-items: center;
|
|
1337
|
+
justify-content: flex-end;
|
|
1338
|
+
margin-block-start: var(--lily-space-sm);
|
|
1339
|
+
}
|
|
1340
|
+
:where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
|
|
1341
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
1342
|
+
border: var(--border) solid var(--lily-border);
|
|
1343
|
+
border-radius: var(--lily-radius-sm);
|
|
1344
|
+
background-color: var(--lily-surface);
|
|
1345
|
+
color: var(--lily-text);
|
|
1346
|
+
font: inherit;
|
|
1347
|
+
cursor: pointer;
|
|
1348
|
+
}
|
|
1349
|
+
:where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
|
|
1350
|
+
opacity: 0.5;
|
|
1351
|
+
cursor: not-allowed;
|
|
1352
|
+
}
|
|
1353
|
+
:where(.data-grid-column-visibility) {
|
|
1354
|
+
display: flex;
|
|
1355
|
+
flex-wrap: wrap;
|
|
1356
|
+
gap: var(--lily-space-sm);
|
|
1357
|
+
margin: 0;
|
|
1358
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1359
|
+
border: var(--border) solid var(--lily-border);
|
|
1360
|
+
border-radius: var(--lily-radius-sm);
|
|
1361
|
+
}
|
|
1362
|
+
/* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
|
|
1363
|
+
:where([data-pinned="start"]) {
|
|
1364
|
+
position: sticky;
|
|
1365
|
+
inset-inline-start: 0;
|
|
1366
|
+
z-index: 1;
|
|
1367
|
+
background-color: var(--lily-surface);
|
|
1368
|
+
}
|
|
1369
|
+
:where([data-pinned="end"]) {
|
|
1370
|
+
position: sticky;
|
|
1371
|
+
inset-inline-end: 0;
|
|
1372
|
+
z-index: 1;
|
|
1373
|
+
background-color: var(--lily-surface);
|
|
1374
|
+
}
|
|
1375
|
+
:where(th[data-pinned]) {
|
|
1376
|
+
z-index: 2;
|
|
1377
|
+
}
|
|
1378
|
+
/* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
|
|
1379
|
+
:where(.data-table-td[data-empty]) {
|
|
1380
|
+
opacity: 0.7;
|
|
1278
1381
|
}
|
|
1279
1382
|
|
|
1280
1383
|
/* --- Kanban specifics --------------------------------------------------- */
|
|
@@ -1288,6 +1391,20 @@
|
|
|
1288
1391
|
min-width: 14rem;
|
|
1289
1392
|
}
|
|
1290
1393
|
|
|
1394
|
+
/* Dragging a card: the column it would land in is outlined; one that refuses it
|
|
1395
|
+
(canMove, allowedColumns, a full strict WIP limit) is striped and shows the
|
|
1396
|
+
not-allowed cursor, so "you can't drop here" is visible before the drop. */
|
|
1397
|
+
:where(.kanban-table-td[data-drop-target]) {
|
|
1398
|
+
outline: 2px dashed var(--color-accent);
|
|
1399
|
+
outline-offset: -3px;
|
|
1400
|
+
}
|
|
1401
|
+
:where(.kanban-table-td[data-drop-blocked]) {
|
|
1402
|
+
outline: 2px solid var(--color-error);
|
|
1403
|
+
outline-offset: -3px;
|
|
1404
|
+
cursor: not-allowed;
|
|
1405
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1291
1408
|
/* --- Gantt specifics ---------------------------------------------------- */
|
|
1292
1409
|
/* Cells marked as bars are filled with the primary colour to render the
|
|
1293
1410
|
schedule bar inline within the grid. */
|
|
@@ -1295,6 +1412,20 @@
|
|
|
1295
1412
|
background-color: var(--color-primary);
|
|
1296
1413
|
}
|
|
1297
1414
|
|
|
1415
|
+
/* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
|
|
1416
|
+
is tinted; a day marked as a holiday or time off (data-unavailable /
|
|
1417
|
+
data-range) is striped as well, so no day is told apart by colour alone;
|
|
1418
|
+
a column only partly unavailable gets a bar under its header. */
|
|
1419
|
+
:where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
|
|
1420
|
+
background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
|
|
1421
|
+
}
|
|
1422
|
+
:where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
|
|
1423
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
|
|
1424
|
+
}
|
|
1425
|
+
:where(.gantt-table-th[data-partly-unavailable]) {
|
|
1426
|
+
box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1298
1429
|
/* ==========================================================================
|
|
1299
1430
|
* Cards, panels, surfaces
|
|
1300
1431
|
* --------------------------------------------------------------------------
|
|
@@ -2221,8 +2352,11 @@
|
|
|
2221
2352
|
.theme-picker,
|
|
2222
2353
|
.locale-picker,
|
|
2223
2354
|
.text-size-picker,
|
|
2355
|
+
.time-zone-picker,
|
|
2224
2356
|
.search-picker,
|
|
2225
2357
|
.link-picker,
|
|
2358
|
+
.menu-picker,
|
|
2359
|
+
.settings-picker,
|
|
2226
2360
|
.share-picker,
|
|
2227
2361
|
.date-time-picker
|
|
2228
2362
|
) {
|
|
@@ -2234,8 +2368,11 @@
|
|
|
2234
2368
|
.theme-picker-button,
|
|
2235
2369
|
.locale-picker-button,
|
|
2236
2370
|
.text-size-picker-button,
|
|
2371
|
+
.time-zone-picker-button,
|
|
2237
2372
|
.search-picker-button,
|
|
2238
2373
|
.link-picker-button,
|
|
2374
|
+
.menu-picker-button,
|
|
2375
|
+
.settings-picker-button,
|
|
2239
2376
|
.share-picker-button,
|
|
2240
2377
|
.date-time-picker-button
|
|
2241
2378
|
) {
|
|
@@ -2270,8 +2407,11 @@
|
|
|
2270
2407
|
.theme-picker-icon,
|
|
2271
2408
|
.locale-picker-icon,
|
|
2272
2409
|
.text-size-picker-icon,
|
|
2410
|
+
.time-zone-picker-icon,
|
|
2273
2411
|
.motion-picker-icon,
|
|
2274
2412
|
.link-picker-icon,
|
|
2413
|
+
.menu-picker-icon,
|
|
2414
|
+
.settings-picker-icon,
|
|
2275
2415
|
.share-picker-icon,
|
|
2276
2416
|
.search-picker-icon
|
|
2277
2417
|
) {
|
|
@@ -2635,8 +2775,11 @@
|
|
|
2635
2775
|
.theme-picker-tooltip,
|
|
2636
2776
|
.locale-picker-tooltip,
|
|
2637
2777
|
.text-size-picker-tooltip,
|
|
2778
|
+
.time-zone-picker-tooltip,
|
|
2638
2779
|
.motion-picker-tooltip,
|
|
2639
2780
|
.link-picker-tooltip,
|
|
2781
|
+
.menu-picker-tooltip,
|
|
2782
|
+
.settings-picker-tooltip,
|
|
2640
2783
|
.share-picker-tooltip,
|
|
2641
2784
|
.search-picker-tooltip,
|
|
2642
2785
|
.date-time-picker-tooltip
|
|
@@ -2660,8 +2803,11 @@
|
|
|
2660
2803
|
.theme-picker-tooltip,
|
|
2661
2804
|
.locale-picker-tooltip,
|
|
2662
2805
|
.text-size-picker-tooltip,
|
|
2806
|
+
.time-zone-picker-tooltip,
|
|
2663
2807
|
.motion-picker-tooltip,
|
|
2664
2808
|
.link-picker-tooltip,
|
|
2809
|
+
.menu-picker-tooltip,
|
|
2810
|
+
.settings-picker-tooltip,
|
|
2665
2811
|
.share-picker-tooltip,
|
|
2666
2812
|
.search-picker-tooltip,
|
|
2667
2813
|
.date-time-picker-tooltip
|
|
@@ -2677,8 +2823,11 @@
|
|
|
2677
2823
|
.theme-picker-tooltip,
|
|
2678
2824
|
.locale-picker-tooltip,
|
|
2679
2825
|
.text-size-picker-tooltip,
|
|
2826
|
+
.time-zone-picker-tooltip,
|
|
2680
2827
|
.motion-picker-tooltip,
|
|
2681
2828
|
.link-picker-tooltip,
|
|
2829
|
+
.menu-picker-tooltip,
|
|
2830
|
+
.settings-picker-tooltip,
|
|
2682
2831
|
.share-picker-tooltip,
|
|
2683
2832
|
.search-picker-tooltip,
|
|
2684
2833
|
.date-time-picker-tooltip
|
|
@@ -2731,8 +2880,11 @@
|
|
|
2731
2880
|
.theme-picker-list,
|
|
2732
2881
|
.locale-picker-list,
|
|
2733
2882
|
.text-size-picker-list,
|
|
2883
|
+
.time-zone-picker-list,
|
|
2734
2884
|
.motion-picker-list,
|
|
2735
2885
|
.link-picker-list,
|
|
2886
|
+
.menu-picker-panel,
|
|
2887
|
+
.settings-picker-panel,
|
|
2736
2888
|
.share-picker-list,
|
|
2737
2889
|
.search-picker-panel
|
|
2738
2890
|
) {
|
|
@@ -2758,8 +2910,11 @@
|
|
|
2758
2910
|
.theme-picker-list,
|
|
2759
2911
|
.locale-picker-list,
|
|
2760
2912
|
.text-size-picker-list,
|
|
2913
|
+
.time-zone-picker-list,
|
|
2761
2914
|
.motion-picker-list,
|
|
2762
2915
|
.link-picker-list,
|
|
2916
|
+
.menu-picker-panel,
|
|
2917
|
+
.settings-picker-panel,
|
|
2763
2918
|
.share-picker-list,
|
|
2764
2919
|
.search-picker-panel
|
|
2765
2920
|
)[hidden] {
|
|
@@ -2776,23 +2931,32 @@
|
|
|
2776
2931
|
:where(.theme-picker) { anchor-name: --lily-theme-picker; }
|
|
2777
2932
|
:where(.locale-picker) { anchor-name: --lily-locale-picker; }
|
|
2778
2933
|
:where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
|
|
2934
|
+
:where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
|
|
2779
2935
|
:where(.motion-picker) { anchor-name: --lily-motion-picker; }
|
|
2780
2936
|
:where(.link-picker) { anchor-name: --lily-link-picker; }
|
|
2937
|
+
:where(.menu-picker) { anchor-name: --lily-menu-picker; }
|
|
2938
|
+
:where(.settings-picker) { anchor-name: --lily-settings-picker; }
|
|
2781
2939
|
:where(.share-picker) { anchor-name: --lily-share-picker; }
|
|
2782
2940
|
:where(.search-picker) { anchor-name: --lily-search-picker; }
|
|
2783
2941
|
:where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
|
|
2784
2942
|
:where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
|
|
2785
2943
|
:where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
|
|
2944
|
+
:where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
|
|
2786
2945
|
:where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
|
|
2787
2946
|
:where(.link-picker-list) { position-anchor: --lily-link-picker; }
|
|
2947
|
+
:where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
|
|
2948
|
+
:where(.settings-picker-panel) { position-anchor: --lily-settings-picker; }
|
|
2788
2949
|
:where(.share-picker-list) { position-anchor: --lily-share-picker; }
|
|
2789
2950
|
:where(.search-picker-panel) { position-anchor: --lily-search-picker; }
|
|
2790
2951
|
:where(
|
|
2791
2952
|
.theme-picker-list,
|
|
2792
2953
|
.locale-picker-list,
|
|
2793
2954
|
.text-size-picker-list,
|
|
2955
|
+
.time-zone-picker-list,
|
|
2794
2956
|
.motion-picker-list,
|
|
2795
2957
|
.link-picker-list,
|
|
2958
|
+
.menu-picker-panel,
|
|
2959
|
+
.settings-picker-panel,
|
|
2796
2960
|
.share-picker-list,
|
|
2797
2961
|
.search-picker-panel
|
|
2798
2962
|
) {
|
|
@@ -2806,11 +2970,12 @@
|
|
|
2806
2970
|
}
|
|
2807
2971
|
}
|
|
2808
2972
|
|
|
2809
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2973
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2810
2974
|
> :where(
|
|
2811
2975
|
.theme-picker-option,
|
|
2812
2976
|
.locale-picker-option,
|
|
2813
2977
|
.text-size-picker-option,
|
|
2978
|
+
.time-zone-picker-option,
|
|
2814
2979
|
.motion-picker-option
|
|
2815
2980
|
) {
|
|
2816
2981
|
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
@@ -2820,7 +2985,7 @@
|
|
|
2820
2985
|
|
|
2821
2986
|
/* data-active is the keyboard cursor (aria-activedescendant); focus
|
|
2822
2987
|
stays on the listbox, so this is the only visible cue for it. */
|
|
2823
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2988
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2824
2989
|
> :where([data-active]) {
|
|
2825
2990
|
background-color: var(--lily-surface-alt);
|
|
2826
2991
|
outline: var(--lily-focus-ring);
|
|
@@ -2829,7 +2994,7 @@
|
|
|
2829
2994
|
|
|
2830
2995
|
/* aria-selected marks the applied theme/locale, which is not the
|
|
2831
2996
|
same thing as the keyboard cursor. Both can be visible at once. */
|
|
2832
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2997
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2833
2998
|
> :where([aria-selected="true"]) {
|
|
2834
2999
|
font-weight: 600;
|
|
2835
3000
|
background-color: var(--lily-surface-sunken);
|
|
@@ -3182,7 +3347,7 @@
|
|
|
3182
3347
|
}
|
|
3183
3348
|
/* Screen-reader-only — visually hidden but available to AT. The
|
|
3184
3349
|
classic clip-rect pattern (works in every screen reader). */
|
|
3185
|
-
:where(.screen-reader-span) {
|
|
3350
|
+
:where(.screen-reader-span, .middle-truncation-full) {
|
|
3186
3351
|
position: absolute;
|
|
3187
3352
|
width: 1px;
|
|
3188
3353
|
height: 1px;
|
|
@@ -3193,6 +3358,42 @@
|
|
|
3193
3358
|
white-space: nowrap;
|
|
3194
3359
|
border: 0;
|
|
3195
3360
|
}
|
|
3361
|
+
/* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
|
|
3362
|
+
text (hidden above) stays in the accessibility tree. */
|
|
3363
|
+
:where(.middle-truncation) {
|
|
3364
|
+
display: block;
|
|
3365
|
+
position: relative;
|
|
3366
|
+
overflow: hidden;
|
|
3367
|
+
white-space: nowrap;
|
|
3368
|
+
}
|
|
3369
|
+
/* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
|
|
3370
|
+
primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
|
|
3371
|
+
:where(.wheel-picker-list) {
|
|
3372
|
+
max-block-size: 10em;
|
|
3373
|
+
overflow-y: auto;
|
|
3374
|
+
overscroll-behavior: contain;
|
|
3375
|
+
scroll-snap-type: y mandatory;
|
|
3376
|
+
border: 1px solid var(--color-base-300);
|
|
3377
|
+
border-radius: var(--lily-radius-md);
|
|
3378
|
+
}
|
|
3379
|
+
:where(.wheel-picker-list:focus-visible) {
|
|
3380
|
+
outline: 2px solid var(--lily-focus-ring);
|
|
3381
|
+
outline-offset: 2px;
|
|
3382
|
+
}
|
|
3383
|
+
:where(.wheel-picker-option) {
|
|
3384
|
+
padding: 0.5rem 1rem;
|
|
3385
|
+
scroll-snap-align: center;
|
|
3386
|
+
cursor: pointer;
|
|
3387
|
+
}
|
|
3388
|
+
:where(.wheel-picker-option[aria-selected="true"]) {
|
|
3389
|
+
background-color: var(--color-primary);
|
|
3390
|
+
color: var(--color-primary-content);
|
|
3391
|
+
font-weight: 600;
|
|
3392
|
+
}
|
|
3393
|
+
:where(.wheel-picker-option[aria-disabled="true"]) {
|
|
3394
|
+
opacity: 0.5;
|
|
3395
|
+
cursor: not-allowed;
|
|
3396
|
+
}
|
|
3196
3397
|
|
|
3197
3398
|
/* ==========================================================================
|
|
3198
3399
|
* Hero, figure, photo, media
|
|
@@ -3752,3 +3953,153 @@
|
|
|
3752
3953
|
:where(a, code) {
|
|
3753
3954
|
overflow-wrap: anywhere;
|
|
3754
3955
|
}
|
|
3956
|
+
|
|
3957
|
+
/* ============================================================================
|
|
3958
|
+
* Helper packages — layout and look, shared verbatim by all themes.
|
|
3959
|
+
*
|
|
3960
|
+
* The data grid, kanban board, Gantt chart and calendar view are wide by nature.
|
|
3961
|
+
* Each root scrolls sideways inside its own box and its table sizes to its content,
|
|
3962
|
+
* so a narrow screen scrolls the table instead of wrapping every cell to a letter
|
|
3963
|
+
* (the overflow guard above lets cells break anywhere, which is right for prose and
|
|
3964
|
+
* wrong for a table that has a scroller). The toolbar controls of all four helpers
|
|
3965
|
+
* share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
|
|
3966
|
+
* the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
|
|
3967
|
+
* today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
|
|
3968
|
+
* ========================================================================= */
|
|
3969
|
+
|
|
3970
|
+
:where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
|
|
3971
|
+
max-inline-size: 100%;
|
|
3972
|
+
overflow-x: auto;
|
|
3973
|
+
}
|
|
3974
|
+
|
|
3975
|
+
:where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
|
|
3976
|
+
inline-size: max-content;
|
|
3977
|
+
min-inline-size: 100%;
|
|
3978
|
+
}
|
|
3979
|
+
|
|
3980
|
+
:where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
|
|
3981
|
+
.calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
|
|
3982
|
+
display: flex;
|
|
3983
|
+
flex-wrap: wrap;
|
|
3984
|
+
gap: var(--lily-space-sm);
|
|
3985
|
+
align-items: center;
|
|
3986
|
+
margin-block-end: var(--lily-space-sm);
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3989
|
+
:where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
|
|
3990
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
3991
|
+
border: var(--border) solid var(--lily-border);
|
|
3992
|
+
border-radius: var(--lily-radius-sm);
|
|
3993
|
+
background-color: var(--lily-surface);
|
|
3994
|
+
color: var(--lily-text);
|
|
3995
|
+
font: inherit;
|
|
3996
|
+
min-block-size: 24px;
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3999
|
+
:where(.kanban-board-export-button,
|
|
4000
|
+
.kanban-board-add-button,
|
|
4001
|
+
.kanban-board-undo-button,
|
|
4002
|
+
.kanban-board-collapse-button,
|
|
4003
|
+
.kanban-board-lane-toggle,
|
|
4004
|
+
.kanban-board-move-button,
|
|
4005
|
+
.gantt-chart-export-button,
|
|
4006
|
+
.gantt-chart-zoom-in-button,
|
|
4007
|
+
.gantt-chart-zoom-out-button,
|
|
4008
|
+
.gantt-chart-collapse-button,
|
|
4009
|
+
.gantt-chart-collapse-all-button,
|
|
4010
|
+
.gantt-chart-expand-all-button,
|
|
4011
|
+
.gantt-chart-save-button,
|
|
4012
|
+
.gantt-chart-cancel-button,
|
|
4013
|
+
.calendar-view-export-button,
|
|
4014
|
+
.calendar-view-previous-button,
|
|
4015
|
+
.calendar-view-next-button,
|
|
4016
|
+
.calendar-view-today-button,
|
|
4017
|
+
.calendar-view-switcher-button) {
|
|
4018
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
4019
|
+
border: var(--border) solid var(--lily-border);
|
|
4020
|
+
border-radius: var(--lily-radius-sm);
|
|
4021
|
+
background-color: var(--lily-surface);
|
|
4022
|
+
color: var(--lily-text);
|
|
4023
|
+
font: inherit;
|
|
4024
|
+
cursor: pointer;
|
|
4025
|
+
min-inline-size: 24px;
|
|
4026
|
+
min-block-size: 24px;
|
|
4027
|
+
}
|
|
4028
|
+
|
|
4029
|
+
:where(.kanban-board-export-button:disabled,
|
|
4030
|
+
.kanban-board-add-button:disabled,
|
|
4031
|
+
.kanban-board-undo-button:disabled,
|
|
4032
|
+
.gantt-chart-export-button:disabled,
|
|
4033
|
+
.gantt-chart-zoom-in-button:disabled,
|
|
4034
|
+
.gantt-chart-zoom-out-button:disabled,
|
|
4035
|
+
.calendar-view-export-button:disabled,
|
|
4036
|
+
.calendar-view-previous-button[aria-disabled="true"],
|
|
4037
|
+
.calendar-view-next-button[aria-disabled="true"]) {
|
|
4038
|
+
opacity: 0.5;
|
|
4039
|
+
cursor: not-allowed;
|
|
4040
|
+
}
|
|
4041
|
+
|
|
4042
|
+
:where(.calendar-view-switcher-button[aria-pressed="true"]) {
|
|
4043
|
+
background-color: var(--color-base-300);
|
|
4044
|
+
font-weight: 600;
|
|
4045
|
+
}
|
|
4046
|
+
|
|
4047
|
+
:where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
|
|
4048
|
+
margin-block-start: var(--lily-space-sm);
|
|
4049
|
+
font-size: 0.875em;
|
|
4050
|
+
opacity: 0.8;
|
|
4051
|
+
}
|
|
4052
|
+
|
|
4053
|
+
:where(.calendar-view-event) {
|
|
4054
|
+
display: block;
|
|
4055
|
+
padding: 0 var(--lily-space-xs);
|
|
4056
|
+
border-radius: var(--lily-radius-sm);
|
|
4057
|
+
background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
|
|
4058
|
+
font-size: 0.75rem;
|
|
4059
|
+
}
|
|
4060
|
+
|
|
4061
|
+
:where(.gantt-table-th) {
|
|
4062
|
+
min-inline-size: 2rem;
|
|
4063
|
+
padding-inline: 0.25rem;
|
|
4064
|
+
font-size: 0.75rem;
|
|
4065
|
+
text-align: center;
|
|
4066
|
+
white-space: nowrap;
|
|
4067
|
+
}
|
|
4068
|
+
|
|
4069
|
+
:where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
|
|
4070
|
+
min-inline-size: 10rem;
|
|
4071
|
+
padding-inline: var(--lily-space-sm);
|
|
4072
|
+
font-size: inherit;
|
|
4073
|
+
text-align: start;
|
|
4074
|
+
white-space: normal;
|
|
4075
|
+
}
|
|
4076
|
+
|
|
4077
|
+
:where(.gantt-table-td) {
|
|
4078
|
+
min-block-size: 1.7rem;
|
|
4079
|
+
padding: 0;
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
:where(.gantt-table-td[data-in-range]) {
|
|
4083
|
+
background-color: var(--color-primary);
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4086
|
+
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
4087
|
+
clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
|
|
4088
|
+
}
|
|
4089
|
+
|
|
4090
|
+
:where(.gantt-table-td[data-today]) {
|
|
4091
|
+
border-inline-start: 2px solid var(--color-accent);
|
|
4092
|
+
}
|
|
4093
|
+
|
|
4094
|
+
/* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
|
|
4095
|
+
option up to a cap, then wrap, rather than clipping the name or running off a phone. */
|
|
4096
|
+
:where(.time-zone-picker-list) {
|
|
4097
|
+
inline-size: max-content;
|
|
4098
|
+
max-inline-size: min(26rem, 90vw);
|
|
4099
|
+
max-block-size: min(24rem, 70vh);
|
|
4100
|
+
overflow-y: auto;
|
|
4101
|
+
}
|
|
4102
|
+
|
|
4103
|
+
:where(.time-zone-picker-option) {
|
|
4104
|
+
overflow-wrap: anywhere;
|
|
4105
|
+
}
|