@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.
- package/dist/abyss.css +338 -9
- package/dist/acid.css +338 -9
- package/dist/adobe-spectrum.css +338 -9
- package/dist/ant-design.css +338 -9
- package/dist/aqua.css +338 -9
- package/dist/atlassian.css +338 -9
- package/dist/autumn.css +338 -9
- package/dist/black.css +338 -9
- package/dist/bumblebee.css +338 -9
- package/dist/business.css +338 -9
- package/dist/cappuccino.css +338 -9
- package/dist/caramellatte.css +338 -9
- package/dist/cmyk.css +338 -9
- package/dist/coffee.css +338 -9
- package/dist/corporate.css +338 -9
- package/dist/cupcake.css +338 -9
- package/dist/cyberpunk.css +338 -9
- package/dist/dark.css +338 -9
- package/dist/dim.css +338 -9
- package/dist/dracula.css +338 -9
- package/dist/emerald.css +338 -9
- package/dist/excel.css +338 -9
- package/dist/fantasy.css +338 -9
- package/dist/fluent.css +338 -9
- package/dist/forest.css +338 -9
- package/dist/garden.css +338 -9
- package/dist/github-primer.css +338 -9
- package/dist/halloween.css +338 -9
- package/dist/ibm-carbon.css +338 -9
- package/dist/lemonade.css +338 -9
- package/dist/light.css +338 -9
- package/dist/linear.css +338 -9
- package/dist/lofi.css +338 -9
- package/dist/luxury.css +338 -9
- package/dist/mozilla-protocol.css +338 -9
- package/dist/night.css +338 -9
- package/dist/nord.css +338 -9
- package/dist/notion.css +338 -9
- package/dist/pastel.css +338 -9
- package/dist/retro.css +338 -9
- package/dist/salesforce.css +338 -9
- package/dist/sap-fiori.css +338 -9
- package/dist/silk.css +338 -9
- package/dist/sunset.css +338 -9
- package/dist/synthwave.css +338 -9
- package/dist/united-kingdom-government-digital-service.css +338 -9
- package/dist/united-kingdom-national-health-service-england-for-patients.css +338 -9
- package/dist/united-kingdom-national-health-service-england-for-practitioners.css +338 -9
- package/dist/united-kingdom-national-health-service-scotland-for-patients.css +338 -9
- package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +338 -9
- package/dist/united-kingdom-national-health-service-wales-for-patients.css +340 -11
- package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +340 -11
- package/dist/united-states-web-design-system.css +338 -9
- package/dist/valentine.css +338 -9
- package/dist/vercel.css +338 -9
- package/dist/winter.css +338 -9
- package/dist/wireframe.css +338 -9
- package/package.json +2 -2
|
@@ -862,7 +862,7 @@
|
|
|
862
862
|
color: var(--lily-text-muted);
|
|
863
863
|
}
|
|
864
864
|
/* Final crumb (the current page) — muted because it isn't a link. */
|
|
865
|
-
:where(.breadcrumb-list-item[aria-current="page"]) {
|
|
865
|
+
:where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
|
|
866
866
|
color: var(--lily-text-muted);
|
|
867
867
|
}
|
|
868
868
|
|
|
@@ -1131,11 +1131,114 @@
|
|
|
1131
1131
|
background-color: var(--color-primary);
|
|
1132
1132
|
color: var(--color-primary-content);
|
|
1133
1133
|
}
|
|
1134
|
-
/* Today — outlined
|
|
1135
|
-
|
|
1134
|
+
/* Today — outlined and bold, never filled, so a selected non-today date still
|
|
1135
|
+
reads as "selected". The ring takes the cell's own text colour (currentColor),
|
|
1136
|
+
so it holds its contrast on a light page, a dark page and a selected cell
|
|
1137
|
+
alike, and the bold number says it without colour. */
|
|
1136
1138
|
:where(.calendar-table-td[aria-current="date"]) {
|
|
1137
|
-
outline: 2px solid
|
|
1138
|
-
outline-offset: -
|
|
1139
|
+
outline: 2px solid currentColor;
|
|
1140
|
+
outline-offset: -3px;
|
|
1141
|
+
font-weight: 700;
|
|
1142
|
+
}
|
|
1143
|
+
/* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
|
|
1144
|
+
:where(.calendar-table) {
|
|
1145
|
+
table-layout: fixed;
|
|
1146
|
+
}
|
|
1147
|
+
:where(.calendar-table-td, .calendar-table-th) {
|
|
1148
|
+
min-width: 0;
|
|
1149
|
+
overflow-wrap: anywhere;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
|
|
1153
|
+
:where(.data-grid-toolbar) {
|
|
1154
|
+
display: flex;
|
|
1155
|
+
flex-wrap: wrap;
|
|
1156
|
+
gap: var(--lily-space-sm);
|
|
1157
|
+
align-items: center;
|
|
1158
|
+
margin-block-end: var(--lily-space-sm);
|
|
1159
|
+
}
|
|
1160
|
+
:where(.data-grid-search, .data-grid-search-field) {
|
|
1161
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1162
|
+
border: var(--border) solid var(--lily-border);
|
|
1163
|
+
border-radius: var(--lily-radius-sm);
|
|
1164
|
+
background-color: var(--lily-surface);
|
|
1165
|
+
color: var(--lily-text);
|
|
1166
|
+
font: inherit;
|
|
1167
|
+
}
|
|
1168
|
+
/* A sortable header is a button that looks like its text; the arrow follows aria-sort,
|
|
1169
|
+
so the state is in the markup for assistive technology and on screen for everyone. */
|
|
1170
|
+
:where(.data-grid-sort-button) {
|
|
1171
|
+
padding: 0;
|
|
1172
|
+
border: 0;
|
|
1173
|
+
background: none;
|
|
1174
|
+
color: inherit;
|
|
1175
|
+
font: inherit;
|
|
1176
|
+
text-align: start;
|
|
1177
|
+
cursor: pointer;
|
|
1178
|
+
}
|
|
1179
|
+
:where(.data-grid-sort-button:focus-visible) {
|
|
1180
|
+
outline: 2px solid var(--color-accent);
|
|
1181
|
+
outline-offset: 2px;
|
|
1182
|
+
}
|
|
1183
|
+
:where([aria-sort="none"] .data-grid-sort-button)::after {
|
|
1184
|
+
content: " \21C5";
|
|
1185
|
+
opacity: 0.5;
|
|
1186
|
+
}
|
|
1187
|
+
:where([aria-sort="ascending"] .data-grid-sort-button)::after {
|
|
1188
|
+
content: " \25B2";
|
|
1189
|
+
}
|
|
1190
|
+
:where([aria-sort="descending"] .data-grid-sort-button)::after {
|
|
1191
|
+
content: " \25BC";
|
|
1192
|
+
}
|
|
1193
|
+
:where(.data-grid-pagination) {
|
|
1194
|
+
display: flex;
|
|
1195
|
+
flex-wrap: wrap;
|
|
1196
|
+
gap: var(--lily-space-sm);
|
|
1197
|
+
align-items: center;
|
|
1198
|
+
justify-content: flex-end;
|
|
1199
|
+
margin-block-start: var(--lily-space-sm);
|
|
1200
|
+
}
|
|
1201
|
+
:where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
|
|
1202
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
1203
|
+
border: var(--border) solid var(--lily-border);
|
|
1204
|
+
border-radius: var(--lily-radius-sm);
|
|
1205
|
+
background-color: var(--lily-surface);
|
|
1206
|
+
color: var(--lily-text);
|
|
1207
|
+
font: inherit;
|
|
1208
|
+
cursor: pointer;
|
|
1209
|
+
}
|
|
1210
|
+
:where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
|
|
1211
|
+
opacity: 0.5;
|
|
1212
|
+
cursor: not-allowed;
|
|
1213
|
+
}
|
|
1214
|
+
:where(.data-grid-column-visibility) {
|
|
1215
|
+
display: flex;
|
|
1216
|
+
flex-wrap: wrap;
|
|
1217
|
+
gap: var(--lily-space-sm);
|
|
1218
|
+
margin: 0;
|
|
1219
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1220
|
+
border: var(--border) solid var(--lily-border);
|
|
1221
|
+
border-radius: var(--lily-radius-sm);
|
|
1222
|
+
}
|
|
1223
|
+
/* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
|
|
1224
|
+
:where([data-pinned="start"]) {
|
|
1225
|
+
position: sticky;
|
|
1226
|
+
inset-inline-start: 0;
|
|
1227
|
+
z-index: 1;
|
|
1228
|
+
background-color: var(--lily-surface);
|
|
1229
|
+
}
|
|
1230
|
+
:where([data-pinned="end"]) {
|
|
1231
|
+
position: sticky;
|
|
1232
|
+
inset-inline-end: 0;
|
|
1233
|
+
z-index: 1;
|
|
1234
|
+
background-color: var(--lily-surface);
|
|
1235
|
+
}
|
|
1236
|
+
:where(th[data-pinned]) {
|
|
1237
|
+
z-index: 2;
|
|
1238
|
+
}
|
|
1239
|
+
/* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
|
|
1240
|
+
:where(.data-table-td[data-empty]) {
|
|
1241
|
+
opacity: 0.7;
|
|
1139
1242
|
}
|
|
1140
1243
|
|
|
1141
1244
|
/* --- Kanban specifics --------------------------------------------------- */
|
|
@@ -1149,6 +1252,20 @@
|
|
|
1149
1252
|
min-width: 14rem;
|
|
1150
1253
|
}
|
|
1151
1254
|
|
|
1255
|
+
/* Dragging a card: the column it would land in is outlined; one that refuses it
|
|
1256
|
+
(canMove, allowedColumns, a full strict WIP limit) is striped and shows the
|
|
1257
|
+
not-allowed cursor, so "you can't drop here" is visible before the drop. */
|
|
1258
|
+
:where(.kanban-table-td[data-drop-target]) {
|
|
1259
|
+
outline: 2px dashed var(--color-accent);
|
|
1260
|
+
outline-offset: -3px;
|
|
1261
|
+
}
|
|
1262
|
+
:where(.kanban-table-td[data-drop-blocked]) {
|
|
1263
|
+
outline: 2px solid var(--color-error);
|
|
1264
|
+
outline-offset: -3px;
|
|
1265
|
+
cursor: not-allowed;
|
|
1266
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1152
1269
|
/* --- Gantt specifics ---------------------------------------------------- */
|
|
1153
1270
|
/* Cells marked as bars are filled with the primary colour to render the
|
|
1154
1271
|
schedule bar inline within the grid. */
|
|
@@ -1156,6 +1273,20 @@
|
|
|
1156
1273
|
background-color: var(--color-primary);
|
|
1157
1274
|
}
|
|
1158
1275
|
|
|
1276
|
+
/* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
|
|
1277
|
+
is tinted; a day marked as a holiday or time off (data-unavailable /
|
|
1278
|
+
data-range) is striped as well, so no day is told apart by colour alone;
|
|
1279
|
+
a column only partly unavailable gets a bar under its header. */
|
|
1280
|
+
:where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
|
|
1281
|
+
background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
|
|
1282
|
+
}
|
|
1283
|
+
:where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
|
|
1284
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
|
|
1285
|
+
}
|
|
1286
|
+
:where(.gantt-table-th[data-partly-unavailable]) {
|
|
1287
|
+
box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1159
1290
|
/* ==========================================================================
|
|
1160
1291
|
* Cards, panels, surfaces
|
|
1161
1292
|
* --------------------------------------------------------------------------
|
|
@@ -2082,6 +2213,7 @@
|
|
|
2082
2213
|
.theme-picker,
|
|
2083
2214
|
.locale-picker,
|
|
2084
2215
|
.text-size-picker,
|
|
2216
|
+
.time-zone-picker,
|
|
2085
2217
|
.search-picker,
|
|
2086
2218
|
.link-picker,
|
|
2087
2219
|
.menu-picker,
|
|
@@ -2097,6 +2229,7 @@
|
|
|
2097
2229
|
.theme-picker-button,
|
|
2098
2230
|
.locale-picker-button,
|
|
2099
2231
|
.text-size-picker-button,
|
|
2232
|
+
.time-zone-picker-button,
|
|
2100
2233
|
.search-picker-button,
|
|
2101
2234
|
.link-picker-button,
|
|
2102
2235
|
.menu-picker-button,
|
|
@@ -2135,6 +2268,7 @@
|
|
|
2135
2268
|
.theme-picker-icon,
|
|
2136
2269
|
.locale-picker-icon,
|
|
2137
2270
|
.text-size-picker-icon,
|
|
2271
|
+
.time-zone-picker-icon,
|
|
2138
2272
|
.motion-picker-icon,
|
|
2139
2273
|
.link-picker-icon,
|
|
2140
2274
|
.menu-picker-icon,
|
|
@@ -2502,6 +2636,7 @@
|
|
|
2502
2636
|
.theme-picker-tooltip,
|
|
2503
2637
|
.locale-picker-tooltip,
|
|
2504
2638
|
.text-size-picker-tooltip,
|
|
2639
|
+
.time-zone-picker-tooltip,
|
|
2505
2640
|
.motion-picker-tooltip,
|
|
2506
2641
|
.link-picker-tooltip,
|
|
2507
2642
|
.menu-picker-tooltip,
|
|
@@ -2529,6 +2664,7 @@
|
|
|
2529
2664
|
.theme-picker-tooltip,
|
|
2530
2665
|
.locale-picker-tooltip,
|
|
2531
2666
|
.text-size-picker-tooltip,
|
|
2667
|
+
.time-zone-picker-tooltip,
|
|
2532
2668
|
.motion-picker-tooltip,
|
|
2533
2669
|
.link-picker-tooltip,
|
|
2534
2670
|
.menu-picker-tooltip,
|
|
@@ -2548,6 +2684,7 @@
|
|
|
2548
2684
|
.theme-picker-tooltip,
|
|
2549
2685
|
.locale-picker-tooltip,
|
|
2550
2686
|
.text-size-picker-tooltip,
|
|
2687
|
+
.time-zone-picker-tooltip,
|
|
2551
2688
|
.motion-picker-tooltip,
|
|
2552
2689
|
.link-picker-tooltip,
|
|
2553
2690
|
.menu-picker-tooltip,
|
|
@@ -2604,6 +2741,7 @@
|
|
|
2604
2741
|
.theme-picker-list,
|
|
2605
2742
|
.locale-picker-list,
|
|
2606
2743
|
.text-size-picker-list,
|
|
2744
|
+
.time-zone-picker-list,
|
|
2607
2745
|
.motion-picker-list,
|
|
2608
2746
|
.link-picker-list,
|
|
2609
2747
|
.menu-picker-panel,
|
|
@@ -2633,6 +2771,7 @@
|
|
|
2633
2771
|
.theme-picker-list,
|
|
2634
2772
|
.locale-picker-list,
|
|
2635
2773
|
.text-size-picker-list,
|
|
2774
|
+
.time-zone-picker-list,
|
|
2636
2775
|
.motion-picker-list,
|
|
2637
2776
|
.link-picker-list,
|
|
2638
2777
|
.menu-picker-panel,
|
|
@@ -2653,6 +2792,7 @@
|
|
|
2653
2792
|
:where(.theme-picker) { anchor-name: --lily-theme-picker; }
|
|
2654
2793
|
:where(.locale-picker) { anchor-name: --lily-locale-picker; }
|
|
2655
2794
|
:where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
|
|
2795
|
+
:where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
|
|
2656
2796
|
:where(.motion-picker) { anchor-name: --lily-motion-picker; }
|
|
2657
2797
|
:where(.link-picker) { anchor-name: --lily-link-picker; }
|
|
2658
2798
|
:where(.menu-picker) { anchor-name: --lily-menu-picker; }
|
|
@@ -2662,6 +2802,7 @@
|
|
|
2662
2802
|
:where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
|
|
2663
2803
|
:where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
|
|
2664
2804
|
:where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
|
|
2805
|
+
:where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
|
|
2665
2806
|
:where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
|
|
2666
2807
|
:where(.link-picker-list) { position-anchor: --lily-link-picker; }
|
|
2667
2808
|
:where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
|
|
@@ -2672,6 +2813,7 @@
|
|
|
2672
2813
|
.theme-picker-list,
|
|
2673
2814
|
.locale-picker-list,
|
|
2674
2815
|
.text-size-picker-list,
|
|
2816
|
+
.time-zone-picker-list,
|
|
2675
2817
|
.motion-picker-list,
|
|
2676
2818
|
.link-picker-list,
|
|
2677
2819
|
.menu-picker-panel,
|
|
@@ -2689,11 +2831,12 @@
|
|
|
2689
2831
|
}
|
|
2690
2832
|
}
|
|
2691
2833
|
|
|
2692
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2834
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2693
2835
|
> :where(
|
|
2694
2836
|
.theme-picker-option,
|
|
2695
2837
|
.locale-picker-option,
|
|
2696
2838
|
.text-size-picker-option,
|
|
2839
|
+
.time-zone-picker-option,
|
|
2697
2840
|
.motion-picker-option
|
|
2698
2841
|
) {
|
|
2699
2842
|
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
@@ -2703,7 +2846,7 @@
|
|
|
2703
2846
|
|
|
2704
2847
|
/* data-active is the keyboard cursor (aria-activedescendant); focus
|
|
2705
2848
|
stays on the listbox, so this is the only visible cue for it. */
|
|
2706
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2849
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2707
2850
|
> :where([data-active]) {
|
|
2708
2851
|
background-color: var(--lily-surface-alt);
|
|
2709
2852
|
outline: var(--lily-focus-ring);
|
|
@@ -2712,7 +2855,7 @@
|
|
|
2712
2855
|
|
|
2713
2856
|
/* aria-selected marks the applied theme/locale, which is not the
|
|
2714
2857
|
same thing as the keyboard cursor. Both can be visible at once. */
|
|
2715
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2858
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2716
2859
|
> :where([aria-selected="true"]) {
|
|
2717
2860
|
font-weight: 600;
|
|
2718
2861
|
background-color: var(--lily-surface-sunken);
|
|
@@ -3065,7 +3208,7 @@
|
|
|
3065
3208
|
}
|
|
3066
3209
|
/* Screen-reader-only — visually hidden but available to AT. The
|
|
3067
3210
|
classic clip-rect pattern (works in every screen reader). */
|
|
3068
|
-
:where(.screen-reader-span) {
|
|
3211
|
+
:where(.screen-reader-span, .middle-truncation-full) {
|
|
3069
3212
|
position: absolute;
|
|
3070
3213
|
width: 1px;
|
|
3071
3214
|
height: 1px;
|
|
@@ -3076,6 +3219,42 @@
|
|
|
3076
3219
|
white-space: nowrap;
|
|
3077
3220
|
border: 0;
|
|
3078
3221
|
}
|
|
3222
|
+
/* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
|
|
3223
|
+
text (hidden above) stays in the accessibility tree. */
|
|
3224
|
+
:where(.middle-truncation) {
|
|
3225
|
+
display: block;
|
|
3226
|
+
position: relative;
|
|
3227
|
+
overflow: hidden;
|
|
3228
|
+
white-space: nowrap;
|
|
3229
|
+
}
|
|
3230
|
+
/* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
|
|
3231
|
+
primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
|
|
3232
|
+
:where(.wheel-picker-list) {
|
|
3233
|
+
max-block-size: 10em;
|
|
3234
|
+
overflow-y: auto;
|
|
3235
|
+
overscroll-behavior: contain;
|
|
3236
|
+
scroll-snap-type: y mandatory;
|
|
3237
|
+
border: 1px solid var(--color-base-300);
|
|
3238
|
+
border-radius: var(--lily-radius-md);
|
|
3239
|
+
}
|
|
3240
|
+
:where(.wheel-picker-list:focus-visible) {
|
|
3241
|
+
outline: 2px solid var(--lily-focus-ring);
|
|
3242
|
+
outline-offset: 2px;
|
|
3243
|
+
}
|
|
3244
|
+
:where(.wheel-picker-option) {
|
|
3245
|
+
padding: 0.5rem 1rem;
|
|
3246
|
+
scroll-snap-align: center;
|
|
3247
|
+
cursor: pointer;
|
|
3248
|
+
}
|
|
3249
|
+
:where(.wheel-picker-option[aria-selected="true"]) {
|
|
3250
|
+
background-color: var(--color-primary);
|
|
3251
|
+
color: var(--color-primary-content);
|
|
3252
|
+
font-weight: 600;
|
|
3253
|
+
}
|
|
3254
|
+
:where(.wheel-picker-option[aria-disabled="true"]) {
|
|
3255
|
+
opacity: 0.5;
|
|
3256
|
+
cursor: not-allowed;
|
|
3257
|
+
}
|
|
3079
3258
|
|
|
3080
3259
|
/* ==========================================================================
|
|
3081
3260
|
* Hero, figure, photo, media
|
|
@@ -3635,3 +3814,153 @@
|
|
|
3635
3814
|
:where(a, code) {
|
|
3636
3815
|
overflow-wrap: anywhere;
|
|
3637
3816
|
}
|
|
3817
|
+
|
|
3818
|
+
/* ============================================================================
|
|
3819
|
+
* Helper packages — layout and look, shared verbatim by all themes.
|
|
3820
|
+
*
|
|
3821
|
+
* The data grid, kanban board, Gantt chart and calendar view are wide by nature.
|
|
3822
|
+
* Each root scrolls sideways inside its own box and its table sizes to its content,
|
|
3823
|
+
* so a narrow screen scrolls the table instead of wrapping every cell to a letter
|
|
3824
|
+
* (the overflow guard above lets cells break anywhere, which is right for prose and
|
|
3825
|
+
* wrong for a table that has a scroller). The toolbar controls of all four helpers
|
|
3826
|
+
* share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
|
|
3827
|
+
* the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
|
|
3828
|
+
* today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
|
|
3829
|
+
* ========================================================================= */
|
|
3830
|
+
|
|
3831
|
+
:where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
|
|
3832
|
+
max-inline-size: 100%;
|
|
3833
|
+
overflow-x: auto;
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3836
|
+
:where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
|
|
3837
|
+
inline-size: max-content;
|
|
3838
|
+
min-inline-size: 100%;
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
:where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
|
|
3842
|
+
.calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
|
|
3843
|
+
display: flex;
|
|
3844
|
+
flex-wrap: wrap;
|
|
3845
|
+
gap: var(--lily-space-sm);
|
|
3846
|
+
align-items: center;
|
|
3847
|
+
margin-block-end: var(--lily-space-sm);
|
|
3848
|
+
}
|
|
3849
|
+
|
|
3850
|
+
:where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
|
|
3851
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
3852
|
+
border: var(--border) solid var(--lily-border);
|
|
3853
|
+
border-radius: var(--lily-radius-sm);
|
|
3854
|
+
background-color: var(--lily-surface);
|
|
3855
|
+
color: var(--lily-text);
|
|
3856
|
+
font: inherit;
|
|
3857
|
+
min-block-size: 24px;
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3860
|
+
:where(.kanban-board-export-button,
|
|
3861
|
+
.kanban-board-add-button,
|
|
3862
|
+
.kanban-board-undo-button,
|
|
3863
|
+
.kanban-board-collapse-button,
|
|
3864
|
+
.kanban-board-lane-toggle,
|
|
3865
|
+
.kanban-board-move-button,
|
|
3866
|
+
.gantt-chart-export-button,
|
|
3867
|
+
.gantt-chart-zoom-in-button,
|
|
3868
|
+
.gantt-chart-zoom-out-button,
|
|
3869
|
+
.gantt-chart-collapse-button,
|
|
3870
|
+
.gantt-chart-collapse-all-button,
|
|
3871
|
+
.gantt-chart-expand-all-button,
|
|
3872
|
+
.gantt-chart-save-button,
|
|
3873
|
+
.gantt-chart-cancel-button,
|
|
3874
|
+
.calendar-view-export-button,
|
|
3875
|
+
.calendar-view-previous-button,
|
|
3876
|
+
.calendar-view-next-button,
|
|
3877
|
+
.calendar-view-today-button,
|
|
3878
|
+
.calendar-view-switcher-button) {
|
|
3879
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
3880
|
+
border: var(--border) solid var(--lily-border);
|
|
3881
|
+
border-radius: var(--lily-radius-sm);
|
|
3882
|
+
background-color: var(--lily-surface);
|
|
3883
|
+
color: var(--lily-text);
|
|
3884
|
+
font: inherit;
|
|
3885
|
+
cursor: pointer;
|
|
3886
|
+
min-inline-size: 24px;
|
|
3887
|
+
min-block-size: 24px;
|
|
3888
|
+
}
|
|
3889
|
+
|
|
3890
|
+
:where(.kanban-board-export-button:disabled,
|
|
3891
|
+
.kanban-board-add-button:disabled,
|
|
3892
|
+
.kanban-board-undo-button:disabled,
|
|
3893
|
+
.gantt-chart-export-button:disabled,
|
|
3894
|
+
.gantt-chart-zoom-in-button:disabled,
|
|
3895
|
+
.gantt-chart-zoom-out-button:disabled,
|
|
3896
|
+
.calendar-view-export-button:disabled,
|
|
3897
|
+
.calendar-view-previous-button[aria-disabled="true"],
|
|
3898
|
+
.calendar-view-next-button[aria-disabled="true"]) {
|
|
3899
|
+
opacity: 0.5;
|
|
3900
|
+
cursor: not-allowed;
|
|
3901
|
+
}
|
|
3902
|
+
|
|
3903
|
+
:where(.calendar-view-switcher-button[aria-pressed="true"]) {
|
|
3904
|
+
background-color: var(--color-base-300);
|
|
3905
|
+
font-weight: 600;
|
|
3906
|
+
}
|
|
3907
|
+
|
|
3908
|
+
:where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
|
|
3909
|
+
margin-block-start: var(--lily-space-sm);
|
|
3910
|
+
font-size: 0.875em;
|
|
3911
|
+
opacity: 0.8;
|
|
3912
|
+
}
|
|
3913
|
+
|
|
3914
|
+
:where(.calendar-view-event) {
|
|
3915
|
+
display: block;
|
|
3916
|
+
padding: 0 var(--lily-space-xs);
|
|
3917
|
+
border-radius: var(--lily-radius-sm);
|
|
3918
|
+
background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
|
|
3919
|
+
font-size: 0.75rem;
|
|
3920
|
+
}
|
|
3921
|
+
|
|
3922
|
+
:where(.gantt-table-th) {
|
|
3923
|
+
min-inline-size: 2rem;
|
|
3924
|
+
padding-inline: 0.25rem;
|
|
3925
|
+
font-size: 0.75rem;
|
|
3926
|
+
text-align: center;
|
|
3927
|
+
white-space: nowrap;
|
|
3928
|
+
}
|
|
3929
|
+
|
|
3930
|
+
:where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
|
|
3931
|
+
min-inline-size: 10rem;
|
|
3932
|
+
padding-inline: var(--lily-space-sm);
|
|
3933
|
+
font-size: inherit;
|
|
3934
|
+
text-align: start;
|
|
3935
|
+
white-space: normal;
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
:where(.gantt-table-td) {
|
|
3939
|
+
min-block-size: 1.7rem;
|
|
3940
|
+
padding: 0;
|
|
3941
|
+
}
|
|
3942
|
+
|
|
3943
|
+
:where(.gantt-table-td[data-in-range]) {
|
|
3944
|
+
background-color: var(--color-primary);
|
|
3945
|
+
}
|
|
3946
|
+
|
|
3947
|
+
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
3948
|
+
clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
|
|
3949
|
+
}
|
|
3950
|
+
|
|
3951
|
+
:where(.gantt-table-td[data-today]) {
|
|
3952
|
+
border-inline-start: 2px solid var(--color-accent);
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3955
|
+
/* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
|
|
3956
|
+
option up to a cap, then wrap, rather than clipping the name or running off a phone. */
|
|
3957
|
+
:where(.time-zone-picker-list) {
|
|
3958
|
+
inline-size: max-content;
|
|
3959
|
+
max-inline-size: min(26rem, 90vw);
|
|
3960
|
+
max-block-size: min(24rem, 70vh);
|
|
3961
|
+
overflow-y: auto;
|
|
3962
|
+
}
|
|
3963
|
+
|
|
3964
|
+
:where(.time-zone-picker-option) {
|
|
3965
|
+
overflow-wrap: anywhere;
|
|
3966
|
+
}
|