@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
@@ -858,7 +858,7 @@
858
858
  color: var(--lily-text-muted);
859
859
  }
860
860
  /* Final crumb (the current page) — muted because it isn't a link. */
861
- :where(.breadcrumb-list-item[aria-current="page"]) {
861
+ :where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
862
862
  color: var(--lily-text-muted);
863
863
  }
864
864
 
@@ -1127,11 +1127,114 @@
1127
1127
  background-color: var(--color-primary);
1128
1128
  color: var(--color-primary-content);
1129
1129
  }
1130
- /* Today — outlined rather than filled, so a selected non-today date
1131
- still reads as the "selected" one. */
1130
+ /* Today — outlined and bold, never filled, so a selected non-today date still
1131
+ reads as "selected". The ring takes the cell's own text colour (currentColor),
1132
+ so it holds its contrast on a light page, a dark page and a selected cell
1133
+ alike, and the bold number says it without colour. */
1132
1134
  :where(.calendar-table-td[aria-current="date"]) {
1133
- outline: 2px solid var(--color-primary);
1134
- outline-offset: -2px;
1135
+ outline: 2px solid currentColor;
1136
+ outline-offset: -3px;
1137
+ font-weight: 700;
1138
+ }
1139
+ /* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
1140
+ :where(.calendar-table) {
1141
+ table-layout: fixed;
1142
+ }
1143
+ :where(.calendar-table-td, .calendar-table-th) {
1144
+ min-width: 0;
1145
+ overflow-wrap: anywhere;
1146
+ }
1147
+
1148
+ /* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
1149
+ :where(.data-grid-toolbar) {
1150
+ display: flex;
1151
+ flex-wrap: wrap;
1152
+ gap: var(--lily-space-sm);
1153
+ align-items: center;
1154
+ margin-block-end: var(--lily-space-sm);
1155
+ }
1156
+ :where(.data-grid-search, .data-grid-search-field) {
1157
+ padding: var(--lily-space-xs) var(--lily-space-sm);
1158
+ border: var(--border) solid var(--lily-border);
1159
+ border-radius: var(--lily-radius-sm);
1160
+ background-color: var(--lily-surface);
1161
+ color: var(--lily-text);
1162
+ font: inherit;
1163
+ }
1164
+ /* A sortable header is a button that looks like its text; the arrow follows aria-sort,
1165
+ so the state is in the markup for assistive technology and on screen for everyone. */
1166
+ :where(.data-grid-sort-button) {
1167
+ padding: 0;
1168
+ border: 0;
1169
+ background: none;
1170
+ color: inherit;
1171
+ font: inherit;
1172
+ text-align: start;
1173
+ cursor: pointer;
1174
+ }
1175
+ :where(.data-grid-sort-button:focus-visible) {
1176
+ outline: 2px solid var(--color-accent);
1177
+ outline-offset: 2px;
1178
+ }
1179
+ :where([aria-sort="none"] .data-grid-sort-button)::after {
1180
+ content: " \21C5";
1181
+ opacity: 0.5;
1182
+ }
1183
+ :where([aria-sort="ascending"] .data-grid-sort-button)::after {
1184
+ content: " \25B2";
1185
+ }
1186
+ :where([aria-sort="descending"] .data-grid-sort-button)::after {
1187
+ content: " \25BC";
1188
+ }
1189
+ :where(.data-grid-pagination) {
1190
+ display: flex;
1191
+ flex-wrap: wrap;
1192
+ gap: var(--lily-space-sm);
1193
+ align-items: center;
1194
+ justify-content: flex-end;
1195
+ margin-block-start: var(--lily-space-sm);
1196
+ }
1197
+ :where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
1198
+ padding: var(--lily-space-xs) var(--lily-space-md);
1199
+ border: var(--border) solid var(--lily-border);
1200
+ border-radius: var(--lily-radius-sm);
1201
+ background-color: var(--lily-surface);
1202
+ color: var(--lily-text);
1203
+ font: inherit;
1204
+ cursor: pointer;
1205
+ }
1206
+ :where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
1207
+ opacity: 0.5;
1208
+ cursor: not-allowed;
1209
+ }
1210
+ :where(.data-grid-column-visibility) {
1211
+ display: flex;
1212
+ flex-wrap: wrap;
1213
+ gap: var(--lily-space-sm);
1214
+ margin: 0;
1215
+ padding: var(--lily-space-xs) var(--lily-space-sm);
1216
+ border: var(--border) solid var(--lily-border);
1217
+ border-radius: var(--lily-radius-sm);
1218
+ }
1219
+ /* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
1220
+ :where([data-pinned="start"]) {
1221
+ position: sticky;
1222
+ inset-inline-start: 0;
1223
+ z-index: 1;
1224
+ background-color: var(--lily-surface);
1225
+ }
1226
+ :where([data-pinned="end"]) {
1227
+ position: sticky;
1228
+ inset-inline-end: 0;
1229
+ z-index: 1;
1230
+ background-color: var(--lily-surface);
1231
+ }
1232
+ :where(th[data-pinned]) {
1233
+ z-index: 2;
1234
+ }
1235
+ /* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
1236
+ :where(.data-table-td[data-empty]) {
1237
+ opacity: 0.7;
1135
1238
  }
1136
1239
 
1137
1240
  /* --- Kanban specifics --------------------------------------------------- */
@@ -1145,6 +1248,20 @@
1145
1248
  min-width: 14rem;
1146
1249
  }
1147
1250
 
1251
+ /* Dragging a card: the column it would land in is outlined; one that refuses it
1252
+ (canMove, allowedColumns, a full strict WIP limit) is striped and shows the
1253
+ not-allowed cursor, so "you can't drop here" is visible before the drop. */
1254
+ :where(.kanban-table-td[data-drop-target]) {
1255
+ outline: 2px dashed var(--color-accent);
1256
+ outline-offset: -3px;
1257
+ }
1258
+ :where(.kanban-table-td[data-drop-blocked]) {
1259
+ outline: 2px solid var(--color-error);
1260
+ outline-offset: -3px;
1261
+ cursor: not-allowed;
1262
+ background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
1263
+ }
1264
+
1148
1265
  /* --- Gantt specifics ---------------------------------------------------- */
1149
1266
  /* Cells marked as bars are filled with the primary colour to render the
1150
1267
  schedule bar inline within the grid. */
@@ -1152,6 +1269,20 @@
1152
1269
  background-color: var(--color-primary);
1153
1270
  }
1154
1271
 
1272
+ /* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
1273
+ is tinted; a day marked as a holiday or time off (data-unavailable /
1274
+ data-range) is striped as well, so no day is told apart by colour alone;
1275
+ a column only partly unavailable gets a bar under its header. */
1276
+ :where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
1277
+ background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
1278
+ }
1279
+ :where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
1280
+ background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
1281
+ }
1282
+ :where(.gantt-table-th[data-partly-unavailable]) {
1283
+ box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
1284
+ }
1285
+
1155
1286
  /* ==========================================================================
1156
1287
  * Cards, panels, surfaces
1157
1288
  * --------------------------------------------------------------------------
@@ -2078,6 +2209,7 @@
2078
2209
  .theme-picker,
2079
2210
  .locale-picker,
2080
2211
  .text-size-picker,
2212
+ .time-zone-picker,
2081
2213
  .search-picker,
2082
2214
  .link-picker,
2083
2215
  .menu-picker,
@@ -2093,6 +2225,7 @@
2093
2225
  .theme-picker-button,
2094
2226
  .locale-picker-button,
2095
2227
  .text-size-picker-button,
2228
+ .time-zone-picker-button,
2096
2229
  .search-picker-button,
2097
2230
  .link-picker-button,
2098
2231
  .menu-picker-button,
@@ -2131,6 +2264,7 @@
2131
2264
  .theme-picker-icon,
2132
2265
  .locale-picker-icon,
2133
2266
  .text-size-picker-icon,
2267
+ .time-zone-picker-icon,
2134
2268
  .motion-picker-icon,
2135
2269
  .link-picker-icon,
2136
2270
  .menu-picker-icon,
@@ -2498,6 +2632,7 @@
2498
2632
  .theme-picker-tooltip,
2499
2633
  .locale-picker-tooltip,
2500
2634
  .text-size-picker-tooltip,
2635
+ .time-zone-picker-tooltip,
2501
2636
  .motion-picker-tooltip,
2502
2637
  .link-picker-tooltip,
2503
2638
  .menu-picker-tooltip,
@@ -2525,6 +2660,7 @@
2525
2660
  .theme-picker-tooltip,
2526
2661
  .locale-picker-tooltip,
2527
2662
  .text-size-picker-tooltip,
2663
+ .time-zone-picker-tooltip,
2528
2664
  .motion-picker-tooltip,
2529
2665
  .link-picker-tooltip,
2530
2666
  .menu-picker-tooltip,
@@ -2544,6 +2680,7 @@
2544
2680
  .theme-picker-tooltip,
2545
2681
  .locale-picker-tooltip,
2546
2682
  .text-size-picker-tooltip,
2683
+ .time-zone-picker-tooltip,
2547
2684
  .motion-picker-tooltip,
2548
2685
  .link-picker-tooltip,
2549
2686
  .menu-picker-tooltip,
@@ -2600,6 +2737,7 @@
2600
2737
  .theme-picker-list,
2601
2738
  .locale-picker-list,
2602
2739
  .text-size-picker-list,
2740
+ .time-zone-picker-list,
2603
2741
  .motion-picker-list,
2604
2742
  .link-picker-list,
2605
2743
  .menu-picker-panel,
@@ -2629,6 +2767,7 @@
2629
2767
  .theme-picker-list,
2630
2768
  .locale-picker-list,
2631
2769
  .text-size-picker-list,
2770
+ .time-zone-picker-list,
2632
2771
  .motion-picker-list,
2633
2772
  .link-picker-list,
2634
2773
  .menu-picker-panel,
@@ -2649,6 +2788,7 @@
2649
2788
  :where(.theme-picker) { anchor-name: --lily-theme-picker; }
2650
2789
  :where(.locale-picker) { anchor-name: --lily-locale-picker; }
2651
2790
  :where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
2791
+ :where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
2652
2792
  :where(.motion-picker) { anchor-name: --lily-motion-picker; }
2653
2793
  :where(.link-picker) { anchor-name: --lily-link-picker; }
2654
2794
  :where(.menu-picker) { anchor-name: --lily-menu-picker; }
@@ -2658,6 +2798,7 @@
2658
2798
  :where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
2659
2799
  :where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
2660
2800
  :where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
2801
+ :where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
2661
2802
  :where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
2662
2803
  :where(.link-picker-list) { position-anchor: --lily-link-picker; }
2663
2804
  :where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
@@ -2668,6 +2809,7 @@
2668
2809
  .theme-picker-list,
2669
2810
  .locale-picker-list,
2670
2811
  .text-size-picker-list,
2812
+ .time-zone-picker-list,
2671
2813
  .motion-picker-list,
2672
2814
  .link-picker-list,
2673
2815
  .menu-picker-panel,
@@ -2685,11 +2827,12 @@
2685
2827
  }
2686
2828
  }
2687
2829
 
2688
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
2830
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2689
2831
  > :where(
2690
2832
  .theme-picker-option,
2691
2833
  .locale-picker-option,
2692
2834
  .text-size-picker-option,
2835
+ .time-zone-picker-option,
2693
2836
  .motion-picker-option
2694
2837
  ) {
2695
2838
  padding: var(--lily-space-xs) var(--lily-space-sm);
@@ -2699,7 +2842,7 @@
2699
2842
 
2700
2843
  /* data-active is the keyboard cursor (aria-activedescendant); focus
2701
2844
  stays on the listbox, so this is the only visible cue for it. */
2702
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
2845
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2703
2846
  > :where([data-active]) {
2704
2847
  background-color: var(--lily-surface-alt);
2705
2848
  outline: var(--lily-focus-ring);
@@ -2708,7 +2851,7 @@
2708
2851
 
2709
2852
  /* aria-selected marks the applied theme/locale, which is not the
2710
2853
  same thing as the keyboard cursor. Both can be visible at once. */
2711
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
2854
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2712
2855
  > :where([aria-selected="true"]) {
2713
2856
  font-weight: 600;
2714
2857
  background-color: var(--lily-surface-sunken);
@@ -3061,7 +3204,7 @@
3061
3204
  }
3062
3205
  /* Screen-reader-only — visually hidden but available to AT. The
3063
3206
  classic clip-rect pattern (works in every screen reader). */
3064
- :where(.screen-reader-span) {
3207
+ :where(.screen-reader-span, .middle-truncation-full) {
3065
3208
  position: absolute;
3066
3209
  width: 1px;
3067
3210
  height: 1px;
@@ -3072,6 +3215,42 @@
3072
3215
  white-space: nowrap;
3073
3216
  border: 0;
3074
3217
  }
3218
+ /* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
3219
+ text (hidden above) stays in the accessibility tree. */
3220
+ :where(.middle-truncation) {
3221
+ display: block;
3222
+ position: relative;
3223
+ overflow: hidden;
3224
+ white-space: nowrap;
3225
+ }
3226
+ /* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
3227
+ primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
3228
+ :where(.wheel-picker-list) {
3229
+ max-block-size: 10em;
3230
+ overflow-y: auto;
3231
+ overscroll-behavior: contain;
3232
+ scroll-snap-type: y mandatory;
3233
+ border: 1px solid var(--color-base-300);
3234
+ border-radius: var(--lily-radius-md);
3235
+ }
3236
+ :where(.wheel-picker-list:focus-visible) {
3237
+ outline: 2px solid var(--lily-focus-ring);
3238
+ outline-offset: 2px;
3239
+ }
3240
+ :where(.wheel-picker-option) {
3241
+ padding: 0.5rem 1rem;
3242
+ scroll-snap-align: center;
3243
+ cursor: pointer;
3244
+ }
3245
+ :where(.wheel-picker-option[aria-selected="true"]) {
3246
+ background-color: var(--color-primary);
3247
+ color: var(--color-primary-content);
3248
+ font-weight: 600;
3249
+ }
3250
+ :where(.wheel-picker-option[aria-disabled="true"]) {
3251
+ opacity: 0.5;
3252
+ cursor: not-allowed;
3253
+ }
3075
3254
 
3076
3255
  /* ==========================================================================
3077
3256
  * Hero, figure, photo, media
@@ -3631,3 +3810,153 @@
3631
3810
  :where(a, code) {
3632
3811
  overflow-wrap: anywhere;
3633
3812
  }
3813
+
3814
+ /* ============================================================================
3815
+ * Helper packages — layout and look, shared verbatim by all themes.
3816
+ *
3817
+ * The data grid, kanban board, Gantt chart and calendar view are wide by nature.
3818
+ * Each root scrolls sideways inside its own box and its table sizes to its content,
3819
+ * so a narrow screen scrolls the table instead of wrapping every cell to a letter
3820
+ * (the overflow guard above lets cells break anywhere, which is right for prose and
3821
+ * wrong for a table that has a scroller). The toolbar controls of all four helpers
3822
+ * share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
3823
+ * the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
3824
+ * today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
3825
+ * ========================================================================= */
3826
+
3827
+ :where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
3828
+ max-inline-size: 100%;
3829
+ overflow-x: auto;
3830
+ }
3831
+
3832
+ :where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
3833
+ inline-size: max-content;
3834
+ min-inline-size: 100%;
3835
+ }
3836
+
3837
+ :where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
3838
+ .calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
3839
+ display: flex;
3840
+ flex-wrap: wrap;
3841
+ gap: var(--lily-space-sm);
3842
+ align-items: center;
3843
+ margin-block-end: var(--lily-space-sm);
3844
+ }
3845
+
3846
+ :where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
3847
+ padding: var(--lily-space-xs) var(--lily-space-sm);
3848
+ border: var(--border) solid var(--lily-border);
3849
+ border-radius: var(--lily-radius-sm);
3850
+ background-color: var(--lily-surface);
3851
+ color: var(--lily-text);
3852
+ font: inherit;
3853
+ min-block-size: 24px;
3854
+ }
3855
+
3856
+ :where(.kanban-board-export-button,
3857
+ .kanban-board-add-button,
3858
+ .kanban-board-undo-button,
3859
+ .kanban-board-collapse-button,
3860
+ .kanban-board-lane-toggle,
3861
+ .kanban-board-move-button,
3862
+ .gantt-chart-export-button,
3863
+ .gantt-chart-zoom-in-button,
3864
+ .gantt-chart-zoom-out-button,
3865
+ .gantt-chart-collapse-button,
3866
+ .gantt-chart-collapse-all-button,
3867
+ .gantt-chart-expand-all-button,
3868
+ .gantt-chart-save-button,
3869
+ .gantt-chart-cancel-button,
3870
+ .calendar-view-export-button,
3871
+ .calendar-view-previous-button,
3872
+ .calendar-view-next-button,
3873
+ .calendar-view-today-button,
3874
+ .calendar-view-switcher-button) {
3875
+ padding: var(--lily-space-xs) var(--lily-space-md);
3876
+ border: var(--border) solid var(--lily-border);
3877
+ border-radius: var(--lily-radius-sm);
3878
+ background-color: var(--lily-surface);
3879
+ color: var(--lily-text);
3880
+ font: inherit;
3881
+ cursor: pointer;
3882
+ min-inline-size: 24px;
3883
+ min-block-size: 24px;
3884
+ }
3885
+
3886
+ :where(.kanban-board-export-button:disabled,
3887
+ .kanban-board-add-button:disabled,
3888
+ .kanban-board-undo-button:disabled,
3889
+ .gantt-chart-export-button:disabled,
3890
+ .gantt-chart-zoom-in-button:disabled,
3891
+ .gantt-chart-zoom-out-button:disabled,
3892
+ .calendar-view-export-button:disabled,
3893
+ .calendar-view-previous-button[aria-disabled="true"],
3894
+ .calendar-view-next-button[aria-disabled="true"]) {
3895
+ opacity: 0.5;
3896
+ cursor: not-allowed;
3897
+ }
3898
+
3899
+ :where(.calendar-view-switcher-button[aria-pressed="true"]) {
3900
+ background-color: var(--color-base-300);
3901
+ font-weight: 600;
3902
+ }
3903
+
3904
+ :where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
3905
+ margin-block-start: var(--lily-space-sm);
3906
+ font-size: 0.875em;
3907
+ opacity: 0.8;
3908
+ }
3909
+
3910
+ :where(.calendar-view-event) {
3911
+ display: block;
3912
+ padding: 0 var(--lily-space-xs);
3913
+ border-radius: var(--lily-radius-sm);
3914
+ background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
3915
+ font-size: 0.75rem;
3916
+ }
3917
+
3918
+ :where(.gantt-table-th) {
3919
+ min-inline-size: 2rem;
3920
+ padding-inline: 0.25rem;
3921
+ font-size: 0.75rem;
3922
+ text-align: center;
3923
+ white-space: nowrap;
3924
+ }
3925
+
3926
+ :where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
3927
+ min-inline-size: 10rem;
3928
+ padding-inline: var(--lily-space-sm);
3929
+ font-size: inherit;
3930
+ text-align: start;
3931
+ white-space: normal;
3932
+ }
3933
+
3934
+ :where(.gantt-table-td) {
3935
+ min-block-size: 1.7rem;
3936
+ padding: 0;
3937
+ }
3938
+
3939
+ :where(.gantt-table-td[data-in-range]) {
3940
+ background-color: var(--color-primary);
3941
+ }
3942
+
3943
+ :where(.gantt-table-td[data-in-range][data-milestone]) {
3944
+ clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
3945
+ }
3946
+
3947
+ :where(.gantt-table-td[data-today]) {
3948
+ border-inline-start: 2px solid var(--color-accent);
3949
+ }
3950
+
3951
+ /* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
3952
+ option up to a cap, then wrap, rather than clipping the name or running off a phone. */
3953
+ :where(.time-zone-picker-list) {
3954
+ inline-size: max-content;
3955
+ max-inline-size: min(26rem, 90vw);
3956
+ max-block-size: min(24rem, 70vh);
3957
+ overflow-y: auto;
3958
+ }
3959
+
3960
+ :where(.time-zone-picker-option) {
3961
+ overflow-wrap: anywhere;
3962
+ }