]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/player/context-menu.scss
Merge branch 'release/3.2.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / sass / player / context-menu.scss
index ad673eea7525184c3c3518cc0eb1259ed436015e..1653dd2c4ec8795fbbccb3afa482add4d0a42123 100644 (file)
@@ -8,9 +8,11 @@ $context-menu-width: 350px;
 
 .video-js .vjs-contextmenu-ui-menu {
   position: absolute;
-  background-color: rgba(0, 0, 0, 0.5);
-  padding: 5px 0;
+  background-color: $primary-background-color;
+  padding: 8px 0;
+  border-radius: 4px;
   width: $context-menu-width;
+  z-index: 105; // On top of the progress bar
 
   .vjs-menu-content {
     opacity: $primary-foreground-opacity;
@@ -29,5 +31,31 @@ $context-menu-width: 350px;
     &:hover {
       background-color: rgba(255, 255, 255, 0.2);
     }
+
+    [class^='vjs-icon-'] {
+      $icons: 'link-2', 'repeat', 'code', 'tick-white', 'info';
+
+      display: inline-flex;
+      position: relative;
+      top: 2px;
+      cursor: pointer;
+      width: 14px;
+      height: 14px;
+      background-color: #fff;
+      mask-size: cover;
+      margin-right: 0.8rem !important;
+
+      @each $icon in $icons {
+        &[class$="-#{$icon}"] {
+          mask-image: url('#{$assets-path}/player/images/#{$icon}.svg');
+          -webkit-mask-image: url('#{$assets-path}/player/images/#{$icon}.svg');
+        }
+      }
+
+      &[class$='-tick-white'] {
+        float: right;
+        margin: 0 !important;
+      }
+    }
   }
 }