aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/plugins/ads.scss
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2018-01-19 14:30:11 +1100
committerSam Potts <me@sampotts.me>2018-01-19 14:30:11 +1100
commit986c802acd10dece4e45c43834af198b37b8beb2 (patch)
tree5efd47c02a339fe8485a2bf630c8fe420dc2d79d /src/sass/plugins/ads.scss
parent98dd818bf61526fe8e69eb85f0fbd3d4efd249b5 (diff)
parent392f837398a1ff793da56299ca3f0be961bc488e (diff)
downloadplyr-986c802acd10dece4e45c43834af198b37b8beb2.tar.lz
plyr-986c802acd10dece4e45c43834af198b37b8beb2.tar.xz
plyr-986c802acd10dece4e45c43834af198b37b8beb2.zip
Merge branch 'beta-with-ads' of github.com:sampotts/plyr into beta-with-ads
# Conflicts: # src/js/plugins/ads.js
Diffstat (limited to 'src/sass/plugins/ads.scss')
-rw-r--r--src/sass/plugins/ads.scss17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/sass/plugins/ads.scss b/src/sass/plugins/ads.scss
index 41d4d8d1..4bff7a20 100644
--- a/src/sass/plugins/ads.scss
+++ b/src/sass/plugins/ads.scss
@@ -3,15 +3,30 @@
// ==========================================================================
.plyr__ads {
+ display: none; // Hide initially.
bottom: 0;
cursor: pointer;
left: 0;
position: absolute;
right: 0;
top: 0;
- z-index: 10;
+ z-index: 3; // Above the controls.
video {
left: 0;
}
}
+
+// Advertisement cue's for the progress bar.
+.plyr__cues {
+ display: block;
+ position: absolute;
+ z-index: 3; // Between progress and thumb.
+ top: 50%;
+ left: 0;
+ margin: -($plyr-range-track-height / 2) 0 0;
+ width: 3px;
+ height: $plyr-range-track-height;
+ background: currentColor;
+ opacity: 0.8;
+}