aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/player
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-06-29 15:55:00 +0200
committerChocobozzz <me@florianbigard.com>2023-07-10 16:08:28 +0200
commita1bd2b77d99cec5c27d38501f5f12f9dc339de17 (patch)
tree58b4666297e0b832a52f962541498af61319110a /client/src/sass/player
parent8ef866071f8109719e68647141d4c9e138438585 (diff)
downloadPeerTube-a1bd2b77d99cec5c27d38501f5f12f9dc339de17.tar.gz
PeerTube-a1bd2b77d99cec5c27d38501f5f12f9dc339de17.tar.zst
PeerTube-a1bd2b77d99cec5c27d38501f5f12f9dc339de17.zip
Remove webtorrent support from client
Diffstat (limited to 'client/src/sass/player')
-rw-r--r--client/src/sass/player/control-bar.scss24
-rw-r--r--client/src/sass/player/index.scss1
-rw-r--r--client/src/sass/player/mobile.scss3
-rw-r--r--client/src/sass/player/peertube-skin.scss4
-rw-r--r--client/src/sass/player/settings-menu.scss9
-rw-r--r--client/src/sass/player/storyboard.scss26
6 files changed, 37 insertions, 30 deletions
diff --git a/client/src/sass/player/control-bar.scss b/client/src/sass/player/control-bar.scss
index 02d5fa169..09a75e2fd 100644
--- a/client/src/sass/player/control-bar.scss
+++ b/client/src/sass/player/control-bar.scss
@@ -3,20 +3,6 @@
3@use '_mixins' as *; 3@use '_mixins' as *;
4@use './_player-variables' as *; 4@use './_player-variables' as *;
5 5
6// Like the time tooltip
7.video-js .vjs-progress-holder .vjs-storyboard-sprite-placeholder {
8 display: none;
9}
10
11.video-js .vjs-progress-control:hover .vjs-storyboard-sprite-placeholder,
12.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-storyboard-sprite-placeholder {
13 display: block;
14
15 // Ensure that we maintain a font-size of ~10px.
16 font-size: 0.6em;
17 visibility: visible;
18}
19
20.video-js.vjs-peertube-skin .vjs-control-bar { 6.video-js.vjs-peertube-skin .vjs-control-bar {
21 z-index: 100; 7 z-index: 100;
22 8
@@ -26,11 +12,8 @@
26 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); 12 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
27 transition: visibility 0.3s, opacity 0.3s !important; 13 transition: visibility 0.3s, opacity 0.3s !important;
28 14
29 &.control-bar-hidden { 15 > button:not(.vjs-hidden):first-child,
30 display: none !important; 16 > button.vjs-hidden + button:not(.vjs-hidden) {
31 }
32
33 > button:first-child {
34 @include margin-left($first-control-bar-element-margin-left); 17 @include margin-left($first-control-bar-element-margin-left);
35 } 18 }
36 19
@@ -167,7 +150,7 @@
167 } 150 }
168 } 151 }
169 152
170 .vjs-live-control { 153 .vjs-pt-live-control {
171 padding: 5px 7px; 154 padding: 5px 7px;
172 border-radius: 3px; 155 border-radius: 3px;
173 height: fit-content; 156 height: fit-content;
@@ -245,6 +228,7 @@
245 .vjs-next-video, 228 .vjs-next-video,
246 .vjs-previous-video { 229 .vjs-previous-video {
247 width: $control-bar-button-width - 4px; 230 width: $control-bar-button-width - 4px;
231 cursor: pointer;
248 232
249 &.vjs-disabled { 233 &.vjs-disabled {
250 cursor: default; 234 cursor: default;
diff --git a/client/src/sass/player/index.scss b/client/src/sass/player/index.scss
index 5d0307d95..4bfd67a26 100644
--- a/client/src/sass/player/index.scss
+++ b/client/src/sass/player/index.scss
@@ -10,3 +10,4 @@
10@use './playlist'; 10@use './playlist';
11@use './stats'; 11@use './stats';
12@use './offline-notification'; 12@use './offline-notification';
13@use './storyboard.scss';
diff --git a/client/src/sass/player/mobile.scss b/client/src/sass/player/mobile.scss
index d150c54ee..b0019d2c9 100644
--- a/client/src/sass/player/mobile.scss
+++ b/client/src/sass/player/mobile.scss
@@ -170,7 +170,8 @@
170 } 170 }
171 } 171 }
172 172
173 &.vjs-scrubbing { 173 &.vjs-scrubbing,
174 &.vjs-mobile-sliding {
174 .vjs-mobile-buttons-overlay { 175 .vjs-mobile-buttons-overlay {
175 display: none; 176 display: none;
176 } 177 }
diff --git a/client/src/sass/player/peertube-skin.scss b/client/src/sass/player/peertube-skin.scss
index 4df8dbaf0..572ae7050 100644
--- a/client/src/sass/player/peertube-skin.scss
+++ b/client/src/sass/player/peertube-skin.scss
@@ -84,7 +84,9 @@ body {
84 } 84 }
85 85
86 // Do not display poster when video is starting 86 // Do not display poster when video is starting
87 &.vjs-has-autoplay:not(.vjs-has-started) { 87 // Or if we change resolution manually
88 &.vjs-has-autoplay:not(.vjs-has-started),
89 &.vjs-updating-resolution {
88 .vjs-poster { 90 .vjs-poster {
89 opacity: 0; 91 opacity: 0;
90 visibility: hidden; 92 visibility: hidden;
diff --git a/client/src/sass/player/settings-menu.scss b/client/src/sass/player/settings-menu.scss
index d2346c126..369c827f7 100644
--- a/client/src/sass/player/settings-menu.scss
+++ b/client/src/sass/player/settings-menu.scss
@@ -75,6 +75,7 @@ $setting-transition-easing: ease-out;
75 > .vjs-menu { 75 > .vjs-menu {
76 flex: 1; 76 flex: 1;
77 min-width: 200px; 77 min-width: 200px;
78 padding: 5px 0;
78 } 79 }
79 80
80 > .vjs-menu, 81 > .vjs-menu,
@@ -90,14 +91,6 @@ $setting-transition-easing: ease-out;
90 background-color: rgba(255, 255, 255, 0.2); 91 background-color: rgba(255, 255, 255, 0.2);
91 } 92 }
92 93
93 &:first-child {
94 margin-top: 5px;
95 }
96
97 &:last-child {
98 margin-bottom: 5px;
99 }
100
101 &.disabled { 94 &.disabled {
102 opacity: 0.5; 95 opacity: 0.5;
103 cursor: default !important; 96 cursor: default !important;
diff --git a/client/src/sass/player/storyboard.scss b/client/src/sass/player/storyboard.scss
new file mode 100644
index 000000000..c80d1b59d
--- /dev/null
+++ b/client/src/sass/player/storyboard.scss
@@ -0,0 +1,26 @@
1@use 'sass:math';
2@use '_variables' as *;
3@use '_mixins' as *;
4@use './_player-variables' as *;
5
6// Like the time tooltip
7.video-js .vjs-progress-holder .vjs-storyboard-sprite-placeholder {
8 display: none;
9}
10
11.video-js .vjs-progress-control:hover .vjs-storyboard-sprite-placeholder,
12.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-storyboard-sprite-placeholder {
13 display: block;
14
15 // Ensure that we maintain a font-size of ~10px.
16 font-size: 0.6em;
17 visibility: visible;
18}
19
20.video-js.vjs-settings-dialog-opened {
21 .vjs-storyboard-sprite-placeholder,
22 .vjs-time-tooltip,
23 .vjs-mouse-display {
24 display: none !important;
25 }
26}