@redvars/peacock 4.5.0 → 4.5.1
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/package.json
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
.calendar-timeline {
|
|
25
25
|
--_resource-width: var(--calendar-timeline-resource-width);
|
|
26
26
|
--_lane: var(--calendar-timeline-lane-height);
|
|
27
|
+
--_lane-gap: 0.25rem;
|
|
27
28
|
--_pad: 0.375rem;
|
|
28
29
|
--_border: var(--calendar-timeline-border-color);
|
|
29
30
|
|
|
@@ -208,12 +209,16 @@
|
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
211
|
|
|
211
|
-
// A line at the start of every column, drawn as one background rather than an element each.
|
|
212
|
+
// A line at the start of every column, drawn as one background rather than an element each. The
|
|
213
|
+
// track is at least as tall as its lanes and stretches to its row, which a resource with
|
|
214
|
+
// supporting text can make taller, so its lines and border meet the resource cell's.
|
|
212
215
|
.track {
|
|
213
216
|
position: relative;
|
|
214
217
|
min-width: 0;
|
|
215
|
-
min-height:
|
|
216
|
-
|
|
218
|
+
min-height: max(
|
|
219
|
+
3rem,
|
|
220
|
+
calc(var(--_lanes, 1) * var(--_lane) + 2 * var(--_pad))
|
|
221
|
+
);
|
|
217
222
|
border-bottom: 1px solid var(--_border);
|
|
218
223
|
background-image: linear-gradient(
|
|
219
224
|
to right,
|
|
@@ -373,14 +378,19 @@
|
|
|
373
378
|
|
|
374
379
|
/* ── Events ── */
|
|
375
380
|
|
|
381
|
+
// The lanes are centered in the track, which can be taller than they are, as the resource's
|
|
382
|
+
// name is in its cell.
|
|
376
383
|
.event {
|
|
377
384
|
position: absolute;
|
|
378
|
-
top: calc(
|
|
385
|
+
top: calc(
|
|
386
|
+
(100% - var(--_lanes, 1) * var(--_lane) + var(--_lane-gap)) / 2 +
|
|
387
|
+
var(--_lane-index, 0) * var(--_lane)
|
|
388
|
+
);
|
|
379
389
|
display: flex;
|
|
380
390
|
align-items: center;
|
|
381
391
|
gap: 0.375rem;
|
|
382
392
|
min-width: 0.375rem;
|
|
383
|
-
height: calc(var(--_lane) -
|
|
393
|
+
height: calc(var(--_lane) - var(--_lane-gap));
|
|
384
394
|
overflow: hidden;
|
|
385
395
|
padding: 0 0.375rem;
|
|
386
396
|
background: var(--calendar-timeline-event-bg-color);
|