summaryrefslogtreecommitdiffstats
path: root/assets/css/objects/_icon.scss
blob: 15389f580765f514e3647beacd8ffef3f154f8be (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:           1em;
        height:          1em;
        stroke-width:    var(--icon-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:        1000;
            top:            -1.2em;
            width:          1em;
            height:         1em;
            animation:      fall linear forwards;
            stroke-width:   2px;
            color:          #fff;
            pointer-events: none;
        }
    }
}