Improves event hover highlighting

Uses CSS classes for event hover highlighting,
instead of directly manipulating the background color.
This allows for more flexible and maintainable styling.

Re-enables resize handle manager.
Removes console logs.
This commit is contained in:
Janus C. H. Knudsen 2025-10-08 18:15:00 +02:00
parent 8b8a1e3127
commit 3145752591
4 changed files with 37 additions and 22 deletions

View file

@ -60,7 +60,32 @@ swp-day-columns swp-event {
right: 2px;
width: auto;
}
/* Hover state - highlight colors */
&.hover[data-type="meeting"] {
background: var(--color-event-meeting-hl);
}
&.hover[data-type="meal"] {
background: var(--color-event-meal-hl);
}
&.hover[data-type="work"] {
background: var(--color-event-work-hl);
}
&.hover[data-type="milestone"] {
background: var(--color-event-milestone-hl);
}
&.hover[data-type="personal"] {
background: var(--color-event-personal-hl);
}
&.hover[data-type="deadline"] {
background: var(--color-event-milestone-hl);
}
}
swp-day-columns swp-event:hover {