aboutsummaryrefslogtreecommitdiffstats
path: root/src/less/components/volume.less
blob: 5c814e94d49e7cf3efd591fc938ed2bbe332a3d7 (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
// Volume
// --------------------------------------------------------------

.plyr .plyr__volume { 
    display: none;
    position: relative;

    input[type="range"] {
        position: relative;
        z-index: 2;
    }
    @media (min-width: @plyr-bp-screen-sm) {
        display: block;
        max-width: 60px;
    }
    @media (min-width: @plyr-bp-screen-md) {
        max-width: 100px;
    }
}

// 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,
.plyr--is-ios [data-plyr='mute'] {
    display: none !important;
}