]> 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 17fd14342185ed3d525950805cc97ebb34997bb4..332a0e17df808f87701e2ba7d637017ef815fc61 100644 (file)
@@ -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 {
@@ -71,7 +71,7 @@ body {
     height: $big-play-height;
     line-height: $big-play-height;
     margin-top: -(math.div($big-play-height, 2));
-    transition: 0.4s opacity;
+    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;