@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.
Files changed (59) hide show
  1. package/dist/abyss.css +360 -9
  2. package/dist/acid.css +360 -9
  3. package/dist/adobe-spectrum.css +360 -9
  4. package/dist/ant-design.css +3961 -0
  5. package/dist/aqua.css +360 -9
  6. package/dist/atlassian.css +3961 -0
  7. package/dist/autumn.css +360 -9
  8. package/dist/black.css +360 -9
  9. package/dist/bumblebee.css +360 -9
  10. package/dist/business.css +360 -9
  11. package/dist/cappuccino.css +3961 -0
  12. package/dist/caramellatte.css +360 -9
  13. package/dist/cmyk.css +360 -9
  14. package/dist/coffee.css +360 -9
  15. package/dist/corporate.css +360 -9
  16. package/dist/cupcake.css +360 -9
  17. package/dist/cyberpunk.css +360 -9
  18. package/dist/dark.css +360 -9
  19. package/dist/dim.css +360 -9
  20. package/dist/dracula.css +360 -9
  21. package/dist/emerald.css +360 -9
  22. package/dist/excel.css +3961 -0
  23. package/dist/fantasy.css +360 -9
  24. package/dist/fluent.css +3961 -0
  25. package/dist/forest.css +360 -9
  26. package/dist/garden.css +360 -9
  27. package/dist/github-primer.css +3961 -0
  28. package/dist/halloween.css +360 -9
  29. package/dist/ibm-carbon.css +3961 -0
  30. package/dist/lemonade.css +360 -9
  31. package/dist/light.css +360 -9
  32. package/dist/linear.css +3961 -0
  33. package/dist/lofi.css +360 -9
  34. package/dist/luxury.css +360 -9
  35. package/dist/mozilla-protocol.css +360 -9
  36. package/dist/night.css +360 -9
  37. package/dist/nord.css +360 -9
  38. package/dist/notion.css +3961 -0
  39. package/dist/pastel.css +360 -9
  40. package/dist/retro.css +360 -9
  41. package/dist/salesforce.css +3961 -0
  42. package/dist/sap-fiori.css +3961 -0
  43. package/dist/silk.css +360 -9
  44. package/dist/sunset.css +360 -9
  45. package/dist/synthwave.css +360 -9
  46. package/dist/united-kingdom-government-digital-service.css +360 -9
  47. package/dist/united-kingdom-national-health-service-england-for-patients.css +360 -9
  48. package/dist/united-kingdom-national-health-service-england-for-practitioners.css +360 -9
  49. package/dist/united-kingdom-national-health-service-scotland-for-patients.css +360 -9
  50. package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +360 -9
  51. package/dist/united-kingdom-national-health-service-wales-for-patients.css +362 -11
  52. package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +362 -11
  53. package/dist/united-states-web-design-system.css +360 -9
  54. package/dist/valentine.css +360 -9
  55. package/dist/vercel.css +3961 -0
  56. package/dist/winter.css +360 -9
  57. package/dist/wireframe.css +360 -9
  58. package/index.md +14 -10
  59. package/package.json +5 -4
@@ -1072,7 +1072,7 @@
1072
1072
  color: var(--lily-text-muted);
1073
1073
  }
1074
1074
  /* Final crumb (the current page) — muted because it isn't a link. */
1075
- :where(.breadcrumb-list-item[aria-current="page"]) {
1075
+ :where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
1076
1076
  color: var(--lily-text-muted);
1077
1077
  }
1078
1078
 
@@ -1344,11 +1344,114 @@
1344
1344
  background-color: var(--color-primary);
1345
1345
  color: var(--color-primary-content);
1346
1346
  }
1347
- /* Today — outlined rather than filled, so a selected non-today date
1348
- still reads as the "selected" one. */
1347
+ /* Today — outlined and bold, never filled, so a selected non-today date still
1348
+ reads as "selected". The ring takes the cell's own text colour (currentColor),
1349
+ so it holds its contrast on a light page, a dark page and a selected cell
1350
+ alike, and the bold number says it without colour. */
1349
1351
  :where(.calendar-table-td[aria-current="date"]) {
1350
- outline: 2px solid var(--color-primary);
1351
- outline-offset: -2px;
1352
+ outline: 2px solid currentColor;
1353
+ outline-offset: -3px;
1354
+ font-weight: 700;
1355
+ }
1356
+ /* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
1357
+ :where(.calendar-table) {
1358
+ table-layout: fixed;
1359
+ }
1360
+ :where(.calendar-table-td, .calendar-table-th) {
1361
+ min-width: 0;
1362
+ overflow-wrap: anywhere;
1363
+ }
1364
+
1365
+ /* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
1366
+ :where(.data-grid-toolbar) {
1367
+ display: flex;
1368
+ flex-wrap: wrap;
1369
+ gap: var(--lily-space-sm);
1370
+ align-items: center;
1371
+ margin-block-end: var(--lily-space-sm);
1372
+ }
1373
+ :where(.data-grid-search, .data-grid-search-field) {
1374
+ padding: var(--lily-space-xs) var(--lily-space-sm);
1375
+ border: var(--border) solid var(--lily-border);
1376
+ border-radius: var(--lily-radius-sm);
1377
+ background-color: var(--lily-surface);
1378
+ color: var(--lily-text);
1379
+ font: inherit;
1380
+ }
1381
+ /* A sortable header is a button that looks like its text; the arrow follows aria-sort,
1382
+ so the state is in the markup for assistive technology and on screen for everyone. */
1383
+ :where(.data-grid-sort-button) {
1384
+ padding: 0;
1385
+ border: 0;
1386
+ background: none;
1387
+ color: inherit;
1388
+ font: inherit;
1389
+ text-align: start;
1390
+ cursor: pointer;
1391
+ }
1392
+ :where(.data-grid-sort-button:focus-visible) {
1393
+ outline: 2px solid var(--color-accent);
1394
+ outline-offset: 2px;
1395
+ }
1396
+ :where([aria-sort="none"] .data-grid-sort-button)::after {
1397
+ content: " \21C5";
1398
+ opacity: 0.5;
1399
+ }
1400
+ :where([aria-sort="ascending"] .data-grid-sort-button)::after {
1401
+ content: " \25B2";
1402
+ }
1403
+ :where([aria-sort="descending"] .data-grid-sort-button)::after {
1404
+ content: " \25BC";
1405
+ }
1406
+ :where(.data-grid-pagination) {
1407
+ display: flex;
1408
+ flex-wrap: wrap;
1409
+ gap: var(--lily-space-sm);
1410
+ align-items: center;
1411
+ justify-content: flex-end;
1412
+ margin-block-start: var(--lily-space-sm);
1413
+ }
1414
+ :where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
1415
+ padding: var(--lily-space-xs) var(--lily-space-md);
1416
+ border: var(--border) solid var(--lily-border);
1417
+ border-radius: var(--lily-radius-sm);
1418
+ background-color: var(--lily-surface);
1419
+ color: var(--lily-text);
1420
+ font: inherit;
1421
+ cursor: pointer;
1422
+ }
1423
+ :where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
1424
+ opacity: 0.5;
1425
+ cursor: not-allowed;
1426
+ }
1427
+ :where(.data-grid-column-visibility) {
1428
+ display: flex;
1429
+ flex-wrap: wrap;
1430
+ gap: var(--lily-space-sm);
1431
+ margin: 0;
1432
+ padding: var(--lily-space-xs) var(--lily-space-sm);
1433
+ border: var(--border) solid var(--lily-border);
1434
+ border-radius: var(--lily-radius-sm);
1435
+ }
1436
+ /* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
1437
+ :where([data-pinned="start"]) {
1438
+ position: sticky;
1439
+ inset-inline-start: 0;
1440
+ z-index: 1;
1441
+ background-color: var(--lily-surface);
1442
+ }
1443
+ :where([data-pinned="end"]) {
1444
+ position: sticky;
1445
+ inset-inline-end: 0;
1446
+ z-index: 1;
1447
+ background-color: var(--lily-surface);
1448
+ }
1449
+ :where(th[data-pinned]) {
1450
+ z-index: 2;
1451
+ }
1452
+ /* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
1453
+ :where(.data-table-td[data-empty]) {
1454
+ opacity: 0.7;
1352
1455
  }
1353
1456
 
1354
1457
  /* --- Kanban specifics --------------------------------------------------- */
@@ -1362,6 +1465,20 @@
1362
1465
  min-width: 14rem;
1363
1466
  }
1364
1467
 
1468
+ /* Dragging a card: the column it would land in is outlined; one that refuses it
1469
+ (canMove, allowedColumns, a full strict WIP limit) is striped and shows the
1470
+ not-allowed cursor, so "you can't drop here" is visible before the drop. */
1471
+ :where(.kanban-table-td[data-drop-target]) {
1472
+ outline: 2px dashed var(--color-accent);
1473
+ outline-offset: -3px;
1474
+ }
1475
+ :where(.kanban-table-td[data-drop-blocked]) {
1476
+ outline: 2px solid var(--color-error);
1477
+ outline-offset: -3px;
1478
+ cursor: not-allowed;
1479
+ background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
1480
+ }
1481
+
1365
1482
  /* --- Gantt specifics ---------------------------------------------------- */
1366
1483
  /* Cells marked as bars are filled with the primary colour to render the
1367
1484
  schedule bar inline within the grid. */
@@ -1369,6 +1486,20 @@
1369
1486
  background-color: var(--color-primary);
1370
1487
  }
1371
1488
 
1489
+ /* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
1490
+ is tinted; a day marked as a holiday or time off (data-unavailable /
1491
+ data-range) is striped as well, so no day is told apart by colour alone;
1492
+ a column only partly unavailable gets a bar under its header. */
1493
+ :where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
1494
+ background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
1495
+ }
1496
+ :where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
1497
+ background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
1498
+ }
1499
+ :where(.gantt-table-th[data-partly-unavailable]) {
1500
+ box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
1501
+ }
1502
+
1372
1503
  /* ==========================================================================
1373
1504
  * Cards, panels, surfaces
1374
1505
  * --------------------------------------------------------------------------
@@ -2305,8 +2436,11 @@
2305
2436
  .theme-picker,
2306
2437
  .locale-picker,
2307
2438
  .text-size-picker,
2439
+ .time-zone-picker,
2308
2440
  .search-picker,
2309
2441
  .link-picker,
2442
+ .menu-picker,
2443
+ .settings-picker,
2310
2444
  .share-picker,
2311
2445
  .date-time-picker
2312
2446
  ) {
@@ -2318,8 +2452,11 @@
2318
2452
  .theme-picker-button,
2319
2453
  .locale-picker-button,
2320
2454
  .text-size-picker-button,
2455
+ .time-zone-picker-button,
2321
2456
  .search-picker-button,
2322
2457
  .link-picker-button,
2458
+ .menu-picker-button,
2459
+ .settings-picker-button,
2323
2460
  .share-picker-button,
2324
2461
  .date-time-picker-button
2325
2462
  ) {
@@ -2354,8 +2491,11 @@
2354
2491
  .theme-picker-icon,
2355
2492
  .locale-picker-icon,
2356
2493
  .text-size-picker-icon,
2494
+ .time-zone-picker-icon,
2357
2495
  .motion-picker-icon,
2358
2496
  .link-picker-icon,
2497
+ .menu-picker-icon,
2498
+ .settings-picker-icon,
2359
2499
  .share-picker-icon,
2360
2500
  .search-picker-icon
2361
2501
  ) {
@@ -2719,8 +2859,11 @@
2719
2859
  .theme-picker-tooltip,
2720
2860
  .locale-picker-tooltip,
2721
2861
  .text-size-picker-tooltip,
2862
+ .time-zone-picker-tooltip,
2722
2863
  .motion-picker-tooltip,
2723
2864
  .link-picker-tooltip,
2865
+ .menu-picker-tooltip,
2866
+ .settings-picker-tooltip,
2724
2867
  .share-picker-tooltip,
2725
2868
  .search-picker-tooltip,
2726
2869
  .date-time-picker-tooltip
@@ -2744,8 +2887,11 @@
2744
2887
  .theme-picker-tooltip,
2745
2888
  .locale-picker-tooltip,
2746
2889
  .text-size-picker-tooltip,
2890
+ .time-zone-picker-tooltip,
2747
2891
  .motion-picker-tooltip,
2748
2892
  .link-picker-tooltip,
2893
+ .menu-picker-tooltip,
2894
+ .settings-picker-tooltip,
2749
2895
  .share-picker-tooltip,
2750
2896
  .search-picker-tooltip,
2751
2897
  .date-time-picker-tooltip
@@ -2761,8 +2907,11 @@
2761
2907
  .theme-picker-tooltip,
2762
2908
  .locale-picker-tooltip,
2763
2909
  .text-size-picker-tooltip,
2910
+ .time-zone-picker-tooltip,
2764
2911
  .motion-picker-tooltip,
2765
2912
  .link-picker-tooltip,
2913
+ .menu-picker-tooltip,
2914
+ .settings-picker-tooltip,
2766
2915
  .share-picker-tooltip,
2767
2916
  .search-picker-tooltip,
2768
2917
  .date-time-picker-tooltip
@@ -2815,8 +2964,11 @@
2815
2964
  .theme-picker-list,
2816
2965
  .locale-picker-list,
2817
2966
  .text-size-picker-list,
2967
+ .time-zone-picker-list,
2818
2968
  .motion-picker-list,
2819
2969
  .link-picker-list,
2970
+ .menu-picker-panel,
2971
+ .settings-picker-panel,
2820
2972
  .share-picker-list,
2821
2973
  .search-picker-panel
2822
2974
  ) {
@@ -2842,8 +2994,11 @@
2842
2994
  .theme-picker-list,
2843
2995
  .locale-picker-list,
2844
2996
  .text-size-picker-list,
2997
+ .time-zone-picker-list,
2845
2998
  .motion-picker-list,
2846
2999
  .link-picker-list,
3000
+ .menu-picker-panel,
3001
+ .settings-picker-panel,
2847
3002
  .share-picker-list,
2848
3003
  .search-picker-panel
2849
3004
  )[hidden] {
@@ -2860,23 +3015,32 @@
2860
3015
  :where(.theme-picker) { anchor-name: --lily-theme-picker; }
2861
3016
  :where(.locale-picker) { anchor-name: --lily-locale-picker; }
2862
3017
  :where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
3018
+ :where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
2863
3019
  :where(.motion-picker) { anchor-name: --lily-motion-picker; }
2864
3020
  :where(.link-picker) { anchor-name: --lily-link-picker; }
3021
+ :where(.menu-picker) { anchor-name: --lily-menu-picker; }
3022
+ :where(.settings-picker) { anchor-name: --lily-settings-picker; }
2865
3023
  :where(.share-picker) { anchor-name: --lily-share-picker; }
2866
3024
  :where(.search-picker) { anchor-name: --lily-search-picker; }
2867
3025
  :where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
2868
3026
  :where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
2869
3027
  :where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
3028
+ :where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
2870
3029
  :where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
2871
3030
  :where(.link-picker-list) { position-anchor: --lily-link-picker; }
3031
+ :where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
3032
+ :where(.settings-picker-panel) { position-anchor: --lily-settings-picker; }
2872
3033
  :where(.share-picker-list) { position-anchor: --lily-share-picker; }
2873
3034
  :where(.search-picker-panel) { position-anchor: --lily-search-picker; }
2874
3035
  :where(
2875
3036
  .theme-picker-list,
2876
3037
  .locale-picker-list,
2877
3038
  .text-size-picker-list,
3039
+ .time-zone-picker-list,
2878
3040
  .motion-picker-list,
2879
3041
  .link-picker-list,
3042
+ .menu-picker-panel,
3043
+ .settings-picker-panel,
2880
3044
  .share-picker-list,
2881
3045
  .search-picker-panel
2882
3046
  ) {
@@ -2890,11 +3054,12 @@
2890
3054
  }
2891
3055
  }
2892
3056
 
2893
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
3057
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2894
3058
  > :where(
2895
3059
  .theme-picker-option,
2896
3060
  .locale-picker-option,
2897
3061
  .text-size-picker-option,
3062
+ .time-zone-picker-option,
2898
3063
  .motion-picker-option
2899
3064
  ) {
2900
3065
  padding: var(--lily-space-xs) var(--lily-space-sm);
@@ -2904,7 +3069,7 @@
2904
3069
 
2905
3070
  /* data-active is the keyboard cursor (aria-activedescendant); focus
2906
3071
  stays on the listbox, so this is the only visible cue for it. */
2907
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
3072
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2908
3073
  > :where([data-active]) {
2909
3074
  background-color: var(--lily-surface-alt);
2910
3075
  outline: var(--lily-focus-ring);
@@ -2913,7 +3078,7 @@
2913
3078
 
2914
3079
  /* aria-selected marks the applied theme/locale, which is not the
2915
3080
  same thing as the keyboard cursor. Both can be visible at once. */
2916
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
3081
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2917
3082
  > :where([aria-selected="true"]) {
2918
3083
  font-weight: 600;
2919
3084
  background-color: var(--lily-surface-sunken);
@@ -3266,7 +3431,7 @@
3266
3431
  }
3267
3432
  /* Screen-reader-only — visually hidden but available to AT. The
3268
3433
  classic clip-rect pattern (works in every screen reader). */
3269
- :where(.screen-reader-span) {
3434
+ :where(.screen-reader-span, .middle-truncation-full) {
3270
3435
  position: absolute;
3271
3436
  width: 1px;
3272
3437
  height: 1px;
@@ -3277,6 +3442,42 @@
3277
3442
  white-space: nowrap;
3278
3443
  border: 0;
3279
3444
  }
3445
+ /* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
3446
+ text (hidden above) stays in the accessibility tree. */
3447
+ :where(.middle-truncation) {
3448
+ display: block;
3449
+ position: relative;
3450
+ overflow: hidden;
3451
+ white-space: nowrap;
3452
+ }
3453
+ /* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
3454
+ primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
3455
+ :where(.wheel-picker-list) {
3456
+ max-block-size: 10em;
3457
+ overflow-y: auto;
3458
+ overscroll-behavior: contain;
3459
+ scroll-snap-type: y mandatory;
3460
+ border: 1px solid var(--color-base-300);
3461
+ border-radius: var(--lily-radius-md);
3462
+ }
3463
+ :where(.wheel-picker-list:focus-visible) {
3464
+ outline: 2px solid var(--lily-focus-ring);
3465
+ outline-offset: 2px;
3466
+ }
3467
+ :where(.wheel-picker-option) {
3468
+ padding: 0.5rem 1rem;
3469
+ scroll-snap-align: center;
3470
+ cursor: pointer;
3471
+ }
3472
+ :where(.wheel-picker-option[aria-selected="true"]) {
3473
+ background-color: var(--color-primary);
3474
+ color: var(--color-primary-content);
3475
+ font-weight: 600;
3476
+ }
3477
+ :where(.wheel-picker-option[aria-disabled="true"]) {
3478
+ opacity: 0.5;
3479
+ cursor: not-allowed;
3480
+ }
3280
3481
 
3281
3482
  /* ==========================================================================
3282
3483
  * Hero, figure, photo, media
@@ -3838,3 +4039,153 @@
3838
4039
  :where(a, code) {
3839
4040
  overflow-wrap: anywhere;
3840
4041
  }
4042
+
4043
+ /* ============================================================================
4044
+ * Helper packages — layout and look, shared verbatim by all themes.
4045
+ *
4046
+ * The data grid, kanban board, Gantt chart and calendar view are wide by nature.
4047
+ * Each root scrolls sideways inside its own box and its table sizes to its content,
4048
+ * so a narrow screen scrolls the table instead of wrapping every cell to a letter
4049
+ * (the overflow guard above lets cells break anywhere, which is right for prose and
4050
+ * wrong for a table that has a scroller). The toolbar controls of all four helpers
4051
+ * share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
4052
+ * the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
4053
+ * today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
4054
+ * ========================================================================= */
4055
+
4056
+ :where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
4057
+ max-inline-size: 100%;
4058
+ overflow-x: auto;
4059
+ }
4060
+
4061
+ :where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
4062
+ inline-size: max-content;
4063
+ min-inline-size: 100%;
4064
+ }
4065
+
4066
+ :where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
4067
+ .calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
4068
+ display: flex;
4069
+ flex-wrap: wrap;
4070
+ gap: var(--lily-space-sm);
4071
+ align-items: center;
4072
+ margin-block-end: var(--lily-space-sm);
4073
+ }
4074
+
4075
+ :where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
4076
+ padding: var(--lily-space-xs) var(--lily-space-sm);
4077
+ border: var(--border) solid var(--lily-border);
4078
+ border-radius: var(--lily-radius-sm);
4079
+ background-color: var(--lily-surface);
4080
+ color: var(--lily-text);
4081
+ font: inherit;
4082
+ min-block-size: 24px;
4083
+ }
4084
+
4085
+ :where(.kanban-board-export-button,
4086
+ .kanban-board-add-button,
4087
+ .kanban-board-undo-button,
4088
+ .kanban-board-collapse-button,
4089
+ .kanban-board-lane-toggle,
4090
+ .kanban-board-move-button,
4091
+ .gantt-chart-export-button,
4092
+ .gantt-chart-zoom-in-button,
4093
+ .gantt-chart-zoom-out-button,
4094
+ .gantt-chart-collapse-button,
4095
+ .gantt-chart-collapse-all-button,
4096
+ .gantt-chart-expand-all-button,
4097
+ .gantt-chart-save-button,
4098
+ .gantt-chart-cancel-button,
4099
+ .calendar-view-export-button,
4100
+ .calendar-view-previous-button,
4101
+ .calendar-view-next-button,
4102
+ .calendar-view-today-button,
4103
+ .calendar-view-switcher-button) {
4104
+ padding: var(--lily-space-xs) var(--lily-space-md);
4105
+ border: var(--border) solid var(--lily-border);
4106
+ border-radius: var(--lily-radius-sm);
4107
+ background-color: var(--lily-surface);
4108
+ color: var(--lily-text);
4109
+ font: inherit;
4110
+ cursor: pointer;
4111
+ min-inline-size: 24px;
4112
+ min-block-size: 24px;
4113
+ }
4114
+
4115
+ :where(.kanban-board-export-button:disabled,
4116
+ .kanban-board-add-button:disabled,
4117
+ .kanban-board-undo-button:disabled,
4118
+ .gantt-chart-export-button:disabled,
4119
+ .gantt-chart-zoom-in-button:disabled,
4120
+ .gantt-chart-zoom-out-button:disabled,
4121
+ .calendar-view-export-button:disabled,
4122
+ .calendar-view-previous-button[aria-disabled="true"],
4123
+ .calendar-view-next-button[aria-disabled="true"]) {
4124
+ opacity: 0.5;
4125
+ cursor: not-allowed;
4126
+ }
4127
+
4128
+ :where(.calendar-view-switcher-button[aria-pressed="true"]) {
4129
+ background-color: var(--color-base-300);
4130
+ font-weight: 600;
4131
+ }
4132
+
4133
+ :where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
4134
+ margin-block-start: var(--lily-space-sm);
4135
+ font-size: 0.875em;
4136
+ opacity: 0.8;
4137
+ }
4138
+
4139
+ :where(.calendar-view-event) {
4140
+ display: block;
4141
+ padding: 0 var(--lily-space-xs);
4142
+ border-radius: var(--lily-radius-sm);
4143
+ background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
4144
+ font-size: 0.75rem;
4145
+ }
4146
+
4147
+ :where(.gantt-table-th) {
4148
+ min-inline-size: 2rem;
4149
+ padding-inline: 0.25rem;
4150
+ font-size: 0.75rem;
4151
+ text-align: center;
4152
+ white-space: nowrap;
4153
+ }
4154
+
4155
+ :where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
4156
+ min-inline-size: 10rem;
4157
+ padding-inline: var(--lily-space-sm);
4158
+ font-size: inherit;
4159
+ text-align: start;
4160
+ white-space: normal;
4161
+ }
4162
+
4163
+ :where(.gantt-table-td) {
4164
+ min-block-size: 1.7rem;
4165
+ padding: 0;
4166
+ }
4167
+
4168
+ :where(.gantt-table-td[data-in-range]) {
4169
+ background-color: var(--color-primary);
4170
+ }
4171
+
4172
+ :where(.gantt-table-td[data-in-range][data-milestone]) {
4173
+ clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
4174
+ }
4175
+
4176
+ :where(.gantt-table-td[data-today]) {
4177
+ border-inline-start: 2px solid var(--color-accent);
4178
+ }
4179
+
4180
+ /* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
4181
+ option up to a cap, then wrap, rather than clipping the name or running off a phone. */
4182
+ :where(.time-zone-picker-list) {
4183
+ inline-size: max-content;
4184
+ max-inline-size: min(26rem, 90vw);
4185
+ max-block-size: min(24rem, 70vh);
4186
+ overflow-y: auto;
4187
+ }
4188
+
4189
+ :where(.time-zone-picker-option) {
4190
+ overflow-wrap: anywhere;
4191
+ }