@use 'iro-sass/src/index' as iro; @use 'iro-design/src/functions' as fn; @include iro.props-namespace('emoji') { @include iro.props-store(( --dims: ( --size: 1.4em, --pad: .2em, --rounding: 3px, ) ), 'dims'); @include iro.props-store(( --colors: ( --bg: fn.global-color(--obj-hi), ) ), 'colors'); @include iro.bem-object(iro.props-namespace()) { display: inline; position: relative; top: calc(-.5em * fn.global-dim(--font --standard --line-height) + fn.dim(--rounding)); width: fn.dim(--size); height: fn.dim(--size); margin: calc(-.5 * fn.dim(--size)) 0; padding: fn.dim(--pad); transition: transform .2s ease, background-color .2s ease; border-radius: calc(fn.dim(--rounding) / 3); vertical-align: bottom; &:hover { transform: scale(3); background-color: fn.color(--bg); } } }