diff options
author | Sam Potts <sam@selz.com> | 2018-01-22 23:15:52 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-22 23:15:52 +1100 |
commit | 3aa5747c9018b99fe7bc1d8ad4d67cea62ae5489 (patch) | |
tree | 4278b90afa91cb8237b9faa5e50909c4ea832fc6 /src/sass/plugins | |
parent | 6831c3053470d092c11536a837ebf8c1a8b5c530 (diff) | |
parent | 5671235fd93eac4554d2c522461df813b589a7f4 (diff) | |
download | plyr-3aa5747c9018b99fe7bc1d8ad4d67cea62ae5489.tar.lz plyr-3aa5747c9018b99fe7bc1d8ad4d67cea62ae5489.tar.xz plyr-3aa5747c9018b99fe7bc1d8ad4d67cea62ae5489.zip |
Merge pull request #760 from sampotts/beta-with-ads
Beta with ads
Diffstat (limited to 'src/sass/plugins')
-rw-r--r-- | src/sass/plugins/ads.scss | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/sass/plugins/ads.scss b/src/sass/plugins/ads.scss new file mode 100644 index 00000000..60751851 --- /dev/null +++ b/src/sass/plugins/ads.scss @@ -0,0 +1,45 @@ +// ========================================================================== +// Advertisments +// ========================================================================== + +.plyr__ads { + bottom: 0; + cursor: pointer; + left: 0; + position: absolute; + right: 0; + top: 0; + z-index: 3; // Above the controls. + + &::after { + background: rgba($plyr-color-gunmetal, 0.8); + border-radius: 2px; + bottom: $plyr-control-spacing; + color: #fff; + content: attr(data-badge-text); + font-size: 10px; + 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. +} |