aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/plugins/previewThumbnails.scss
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-01-06 14:08:46 +1100
committerGitHub <noreply@github.com>2019-01-06 14:08:46 +1100
commitdb2997ef21aecde9af9f5e1d51b2440cd13a18fd (patch)
tree97b0d02ef9aa3381940bb8e886932a2b50146686 /src/sass/plugins/previewThumbnails.scss
parent88ffd0f138b3db1e16dd689d9070dcd8fed4a845 (diff)
parent10c88f6e4936d522f249b78f0d02d4ea4e198030 (diff)
downloadplyr-db2997ef21aecde9af9f5e1d51b2440cd13a18fd.tar.lz
plyr-db2997ef21aecde9af9f5e1d51b2440cd13a18fd.tar.xz
plyr-db2997ef21aecde9af9f5e1d51b2440cd13a18fd.zip
Merge branch 'develop' into master
Diffstat (limited to 'src/sass/plugins/previewThumbnails.scss')
-rw-r--r--src/sass/plugins/previewThumbnails.scss77
1 files changed, 77 insertions, 0 deletions
diff --git a/src/sass/plugins/previewThumbnails.scss b/src/sass/plugins/previewThumbnails.scss
new file mode 100644
index 00000000..4de90667
--- /dev/null
+++ b/src/sass/plugins/previewThumbnails.scss
@@ -0,0 +1,77 @@
+// --------------------------------------------------------------
+// Preview Thumbnails
+// --------------------------------------------------------------
+
+.plyr__preview-thumbnail-container {
+ background-color: rgba(0,0,0,0.5);
+ border: 1px solid rgba(0,0,0,0); // The background colour above applies to the area under the border - so appears to be a border of 0.5 opacity black
+ border-radius: 0px;
+ bottom: 100%;
+ box-shadow: $plyr-tooltip-shadow;
+ left: 50%;
+ line-height: 1.3;
+ margin-bottom: $plyr-tooltip-padding * 2;
+ opacity: 0;
+ pointer-events: none;
+ position: absolute;
+ transition: opacity 0.2s 0.1s ease;
+ white-space: nowrap;
+ z-index: 2;
+
+ overflow: hidden;
+
+ img {
+ position: absolute;
+ left: 0px;
+ top: 0px;
+ height: 100%; // Non-jpeg-sprite images are 100%. Jpeg sprites will have their size applied by javascript
+ width: 100%;
+ max-height: none;
+ max-width: none;
+ border-radius: 0px;
+ }
+
+ // Seek time text
+ .plyr__preview-time-text-container {
+ position: absolute;
+ bottom: 0px;
+ left: 0px;
+ right: 0px;
+ margin-bottom: 2px;
+ z-index: 3;
+
+ span {
+ background-color: rgba(0,0,0,0.55);
+ color: rgba(255,255,255,1);
+ padding: 4px 6px 3px 6px;
+ font-size: $plyr-font-size-small;
+ font-weight: $plyr-font-weight-regular;
+ }
+ }
+}
+
+.plyr__preview-scrubbing-container {
+ position: absolute;
+ left: 0px;
+ right: 0px;
+ top: 0px;
+ bottom: 0px;
+ height: 100%;
+ width: 100%;
+ margin: auto; // Required when video is different dimensions to container (e.g., fullscreen)
+ overflow: hidden;
+ z-index: 1;
+ transition: opacity 0.3s ease;
+ filter: blur(1px);
+
+ img {
+ position: absolute;
+ left: 0px;
+ top: 0px;
+ height: 100%;
+ width: 100%;
+ max-height: none;
+ max-width: none;
+ object-fit: contain;
+ }
+}