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

.plyr__volume {
    flex: 1;
    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;
}