From 84667bca00978775c184e8538cf1abdc01cbec3f Mon Sep 17 00:00:00 2001 From: Till Tomczak Date: Wed, 30 Apr 2025 15:41:00 +0200 Subject: [PATCH] chore: automatic commit 2025-04-30 15:41 --- static/css/base-styles.css | 232 ++++++++++++++++- templates/mindmap.html | 505 ++++++++++++++++++++----------------- 2 files changed, 509 insertions(+), 228 deletions(-) diff --git a/static/css/base-styles.css b/static/css/base-styles.css index 989c7fd..82bd9fb 100644 --- a/static/css/base-styles.css +++ b/static/css/base-styles.css @@ -40,8 +40,8 @@ --light-bg: #f9fafb; --light-text: #1e293b; --light-heading: #0f172a; - --light-primary: #3b82f6; - --light-primary-hover: #4f46e5; + --light-primary: #7c3aed; + --light-primary-hover: #6d28d9; --light-secondary: #6b7280; --light-border: #e5e7eb; --light-card-bg: rgba(255, 255, 255, 0.92); @@ -523,4 +523,232 @@ body:not(.dark) .navbar { background-color: var(--light-navbar-bg); box-shadow: var(--light-shadow); border-bottom: 1px solid var(--light-border); +} + +/* Erweiterte Light-Mode-spezifische Stile */ +body:not(.dark) .glass-effect { + background-color: rgba(255, 255, 255, 0.7); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + border: 1px solid rgba(209, 213, 219, 0.3); +} + +body:not(.dark) .card { + background-color: rgba(255, 255, 255, 0.85); + border: 1px solid var(--light-border); + box-shadow: var(--light-shadow); + transition: all 0.3s ease; +} + +body:not(.dark) .card:hover { + box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); + transform: translateY(-2px); +} + +/* Light Mode Buttons */ +body:not(.dark) .btn-primary { + background-color: var(--light-primary); + color: white; + border: none; + transition: all 0.2s ease; +} + +body:not(.dark) .btn-primary:hover { + background-color: var(--light-primary-hover); + box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2); +} + +body:not(.dark) .btn-secondary { + background-color: #f3f4f6; + color: var(--light-text); + border: 1px solid #e5e7eb; +} + +body:not(.dark) .btn-secondary:hover { + background-color: #e5e7eb; +} + +body:not(.dark) .btn-outline { + background-color: transparent; + color: var(--light-primary); + border: 1px solid var(--light-primary); +} + +body:not(.dark) .btn-outline:hover { + background-color: rgba(124, 58, 237, 0.05); +} + +/* Light Mode Formulare */ +body:not(.dark) input, +body:not(.dark) select, +body:not(.dark) textarea { + background-color: white; + border: 1px solid #d1d5db; + color: #1f2937; +} + +body:not(.dark) input:focus, +body:not(.dark) select:focus, +body:not(.dark) textarea:focus { + border-color: var(--light-primary); + box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2); +} + +/* Light Mode Navigation */ +body:not(.dark) .sidebar { + background-color: white; + border-right: 1px solid #e5e7eb; +} + +body:not(.dark) .sidebar-link { + color: #4b5563; +} + +body:not(.dark) .sidebar-link:hover { + background-color: #f3f4f6; + color: var(--light-primary); +} + +body:not(.dark) .sidebar-link.active { + background-color: rgba(124, 58, 237, 0.08); + color: var(--light-primary); + font-weight: 500; +} + +/* Light Mode Tabellen */ +body:not(.dark) table { + border-color: #e5e7eb; +} + +body:not(.dark) th { + background-color: #f9fafb; + color: #111827; + font-weight: 600; +} + +body:not(.dark) tr:nth-child(even) { + background-color: #f9fafb; +} + +body:not(.dark) tr:hover { + background-color: #f3f4f6; +} + +/* Light Mode Icons */ +body:not(.dark) .icon { + color: #6b7280; +} + +body:not(.dark) .icon-primary { + color: var(--light-primary); +} + +/* Light Mode Alerts/Benachrichtigungen */ +body:not(.dark) .alert-info { + background-color: #eff6ff; + border-left: 4px solid #3b82f6; + color: #1e40af; +} + +body:not(.dark) .alert-success { + background-color: #ecfdf5; + border-left: 4px solid #10b981; + color: #065f46; +} + +body:not(.dark) .alert-warning { + background-color: #fffbeb; + border-left: 4px solid #f59e0b; + color: #92400e; +} + +body:not(.dark) .alert-error { + background-color: #fef2f2; + border-left: 4px solid #ef4444; + color: #b91c1c; +} + +/* Light Mode Badge */ +body:not(.dark) .badge { + background-color: #e5e7eb; + color: #374151; +} + +body:not(.dark) .badge-primary { + background-color: rgba(124, 58, 237, 0.1); + color: var(--light-primary); +} + +/* Light Mode Mindmap spezifisch */ +body:not(.dark) #cy { + background-color: rgba(255, 255, 255, 0.7); + border: 1px solid #e5e7eb; +} + +body:not(.dark) .node { + border: 2px solid white; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); +} + +body:not(.dark) .node:hover, +body:not(.dark) .node.selected { + box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.5), 0 4px 8px rgba(0, 0, 0, 0.1); +} + +body:not(.dark) .edge { + opacity: 0.7; +} + +body:not(.dark) .edge:hover, +body:not(.dark) .edge.selected { + opacity: 1; +} + +/* Footer im Light Mode */ +body:not(.dark) footer { + background-color: rgba(249, 250, 251, 0.7); + border-top: 1px solid #e5e7eb; +} + +/* Alpine.js Transitions im Light Mode */ +body:not(.dark) [x-cloak] { + display: none !important; +} + +/* Suchfeldstyling im Light Mode */ +body:not(.dark) .search-container input { + background-color: white; + border: 1px solid #d1d5db; + color: #1f2937; +} + +body:not(.dark) .search-container input:focus { + border-color: var(--light-primary); + box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2); +} + +body:not(.dark) .search-results { + background-color: white; + border: 1px solid #e5e7eb; + box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); +} + +body:not(.dark) .search-result-item:hover { + background-color: #f3f4f6; +} + +/* Profile und Benutzermenü im Light Mode */ +body:not(.dark) .avatar { + border: 2px solid white; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); +} + +body:not(.dark) .user-dropdown { + background-color: white; + border: 1px solid #e5e7eb; + box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); +} + +body:not(.dark) .user-dropdown-item:hover { + background-color: #f3f4f6; } \ No newline at end of file diff --git a/templates/mindmap.html b/templates/mindmap.html index fb1dea4..f8cfe3c 100644 --- a/templates/mindmap.html +++ b/templates/mindmap.html @@ -1,234 +1,287 @@ - - - - - - Interaktive Mindmap +{% extends "base.html" %} + +{% block title %}Mindmap{% endblock %} + +{% block extra_css %} + - - -
-
-

Interaktive Mindmap

-
- -
-
- -
- - - - - - - -
- -
- -
- -
- -
- Mindmap-Anwendung © 2023 -
+ } + +{% endblock %} + +{% block content %} +
+
+

Interaktive Mindmap

+

Visualisieren und erkunden Sie Wissensnetze und Gedankenkonstrukte

- - - - - + + + +{% endblock %} + +{% block scripts %} + - - \ No newline at end of file + + // Weitere Mindmap-spezifische Initialisierung + // Sollte mit dem vorhandenen mindmap.js-Modul funktionieren + }); + +{% endblock %} \ No newline at end of file