aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/player
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-06-01 14:51:16 +0200
committerChocobozzz <me@florianbigard.com>2023-06-29 10:16:55 +0200
commitd8f39b126d9fe4bec1c12fb213548cc6edc87867 (patch)
tree7f0f1cb23165cf4dd789b2d78b1fef7ee116f647 /client/src/sass/player
parent1fb7d094229acdc190c3f7551b43ac5445814dee (diff)
downloadPeerTube-d8f39b126d9fe4bec1c12fb213548cc6edc87867.tar.gz
PeerTube-d8f39b126d9fe4bec1c12fb213548cc6edc87867.tar.zst
PeerTube-d8f39b126d9fe4bec1c12fb213548cc6edc87867.zip
Add storyboard support
Diffstat (limited to 'client/src/sass/player')
-rw-r--r--client/src/sass/player/control-bar.scss15
-rw-r--r--client/src/sass/player/mobile.scss25
2 files changed, 40 insertions, 0 deletions
diff --git a/client/src/sass/player/control-bar.scss b/client/src/sass/player/control-bar.scss
index 96b3adf66..02d5fa169 100644
--- a/client/src/sass/player/control-bar.scss
+++ b/client/src/sass/player/control-bar.scss
@@ -3,6 +3,20 @@
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
6.video-js.vjs-peertube-skin .vjs-control-bar { 20.video-js.vjs-peertube-skin .vjs-control-bar {
7 z-index: 100; 21 z-index: 100;
8 22
@@ -79,6 +93,7 @@
79 top: -0.3em; 93 top: -0.3em;
80 } 94 }
81 95
96 // Only used on mobile
82 .vjs-time-tooltip { 97 .vjs-time-tooltip {
83 display: none; 98 display: none;
84 } 99 }
diff --git a/client/src/sass/player/mobile.scss b/client/src/sass/player/mobile.scss
index 84d7a00f1..d150c54ee 100644
--- a/client/src/sass/player/mobile.scss
+++ b/client/src/sass/player/mobile.scss
@@ -6,6 +6,31 @@
6/* Special mobile style */ 6/* Special mobile style */
7 7
8.video-js.vjs-peertube-skin.vjs-is-mobile { 8.video-js.vjs-peertube-skin.vjs-is-mobile {
9 // No hover means we can't display the storyboard/time tooltip on mouse hover
10 // Use the time tooltip in progress control instead
11 .vjs-mouse-display {
12 display: none !important;
13 }
14
15 .vjs-storyboard-sprite-placeholder {
16 display: none;
17 }
18
19 .vjs-progress-control .vjs-sliding {
20
21 .vjs-time-tooltip,
22 .vjs-storyboard-sprite-placeholder {
23 display: block !important;
24
25 visibility: visible !important;
26 }
27
28 .vjs-time-tooltip {
29 color: #fff;
30 background-color: rgba(0, 0, 0, 0.8);
31 }
32 }
33
9 .vjs-control-bar { 34 .vjs-control-bar {
10 .vjs-progress-control .vjs-slider .vjs-play-progress { 35 .vjs-progress-control .vjs-slider .vjs-play-progress {
11 // Always display the circle on mobile 36 // Always display the circle on mobile