diff options
author | Sam Potts <sam@potts.es> | 2018-03-17 23:30:16 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-03-17 23:30:16 +1100 |
commit | 600f0eb8a3cf49f5268e5c15487797d496bc19b6 (patch) | |
tree | ae7d43ee753035458e5927b66eb588ff26d58afd /src/sass/components/volume.scss | |
parent | e0562752eaa4553466b78fb6828d05147a0891d1 (diff) | |
parent | 5db73b13276bf50357cc98896421318de66ab042 (diff) | |
download | plyr-600f0eb8a3cf49f5268e5c15487797d496bc19b6.tar.lz plyr-600f0eb8a3cf49f5268e5c15487797d496bc19b6.tar.xz plyr-600f0eb8a3cf49f5268e5c15487797d496bc19b6.zip |
Merge branch 'beta'
# Conflicts:
# readme.md
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; +} |