From 7c980ce73ce9a005d194c8fbf1c5ee8f2bf3b698 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Mon, 19 Oct 2026 18:15:42 +0200 Subject: [PATCH] Felder nebeneinander einheitlich ausrichten Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01SvuGvHpbAQ4syfuLuRvutL --- src/styles/admin.css | 3 +++ src/styles/shop.css | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/src/styles/admin.css b/src/styles/admin.css index 5304ce8..9b0f2fe 100644 --- a/src/styles/admin.css +++ b/src/styles/admin.css @@ -166,3 +166,6 @@ a.ad-kpi:hover { border-color: var(--line-strong); } .ad-iconbtn--danger:hover { color: var(--danger); border-color: var(--danger); } .rot90 { transform: rotate(90deg); } .ad-iconbtn:disabled { opacity: 0.4; cursor: default; } + +/* Felder nebeneinander: kein zusätzlicher Abstand oben, sonst sitzt das rechte Feld tiefer */ +.ad-form .sm-form-row .sm-field + .sm-field { margin-top: 0; } diff --git a/src/styles/shop.css b/src/styles/shop.css index 04adbac..e86772e 100644 --- a/src/styles/shop.css +++ b/src/styles/shop.css @@ -104,3 +104,12 @@ h1, h2, h3 { margin: 0; } .sm-tracking__events li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); } .sm-tracking__events li:first-child::before { background: var(--ink); } .sm-tracking__events small { display: block; color: var(--ink-muted); font-size: 12px; } + +/* Felder nebeneinander stehen auf einer Linie: Beschriftung, Eingabe und Hinweis teilen sich die Zeilen + des Rasters, auch wenn eine Beschriftung umbricht oder nur ein Feld einen Hinweis hat. */ +@supports (grid-template-rows: subgrid) { + @media (min-width: 480px) { + .sm-form-row > .sm-field { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-content: start; } + .sm-form-row > .sm-field > .sm-field__label { align-self: end; } + } +}