From 71475febdd8b29e9902ebe6fabdc8ca6a6d2e167 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 21 Apr 2024 16:17:46 +0200 Subject: Update --- src/objects/_icon.scss | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/objects') diff --git a/src/objects/_icon.scss b/src/objects/_icon.scss index ea7ac46..c045056 100644 --- a/src/objects/_icon.scss +++ b/src/objects/_icon.scss @@ -4,9 +4,10 @@ @include iro.props-namespace('icon') { @include iro.props-store(( --dims: ( - --stroke: 1.5px, - --size: calc(1 / 14 * 16em), - --valign: -.17em, + --stroke: 1.5px, + --size: calc(1 / 14 * 16em), + --vmargin: calc((1em - fn.dim(--size, null)) * .5), + --valign: -.14em, ) ), 'dims'); @@ -14,6 +15,8 @@ display: inline; width: fn.dim(--size); height: fn.dim(--size); + margin-top: fn.dim(--vmargin); + margin-bottom: fn.dim(--vmargin); stroke-width: fn.dim(--stroke); stroke-linecap: round; stroke-linejoin: round; -- cgit v1.2.3-54-g00ecf