]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/player/peertube-skin.scss
Move to sass module
[github/Chocobozzz/PeerTube.git] / client / src / sass / player / peertube-skin.scss
index 1a84bd7f04cac9ac3728b2395f0e8f7cc541670a..17fd14342185ed3d525950805cc97ebb34997bb4 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,7 +70,7 @@ body {
     width: $big-play-width;
     height: $big-play-height;
     line-height: $big-play-height;
-    margin-top: -(math.div($big-play-height / 2));
+    margin-top: -(math.div($big-play-height, 2));
     transition: 0.4s opacity;
 
     &::-moz-focus-inner {