aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/components/volume.scss
blob: d22b7cba4c9d0af8af85328fa93040c499052e99 (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
// --------------------------------------------------------------
// Volume
// --------------------------------------------------------------

.plyr__volume {
    flex: 1;
    position: relative;

    input[type='range'] {
        position: relative;
        z-index: 2;
    }

    @media (min-width: $plyr-bp-sm) {
        max-width: 50px;
    }

    @media (min-width: $plyr-bp-md) {
        max-width: 80px;
    }
}

// Hide sound controls on iOS
// It's not supported to change volume using JavaScript:
// https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html
.plyr--is-ios .plyr__volume {
    display: none !important;
}

// Vimeo has no toggle mute method so hide mute button
// https://github.com/vimeo/player.js/issues/236#issuecomment-384663183
.plyr--is-ios.plyr--vimeo [data-plyr='mute'] {
    display: none !important;
}