summaryrefslogtreecommitdiffstats
path: root/webapp/sass/utils/_mixins.scss
blob: 6a041d6ec87ed541ef6a974449350285f462a446 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@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 {
        @include border-radius(50px);
        background: $button--ready;
        display: block;
        height: 33px;
        text-align: center;
        width: 33px;

        &.on,
        &:hover {
            background: darken($button--ready, 5%);
        }

        &.offline {
            background: $video-circle-offline;

            &:hover {
                background: $video-circle-offline;
            }
        }

        svg {
            fill: $white;
        }
    }
}