From 90ce3e0263301d21faaa2e0703c44fcc61cfbd77 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Fri, 11 Apr 2025 11:55:57 +0200 Subject: [PATCH] update(dashboard CSS): adds animation for pinned widgets and different cursor styles --- public/css/components/dashboard.css | 60 ++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/public/css/components/dashboard.css b/public/css/components/dashboard.css index 47ce239ee..55cd9a8ed 100644 --- a/public/css/components/dashboard.css +++ b/public/css/components/dashboard.css @@ -11,6 +11,12 @@ cursor:pointer; } +.draggedItem { + height: 100%; + width: 100%; + background-color:white; +} + .empty-tile-hover:hover { background-image: url('data:image/svg+xml;utf8,'); } @@ -61,6 +67,19 @@ .cursor-nw-resize { cursor: nw-resize; } + +.cursor-ew-resize { + cursor: ew-resize; +} + +.cursor-ns-resize { + cursor: ns-resize; +} + +.no-drag-drop { + cursor: not-allowed; +} + .cursor-move { cursor: move; } @@ -73,8 +92,9 @@ right:0; bottom:0; background-color:rgba(0, 100, 156); - border:1px dashed lightgray; + border:4px dashed lightgray; z-index: 2; + opacity: 0.5; } .pin:hover{ @@ -84,3 +104,41 @@ .pin[pinned]:hover{ color:rgb(153, 116, 116); } + +.section-info{ + color: #00649c; + cursor:pointer; +} + +.section-info:hover { + color: #005585; +} + +.denied-dragging-animation { + animation: wiggle 0.5s linear; + color:red !important; +} + +@keyframes wiggle { + + 0% { + transform: rotate(0deg); + } + + 25% { + transform: rotate(-30deg); + } + + 50% { + transform: rotate(0deg); + } + + 75% { + transform: rotate(30deg); + } + + 100% { + transform: rotate(0em); + } + +} \ No newline at end of file