From 936d983cb377c53aa786def39e88b4c043791222 Mon Sep 17 00:00:00 2001 From: marwin Date: Thu, 22 May 2025 12:02:17 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20style:=20update=20mindmap.css=20for?= =?UTF-8?q?=20improved=20layout=20and=20design=20consistency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/mindmap.css | 74 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/static/css/mindmap.css b/static/css/mindmap.css index a298a88..1080705 100644 --- a/static/css/mindmap.css +++ b/static/css/mindmap.css @@ -360,4 +360,78 @@ body:not(.dark) .mindmap-toolbar button { .dark .mindmap-tooltip { background: rgba(30, 41, 59, 0.9); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); +} + +/* Kategorien-Panel */ +.categories-panel { + position: absolute; + top: 80px; + left: 20px; + width: 300px; + max-height: calc(100vh - 120px); + background: rgba(15, 23, 42, 0.95); + border-radius: 12px; + padding: 16px; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); + z-index: 1000; + backdrop-filter: blur(10px); + border: 1px solid rgba(255, 255, 255, 0.1); + transform: translateX(-320px); + transition: transform 0.3s ease-in-out; + overflow-y: auto; +} + +.categories-panel.visible { + transform: translateX(0); +} + +.categories-panel h3 { + color: white; + font-size: 1.2rem; + margin: 0 0 16px 0; + padding-bottom: 8px; + border-bottom: 1px solid rgba(255, 255, 255, 0.1); +} + +.category-list { + list-style: none; + padding: 0; + margin: 0; +} + +.category-item { + display: flex; + align-items: center; + padding: 8px 12px; + margin: 4px 0; + border-radius: 6px; + cursor: pointer; + transition: all 0.2s ease; + color: white; +} + +.category-item:hover { + background: rgba(255, 255, 255, 0.1); + transform: translateX(4px); +} + +.category-color { + width: 12px; + height: 12px; + border-radius: 50%; + margin-right: 12px; + flex-shrink: 0; +} + +.category-name { + flex-grow: 1; + font-size: 0.95rem; +} + +.category-count { + background: rgba(255, 255, 255, 0.1); + padding: 2px 8px; + border-radius: 12px; + font-size: 0.8rem; + margin-left: 8px; } \ No newline at end of file