Kalender: Abwesenheiten als eigene Zeilen mit dunklen Balken, kollidierende Buchungen blinken

This commit is contained in:
torsten 2026-11-25 23:05:35 +01:00
parent e83d6dc606
commit 87fd553464
6 changed files with 128 additions and 3 deletions

View file

@ -536,6 +536,31 @@ a .ico, button .ico { pointer-events: none; }
.cal-cell.is-today:hover { background: rgba(211, 230, 249, .7); }
.cal-cell.is-week-start { border-left: 2px solid var(--line); }
.cal-track.is-drop-target { background: rgba(25, 106, 188, .06); }
/* Abwesenheiten: eigene Zeilen unter den Anhängern, dunkle Striche. */
.cal-separator {
grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
padding: 6px 12px; background: #f4f6f8; border-top: 1px solid var(--line);
font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.cal-label--absence { background: #fbfcfd; }
.absence-dot {
width: 10px; height: 10px; border-radius: 3px; background: #2b3742; flex: 0 0 auto; display: inline-block;
}
.cal-track--absence { background: #fbfcfd; }
.cal-bar.cal-bar--absence {
background: #2b3742; color: #fff; border: 1px solid #1d262e;
box-shadow: 0 1px 2px rgba(10, 20, 28, .25);
}
.cal-bar.cal-bar--absence .cal-bar__name { color: #fff; }
.cal-bar.is-absent-conflict { animation: dic-absence-blink 1.6s ease-in-out infinite; }
@keyframes dic-absence-blink {
0%, 100% { box-shadow: 0 0 0 0 rgba(212, 68, 52, 0), inset 0 0 0 0 rgba(255, 255, 255, 0); }
50% { box-shadow: 0 0 0 2px rgba(212, 68, 52, .95), inset 0 0 0 1px rgba(255, 255, 255, .55); }
}
@media (prefers-reduced-motion: reduce) {
.cal-bar.is-absent-conflict { animation: none; box-shadow: 0 0 0 2px rgba(212, 68, 52, .95); }
}
.cal-bar {
position: absolute; z-index: 2; display: flex; flex-direction: column; justify-content: center;