about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/components/media.scss
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-11-27 15:21:57 +0100
committerThibaut Girka <thib@sitedethib.com>2018-11-27 15:21:57 +0100
commit3b707bdc12cd6d727e712cbd8a0055fad0ea50e8 (patch)
treebb2361171e2e85f8adbf57621e1cf6f15d3d4b64 /app/javascript/flavours/glitch/styles/components/media.scss
parent6b6e633c095485f95350c4308a942192e5fe8806 (diff)
[Glitch] Volume sliders for videos
Port f978afa4871c22caecb625a0b3eba533edfa309b to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/styles/components/media.scss')
-rw-r--r--app/javascript/flavours/glitch/styles/components/media.scss57
1 files changed, 56 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/styles/components/media.scss b/app/javascript/flavours/glitch/styles/components/media.scss
index 40a144de4..e8011bde9 100644
--- a/app/javascript/flavours/glitch/styles/components/media.scss
+++ b/app/javascript/flavours/glitch/styles/components/media.scss
@@ -277,6 +277,19 @@
   z-index: 100;
 }
 
+.detailed,
+.fullscreen {
+  .video-player__volume__current,
+  .video-player__volume::before {
+    bottom: 27px;
+  }
+
+  .video-player__volume__handle {
+    bottom: 23px;
+  }
+
+}
+
 .video-player {
   overflow: hidden;
   position: relative;
@@ -432,7 +445,7 @@
 
   &__time-current {
     color: $white;
-    margin-left: 10px;
+    margin-left: 60px;
   }
 
   &__time-sep {
@@ -445,6 +458,48 @@
     color: $white;
   }
 
+  &__volume {
+    cursor: pointer;
+    height: 24px;
+    display: inline;
+
+    &::before {
+      content: "";
+      width: 50px;
+      background: rgba($white, 0.35);
+      border-radius: 4px;
+      display: block;
+      position: absolute;
+      height: 4px;
+      left: 70px;
+      bottom: 20px;
+    }
+
+    &__current {
+      display: block;
+      position: absolute;
+      height: 4px;
+      border-radius: 4px;
+      left: 70px;
+      bottom: 20px;
+      background: lighten($ui-highlight-color, 8%);
+    }
+
+    &__handle {
+      position: absolute;
+      z-index: 3;
+      border-radius: 50%;
+      width: 12px;
+      height: 12px;
+      bottom: 16px;
+      left: 70px;
+      transition: opacity .1s ease;
+      background: lighten($ui-highlight-color, 8%);
+      box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
+      pointer-events: none;
+    }
+  }
+
   &__seek {
     cursor: pointer;
     height: 24px;