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