]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/player/peertube-skin.scss
Merge branch 'release/4.0.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / sass / player / peertube-skin.scss
index 1a84bd7f04cac9ac3728b2395f0e8f7cc541670a..332a0e17df808f87701e2ba7d637017ef815fc61 100644 (file)
@@ -1,7 +1,7 @@
 @use 'sass:math';
-@use '_variables';
-@use '_mixins';
-@use './_player-variables';
+@use '_variables' as *;
+@use '_mixins' as *;
+@use './_player-variables' as *;
 
 body {
   --embedForegroundColor: #{$primary-foreground-color};
@@ -12,8 +12,8 @@ body {
 @mixin big-play-button-triangle-size($triangle-size) {
   width: $triangle-size;
   height: $triangle-size;
-  top: calc(50% - math.div($triangle-size / 2));
-  left: calc(53% - math.div($triangle-size / 2));
+  top: calc(50% - #{math.div($triangle-size, 2)});
+  left: calc(53% - #{math.div($triangle-size, 2)});
 }
 
 .video-js.vjs-peertube-skin {
@@ -57,7 +57,7 @@ body {
     $big-play-width: 1.2em;
     $big-play-height: 1.2em;
 
-    @include margin-left(-($big-play-width / 2));
+    @include margin-left(-(math.div($big-play-width, 2)));
 
     outline: 0;
     font-size: 6em;
@@ -70,8 +70,8 @@ body {
     width: $big-play-width;
     height: $big-play-height;
     line-height: $big-play-height;
-    margin-top: -(math.div($big-play-height / 2));
-    transition: 0.4s opacity;
+    margin-top: -(math.div($big-play-height, 2));
+    transition: 0.2s background-color;
 
     &::-moz-focus-inner {
       border: 0;
@@ -89,30 +89,6 @@ body {
     &:hover {
       background-color: var(--mainColor, #696969);
     }
-
-  }
-
-  // Small effect when we click on the play button
-  &.vjs-has-big-play-button-clicked {
-
-    .vjs-big-play-button,
-    .vjs-poster {
-      display: block;
-      visibility: hidden;
-
-      &.vjs-big-play-button,
-      &.vjs-big-play-button::before {
-        opacity: 0;
-        transition: visibility 0.2s, opacity 0.2s;
-      }
-
-      &.vjs-poster,
-      &.vjs-poster::before {
-        opacity: 0;
-        transition: visibility 0.3s, opacity 0.3s;
-        transition-delay: 0.05s;
-      }
-    }
   }
 
   // Show poster and controls when playing audio-only content
@@ -158,6 +134,7 @@ body {
     background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
     box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
     text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
+    transition: visibility 0.3s, opacity 0.3s !important;
 
     > button:first-child {
       @include margin-left($first-control-bar-element-margin-left);
@@ -354,9 +331,10 @@ body {
         &.icon-previous {
           mask-image: url('#{$assets-path}/player/images/next.svg');
           -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
+          mask-size: cover;
+          -webkit-mask-size: cover;
 
           background-color: #fff;
-          mask-size: cover;
           width: 11px;
           height: 11px;
           margin-top: -2px;