diff --git a/app.py b/app.py index cc5e731..3e85cfa 100644 --- a/app.py +++ b/app.py @@ -2633,7 +2633,7 @@ def public_frontend(): """Baut das Login-Dropdown + Filter-Toggle für den Header.""" h = '
' h += 'brettspiel-news.de' - h += '' + h += '' if u: name = (u.get("name") or u.get("email") or "User")[:14] h += '
' @@ -2933,12 +2933,13 @@ def public_frontend(): .site-header .header-right { margin-left:auto; } .site-header .header-right a { color:#aaa; text-decoration:none; font-size:0.8rem; transition:color 0.2s; } .site-header .header-right a:hover { color:#fff; } - .filter-toggle-btn { background:none; border:1.5px solid rgba(255,255,255,0.3); border-radius:8px; color:#fff; font-size:1rem; cursor:pointer; padding:0.3rem 0.5rem; line-height:1; transition:all 0.15s; margin-left:0.5rem; } - .filter-toggle-btn:hover { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.6); } - .filter-toggle-btn.active { background:rgba(255,255,255,0.15); border-color:#fff; } - .filter-toggle-btn .badge { position:absolute; top:-4px; right:-4px; width:8px; height:8px; background:#dc3545; border-radius:50%; border:1.5px solid #20228a; display:none; } - .filter-toggle-btn.has-active .badge { display:block; } + .filter-toggle-btn { background:rgba(255,255,255,0.12); border:1.5px solid rgba(255,255,255,0.25); border-radius:8px; color:#fff; font-size:0.78rem; font-weight:600; cursor:pointer; padding:0.35rem 0.7rem; line-height:1.3; transition:all 0.15s; margin-left:0.5rem; font-family:inherit; } + .filter-toggle-btn:hover { background:rgba(255,255,255,0.22); border-color:rgba(255,255,255,0.5); } + .filter-toggle-btn.active { background:rgba(255,255,255,0.25); border-color:#fff; } .filter-collapsed { display:none; } + .filter-backdrop { position:fixed; inset:0; z-index:100000; background:rgba(0,0,0,0.3); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); display:none; } + .filter-backdrop.open { display:flex; align-items:flex-start; justify-content:center; padding-top:4rem; } + .filter-overlay { background:#fff; border-radius:16px; box-shadow:0 12px 48px rgba(0,0,0,0.22); padding:1.2rem 1.5rem; width:90vw; max-width:600px; animation:fadeDown 0.2s ease; } /* Offcanvas navigation */ .nav-toggle { background:none; border:none; color:#fff; font-size:1.3rem; cursor:pointer; padding:0.3rem 0.4rem; line-height:1; margin-right:0.5rem; transition:opacity 0.2s; } @@ -3216,7 +3217,12 @@ def public_frontend(): """ + _build_login_dropdown(user) + """ -
""" + filter_html + """
+
+
+""" + filter_html + """ + +
+
""" + cards + """
@@ -3228,26 +3234,24 @@ def public_frontend():