aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/plyr.scss
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2016-01-24 11:25:31 +1100
committerSam Potts <me@sampotts.me>2016-01-24 11:25:31 +1100
commita965d8a893a6885848c5c4cceab9f96265c7fa21 (patch)
tree40bc29390472fc994333c11cbf93485e17f7aea4 /src/sass/plyr.scss
parent173e651e3f4549b7a337e30854d1e4467940b489 (diff)
downloadplyr-a965d8a893a6885848c5c4cceab9f96265c7fa21.tar.lz
plyr-a965d8a893a6885848c5c4cceab9f96265c7fa21.tar.xz
plyr-a965d8a893a6885848c5c4cceab9f96265c7fa21.zip
Seek tooltip, bug fixes for SASS, fullscreen and icons
Diffstat (limited to 'src/sass/plyr.scss')
-rw-r--r--src/sass/plyr.scss22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/sass/plyr.scss b/src/sass/plyr.scss
index a94aeaf5..36c157e4 100644
--- a/src/sass/plyr.scss
+++ b/src/sass/plyr.scss
@@ -46,7 +46,7 @@ $plyr-control-color-hover: null !default;
// Tooltips
$plyr-tooltip-bg: $plyr-controls-bg !default;
-$plyr-tooltip-border-color: transparentize(@gray-dark, .1) !default;
+$plyr-tooltip-border-color: transparentize($plyr-gray-dark, .1) !default;
$plyr-tooltip-border-width: 1px;
$plyr-tooltip-shadow: 0 0 5px $plyr-tooltip-border-color, 0 0 0 $plyr-tooltip-border-width $plyr-tooltip-border-color;
$plyr-tooltip-color: $plyr-control-color !default;
@@ -59,7 +59,7 @@ $plyr-progress-bg: transparentize($plyr-gray, .2) !default;
$plyr-progress-playing-bg: $plyr-blue !default;
$plyr-progress-buffered-bg: transparentize($plyr-gray, .25) !default;
$plyr-progress-loading-size: 40px !default;
-$plyr-progress-loading-bg: transparentize(#000, .15); !default;
+$plyr-progress-loading-bg: transparentize(#000, .15) !default;
// Volume
$plyr-volume-track-height: 6px !default;
@@ -178,6 +178,8 @@ $plyr-bp-captions-large: 768px !default; // When captions jump to the la
width: 100%;
height: 100%;
border: 0;
+ user-select: none;
+ pointer-events: none; // To allow mouse events to be captured
}
// Vimeo hack
@@ -322,6 +324,7 @@ $plyr-bp-captions-large: 768px !default; // When captions jump to the la
// Tooltips
&__tooltip {
+ visibility: hidden;
position: absolute;
z-index: 2;
bottom: 100%;
@@ -337,9 +340,9 @@ $plyr-bp-captions-large: 768px !default; // When captions jump to the la
line-height: 1.5;
font-weight: 600;
- transform: translate(-50%, ($plyr-tooltip-padding * 3)) scale(.8);
+ transform: translate(-50%, 10px) scale(.8);
transform-origin: 50% 100%;
- transition: transform .2s .1s ease, opacity .2s .1s ease;
+ transition: transform .2s .1s ease, opacity .2s .1s ease, visibility .3s ease;
// Arrows
&::after,
@@ -371,7 +374,9 @@ $plyr-bp-captions-large: 768px !default; // When captions jump to the la
}
}
button:hover .plyr__tooltip,
- button.tab-focus:focus .plyr__tooltip {
+ button.tab-focus:focus .plyr__tooltip,
+ &__tooltip--visible {
+ visibility: visible;
opacity: 1;
transform: translate(-50%, 0) scale(1);
}
@@ -387,7 +392,7 @@ $plyr-bp-captions-large: 768px !default; // When captions jump to the la
// Playback progress
// <progress> element
- &-progress {
+ &__progress {
position: absolute;
bottom: 100%;
left: 0;
@@ -484,6 +489,11 @@ $plyr-bp-captions-large: 768px !default; // When captions jump to the la
border: 0;
}
}
+
+ // Seek tooltip to show time
+ .plyr__tooltip {
+ left: 0;
+ }
}
// Loading state