diff options
author | Sam Potts <sam@potts.es> | 2017-12-20 15:14:05 +0000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2017-12-20 15:14:05 +0000 |
commit | 6864149989c6a5b1bb6e9199e1f8af062c64dcc4 (patch) | |
tree | 283649e596f5a81780fabe3603bb0be7d0d47485 /src/sass/components/volume.scss | |
parent | aab53fa91fded2babdef8c3529a0ff1203f92f97 (diff) | |
download | plyr-6864149989c6a5b1bb6e9199e1f8af062c64dcc4.tar.lz plyr-6864149989c6a5b1bb6e9199e1f8af062c64dcc4.tar.xz plyr-6864149989c6a5b1bb6e9199e1f8af062c64dcc4.zip |
Converted to SASS/SCSS
Diffstat (limited to 'src/sass/components/volume.scss')
-rw-r--r-- | src/sass/components/volume.scss | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/sass/components/volume.scss b/src/sass/components/volume.scss new file mode 100644 index 00000000..e12dc675 --- /dev/null +++ b/src/sass/components/volume.scss @@ -0,0 +1,29 @@ +// -------------------------------------------------------------- +// 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, +.plyr--is-ios [data-plyr='mute'] { + display: none !important; +} |