From eae243db8ee1c70682cfdb6d99ca70beac46fb7d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 12 Feb 2023 17:29:15 +0100 Subject: Fix --- src/objects/_emoji.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/objects/_emoji.scss') diff --git a/src/objects/_emoji.scss b/src/objects/_emoji.scss index 3da8b7b..4ecbb88 100644 --- a/src/objects/_emoji.scss +++ b/src/objects/_emoji.scss @@ -11,6 +11,10 @@ --zoom: 3, --valign: -.25em, + --icon: ( + --valign: -.15em, + ), + --150: ( --size: calc(1 / 14 * 28em), --valign: -.65em, @@ -40,7 +44,8 @@ object-fit: contain; @include iro.bem-modifier('icon') { - margin: calc(-1 * fn.dim(--pad) - .5 * (fn.dim(--size) - fn.foreign-dim(--icon, --size))); + margin: calc(-1 * fn.dim(--pad) - .5 * (fn.dim(--size) - fn.foreign-dim(--icon, --size))); + vertical-align: fn.dim(--icon --valign); } @each $size in '150' '200' { -- cgit v1.2.3-70-g09d2