diff --git a/backend/static/css/components.css b/backend/static/css/components.css index 958a606..6f71a25 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -210,6 +210,7 @@ } .by-tabs::-webkit-scrollbar { display: none; } + .by-tab { flex-shrink: 0; padding: var(--space-2) var(--space-3); diff --git a/backend/static/css/layout.css b/backend/static/css/layout.css index 2ba5c74..761cb2f 100644 --- a/backend/static/css/layout.css +++ b/backend/static/css/layout.css @@ -567,6 +567,89 @@ .grid-3 { grid-template-columns: 1fr 1fr; } } +/* ============================================================ + Desktop Multi-Column Layouts (min-width: 1024px) + ============================================================ */ +@media (min-width: 1024px) { + + /* Etwas breiterer Standard-Container auf großen Screens */ + .page-container { max-width: 860px; } + + /* ---------------------------------------------------------- + WELCOME: 2-spaltige Feature-Sections, zentrierter Hero + ---------------------------------------------------------- */ + .welcome-layout { max-width: 920px; } + + .welcome-sections { + display: grid; + grid-template-columns: 1fr 1fr; + gap: var(--space-4); + align-items: start; + } + + .welcome-sections .card { margin-bottom: 0; } + + /* ---------------------------------------------------------- + WALKS: Liste (links) + Karte (rechts) nebeneinander + ---------------------------------------------------------- */ + #page-walks .page-container { max-width: none; } + + .walks-layout { + flex-direction: row; + align-items: stretch; + } + + /* View-Toggle auf Desktop nicht nötig */ + .walks-view-toggle { display: none; } + + /* Beide Panels immer sichtbar */ + #walks-list-view, + #walks-map-view { + display: flex !important; + flex-direction: column; + } + + #walks-list-view { + width: 340px; + flex-shrink: 0; + border-right: 1px solid var(--c-border-light); + } + + #walks-map-view { flex: 1; } + + /* Toolbar-Zeile kompakter da Toggle wegfällt */ + #page-walks .by-toolbar { padding: var(--space-2) var(--space-4); } + + /* ---------------------------------------------------------- + FORUM: Rubriken über volle Breite, Threads darunter + ---------------------------------------------------------- */ + #page-forum .page-container { max-width: 1100px; } + + /* Rubriken auf genau 2 Zeilen verteilen, zentriert + — #page-forum nötig für Spezifität > .by-tabs (components.css lädt später) */ + #page-forum .forum-category-tabs { + display: grid; + grid-template-columns: repeat(var(--forum-tab-cols, 7), minmax(0, 1fr)); + overflow: visible; + gap: var(--space-1); + padding-bottom: var(--space-2); + } + + #page-forum .forum-category-tabs .by-tab { + justify-content: center; + text-align: center; + white-space: nowrap; + } + + /* Suche + Threads volle Breite */ + .forum-main-col { + display: flex; + flex-direction: column; + gap: var(--space-3); + } + +} + /* ============================================================ Phosphor Icons — SVG Sprite ============================================================ */ diff --git a/backend/static/index.html b/backend/static/index.html index 0fad607..c567bfb 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -169,23 +169,18 @@ - -