From 0aa60547321e704814959dd49de3ecc85643ad3c Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 28 Jan 2023 17:11:33 +0100 Subject: Better unicode emoji --- src/objects/_emoji.scss | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/objects') diff --git a/src/objects/_emoji.scss b/src/objects/_emoji.scss index 7d03b13..6ab71d7 100644 --- a/src/objects/_emoji.scss +++ b/src/objects/_emoji.scss @@ -22,13 +22,18 @@ ), 'colors'); @include iro.bem-object(iro.props-namespace()) { - display: inline; - width: 1em; - height: 1em; - margin: calc(-.5 * fn.dim(--size)) calc(-1 * fn.dim(--pad)); - padding: fn.dim(--pad); - font-size: fn.dim(--size); - vertical-align: .15em; + display: inline-flex; + position: relative; + align-items: center; + justify-content: center; + width: 1em; + height: 1em; + margin: calc(-.5 * fn.dim(--size)) calc(-1 * fn.dim(--pad)); + padding: fn.dim(--pad); + font-size: fn.dim(--size); + line-height: 1; + text-align: center; + vertical-align: middle; @include iro.bem-modifier('125') { margin-top: calc(-.5 * fn.dim(--125 --size)); @@ -41,6 +46,7 @@ border-radius: calc(fn.dim(--rounding) / fn.dim(--zoom)); &:hover { + z-index: 10; transform: scale(fn.dim(--zoom)); background-color: fn.color(--bg); } -- cgit v1.2.3-70-g09d2