@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
package/dist/winter.css
CHANGED
|
@@ -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
|
|
1131
|
-
|
|
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
|
|
1134
|
-
outline-offset: -
|
|
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,8 +2209,11 @@
|
|
|
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,
|
|
2215
|
+
.menu-picker,
|
|
2216
|
+
.settings-picker,
|
|
2083
2217
|
.share-picker,
|
|
2084
2218
|
.date-time-picker
|
|
2085
2219
|
) {
|
|
@@ -2091,8 +2225,11 @@
|
|
|
2091
2225
|
.theme-picker-button,
|
|
2092
2226
|
.locale-picker-button,
|
|
2093
2227
|
.text-size-picker-button,
|
|
2228
|
+
.time-zone-picker-button,
|
|
2094
2229
|
.search-picker-button,
|
|
2095
2230
|
.link-picker-button,
|
|
2231
|
+
.menu-picker-button,
|
|
2232
|
+
.settings-picker-button,
|
|
2096
2233
|
.share-picker-button,
|
|
2097
2234
|
.date-time-picker-button
|
|
2098
2235
|
) {
|
|
@@ -2127,8 +2264,11 @@
|
|
|
2127
2264
|
.theme-picker-icon,
|
|
2128
2265
|
.locale-picker-icon,
|
|
2129
2266
|
.text-size-picker-icon,
|
|
2267
|
+
.time-zone-picker-icon,
|
|
2130
2268
|
.motion-picker-icon,
|
|
2131
2269
|
.link-picker-icon,
|
|
2270
|
+
.menu-picker-icon,
|
|
2271
|
+
.settings-picker-icon,
|
|
2132
2272
|
.share-picker-icon,
|
|
2133
2273
|
.search-picker-icon
|
|
2134
2274
|
) {
|
|
@@ -2492,8 +2632,11 @@
|
|
|
2492
2632
|
.theme-picker-tooltip,
|
|
2493
2633
|
.locale-picker-tooltip,
|
|
2494
2634
|
.text-size-picker-tooltip,
|
|
2635
|
+
.time-zone-picker-tooltip,
|
|
2495
2636
|
.motion-picker-tooltip,
|
|
2496
2637
|
.link-picker-tooltip,
|
|
2638
|
+
.menu-picker-tooltip,
|
|
2639
|
+
.settings-picker-tooltip,
|
|
2497
2640
|
.share-picker-tooltip,
|
|
2498
2641
|
.search-picker-tooltip,
|
|
2499
2642
|
.date-time-picker-tooltip
|
|
@@ -2517,8 +2660,11 @@
|
|
|
2517
2660
|
.theme-picker-tooltip,
|
|
2518
2661
|
.locale-picker-tooltip,
|
|
2519
2662
|
.text-size-picker-tooltip,
|
|
2663
|
+
.time-zone-picker-tooltip,
|
|
2520
2664
|
.motion-picker-tooltip,
|
|
2521
2665
|
.link-picker-tooltip,
|
|
2666
|
+
.menu-picker-tooltip,
|
|
2667
|
+
.settings-picker-tooltip,
|
|
2522
2668
|
.share-picker-tooltip,
|
|
2523
2669
|
.search-picker-tooltip,
|
|
2524
2670
|
.date-time-picker-tooltip
|
|
@@ -2534,8 +2680,11 @@
|
|
|
2534
2680
|
.theme-picker-tooltip,
|
|
2535
2681
|
.locale-picker-tooltip,
|
|
2536
2682
|
.text-size-picker-tooltip,
|
|
2683
|
+
.time-zone-picker-tooltip,
|
|
2537
2684
|
.motion-picker-tooltip,
|
|
2538
2685
|
.link-picker-tooltip,
|
|
2686
|
+
.menu-picker-tooltip,
|
|
2687
|
+
.settings-picker-tooltip,
|
|
2539
2688
|
.share-picker-tooltip,
|
|
2540
2689
|
.search-picker-tooltip,
|
|
2541
2690
|
.date-time-picker-tooltip
|
|
@@ -2588,8 +2737,11 @@
|
|
|
2588
2737
|
.theme-picker-list,
|
|
2589
2738
|
.locale-picker-list,
|
|
2590
2739
|
.text-size-picker-list,
|
|
2740
|
+
.time-zone-picker-list,
|
|
2591
2741
|
.motion-picker-list,
|
|
2592
2742
|
.link-picker-list,
|
|
2743
|
+
.menu-picker-panel,
|
|
2744
|
+
.settings-picker-panel,
|
|
2593
2745
|
.share-picker-list,
|
|
2594
2746
|
.search-picker-panel
|
|
2595
2747
|
) {
|
|
@@ -2615,8 +2767,11 @@
|
|
|
2615
2767
|
.theme-picker-list,
|
|
2616
2768
|
.locale-picker-list,
|
|
2617
2769
|
.text-size-picker-list,
|
|
2770
|
+
.time-zone-picker-list,
|
|
2618
2771
|
.motion-picker-list,
|
|
2619
2772
|
.link-picker-list,
|
|
2773
|
+
.menu-picker-panel,
|
|
2774
|
+
.settings-picker-panel,
|
|
2620
2775
|
.share-picker-list,
|
|
2621
2776
|
.search-picker-panel
|
|
2622
2777
|
)[hidden] {
|
|
@@ -2633,23 +2788,32 @@
|
|
|
2633
2788
|
:where(.theme-picker) { anchor-name: --lily-theme-picker; }
|
|
2634
2789
|
:where(.locale-picker) { anchor-name: --lily-locale-picker; }
|
|
2635
2790
|
:where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
|
|
2791
|
+
:where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
|
|
2636
2792
|
:where(.motion-picker) { anchor-name: --lily-motion-picker; }
|
|
2637
2793
|
:where(.link-picker) { anchor-name: --lily-link-picker; }
|
|
2794
|
+
:where(.menu-picker) { anchor-name: --lily-menu-picker; }
|
|
2795
|
+
:where(.settings-picker) { anchor-name: --lily-settings-picker; }
|
|
2638
2796
|
:where(.share-picker) { anchor-name: --lily-share-picker; }
|
|
2639
2797
|
:where(.search-picker) { anchor-name: --lily-search-picker; }
|
|
2640
2798
|
:where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
|
|
2641
2799
|
:where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
|
|
2642
2800
|
:where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
|
|
2801
|
+
:where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
|
|
2643
2802
|
:where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
|
|
2644
2803
|
:where(.link-picker-list) { position-anchor: --lily-link-picker; }
|
|
2804
|
+
:where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
|
|
2805
|
+
:where(.settings-picker-panel) { position-anchor: --lily-settings-picker; }
|
|
2645
2806
|
:where(.share-picker-list) { position-anchor: --lily-share-picker; }
|
|
2646
2807
|
:where(.search-picker-panel) { position-anchor: --lily-search-picker; }
|
|
2647
2808
|
:where(
|
|
2648
2809
|
.theme-picker-list,
|
|
2649
2810
|
.locale-picker-list,
|
|
2650
2811
|
.text-size-picker-list,
|
|
2812
|
+
.time-zone-picker-list,
|
|
2651
2813
|
.motion-picker-list,
|
|
2652
2814
|
.link-picker-list,
|
|
2815
|
+
.menu-picker-panel,
|
|
2816
|
+
.settings-picker-panel,
|
|
2653
2817
|
.share-picker-list,
|
|
2654
2818
|
.search-picker-panel
|
|
2655
2819
|
) {
|
|
@@ -2663,11 +2827,12 @@
|
|
|
2663
2827
|
}
|
|
2664
2828
|
}
|
|
2665
2829
|
|
|
2666
|
-
: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)
|
|
2667
2831
|
> :where(
|
|
2668
2832
|
.theme-picker-option,
|
|
2669
2833
|
.locale-picker-option,
|
|
2670
2834
|
.text-size-picker-option,
|
|
2835
|
+
.time-zone-picker-option,
|
|
2671
2836
|
.motion-picker-option
|
|
2672
2837
|
) {
|
|
2673
2838
|
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
@@ -2677,7 +2842,7 @@
|
|
|
2677
2842
|
|
|
2678
2843
|
/* data-active is the keyboard cursor (aria-activedescendant); focus
|
|
2679
2844
|
stays on the listbox, so this is the only visible cue for it. */
|
|
2680
|
-
: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)
|
|
2681
2846
|
> :where([data-active]) {
|
|
2682
2847
|
background-color: var(--lily-surface-alt);
|
|
2683
2848
|
outline: var(--lily-focus-ring);
|
|
@@ -2686,7 +2851,7 @@
|
|
|
2686
2851
|
|
|
2687
2852
|
/* aria-selected marks the applied theme/locale, which is not the
|
|
2688
2853
|
same thing as the keyboard cursor. Both can be visible at once. */
|
|
2689
|
-
: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)
|
|
2690
2855
|
> :where([aria-selected="true"]) {
|
|
2691
2856
|
font-weight: 600;
|
|
2692
2857
|
background-color: var(--lily-surface-sunken);
|
|
@@ -3039,7 +3204,7 @@
|
|
|
3039
3204
|
}
|
|
3040
3205
|
/* Screen-reader-only — visually hidden but available to AT. The
|
|
3041
3206
|
classic clip-rect pattern (works in every screen reader). */
|
|
3042
|
-
:where(.screen-reader-span) {
|
|
3207
|
+
:where(.screen-reader-span, .middle-truncation-full) {
|
|
3043
3208
|
position: absolute;
|
|
3044
3209
|
width: 1px;
|
|
3045
3210
|
height: 1px;
|
|
@@ -3050,6 +3215,42 @@
|
|
|
3050
3215
|
white-space: nowrap;
|
|
3051
3216
|
border: 0;
|
|
3052
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
|
+
}
|
|
3053
3254
|
|
|
3054
3255
|
/* ==========================================================================
|
|
3055
3256
|
* Hero, figure, photo, media
|
|
@@ -3609,3 +3810,153 @@
|
|
|
3609
3810
|
:where(a, code) {
|
|
3610
3811
|
overflow-wrap: anywhere;
|
|
3611
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
|
+
}
|