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; } + } +}