diff --git a/VERSION b/VERSION index 1ea87ef..4d64262 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1101 \ No newline at end of file +1102 \ No newline at end of file diff --git a/backend/static/css/components.css b/backend/static/css/components.css index 4ec2cef..69113a5 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -235,6 +235,45 @@ color: var(--c-primary); } +/* ----- .by-tabs Modifier-Varianten ----------------------------- */ + +/* Grid-Layout (Admin/Health/Übungen — Desktop oft 2-3 Spalten) */ +.by-tabs.grid { + display: grid; + grid-template-columns: repeat(var(--tab-cols, 4), minmax(0, 1fr)); + overflow: visible; + gap: var(--space-2); +} + +/* Flex-Wrap (Zuchthunde — Buttons brechen um statt zu scrollen) */ +.by-tabs.wrap { + flex-wrap: wrap; + overflow-x: visible; +} + +/* Separated — eigener Hintergrund + Border (Sitting) */ +.by-tabs.separated { + padding: var(--space-3) var(--space-4) var(--space-2); + border-bottom: 1px solid var(--c-border); + background: var(--c-surface); +} + +/* Sticky (Admin Desktop vertikal) — nur ab 1024px */ +@media (min-width: 1024px) { + .by-tabs.sticky { + position: sticky; + top: var(--space-3); + flex-direction: column; + width: 190px; + gap: var(--space-1); + } + .by-tabs.sticky .by-tab { + justify-content: flex-start; + text-align: left; + padding: var(--space-2) var(--space-3); + } +} + /* ------------------------------------------------------------ 4. BY-SECTION-LABEL + BY-TOOLBAR — weitere gemeinsame Elemente ------------------------------------------------------------ */ diff --git a/backend/static/css/utilities.css b/backend/static/css/utilities.css new file mode 100644 index 0000000..f9f5ec2 --- /dev/null +++ b/backend/static/css/utilities.css @@ -0,0 +1,65 @@ +/* ============================================================ + BAN YARO — Utility-Klassen für häufige Inline-Patterns + Ergänzt design-system.css (Single-Property-Utilities sind dort) + ============================================================ */ + +/* ------------------------------------------------------------ + Text + Farb-Kombinationen (häufigste Inline-Patterns) + ------------------------------------------------------------ */ +.text-xs-muted { font-size: var(--text-xs); color: var(--c-text-muted); } +.text-xs-secondary { font-size: var(--text-xs); color: var(--c-text-secondary); } +.text-sm-muted { font-size: var(--text-sm); color: var(--c-text-muted); } +.text-sm-secondary { font-size: var(--text-sm); color: var(--c-text-secondary); } + +/* Caption = Mini-Label/Hinweis unter einem Wert */ +.caption { + font-size: var(--text-xs); + color: var(--c-text-secondary); + margin-top: 2px; +} + +/* ------------------------------------------------------------ + Flex-Layouts (kombiniert) + ------------------------------------------------------------ */ +.flex-gap-2 { display: flex; gap: var(--space-2); } +.flex-gap-3 { display: flex; gap: var(--space-3); } +.flex-col-gap-2 { display: flex; flex-direction: column; gap: var(--space-2); } +.flex-col-gap-3 { display: flex; flex-direction: column; gap: var(--space-3); } +.flex-col-gap-4 { display: flex; flex-direction: column; gap: var(--space-4); } + +.flex-center { display: flex; align-items: center; } +.flex-center-gap-1 { display: flex; align-items: center; gap: var(--space-1); } +.flex-center-gap-2 { display: flex; align-items: center; gap: var(--space-2); } +.flex-center-gap-3 { display: flex; align-items: center; gap: var(--space-3); } + +.flex-between { display: flex; align-items: center; justify-content: space-between; } +.flex-between-gap-2 { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); } + +/* min-width:0 + flex:1 — verhindert Overflow in Flex-Children */ +.flex-1-min { flex: 1; min-width: 0; } + +/* ------------------------------------------------------------ + Spacing-Lücken in design-system.css füllen + ------------------------------------------------------------ */ +.mb-1 { margin-bottom: var(--space-1); } +.mb-3 { margin-bottom: var(--space-3); } +.mt-1 { margin-top: var(--space-1); } +.mt-3 { margin-top: var(--space-3); } + +/* ------------------------------------------------------------ + Icon-Größen (statt width:NNpx;height:NNpx inline) + ------------------------------------------------------------ */ +.icon-xs { width: 12px; height: 12px; } +.icon-sm { width: 14px; height: 14px; } +.icon-md { width: 18px; height: 18px; } +.icon-lg { width: 22px; height: 22px; } + +/* ------------------------------------------------------------ + Form-Helper + ------------------------------------------------------------ */ +.label-block { + display: block; + font-size: var(--text-sm); + font-weight: 600; + margin-bottom: var(--space-1); +} diff --git a/backend/static/index.html b/backend/static/index.html index b5a585a..1800abd 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -86,12 +86,13 @@
| Manager | -Veröffentlicht | -Mit Link | -Geplant | -Ideen | -Gesamt | +Veröffentlicht | +Mit Link | +Geplant | +Ideen | +Gesamt |
|---|