From 750428c5b29d4873d8efa9208fc4970671acdc6c Mon Sep 17 00:00:00 2001 From: Maaxxs Date: Tue, 29 Sep 2026 07:44:47 +0200 Subject: [PATCH] Seitenleiste mit Icons im Stil der Hauptseite Co-Authored-By: Claude Opus 5.5 --- static/css/panel.css | 8 +++++++- templates/base.html | 22 +++++++++++----------- templates/macros.html | 17 +++++++++++++++++ 3 files changed, 35 insertions(+), 12 deletions(-) diff --git a/static/css/panel.css b/static/css/panel.css index 4d4317c..54d1932 100644 --- a/static/css/panel.css +++ b/static/css/panel.css @@ -60,7 +60,13 @@ input, select, textarea, button { font: inherit; } .sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; } .nav-heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 1.1rem 0.6rem 0.35rem; } -.nav-link { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.7rem; border-radius: 6px; color: var(--text); } +.nav-link { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.7rem; border-radius: 6px; color: var(--text); } +.nav-link > span { flex: 1; } +.nav-link .icon { color: var(--text-muted); flex-shrink: 0; } +.nav-link:hover .icon, .nav-link.active .icon { color: var(--gold); } +.nav-link.disabled .icon { opacity: 0.6; } +.btn-link.logout { display: inline-flex; padding: 0.3rem; border-radius: 6px; } +.btn-link.logout:hover { background: var(--bg-panel-alt); } .nav-link:hover { background: var(--bg-panel-alt); color: var(--text); text-decoration: none; } .nav-link.active { background: rgba(201, 162, 39, 0.14); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); } .nav-link.disabled { color: var(--text-muted); cursor: default; } diff --git a/templates/base.html b/templates/base.html index 4d3c36c..f896165 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,4 +1,4 @@ - +{% from "macros.html" import icon %} @@ -7,7 +7,7 @@ {% block title %}Siel{% endblock %} · Elyos Allianz - + {% if user %} @@ -21,26 +21,26 @@ Elyos Allianz
Siel · Verwaltung
@@ -48,7 +48,7 @@
{{ user.name }}{{ "Admin" if user.owner else "Zugang" }}
- +
diff --git a/templates/macros.html b/templates/macros.html index 891dc7b..215a6ba 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -1,3 +1,20 @@ +{# Strich-Icons im Stil von lumina-ascendens.de (includes/functions.php, icon()) #} +{% macro icon(name) %} +{%- set paths = { + "home": '', + "settings": '', + "welcome": '', + "smile": '', + "shield": '', + "ticket": '', + "users": '', + "key": '', + "list": '', + "log-out": '', +} -%} + +{%- endmacro %} + {# Ein/Aus-Schalter (wie bei MEE6) #} {% macro switch(id, checked) %}