aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/plugins
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-03-17 23:30:16 +1100
committerSam Potts <sam@potts.es>2018-03-17 23:30:16 +1100
commit600f0eb8a3cf49f5268e5c15487797d496bc19b6 (patch)
treeae7d43ee753035458e5927b66eb588ff26d58afd /src/sass/plugins
parente0562752eaa4553466b78fb6828d05147a0891d1 (diff)
parent5db73b13276bf50357cc98896421318de66ab042 (diff)
downloadplyr-600f0eb8a3cf49f5268e5c15487797d496bc19b6.tar.lz
plyr-600f0eb8a3cf49f5268e5c15487797d496bc19b6.tar.xz
plyr-600f0eb8a3cf49f5268e5c15487797d496bc19b6.zip
Merge branch 'beta'
# Conflicts: # readme.md
Diffstat (limited to 'src/sass/plugins')
-rw-r--r--src/sass/plugins/ads.scss56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/sass/plugins/ads.scss b/src/sass/plugins/ads.scss
new file mode 100644
index 00000000..c5acef75
--- /dev/null
+++ b/src/sass/plugins/ads.scss
@@ -0,0 +1,56 @@
+// ==========================================================================
+// Advertisements
+// ==========================================================================
+
+.plyr__ads {
+ border-radius: inherit;
+ bottom: 0;
+ cursor: pointer;
+ left: 0;
+ overflow: hidden;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: -1; // Hide it by default
+
+ // Make sure the inner container is big enough for the ad creative.
+ > div,
+ > div iframe {
+ height: 100%;
+ position: absolute;
+ width: 100%;
+ }
+
+ // The countdown label
+ &::after {
+ background: rgba($plyr-color-gunmetal, 0.8);
+ border-radius: 2px;
+ bottom: $plyr-control-spacing;
+ color: #fff;
+ content: attr(data-badge-text);
+ font-size: 11px;
+ padding: 2px 6px;
+ pointer-events: none;
+ position: absolute;
+ right: $plyr-control-spacing;
+ z-index: 3;
+ }
+
+ &::after:empty {
+ display: none;
+ }
+}
+
+// Advertisement cue's for the progress bar
+.plyr__cues {
+ background: currentColor;
+ display: block;
+ height: $plyr-range-track-height;
+ left: 0;
+ margin: -($plyr-range-track-height / 2) 0 0;
+ opacity: 0.8;
+ position: absolute;
+ top: 50%;
+ width: 3px;
+ z-index: 3; // Between progress and thumb
+}