aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/player
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-27 17:45:36 +0200
committerChocobozzz <me@florianbigard.com>2021-06-28 09:36:35 +0200
commitfa12eacc014aae8094d108634371640f2695bf9f (patch)
tree15b1153a9c830f5caa7e93f0939ba4153ab7624c /client/src/sass/player
parente2e0b645cdac3c705b1988fbb0eff723ad5e885d (diff)
downloadPeerTube-fa12eacc014aae8094d108634371640f2695bf9f.tar.gz
PeerTube-fa12eacc014aae8094d108634371640f2695bf9f.tar.zst
PeerTube-fa12eacc014aae8094d108634371640f2695bf9f.zip
Move to sass @use
Diffstat (limited to 'client/src/sass/player')
-rw-r--r--client/src/sass/player/context-menu.scss6
-rw-r--r--client/src/sass/player/index.scss18
-rw-r--r--client/src/sass/player/mobile.scss4
-rw-r--r--client/src/sass/player/peertube-skin.scss13
-rw-r--r--client/src/sass/player/settings-menu.scss6
-rw-r--r--client/src/sass/player/spinner.scss4
-rw-r--r--client/src/sass/player/stats.scss2
7 files changed, 27 insertions, 26 deletions
diff --git a/client/src/sass/player/context-menu.scss b/client/src/sass/player/context-menu.scss
index 501c68ffd..a207d8a28 100644
--- a/client/src/sass/player/context-menu.scss
+++ b/client/src/sass/player/context-menu.scss
@@ -1,6 +1,6 @@
1@import '_variables'; 1@use '_variables';
2@import '_mixins'; 2@use '_mixins';
3@import './_player-variables'; 3@use './_player-variables';
4 4
5$context-menu-width: 350px; 5$context-menu-width: 350px;
6 6
diff --git a/client/src/sass/player/index.scss b/client/src/sass/player/index.scss
index e674fa2f6..385365b6d 100644
--- a/client/src/sass/player/index.scss
+++ b/client/src/sass/player/index.scss
@@ -1,9 +1,9 @@
1@import './peertube-skin'; 1@use './peertube-skin';
2@import './mobile'; 2@use './mobile';
3@import './context-menu'; 3@use './context-menu';
4@import './settings-menu'; 4@use './settings-menu';
5@import './spinner'; 5@use './spinner';
6@import './upnext'; 6@use './upnext';
7@import './bezels'; 7@use './bezels';
8@import './playlist'; 8@use './playlist';
9@import './stats'; 9@use './stats';
diff --git a/client/src/sass/player/mobile.scss b/client/src/sass/player/mobile.scss
index 26066d218..dde2c3127 100644
--- a/client/src/sass/player/mobile.scss
+++ b/client/src/sass/player/mobile.scss
@@ -1,5 +1,5 @@
1@import '_variables'; 1@use '_variables';
2@import '_mixins'; 2@use '_mixins';
3 3
4/* Special mobile style */ 4/* Special mobile style */
5 5
diff --git a/client/src/sass/player/peertube-skin.scss b/client/src/sass/player/peertube-skin.scss
index 148992089..1a84bd7f0 100644
--- a/client/src/sass/player/peertube-skin.scss
+++ b/client/src/sass/player/peertube-skin.scss
@@ -1,6 +1,7 @@
1@import '_variables'; 1@use 'sass:math';
2@import '_mixins'; 2@use '_variables';
3@import './_player-variables'; 3@use '_mixins';
4@use './_player-variables';
4 5
5body { 6body {
6 --embedForegroundColor: #{$primary-foreground-color}; 7 --embedForegroundColor: #{$primary-foreground-color};
@@ -11,8 +12,8 @@ body {
11@mixin big-play-button-triangle-size($triangle-size) { 12@mixin big-play-button-triangle-size($triangle-size) {
12 width: $triangle-size; 13 width: $triangle-size;
13 height: $triangle-size; 14 height: $triangle-size;
14 top: calc(50% - #{$triangle-size / 2}); 15 top: calc(50% - math.div($triangle-size / 2));
15 left: calc(53% - #{($triangle-size / 2)}); 16 left: calc(53% - math.div($triangle-size / 2));
16} 17}
17 18
18.video-js.vjs-peertube-skin { 19.video-js.vjs-peertube-skin {
@@ -69,7 +70,7 @@ body {
69 width: $big-play-width; 70 width: $big-play-width;
70 height: $big-play-height; 71 height: $big-play-height;
71 line-height: $big-play-height; 72 line-height: $big-play-height;
72 margin-top: -($big-play-height / 2); 73 margin-top: -(math.div($big-play-height / 2));
73 transition: 0.4s opacity; 74 transition: 0.4s opacity;
74 75
75 &::-moz-focus-inner { 76 &::-moz-focus-inner {
diff --git a/client/src/sass/player/settings-menu.scss b/client/src/sass/player/settings-menu.scss
index 2183a7dbc..2d0b58a1d 100644
--- a/client/src/sass/player/settings-menu.scss
+++ b/client/src/sass/player/settings-menu.scss
@@ -1,6 +1,6 @@
1@import '_variables'; 1@use '_variables';
2@import '_mixins'; 2@use '_mixins';
3@import './_player-variables'; 3@use './_player-variables';
4 4
5$setting-transition-duration: 0.15s; 5$setting-transition-duration: 0.15s;
6$setting-transition-easing: ease-out; 6$setting-transition-easing: ease-out;
diff --git a/client/src/sass/player/spinner.scss b/client/src/sass/player/spinner.scss
index 94f4d1008..bd7efd3b8 100644
--- a/client/src/sass/player/spinner.scss
+++ b/client/src/sass/player/spinner.scss
@@ -1,5 +1,5 @@
1@import '_variables'; 1@use '_variables';
2@import '_mixins'; 2@use '_mixins';
3 3
4// Thanks: https://projects.lukehaas.me/css-loaders/ 4// Thanks: https://projects.lukehaas.me/css-loaders/
5.vjs-loading-spinner { 5.vjs-loading-spinner {
diff --git a/client/src/sass/player/stats.scss b/client/src/sass/player/stats.scss
index c6388ed13..18b3f0413 100644
--- a/client/src/sass/player/stats.scss
+++ b/client/src/sass/player/stats.scss
@@ -1,4 +1,4 @@
1@import './_player-variables'; 1@use './_player-variables';
2 2
3$stats-width: 420px; 3$stats-width: 420px;
4$contextmenu-background-color: rgba(0, 0, 0, 0.6); 4$contextmenu-background-color: rgba(0, 0, 0, 0.6);