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

.plyr__volume {
    flex: 1;
    position: relative;

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

    @media @plyr-mq-sm {
        max-width: 50px;
    }

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