aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass
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
parente2e0b645cdac3c705b1988fbb0eff723ad5e885d (diff)
downloadPeerTube-fa12eacc014aae8094d108634371640f2695bf9f.tar.gz
PeerTube-fa12eacc014aae8094d108634371640f2695bf9f.tar.zst
PeerTube-fa12eacc014aae8094d108634371640f2695bf9f.zip
Move to sass @use
Diffstat (limited to 'client/src/sass')
-rw-r--r--client/src/sass/application.scss16
-rw-r--r--client/src/sass/bootstrap.scss6
-rw-r--r--client/src/sass/classes.scss4
-rw-r--r--client/src/sass/include/_actor.scss2
-rw-r--r--client/src/sass/include/_bootstrap.scss74
-rw-r--r--client/src/sass/include/_miniature.scss4
-rw-r--r--client/src/sass/include/_mixins.scss2
-rw-r--r--client/src/sass/include/_variables.scss5
-rw-r--r--client/src/sass/ng-select.scss4
-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
-rw-r--r--client/src/sass/primeng-custom.scss6
17 files changed, 89 insertions, 87 deletions
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss
index 799b8c881..51c21107b 100644
--- a/client/src/sass/application.scss
+++ b/client/src/sass/application.scss
@@ -1,16 +1,16 @@
1$icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; 1$icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
2 2
3@import '_bootstrap-variables'; 3@use '_bootstrap-variables';
4@import '_variables'; 4@use '_variables';
5@import '_mixins'; 5@use '_mixins';
6 6
7@import '_fonts'; 7@use '_fonts';
8 8
9@import './bootstrap'; 9@use './bootstrap';
10@import './primeng-custom'; 10@use './primeng-custom';
11@import './ng-select'; 11@use './ng-select';
12 12
13@import './classes'; 13@use './classes';
14 14
15[hidden] { 15[hidden] {
16 display: none !important; 16 display: none !important;
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss
index 501587eb2..9c734c4fe 100644
--- a/client/src/sass/bootstrap.scss
+++ b/client/src/sass/bootstrap.scss
@@ -1,8 +1,8 @@
1$icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; 1$icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
2@import '_bootstrap'; 2@use '_bootstrap';
3 3
4@import '_variables'; 4@use '_variables';
5@import '_mixins'; 5@use '_mixins';
6 6
7// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d 7// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
8.glyphicon-refresh-animate { 8.glyphicon-refresh-animate {
diff --git a/client/src/sass/classes.scss b/client/src/sass/classes.scss
index 85bfce7f4..44c584d1c 100644
--- a/client/src/sass/classes.scss
+++ b/client/src/sass/classes.scss
@@ -1,5 +1,5 @@
1@import '_variables'; 1@use '_variables';
2@import '_mixins'; 2@use '_mixins';
3 3
4.peertube-button { 4.peertube-button {
5 @include peertube-button; 5 @include peertube-button;
diff --git a/client/src/sass/include/_actor.scss b/client/src/sass/include/_actor.scss
index ab2038dde..31c145319 100644
--- a/client/src/sass/include/_actor.scss
+++ b/client/src/sass/include/_actor.scss
@@ -1,4 +1,4 @@
1@import '_variables'; 1@use '_variables';
2 2
3@mixin section-label-responsive { 3@mixin section-label-responsive {
4 color: pvar(--mainColor); 4 color: pvar(--mainColor);
diff --git a/client/src/sass/include/_bootstrap.scss b/client/src/sass/include/_bootstrap.scss
index d9e5efc02..4f4f48e58 100644
--- a/client/src/sass/include/_bootstrap.scss
+++ b/client/src/sass/include/_bootstrap.scss
@@ -1,40 +1,40 @@
1@import './_bootstrap-variables'; 1@use './_bootstrap-variables';
2 2
3@import '~bootstrap/scss/functions'; 3@use '~bootstrap/scss/functions';
4@import '~bootstrap/scss/variables'; 4@use '~bootstrap/scss/variables';
5 5
6@import '~bootstrap/scss/mixins'; 6@use '~bootstrap/scss/mixins';
7@import '~bootstrap/scss/root'; 7@use '~bootstrap/scss/root';
8@import '~bootstrap/scss/reboot'; 8@use '~bootstrap/scss/reboot';
9@import '~bootstrap/scss/type'; 9@use '~bootstrap/scss/type';
10//@import '~bootstrap/scss/images'; 10//@use '~bootstrap/scss/images';
11//@import '~bootstrap/scss/code'; 11//@use '~bootstrap/scss/code';
12@import '~bootstrap/scss/grid'; 12@use '~bootstrap/scss/grid';
13@import '~bootstrap/scss/tables'; 13@use '~bootstrap/scss/tables';
14@import '~bootstrap/scss/forms'; 14@use '~bootstrap/scss/forms';
15@import '~bootstrap/scss/buttons'; 15@use '~bootstrap/scss/buttons';
16//@import '~bootstrap/scss/transitions'; 16//@use '~bootstrap/scss/transitions';
17@import '~bootstrap/scss/dropdown'; 17@use '~bootstrap/scss/dropdown';
18@import '~bootstrap/scss/button-group'; 18@use '~bootstrap/scss/button-group';
19@import '~bootstrap/scss/input-group'; 19@use '~bootstrap/scss/input-group';
20//@import '~bootstrap/scss/custom-forms'; 20//@use '~bootstrap/scss/custom-forms';
21@import '~bootstrap/scss/nav'; 21@use '~bootstrap/scss/nav';
22//@import '~bootstrap/scss/navbar'; 22//@use '~bootstrap/scss/navbar';
23@import '~bootstrap/scss/card'; 23@use '~bootstrap/scss/card';
24//@import '~bootstrap/scss/breadcrumb'; 24//@use '~bootstrap/scss/breadcrumb';
25//@import '~bootstrap/scss/pagination'; 25//@use '~bootstrap/scss/pagination';
26@import '~bootstrap/scss/badge'; 26@use '~bootstrap/scss/badge';
27//@import '~bootstrap/scss/jumbotron'; 27//@use '~bootstrap/scss/jumbotron';
28@import '~bootstrap/scss/alert'; 28@use '~bootstrap/scss/alert';
29//@import '~bootstrap/scss/progress'; 29//@use '~bootstrap/scss/progress';
30//@import '~bootstrap/scss/media'; 30//@use '~bootstrap/scss/media';
31//@import '~bootstrap/scss/list-group'; 31//@use '~bootstrap/scss/list-group';
32@import '~bootstrap/scss/close'; 32@use '~bootstrap/scss/close';
33@import '~bootstrap/scss/modal'; 33@use '~bootstrap/scss/modal';
34@import '~bootstrap/scss/tooltip'; 34@use '~bootstrap/scss/tooltip';
35@import '~bootstrap/scss/popover'; 35@use '~bootstrap/scss/popover';
36//@import '~bootstrap/scss/carousel'; 36//@use '~bootstrap/scss/carousel';
37@import '~bootstrap/scss/utilities'; 37@use '~bootstrap/scss/utilities';
38//@import '~bootstrap/scss/print'; 38//@use '~bootstrap/scss/print';
39 39
40@import '~@neos21/bootstrap3-glyphicons/assets/stylesheets/bootstrap3-glyphicons'; 40@use '~@neos21/bootstrap3-glyphicons/assets/stylesheets/bootstrap3-glyphicons';
diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss
index 0d3f2b6e0..fb12da49e 100644
--- a/client/src/sass/include/_miniature.scss
+++ b/client/src/sass/include/_miniature.scss
@@ -1,5 +1,5 @@
1@import '_variables'; 1@use '_variables';
2@import '_mixins'; 2@use '_mixins';
3 3
4@mixin miniature-name { 4@mixin miniature-name {
5 @include ellipsis-multiline(1.1em, 2); 5 @include ellipsis-multiline(1.1em, 2);
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss
index 62e1ca163..bf7504d91 100644
--- a/client/src/sass/include/_mixins.scss
+++ b/client/src/sass/include/_mixins.scss
@@ -1,4 +1,4 @@
1@import '_variables'; 1@use '_variables';
2 2
3@mixin disable-default-a-behaviour { 3@mixin disable-default-a-behaviour {
4 &:hover, 4 &:hover,
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss
index d54563df6..b9c82ea77 100644
--- a/client/src/sass/include/_variables.scss
+++ b/client/src/sass/include/_variables.scss
@@ -1,4 +1,5 @@
1@import '_bootstrap-variables'; 1@use 'sass:math';
2@use '_bootstrap-variables';
2 3
3$small-view: 800px; 4$small-view: 800px;
4$mobile-view: 500px; 5$mobile-view: 500px;
@@ -53,7 +54,7 @@ $sub-menu-height: 81px;
53 54
54$channel-background-color: #f6ede8; 55$channel-background-color: #f6ede8;
55 56
56$banner-inverted-ratio: 1/6; 57$banner-inverted-ratio: #{math.div(1, 6)};
57 58
58$max-channels-width: 1200px; 59$max-channels-width: 1200px;
59 60
diff --git a/client/src/sass/ng-select.scss b/client/src/sass/ng-select.scss
index ecd33babe..6c9d3a407 100644
--- a/client/src/sass/ng-select.scss
+++ b/client/src/sass/ng-select.scss
@@ -1,4 +1,4 @@
1@import '_variables'; 1@use '_variables';
2 2
3$ng-select-highlight: #f2690d; 3$ng-select-highlight: #f2690d;
4// $ng-select-primary-text: #333 !default; 4// $ng-select-primary-text: #333 !default;
@@ -14,7 +14,7 @@ $ng-select-height: 30px;
14$ng-select-value-padding-left: 15px; 14$ng-select-value-padding-left: 15px;
15$ng-select-value-font-size: 15px; 15$ng-select-value-font-size: 15px;
16 16
17@import '~@ng-select/ng-select/scss/default.theme'; 17@use '~@ng-select/ng-select/scss/default.theme';
18 18
19.ng-select { 19.ng-select {
20 font-size: $ng-select-value-font-size; 20 font-size: $ng-select-value-font-size;
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);
diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss
index 4cd27bea8..e6d4b6060 100644
--- a/client/src/sass/primeng-custom.scss
+++ b/client/src/sass/primeng-custom.scss
@@ -1,8 +1,8 @@
1@import '_variables'; 1@use '_variables';
2@import '_mixins'; 2@use '_mixins';
3 3
4/* stylelint-disable */ 4/* stylelint-disable */
5@import '~primeng/resources/primeng.css'; 5@use '~primeng/resources/primeng.css';
6 6
7// Override primeng style we don't want 7// Override primeng style we don't want
8input[type=button] { 8input[type=button] {