Improves resize handle appearance

Enhances the visual design of the resize handle for calendar events, making it more prominent and user-friendly.

- Updates the handle's styling with a darker background, increased size, and refined shadow.
- Replaces grip dots with grip lines for a cleaner look.
This commit is contained in:
Janus C. H. Knudsen 2025-10-07 17:21:23 +02:00
parent 70dce9fd59
commit 3982e2f25f

View file

@ -73,34 +73,34 @@ swp-day-columns swp-event:hover {
/* Resize handle indicator - created by JavaScript */
swp-resize-indicator {
position: absolute;
bottom: -3px;
bottom: -4px;
left: 50%;
transform: translateX(-50%);
width: 40px;
height: 6px;
background: var(--color-primary);
border-radius: 3px;
width: 50px;
height: 8px;
background: #6b7280;
border-radius: 4px;
pointer-events: none;
z-index: 30;
opacity: 0;
animation: fadeIn 0.3s ease forwards;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
animation: fadeIn 0.2s ease forwards;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
border: 1px solid rgba(255, 255, 255, 0.3);
}
/* Grip dots on handle */
/* Grip lines on handle */
swp-resize-indicator::before {
content: '';
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 12px;
width: 20px;
height: 2px;
background: rgba(255, 255, 255, 0.7);
background: rgba(255, 255, 255, 0.8);
border-radius: 1px;
box-shadow:
-5px 0 0 rgba(255, 255, 255, 0.7),
5px 0 0 rgba(255, 255, 255, 0.7);
box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.8),
0 2px 0 rgba(255, 255, 255, 0.8);
}
@keyframes fadeIn {