@lilydesignsystem/themes 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abyss.css +360 -9
- package/dist/acid.css +360 -9
- package/dist/adobe-spectrum.css +360 -9
- package/dist/ant-design.css +3961 -0
- package/dist/aqua.css +360 -9
- package/dist/atlassian.css +3961 -0
- package/dist/autumn.css +360 -9
- package/dist/black.css +360 -9
- package/dist/bumblebee.css +360 -9
- package/dist/business.css +360 -9
- package/dist/cappuccino.css +3961 -0
- package/dist/caramellatte.css +360 -9
- package/dist/cmyk.css +360 -9
- package/dist/coffee.css +360 -9
- package/dist/corporate.css +360 -9
- package/dist/cupcake.css +360 -9
- package/dist/cyberpunk.css +360 -9
- package/dist/dark.css +360 -9
- package/dist/dim.css +360 -9
- package/dist/dracula.css +360 -9
- package/dist/emerald.css +360 -9
- package/dist/excel.css +3961 -0
- package/dist/fantasy.css +360 -9
- package/dist/fluent.css +3961 -0
- package/dist/forest.css +360 -9
- package/dist/garden.css +360 -9
- package/dist/github-primer.css +3961 -0
- package/dist/halloween.css +360 -9
- package/dist/ibm-carbon.css +3961 -0
- package/dist/lemonade.css +360 -9
- package/dist/light.css +360 -9
- package/dist/linear.css +3961 -0
- package/dist/lofi.css +360 -9
- package/dist/luxury.css +360 -9
- package/dist/mozilla-protocol.css +360 -9
- package/dist/night.css +360 -9
- package/dist/nord.css +360 -9
- package/dist/notion.css +3961 -0
- package/dist/pastel.css +360 -9
- package/dist/retro.css +360 -9
- package/dist/salesforce.css +3961 -0
- package/dist/sap-fiori.css +3961 -0
- package/dist/silk.css +360 -9
- package/dist/sunset.css +360 -9
- package/dist/synthwave.css +360 -9
- package/dist/united-kingdom-government-digital-service.css +360 -9
- package/dist/united-kingdom-national-health-service-england-for-patients.css +360 -9
- package/dist/united-kingdom-national-health-service-england-for-practitioners.css +360 -9
- package/dist/united-kingdom-national-health-service-scotland-for-patients.css +360 -9
- package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +360 -9
- package/dist/united-kingdom-national-health-service-wales-for-patients.css +362 -11
- package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +362 -11
- package/dist/united-states-web-design-system.css +360 -9
- package/dist/valentine.css +360 -9
- package/dist/vercel.css +3961 -0
- package/dist/winter.css +360 -9
- package/dist/wireframe.css +360 -9
- package/index.md +14 -10
- package/package.json +5 -4
|
@@ -898,7 +898,7 @@
|
|
|
898
898
|
color: var(--lily-text-muted);
|
|
899
899
|
}
|
|
900
900
|
/* Final crumb (the current page) — muted because it isn't a link. */
|
|
901
|
-
:where(.breadcrumb-list-item[aria-current="page"]) {
|
|
901
|
+
:where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
|
|
902
902
|
color: var(--lily-text-muted);
|
|
903
903
|
}
|
|
904
904
|
|
|
@@ -1167,11 +1167,114 @@
|
|
|
1167
1167
|
background-color: var(--color-primary);
|
|
1168
1168
|
color: var(--color-primary-content);
|
|
1169
1169
|
}
|
|
1170
|
-
/* Today — outlined
|
|
1171
|
-
|
|
1170
|
+
/* Today — outlined and bold, never filled, so a selected non-today date still
|
|
1171
|
+
reads as "selected". The ring takes the cell's own text colour (currentColor),
|
|
1172
|
+
so it holds its contrast on a light page, a dark page and a selected cell
|
|
1173
|
+
alike, and the bold number says it without colour. */
|
|
1172
1174
|
:where(.calendar-table-td[aria-current="date"]) {
|
|
1173
|
-
outline: 2px solid
|
|
1174
|
-
outline-offset: -
|
|
1175
|
+
outline: 2px solid currentColor;
|
|
1176
|
+
outline-offset: -3px;
|
|
1177
|
+
font-weight: 700;
|
|
1178
|
+
}
|
|
1179
|
+
/* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
|
|
1180
|
+
:where(.calendar-table) {
|
|
1181
|
+
table-layout: fixed;
|
|
1182
|
+
}
|
|
1183
|
+
:where(.calendar-table-td, .calendar-table-th) {
|
|
1184
|
+
min-width: 0;
|
|
1185
|
+
overflow-wrap: anywhere;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
|
|
1189
|
+
:where(.data-grid-toolbar) {
|
|
1190
|
+
display: flex;
|
|
1191
|
+
flex-wrap: wrap;
|
|
1192
|
+
gap: var(--lily-space-sm);
|
|
1193
|
+
align-items: center;
|
|
1194
|
+
margin-block-end: var(--lily-space-sm);
|
|
1195
|
+
}
|
|
1196
|
+
:where(.data-grid-search, .data-grid-search-field) {
|
|
1197
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1198
|
+
border: var(--border) solid var(--lily-border);
|
|
1199
|
+
border-radius: var(--lily-radius-sm);
|
|
1200
|
+
background-color: var(--lily-surface);
|
|
1201
|
+
color: var(--lily-text);
|
|
1202
|
+
font: inherit;
|
|
1203
|
+
}
|
|
1204
|
+
/* A sortable header is a button that looks like its text; the arrow follows aria-sort,
|
|
1205
|
+
so the state is in the markup for assistive technology and on screen for everyone. */
|
|
1206
|
+
:where(.data-grid-sort-button) {
|
|
1207
|
+
padding: 0;
|
|
1208
|
+
border: 0;
|
|
1209
|
+
background: none;
|
|
1210
|
+
color: inherit;
|
|
1211
|
+
font: inherit;
|
|
1212
|
+
text-align: start;
|
|
1213
|
+
cursor: pointer;
|
|
1214
|
+
}
|
|
1215
|
+
:where(.data-grid-sort-button:focus-visible) {
|
|
1216
|
+
outline: 2px solid var(--color-accent);
|
|
1217
|
+
outline-offset: 2px;
|
|
1218
|
+
}
|
|
1219
|
+
:where([aria-sort="none"] .data-grid-sort-button)::after {
|
|
1220
|
+
content: " \21C5";
|
|
1221
|
+
opacity: 0.5;
|
|
1222
|
+
}
|
|
1223
|
+
:where([aria-sort="ascending"] .data-grid-sort-button)::after {
|
|
1224
|
+
content: " \25B2";
|
|
1225
|
+
}
|
|
1226
|
+
:where([aria-sort="descending"] .data-grid-sort-button)::after {
|
|
1227
|
+
content: " \25BC";
|
|
1228
|
+
}
|
|
1229
|
+
:where(.data-grid-pagination) {
|
|
1230
|
+
display: flex;
|
|
1231
|
+
flex-wrap: wrap;
|
|
1232
|
+
gap: var(--lily-space-sm);
|
|
1233
|
+
align-items: center;
|
|
1234
|
+
justify-content: flex-end;
|
|
1235
|
+
margin-block-start: var(--lily-space-sm);
|
|
1236
|
+
}
|
|
1237
|
+
:where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
|
|
1238
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
1239
|
+
border: var(--border) solid var(--lily-border);
|
|
1240
|
+
border-radius: var(--lily-radius-sm);
|
|
1241
|
+
background-color: var(--lily-surface);
|
|
1242
|
+
color: var(--lily-text);
|
|
1243
|
+
font: inherit;
|
|
1244
|
+
cursor: pointer;
|
|
1245
|
+
}
|
|
1246
|
+
:where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
|
|
1247
|
+
opacity: 0.5;
|
|
1248
|
+
cursor: not-allowed;
|
|
1249
|
+
}
|
|
1250
|
+
:where(.data-grid-column-visibility) {
|
|
1251
|
+
display: flex;
|
|
1252
|
+
flex-wrap: wrap;
|
|
1253
|
+
gap: var(--lily-space-sm);
|
|
1254
|
+
margin: 0;
|
|
1255
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
1256
|
+
border: var(--border) solid var(--lily-border);
|
|
1257
|
+
border-radius: var(--lily-radius-sm);
|
|
1258
|
+
}
|
|
1259
|
+
/* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
|
|
1260
|
+
:where([data-pinned="start"]) {
|
|
1261
|
+
position: sticky;
|
|
1262
|
+
inset-inline-start: 0;
|
|
1263
|
+
z-index: 1;
|
|
1264
|
+
background-color: var(--lily-surface);
|
|
1265
|
+
}
|
|
1266
|
+
:where([data-pinned="end"]) {
|
|
1267
|
+
position: sticky;
|
|
1268
|
+
inset-inline-end: 0;
|
|
1269
|
+
z-index: 1;
|
|
1270
|
+
background-color: var(--lily-surface);
|
|
1271
|
+
}
|
|
1272
|
+
:where(th[data-pinned]) {
|
|
1273
|
+
z-index: 2;
|
|
1274
|
+
}
|
|
1275
|
+
/* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
|
|
1276
|
+
:where(.data-table-td[data-empty]) {
|
|
1277
|
+
opacity: 0.7;
|
|
1175
1278
|
}
|
|
1176
1279
|
|
|
1177
1280
|
/* --- Kanban specifics --------------------------------------------------- */
|
|
@@ -1185,6 +1288,20 @@
|
|
|
1185
1288
|
min-width: 14rem;
|
|
1186
1289
|
}
|
|
1187
1290
|
|
|
1291
|
+
/* Dragging a card: the column it would land in is outlined; one that refuses it
|
|
1292
|
+
(canMove, allowedColumns, a full strict WIP limit) is striped and shows the
|
|
1293
|
+
not-allowed cursor, so "you can't drop here" is visible before the drop. */
|
|
1294
|
+
:where(.kanban-table-td[data-drop-target]) {
|
|
1295
|
+
outline: 2px dashed var(--color-accent);
|
|
1296
|
+
outline-offset: -3px;
|
|
1297
|
+
}
|
|
1298
|
+
:where(.kanban-table-td[data-drop-blocked]) {
|
|
1299
|
+
outline: 2px solid var(--color-error);
|
|
1300
|
+
outline-offset: -3px;
|
|
1301
|
+
cursor: not-allowed;
|
|
1302
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1188
1305
|
/* --- Gantt specifics ---------------------------------------------------- */
|
|
1189
1306
|
/* Cells marked as bars are filled with the primary colour to render the
|
|
1190
1307
|
schedule bar inline within the grid. */
|
|
@@ -1192,6 +1309,20 @@
|
|
|
1192
1309
|
background-color: var(--color-primary);
|
|
1193
1310
|
}
|
|
1194
1311
|
|
|
1312
|
+
/* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
|
|
1313
|
+
is tinted; a day marked as a holiday or time off (data-unavailable /
|
|
1314
|
+
data-range) is striped as well, so no day is told apart by colour alone;
|
|
1315
|
+
a column only partly unavailable gets a bar under its header. */
|
|
1316
|
+
:where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
|
|
1317
|
+
background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
|
|
1318
|
+
}
|
|
1319
|
+
:where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
|
|
1320
|
+
background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
|
|
1321
|
+
}
|
|
1322
|
+
:where(.gantt-table-th[data-partly-unavailable]) {
|
|
1323
|
+
box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1195
1326
|
/* ==========================================================================
|
|
1196
1327
|
* Cards, panels, surfaces
|
|
1197
1328
|
* --------------------------------------------------------------------------
|
|
@@ -2118,8 +2249,11 @@
|
|
|
2118
2249
|
.theme-picker,
|
|
2119
2250
|
.locale-picker,
|
|
2120
2251
|
.text-size-picker,
|
|
2252
|
+
.time-zone-picker,
|
|
2121
2253
|
.search-picker,
|
|
2122
2254
|
.link-picker,
|
|
2255
|
+
.menu-picker,
|
|
2256
|
+
.settings-picker,
|
|
2123
2257
|
.share-picker,
|
|
2124
2258
|
.date-time-picker
|
|
2125
2259
|
) {
|
|
@@ -2131,8 +2265,11 @@
|
|
|
2131
2265
|
.theme-picker-button,
|
|
2132
2266
|
.locale-picker-button,
|
|
2133
2267
|
.text-size-picker-button,
|
|
2268
|
+
.time-zone-picker-button,
|
|
2134
2269
|
.search-picker-button,
|
|
2135
2270
|
.link-picker-button,
|
|
2271
|
+
.menu-picker-button,
|
|
2272
|
+
.settings-picker-button,
|
|
2136
2273
|
.share-picker-button,
|
|
2137
2274
|
.date-time-picker-button
|
|
2138
2275
|
) {
|
|
@@ -2167,8 +2304,11 @@
|
|
|
2167
2304
|
.theme-picker-icon,
|
|
2168
2305
|
.locale-picker-icon,
|
|
2169
2306
|
.text-size-picker-icon,
|
|
2307
|
+
.time-zone-picker-icon,
|
|
2170
2308
|
.motion-picker-icon,
|
|
2171
2309
|
.link-picker-icon,
|
|
2310
|
+
.menu-picker-icon,
|
|
2311
|
+
.settings-picker-icon,
|
|
2172
2312
|
.share-picker-icon,
|
|
2173
2313
|
.search-picker-icon
|
|
2174
2314
|
) {
|
|
@@ -2532,8 +2672,11 @@
|
|
|
2532
2672
|
.theme-picker-tooltip,
|
|
2533
2673
|
.locale-picker-tooltip,
|
|
2534
2674
|
.text-size-picker-tooltip,
|
|
2675
|
+
.time-zone-picker-tooltip,
|
|
2535
2676
|
.motion-picker-tooltip,
|
|
2536
2677
|
.link-picker-tooltip,
|
|
2678
|
+
.menu-picker-tooltip,
|
|
2679
|
+
.settings-picker-tooltip,
|
|
2537
2680
|
.share-picker-tooltip,
|
|
2538
2681
|
.search-picker-tooltip,
|
|
2539
2682
|
.date-time-picker-tooltip
|
|
@@ -2557,8 +2700,11 @@
|
|
|
2557
2700
|
.theme-picker-tooltip,
|
|
2558
2701
|
.locale-picker-tooltip,
|
|
2559
2702
|
.text-size-picker-tooltip,
|
|
2703
|
+
.time-zone-picker-tooltip,
|
|
2560
2704
|
.motion-picker-tooltip,
|
|
2561
2705
|
.link-picker-tooltip,
|
|
2706
|
+
.menu-picker-tooltip,
|
|
2707
|
+
.settings-picker-tooltip,
|
|
2562
2708
|
.share-picker-tooltip,
|
|
2563
2709
|
.search-picker-tooltip,
|
|
2564
2710
|
.date-time-picker-tooltip
|
|
@@ -2574,8 +2720,11 @@
|
|
|
2574
2720
|
.theme-picker-tooltip,
|
|
2575
2721
|
.locale-picker-tooltip,
|
|
2576
2722
|
.text-size-picker-tooltip,
|
|
2723
|
+
.time-zone-picker-tooltip,
|
|
2577
2724
|
.motion-picker-tooltip,
|
|
2578
2725
|
.link-picker-tooltip,
|
|
2726
|
+
.menu-picker-tooltip,
|
|
2727
|
+
.settings-picker-tooltip,
|
|
2579
2728
|
.share-picker-tooltip,
|
|
2580
2729
|
.search-picker-tooltip,
|
|
2581
2730
|
.date-time-picker-tooltip
|
|
@@ -2628,8 +2777,11 @@
|
|
|
2628
2777
|
.theme-picker-list,
|
|
2629
2778
|
.locale-picker-list,
|
|
2630
2779
|
.text-size-picker-list,
|
|
2780
|
+
.time-zone-picker-list,
|
|
2631
2781
|
.motion-picker-list,
|
|
2632
2782
|
.link-picker-list,
|
|
2783
|
+
.menu-picker-panel,
|
|
2784
|
+
.settings-picker-panel,
|
|
2633
2785
|
.share-picker-list,
|
|
2634
2786
|
.search-picker-panel
|
|
2635
2787
|
) {
|
|
@@ -2655,8 +2807,11 @@
|
|
|
2655
2807
|
.theme-picker-list,
|
|
2656
2808
|
.locale-picker-list,
|
|
2657
2809
|
.text-size-picker-list,
|
|
2810
|
+
.time-zone-picker-list,
|
|
2658
2811
|
.motion-picker-list,
|
|
2659
2812
|
.link-picker-list,
|
|
2813
|
+
.menu-picker-panel,
|
|
2814
|
+
.settings-picker-panel,
|
|
2660
2815
|
.share-picker-list,
|
|
2661
2816
|
.search-picker-panel
|
|
2662
2817
|
)[hidden] {
|
|
@@ -2673,23 +2828,32 @@
|
|
|
2673
2828
|
:where(.theme-picker) { anchor-name: --lily-theme-picker; }
|
|
2674
2829
|
:where(.locale-picker) { anchor-name: --lily-locale-picker; }
|
|
2675
2830
|
:where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
|
|
2831
|
+
:where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
|
|
2676
2832
|
:where(.motion-picker) { anchor-name: --lily-motion-picker; }
|
|
2677
2833
|
:where(.link-picker) { anchor-name: --lily-link-picker; }
|
|
2834
|
+
:where(.menu-picker) { anchor-name: --lily-menu-picker; }
|
|
2835
|
+
:where(.settings-picker) { anchor-name: --lily-settings-picker; }
|
|
2678
2836
|
:where(.share-picker) { anchor-name: --lily-share-picker; }
|
|
2679
2837
|
:where(.search-picker) { anchor-name: --lily-search-picker; }
|
|
2680
2838
|
:where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
|
|
2681
2839
|
:where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
|
|
2682
2840
|
:where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
|
|
2841
|
+
:where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
|
|
2683
2842
|
:where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
|
|
2684
2843
|
:where(.link-picker-list) { position-anchor: --lily-link-picker; }
|
|
2844
|
+
:where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
|
|
2845
|
+
:where(.settings-picker-panel) { position-anchor: --lily-settings-picker; }
|
|
2685
2846
|
:where(.share-picker-list) { position-anchor: --lily-share-picker; }
|
|
2686
2847
|
:where(.search-picker-panel) { position-anchor: --lily-search-picker; }
|
|
2687
2848
|
:where(
|
|
2688
2849
|
.theme-picker-list,
|
|
2689
2850
|
.locale-picker-list,
|
|
2690
2851
|
.text-size-picker-list,
|
|
2852
|
+
.time-zone-picker-list,
|
|
2691
2853
|
.motion-picker-list,
|
|
2692
2854
|
.link-picker-list,
|
|
2855
|
+
.menu-picker-panel,
|
|
2856
|
+
.settings-picker-panel,
|
|
2693
2857
|
.share-picker-list,
|
|
2694
2858
|
.search-picker-panel
|
|
2695
2859
|
) {
|
|
@@ -2703,11 +2867,12 @@
|
|
|
2703
2867
|
}
|
|
2704
2868
|
}
|
|
2705
2869
|
|
|
2706
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2870
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2707
2871
|
> :where(
|
|
2708
2872
|
.theme-picker-option,
|
|
2709
2873
|
.locale-picker-option,
|
|
2710
2874
|
.text-size-picker-option,
|
|
2875
|
+
.time-zone-picker-option,
|
|
2711
2876
|
.motion-picker-option
|
|
2712
2877
|
) {
|
|
2713
2878
|
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
@@ -2717,7 +2882,7 @@
|
|
|
2717
2882
|
|
|
2718
2883
|
/* data-active is the keyboard cursor (aria-activedescendant); focus
|
|
2719
2884
|
stays on the listbox, so this is the only visible cue for it. */
|
|
2720
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2885
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2721
2886
|
> :where([data-active]) {
|
|
2722
2887
|
background-color: var(--lily-surface-alt);
|
|
2723
2888
|
outline: var(--lily-focus-ring);
|
|
@@ -2726,7 +2891,7 @@
|
|
|
2726
2891
|
|
|
2727
2892
|
/* aria-selected marks the applied theme/locale, which is not the
|
|
2728
2893
|
same thing as the keyboard cursor. Both can be visible at once. */
|
|
2729
|
-
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
|
|
2894
|
+
:where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
|
|
2730
2895
|
> :where([aria-selected="true"]) {
|
|
2731
2896
|
font-weight: 600;
|
|
2732
2897
|
background-color: var(--lily-surface-sunken);
|
|
@@ -3079,7 +3244,7 @@
|
|
|
3079
3244
|
}
|
|
3080
3245
|
/* Screen-reader-only — visually hidden but available to AT. The
|
|
3081
3246
|
classic clip-rect pattern (works in every screen reader). */
|
|
3082
|
-
:where(.screen-reader-span) {
|
|
3247
|
+
:where(.screen-reader-span, .middle-truncation-full) {
|
|
3083
3248
|
position: absolute;
|
|
3084
3249
|
width: 1px;
|
|
3085
3250
|
height: 1px;
|
|
@@ -3090,6 +3255,42 @@
|
|
|
3090
3255
|
white-space: nowrap;
|
|
3091
3256
|
border: 0;
|
|
3092
3257
|
}
|
|
3258
|
+
/* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
|
|
3259
|
+
text (hidden above) stays in the accessibility tree. */
|
|
3260
|
+
:where(.middle-truncation) {
|
|
3261
|
+
display: block;
|
|
3262
|
+
position: relative;
|
|
3263
|
+
overflow: hidden;
|
|
3264
|
+
white-space: nowrap;
|
|
3265
|
+
}
|
|
3266
|
+
/* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
|
|
3267
|
+
primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
|
|
3268
|
+
:where(.wheel-picker-list) {
|
|
3269
|
+
max-block-size: 10em;
|
|
3270
|
+
overflow-y: auto;
|
|
3271
|
+
overscroll-behavior: contain;
|
|
3272
|
+
scroll-snap-type: y mandatory;
|
|
3273
|
+
border: 1px solid var(--color-base-300);
|
|
3274
|
+
border-radius: var(--lily-radius-md);
|
|
3275
|
+
}
|
|
3276
|
+
:where(.wheel-picker-list:focus-visible) {
|
|
3277
|
+
outline: 2px solid var(--lily-focus-ring);
|
|
3278
|
+
outline-offset: 2px;
|
|
3279
|
+
}
|
|
3280
|
+
:where(.wheel-picker-option) {
|
|
3281
|
+
padding: 0.5rem 1rem;
|
|
3282
|
+
scroll-snap-align: center;
|
|
3283
|
+
cursor: pointer;
|
|
3284
|
+
}
|
|
3285
|
+
:where(.wheel-picker-option[aria-selected="true"]) {
|
|
3286
|
+
background-color: var(--color-primary);
|
|
3287
|
+
color: var(--color-primary-content);
|
|
3288
|
+
font-weight: 600;
|
|
3289
|
+
}
|
|
3290
|
+
:where(.wheel-picker-option[aria-disabled="true"]) {
|
|
3291
|
+
opacity: 0.5;
|
|
3292
|
+
cursor: not-allowed;
|
|
3293
|
+
}
|
|
3093
3294
|
|
|
3094
3295
|
/* ==========================================================================
|
|
3095
3296
|
* Hero, figure, photo, media
|
|
@@ -3649,3 +3850,153 @@
|
|
|
3649
3850
|
:where(a, code) {
|
|
3650
3851
|
overflow-wrap: anywhere;
|
|
3651
3852
|
}
|
|
3853
|
+
|
|
3854
|
+
/* ============================================================================
|
|
3855
|
+
* Helper packages — layout and look, shared verbatim by all themes.
|
|
3856
|
+
*
|
|
3857
|
+
* The data grid, kanban board, Gantt chart and calendar view are wide by nature.
|
|
3858
|
+
* Each root scrolls sideways inside its own box and its table sizes to its content,
|
|
3859
|
+
* so a narrow screen scrolls the table instead of wrapping every cell to a letter
|
|
3860
|
+
* (the overflow guard above lets cells break anywhere, which is right for prose and
|
|
3861
|
+
* wrong for a table that has a scroller). The toolbar controls of all four helpers
|
|
3862
|
+
* share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
|
|
3863
|
+
* the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
|
|
3864
|
+
* today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
|
|
3865
|
+
* ========================================================================= */
|
|
3866
|
+
|
|
3867
|
+
:where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
|
|
3868
|
+
max-inline-size: 100%;
|
|
3869
|
+
overflow-x: auto;
|
|
3870
|
+
}
|
|
3871
|
+
|
|
3872
|
+
:where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
|
|
3873
|
+
inline-size: max-content;
|
|
3874
|
+
min-inline-size: 100%;
|
|
3875
|
+
}
|
|
3876
|
+
|
|
3877
|
+
:where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
|
|
3878
|
+
.calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
|
|
3879
|
+
display: flex;
|
|
3880
|
+
flex-wrap: wrap;
|
|
3881
|
+
gap: var(--lily-space-sm);
|
|
3882
|
+
align-items: center;
|
|
3883
|
+
margin-block-end: var(--lily-space-sm);
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3886
|
+
:where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
|
|
3887
|
+
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
3888
|
+
border: var(--border) solid var(--lily-border);
|
|
3889
|
+
border-radius: var(--lily-radius-sm);
|
|
3890
|
+
background-color: var(--lily-surface);
|
|
3891
|
+
color: var(--lily-text);
|
|
3892
|
+
font: inherit;
|
|
3893
|
+
min-block-size: 24px;
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3896
|
+
:where(.kanban-board-export-button,
|
|
3897
|
+
.kanban-board-add-button,
|
|
3898
|
+
.kanban-board-undo-button,
|
|
3899
|
+
.kanban-board-collapse-button,
|
|
3900
|
+
.kanban-board-lane-toggle,
|
|
3901
|
+
.kanban-board-move-button,
|
|
3902
|
+
.gantt-chart-export-button,
|
|
3903
|
+
.gantt-chart-zoom-in-button,
|
|
3904
|
+
.gantt-chart-zoom-out-button,
|
|
3905
|
+
.gantt-chart-collapse-button,
|
|
3906
|
+
.gantt-chart-collapse-all-button,
|
|
3907
|
+
.gantt-chart-expand-all-button,
|
|
3908
|
+
.gantt-chart-save-button,
|
|
3909
|
+
.gantt-chart-cancel-button,
|
|
3910
|
+
.calendar-view-export-button,
|
|
3911
|
+
.calendar-view-previous-button,
|
|
3912
|
+
.calendar-view-next-button,
|
|
3913
|
+
.calendar-view-today-button,
|
|
3914
|
+
.calendar-view-switcher-button) {
|
|
3915
|
+
padding: var(--lily-space-xs) var(--lily-space-md);
|
|
3916
|
+
border: var(--border) solid var(--lily-border);
|
|
3917
|
+
border-radius: var(--lily-radius-sm);
|
|
3918
|
+
background-color: var(--lily-surface);
|
|
3919
|
+
color: var(--lily-text);
|
|
3920
|
+
font: inherit;
|
|
3921
|
+
cursor: pointer;
|
|
3922
|
+
min-inline-size: 24px;
|
|
3923
|
+
min-block-size: 24px;
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3926
|
+
:where(.kanban-board-export-button:disabled,
|
|
3927
|
+
.kanban-board-add-button:disabled,
|
|
3928
|
+
.kanban-board-undo-button:disabled,
|
|
3929
|
+
.gantt-chart-export-button:disabled,
|
|
3930
|
+
.gantt-chart-zoom-in-button:disabled,
|
|
3931
|
+
.gantt-chart-zoom-out-button:disabled,
|
|
3932
|
+
.calendar-view-export-button:disabled,
|
|
3933
|
+
.calendar-view-previous-button[aria-disabled="true"],
|
|
3934
|
+
.calendar-view-next-button[aria-disabled="true"]) {
|
|
3935
|
+
opacity: 0.5;
|
|
3936
|
+
cursor: not-allowed;
|
|
3937
|
+
}
|
|
3938
|
+
|
|
3939
|
+
:where(.calendar-view-switcher-button[aria-pressed="true"]) {
|
|
3940
|
+
background-color: var(--color-base-300);
|
|
3941
|
+
font-weight: 600;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
:where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
|
|
3945
|
+
margin-block-start: var(--lily-space-sm);
|
|
3946
|
+
font-size: 0.875em;
|
|
3947
|
+
opacity: 0.8;
|
|
3948
|
+
}
|
|
3949
|
+
|
|
3950
|
+
:where(.calendar-view-event) {
|
|
3951
|
+
display: block;
|
|
3952
|
+
padding: 0 var(--lily-space-xs);
|
|
3953
|
+
border-radius: var(--lily-radius-sm);
|
|
3954
|
+
background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
|
|
3955
|
+
font-size: 0.75rem;
|
|
3956
|
+
}
|
|
3957
|
+
|
|
3958
|
+
:where(.gantt-table-th) {
|
|
3959
|
+
min-inline-size: 2rem;
|
|
3960
|
+
padding-inline: 0.25rem;
|
|
3961
|
+
font-size: 0.75rem;
|
|
3962
|
+
text-align: center;
|
|
3963
|
+
white-space: nowrap;
|
|
3964
|
+
}
|
|
3965
|
+
|
|
3966
|
+
:where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
|
|
3967
|
+
min-inline-size: 10rem;
|
|
3968
|
+
padding-inline: var(--lily-space-sm);
|
|
3969
|
+
font-size: inherit;
|
|
3970
|
+
text-align: start;
|
|
3971
|
+
white-space: normal;
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
:where(.gantt-table-td) {
|
|
3975
|
+
min-block-size: 1.7rem;
|
|
3976
|
+
padding: 0;
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3979
|
+
:where(.gantt-table-td[data-in-range]) {
|
|
3980
|
+
background-color: var(--color-primary);
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
:where(.gantt-table-td[data-in-range][data-milestone]) {
|
|
3984
|
+
clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
|
|
3985
|
+
}
|
|
3986
|
+
|
|
3987
|
+
:where(.gantt-table-td[data-today]) {
|
|
3988
|
+
border-inline-start: 2px solid var(--color-accent);
|
|
3989
|
+
}
|
|
3990
|
+
|
|
3991
|
+
/* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
|
|
3992
|
+
option up to a cap, then wrap, rather than clipping the name or running off a phone. */
|
|
3993
|
+
:where(.time-zone-picker-list) {
|
|
3994
|
+
inline-size: max-content;
|
|
3995
|
+
max-inline-size: min(26rem, 90vw);
|
|
3996
|
+
max-block-size: min(24rem, 70vh);
|
|
3997
|
+
overflow-y: auto;
|
|
3998
|
+
}
|
|
3999
|
+
|
|
4000
|
+
:where(.time-zone-picker-option) {
|
|
4001
|
+
overflow-wrap: anywhere;
|
|
4002
|
+
}
|