From 315581a4a98c7995e1782fc806b65600cdc8b944 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 14 Oct 2022 14:31:05 +0000 Subject: [PATCH] `base` ruleset: Apply label rules to any element, not just inputs and spans --- src/rules/base.less | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/src/rules/base.less b/src/rules/base.less index 74807cc..5e9b88a 100644 --- a/src/rules/base.less +++ b/src/rules/base.less @@ -789,25 +789,33 @@ display: flex; gap: 1ex; - > @{element-span}:first-child, > @{element-span}:last-child { + > @{all}:first-child, > @{all}:last-child { margin: auto 0; flex-basis: 15%; + flex-grow: 0; .use-font-group(label); .map-hsl-group(current; primary); } - > @{element-span}:first-child { - text-align: right; - } - - > @{element-span}:last-child { - text-align: left; - } - - > @{input} { + > @{all} { flex-grow: 1; + display: flex; + justify-content: start; + align-items: center; + gap: 4px; } + + > @{all}:first-child { + text-align: right; + display: block; + } + + > @{all}:last-child { + text-align: left; + display: block; + } + } }