summaryrefslogtreecommitdiffstats
path: root/assets/css/objects/emoji.scss
blob: 8387e1dfd85421b828c034439db7249bbc6cdd70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@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:     1em,
            --rounding: 3px,
        )
    ), 'dims');

    @include iro.props-store((
        --colors: (
            --bg: fn.global-color(--obj-hi),
        )
    ), 'colors');

    @include iro.bem-object(iro.props-namespace()) {
        display:       inline;
        width:         fn.dim(--size);
        height:        fn.dim(--size);
        margin:        calc(-1 * fn.dim(--rounding) - fn.dim(--size) + 1em) calc(.25em - fn.dim(--rounding));
        padding:       fn.dim(--rounding);
        transform:     scale(1.5);
        transition:    transform .2s ease, background-color .2s ease;
        border-radius: calc(fn.dim(--rounding) / 3);

        &:hover {
            transform:        scale(3);
            background-color: fn.color(--bg);
        }
    }
}