summaryrefslogtreecommitdiffstats
path: root/webapp/sass/utils/_mixins.scss
blob: 4d2b031e434679c4c43d0bd9dea5a0107486b2ed (plain)
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
34
35
36
37
38
@charset 'UTF-8';

@mixin file-icon($path) {
    @include background-size(60px auto);
    background-color: $white;
    background-image: url($path);
    background-position: center;
    background-repeat: no-repeat;
}

@mixin alpha-property($property, $color, $opacity) {
    #{$property}: rgba($color, $opacity);
}

@mixin font-smoothing($value: antialiased) {
    @if $value == antialiased {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    @else {
        -webkit-font-smoothing: subpixel-antialiased;
        -moz-osx-font-smoothing: auto;
    }
}

@mixin cursor($value) {
    cursor: -webkit-$value;
    cursor: zoom-$value;
}

// Webrtc button
@mixin webrtc-button {
    .webrtc__button {
        &.offline {
            @include opacity(.5);
        }
    }
}