@lilydesignsystem/themes 0.5.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 (58) hide show
  1. package/dist/abyss.css +338 -9
  2. package/dist/acid.css +338 -9
  3. package/dist/adobe-spectrum.css +338 -9
  4. package/dist/ant-design.css +338 -9
  5. package/dist/aqua.css +338 -9
  6. package/dist/atlassian.css +338 -9
  7. package/dist/autumn.css +338 -9
  8. package/dist/black.css +338 -9
  9. package/dist/bumblebee.css +338 -9
  10. package/dist/business.css +338 -9
  11. package/dist/cappuccino.css +338 -9
  12. package/dist/caramellatte.css +338 -9
  13. package/dist/cmyk.css +338 -9
  14. package/dist/coffee.css +338 -9
  15. package/dist/corporate.css +338 -9
  16. package/dist/cupcake.css +338 -9
  17. package/dist/cyberpunk.css +338 -9
  18. package/dist/dark.css +338 -9
  19. package/dist/dim.css +338 -9
  20. package/dist/dracula.css +338 -9
  21. package/dist/emerald.css +338 -9
  22. package/dist/excel.css +338 -9
  23. package/dist/fantasy.css +338 -9
  24. package/dist/fluent.css +338 -9
  25. package/dist/forest.css +338 -9
  26. package/dist/garden.css +338 -9
  27. package/dist/github-primer.css +338 -9
  28. package/dist/halloween.css +338 -9
  29. package/dist/ibm-carbon.css +338 -9
  30. package/dist/lemonade.css +338 -9
  31. package/dist/light.css +338 -9
  32. package/dist/linear.css +338 -9
  33. package/dist/lofi.css +338 -9
  34. package/dist/luxury.css +338 -9
  35. package/dist/mozilla-protocol.css +338 -9
  36. package/dist/night.css +338 -9
  37. package/dist/nord.css +338 -9
  38. package/dist/notion.css +338 -9
  39. package/dist/pastel.css +338 -9
  40. package/dist/retro.css +338 -9
  41. package/dist/salesforce.css +338 -9
  42. package/dist/sap-fiori.css +338 -9
  43. package/dist/silk.css +338 -9
  44. package/dist/sunset.css +338 -9
  45. package/dist/synthwave.css +338 -9
  46. package/dist/united-kingdom-government-digital-service.css +338 -9
  47. package/dist/united-kingdom-national-health-service-england-for-patients.css +338 -9
  48. package/dist/united-kingdom-national-health-service-england-for-practitioners.css +338 -9
  49. package/dist/united-kingdom-national-health-service-scotland-for-patients.css +338 -9
  50. package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +338 -9
  51. package/dist/united-kingdom-national-health-service-wales-for-patients.css +340 -11
  52. package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +340 -11
  53. package/dist/united-states-web-design-system.css +338 -9
  54. package/dist/valentine.css +338 -9
  55. package/dist/vercel.css +338 -9
  56. package/dist/winter.css +338 -9
  57. package/dist/wireframe.css +338 -9
  58. package/package.json +2 -2
@@ -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 rather than filled, so a selected non-today date
1252
- still reads as the "selected" one. */
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 var(--color-primary);
1255
- outline-offset: -2px;
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,6 +2340,7 @@
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,
2214
2346
  .menu-picker,
@@ -2224,6 +2356,7 @@
2224
2356
  .theme-picker-button,
2225
2357
  .locale-picker-button,
2226
2358
  .text-size-picker-button,
2359
+ .time-zone-picker-button,
2227
2360
  .search-picker-button,
2228
2361
  .link-picker-button,
2229
2362
  .menu-picker-button,
@@ -2262,6 +2395,7 @@
2262
2395
  .theme-picker-icon,
2263
2396
  .locale-picker-icon,
2264
2397
  .text-size-picker-icon,
2398
+ .time-zone-picker-icon,
2265
2399
  .motion-picker-icon,
2266
2400
  .link-picker-icon,
2267
2401
  .menu-picker-icon,
@@ -2629,6 +2763,7 @@
2629
2763
  .theme-picker-tooltip,
2630
2764
  .locale-picker-tooltip,
2631
2765
  .text-size-picker-tooltip,
2766
+ .time-zone-picker-tooltip,
2632
2767
  .motion-picker-tooltip,
2633
2768
  .link-picker-tooltip,
2634
2769
  .menu-picker-tooltip,
@@ -2656,6 +2791,7 @@
2656
2791
  .theme-picker-tooltip,
2657
2792
  .locale-picker-tooltip,
2658
2793
  .text-size-picker-tooltip,
2794
+ .time-zone-picker-tooltip,
2659
2795
  .motion-picker-tooltip,
2660
2796
  .link-picker-tooltip,
2661
2797
  .menu-picker-tooltip,
@@ -2675,6 +2811,7 @@
2675
2811
  .theme-picker-tooltip,
2676
2812
  .locale-picker-tooltip,
2677
2813
  .text-size-picker-tooltip,
2814
+ .time-zone-picker-tooltip,
2678
2815
  .motion-picker-tooltip,
2679
2816
  .link-picker-tooltip,
2680
2817
  .menu-picker-tooltip,
@@ -2731,6 +2868,7 @@
2731
2868
  .theme-picker-list,
2732
2869
  .locale-picker-list,
2733
2870
  .text-size-picker-list,
2871
+ .time-zone-picker-list,
2734
2872
  .motion-picker-list,
2735
2873
  .link-picker-list,
2736
2874
  .menu-picker-panel,
@@ -2760,6 +2898,7 @@
2760
2898
  .theme-picker-list,
2761
2899
  .locale-picker-list,
2762
2900
  .text-size-picker-list,
2901
+ .time-zone-picker-list,
2763
2902
  .motion-picker-list,
2764
2903
  .link-picker-list,
2765
2904
  .menu-picker-panel,
@@ -2780,6 +2919,7 @@
2780
2919
  :where(.theme-picker) { anchor-name: --lily-theme-picker; }
2781
2920
  :where(.locale-picker) { anchor-name: --lily-locale-picker; }
2782
2921
  :where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
2922
+ :where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
2783
2923
  :where(.motion-picker) { anchor-name: --lily-motion-picker; }
2784
2924
  :where(.link-picker) { anchor-name: --lily-link-picker; }
2785
2925
  :where(.menu-picker) { anchor-name: --lily-menu-picker; }
@@ -2789,6 +2929,7 @@
2789
2929
  :where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
2790
2930
  :where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
2791
2931
  :where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
2932
+ :where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
2792
2933
  :where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
2793
2934
  :where(.link-picker-list) { position-anchor: --lily-link-picker; }
2794
2935
  :where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
@@ -2799,6 +2940,7 @@
2799
2940
  .theme-picker-list,
2800
2941
  .locale-picker-list,
2801
2942
  .text-size-picker-list,
2943
+ .time-zone-picker-list,
2802
2944
  .motion-picker-list,
2803
2945
  .link-picker-list,
2804
2946
  .menu-picker-panel,
@@ -2816,11 +2958,12 @@
2816
2958
  }
2817
2959
  }
2818
2960
 
2819
- :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)
2820
2962
  > :where(
2821
2963
  .theme-picker-option,
2822
2964
  .locale-picker-option,
2823
2965
  .text-size-picker-option,
2966
+ .time-zone-picker-option,
2824
2967
  .motion-picker-option
2825
2968
  ) {
2826
2969
  padding: var(--lily-space-xs) var(--lily-space-sm);
@@ -2830,7 +2973,7 @@
2830
2973
 
2831
2974
  /* data-active is the keyboard cursor (aria-activedescendant); focus
2832
2975
  stays on the listbox, so this is the only visible cue for it. */
2833
- :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)
2834
2977
  > :where([data-active]) {
2835
2978
  background-color: var(--lily-surface-alt);
2836
2979
  outline: var(--lily-focus-ring);
@@ -2839,7 +2982,7 @@
2839
2982
 
2840
2983
  /* aria-selected marks the applied theme/locale, which is not the
2841
2984
  same thing as the keyboard cursor. Both can be visible at once. */
2842
- :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)
2843
2986
  > :where([aria-selected="true"]) {
2844
2987
  font-weight: 600;
2845
2988
  background-color: var(--lily-surface-sunken);
@@ -3192,7 +3335,7 @@
3192
3335
  }
3193
3336
  /* Screen-reader-only — visually hidden but available to AT. The
3194
3337
  classic clip-rect pattern (works in every screen reader). */
3195
- :where(.screen-reader-span) {
3338
+ :where(.screen-reader-span, .middle-truncation-full) {
3196
3339
  position: absolute;
3197
3340
  width: 1px;
3198
3341
  height: 1px;
@@ -3203,6 +3346,42 @@
3203
3346
  white-space: nowrap;
3204
3347
  border: 0;
3205
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
+ }
3206
3385
 
3207
3386
  /* ==========================================================================
3208
3387
  * Hero, figure, photo, media
@@ -3764,3 +3943,153 @@
3764
3943
  :where(a, code) {
3765
3944
  overflow-wrap: anywhere;
3766
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
+ }