aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/components/controls.scss
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-04-28 22:20:49 +1000
committerGitHub <noreply@github.com>2020-04-28 22:20:49 +1000
commit99a26d65cf78851878841c5afc54830f1222ccb1 (patch)
tree6a2bf12ecfa2314725e6d8961ec9f6a986b5003b /src/sass/components/controls.scss
parent6aa21c1fae4a7b6dbcf1db1ee3b06f11d674869a (diff)
parent4915cf0120870db4a52b3be117efa22f8ca2bd3e (diff)
downloadplyr-99a26d65cf78851878841c5afc54830f1222ccb1.tar.lz
plyr-99a26d65cf78851878841c5afc54830f1222ccb1.tar.xz
plyr-99a26d65cf78851878841c5afc54830f1222ccb1.zip
Merge pull request #1796 from sampotts/develop
v3.6.0
Diffstat (limited to 'src/sass/components/controls.scss')
-rw-r--r--src/sass/components/controls.scss66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/sass/components/controls.scss b/src/sass/components/controls.scss
index 50333701..60ee774d 100644
--- a/src/sass/components/controls.scss
+++ b/src/sass/components/controls.scss
@@ -4,49 +4,49 @@
// Hide native controls
.plyr--full-ui ::-webkit-media-controls {
- display: none;
+ display: none;
}
// Playback controls
.plyr__controls {
- align-items: center;
- display: flex;
- justify-content: flex-end;
- text-align: center;
-
- .plyr__progress__container {
- flex: 1;
- min-width: 0; // Fix for Edge issue where content would overflow
- }
+ align-items: center;
+ display: flex;
+ justify-content: flex-end;
+ text-align: center;
- // Spacing
- .plyr__controls__item {
- margin-left: ($plyr-control-spacing / 4);
+ .plyr__progress__container {
+ flex: 1;
+ min-width: 0; // Fix for Edge issue where content would overflow
+ }
- &:first-child {
- margin-left: 0;
- margin-right: auto;
- }
+ // Spacing
+ .plyr__controls__item {
+ margin-left: calc(#{$plyr-control-spacing} / 4);
- &.plyr__progress__container {
- padding-left: ($plyr-control-spacing / 4);
- }
+ &:first-child {
+ margin-left: 0;
+ margin-right: auto;
+ }
- &.plyr__time {
- padding: 0 ($plyr-control-spacing / 2);
- }
+ &.plyr__progress__container {
+ padding-left: calc(#{$plyr-control-spacing} / 4);
+ }
- &.plyr__progress__container:first-child,
- &.plyr__time:first-child,
- &.plyr__time + .plyr__time {
- padding-left: 0;
- }
+ &.plyr__time {
+ padding: 0 calc(#{$plyr-control-spacing} / 2);
}
- // Hide empty controls
- &:empty {
- display: none;
+ &.plyr__progress__container:first-child,
+ &.plyr__time:first-child,
+ &.plyr__time + .plyr__time {
+ padding-left: 0;
}
+ }
+
+ // Hide empty controls
+ &:empty {
+ display: none;
+ }
}
// Some options are hidden by default
@@ -54,11 +54,11 @@
.plyr [data-plyr='pip'],
.plyr [data-plyr='airplay'],
.plyr [data-plyr='fullscreen'] {
- display: none;
+ display: none;
}
.plyr--captions-enabled [data-plyr='captions'],
.plyr--pip-supported [data-plyr='pip'],
.plyr--airplay-supported [data-plyr='airplay'],
.plyr--fullscreen-enabled [data-plyr='fullscreen'] {
- display: inline-block;
+ display: inline-block;
}