@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
|
@@ -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,6 +2249,7 @@
|
|
|
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,
|
|
2123
2255
|
.menu-picker,
|
|
@@ -2133,6 +2265,7 @@
|
|
|
2133
2265
|
.theme-picker-button,
|
|
2134
2266
|
.locale-picker-button,
|
|
2135
2267
|
.text-size-picker-button,
|
|
2268
|
+
.time-zone-picker-button,
|
|
2136
2269
|
.search-picker-button,
|
|
2137
2270
|
.link-picker-button,
|
|
2138
2271
|
.menu-picker-button,
|
|
@@ -2171,6 +2304,7 @@
|
|
|
2171
2304
|
.theme-picker-icon,
|
|
2172
2305
|
.locale-picker-icon,
|
|
2173
2306
|
.text-size-picker-icon,
|
|
2307
|
+
.time-zone-picker-icon,
|
|
2174
2308
|
.motion-picker-icon,
|
|
2175
2309
|
.link-picker-icon,
|
|
2176
2310
|
.menu-picker-icon,
|
|
@@ -2538,6 +2672,7 @@
|
|
|
2538
2672
|
.theme-picker-tooltip,
|
|
2539
2673
|
.locale-picker-tooltip,
|
|
2540
2674
|
.text-size-picker-tooltip,
|
|
2675
|
+
.time-zone-picker-tooltip,
|
|
2541
2676
|
.motion-picker-tooltip,
|
|
2542
2677
|
.link-picker-tooltip,
|
|
2543
2678
|
.menu-picker-tooltip,
|
|
@@ -2565,6 +2700,7 @@
|
|
|
2565
2700
|
.theme-picker-tooltip,
|
|
2566
2701
|
.locale-picker-tooltip,
|
|
2567
2702
|
.text-size-picker-tooltip,
|
|
2703
|
+
.time-zone-picker-tooltip,
|
|
2568
2704
|
.motion-picker-tooltip,
|
|
2569
2705
|
.link-picker-tooltip,
|
|
2570
2706
|
.menu-picker-tooltip,
|
|
@@ -2584,6 +2720,7 @@
|
|
|
2584
2720
|
.theme-picker-tooltip,
|
|
2585
2721
|
.locale-picker-tooltip,
|
|
2586
2722
|
.text-size-picker-tooltip,
|
|
2723
|
+
.time-zone-picker-tooltip,
|
|
2587
2724
|
.motion-picker-tooltip,
|
|
2588
2725
|
.link-picker-tooltip,
|
|
2589
2726
|
.menu-picker-tooltip,
|
|
@@ -2640,6 +2777,7 @@
|
|
|
2640
2777
|
.theme-picker-list,
|
|
2641
2778
|
.locale-picker-list,
|
|
2642
2779
|
.text-size-picker-list,
|
|
2780
|
+
.time-zone-picker-list,
|
|
2643
2781
|
.motion-picker-list,
|
|
2644
2782
|
.link-picker-list,
|
|
2645
2783
|
.menu-picker-panel,
|
|
@@ -2669,6 +2807,7 @@
|
|
|
2669
2807
|
.theme-picker-list,
|
|
2670
2808
|
.locale-picker-list,
|
|
2671
2809
|
.text-size-picker-list,
|
|
2810
|
+
.time-zone-picker-list,
|
|
2672
2811
|
.motion-picker-list,
|
|
2673
2812
|
.link-picker-list,
|
|
2674
2813
|
.menu-picker-panel,
|
|
@@ -2689,6 +2828,7 @@
|
|
|
2689
2828
|
:where(.theme-picker) { anchor-name: --lily-theme-picker; }
|
|
2690
2829
|
:where(.locale-picker) { anchor-name: --lily-locale-picker; }
|
|
2691
2830
|
:where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
|
|
2831
|
+
:where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
|
|
2692
2832
|
:where(.motion-picker) { anchor-name: --lily-motion-picker; }
|
|
2693
2833
|
:where(.link-picker) { anchor-name: --lily-link-picker; }
|
|
2694
2834
|
:where(.menu-picker) { anchor-name: --lily-menu-picker; }
|
|
@@ -2698,6 +2838,7 @@
|
|
|
2698
2838
|
:where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
|
|
2699
2839
|
:where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
|
|
2700
2840
|
:where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
|
|
2841
|
+
:where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
|
|
2701
2842
|
:where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
|
|
2702
2843
|
:where(.link-picker-list) { position-anchor: --lily-link-picker; }
|
|
2703
2844
|
:where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
|
|
@@ -2708,6 +2849,7 @@
|
|
|
2708
2849
|
.theme-picker-list,
|
|
2709
2850
|
.locale-picker-list,
|
|
2710
2851
|
.text-size-picker-list,
|
|
2852
|
+
.time-zone-picker-list,
|
|
2711
2853
|
.motion-picker-list,
|
|
2712
2854
|
.link-picker-list,
|
|
2713
2855
|
.menu-picker-panel,
|
|
@@ -2725,11 +2867,12 @@
|
|
|
2725
2867
|
}
|
|
2726
2868
|
}
|
|
2727
2869
|
|
|
2728
|
-
: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)
|
|
2729
2871
|
> :where(
|
|
2730
2872
|
.theme-picker-option,
|
|
2731
2873
|
.locale-picker-option,
|
|
2732
2874
|
.text-size-picker-option,
|
|
2875
|
+
.time-zone-picker-option,
|
|
2733
2876
|
.motion-picker-option
|
|
2734
2877
|
) {
|
|
2735
2878
|
padding: var(--lily-space-xs) var(--lily-space-sm);
|
|
@@ -2739,7 +2882,7 @@
|
|
|
2739
2882
|
|
|
2740
2883
|
/* data-active is the keyboard cursor (aria-activedescendant); focus
|
|
2741
2884
|
stays on the listbox, so this is the only visible cue for it. */
|
|
2742
|
-
: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)
|
|
2743
2886
|
> :where([data-active]) {
|
|
2744
2887
|
background-color: var(--lily-surface-alt);
|
|
2745
2888
|
outline: var(--lily-focus-ring);
|
|
@@ -2748,7 +2891,7 @@
|
|
|
2748
2891
|
|
|
2749
2892
|
/* aria-selected marks the applied theme/locale, which is not the
|
|
2750
2893
|
same thing as the keyboard cursor. Both can be visible at once. */
|
|
2751
|
-
: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)
|
|
2752
2895
|
> :where([aria-selected="true"]) {
|
|
2753
2896
|
font-weight: 600;
|
|
2754
2897
|
background-color: var(--lily-surface-sunken);
|
|
@@ -3101,7 +3244,7 @@
|
|
|
3101
3244
|
}
|
|
3102
3245
|
/* Screen-reader-only — visually hidden but available to AT. The
|
|
3103
3246
|
classic clip-rect pattern (works in every screen reader). */
|
|
3104
|
-
:where(.screen-reader-span) {
|
|
3247
|
+
:where(.screen-reader-span, .middle-truncation-full) {
|
|
3105
3248
|
position: absolute;
|
|
3106
3249
|
width: 1px;
|
|
3107
3250
|
height: 1px;
|
|
@@ -3112,6 +3255,42 @@
|
|
|
3112
3255
|
white-space: nowrap;
|
|
3113
3256
|
border: 0;
|
|
3114
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
|
+
}
|
|
3115
3294
|
|
|
3116
3295
|
/* ==========================================================================
|
|
3117
3296
|
* Hero, figure, photo, media
|
|
@@ -3671,3 +3850,153 @@
|
|
|
3671
3850
|
:where(a, code) {
|
|
3672
3851
|
overflow-wrap: anywhere;
|
|
3673
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
|
+
}
|