summaryrefslogtreecommitdiffstats
path: root/assets/css/objects/_icon.scss
blob: f80f4222ef3f77567643e727efcd5fc32c26e694 (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
@include namespace('icon') {
    @keyframes fall {
        to {
            transform: translateY(105vh) rotate(90deg);
        }
    }
    
    @include object(namespace()) {
        display:         block;
        width:           iro-px-to-rem(16px);
        height:          iro-px-to-rem(16px);
        stroke-width:    1.5px;
        stroke-linecap:  round;
        stroke-linejoin: round;

        @include modifier('inline') {
            display:        inline-block;
            vertical-align: -.1em;
        }

        @include modifier('snow') {
            position:       fixed;
            z-index:        9999;
            top:            -1.2em;
            width:          1em;
            height:         1em;
            animation:      fall linear forwards;
            stroke-width:   2px;
            color:          #fff;
            pointer-events: none;
        }
    }
}