diff options
author | frankdelange <yetangitu-f@unternet.org> | 2019-11-01 10:33:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-25 10:59:48 +0100 |
commit | 597ca6de2c39ac4ac94b61299977794c802737da (patch) | |
tree | 1f1463d073b3e776b2aa33017a90299bef792089 /client/src/sass | |
parent | 5c7d650827cc471a03e7fa18362bcbcbe5d30838 (diff) | |
download | PeerTube-597ca6de2c39ac4ac94b61299977794c802737da.tar.gz PeerTube-597ca6de2c39ac4ac94b61299977794c802737da.tar.zst PeerTube-597ca6de2c39ac4ac94b61299977794c802737da.zip |
Show poster image when playing audio-only content, do not hide controls
Add '.vjs-playing-audio-only-content' class to:
- show poster image
- disable controls auto-hide
...when playing audio-only content
Diffstat (limited to 'client/src/sass')
-rw-r--r-- | client/src/sass/player/peertube-skin.scss | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/src/sass/player/peertube-skin.scss b/client/src/sass/player/peertube-skin.scss index 4bf48a570..8230681f6 100644 --- a/client/src/sass/player/peertube-skin.scss +++ b/client/src/sass/player/peertube-skin.scss | |||
@@ -104,6 +104,18 @@ body { | |||
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | // Show poster and controls when playing audio-only content | ||
108 | &.vjs-playing-audio-only-content { | ||
109 | .vjs-poster { | ||
110 | display: block; | ||
111 | visibility: visible; | ||
112 | } | ||
113 | |||
114 | .vjs-control-bar { | ||
115 | opacity: $primary-foreground-opacity-hover; | ||
116 | } | ||
117 | } | ||
118 | |||
107 | // Hide the big play button on autoplay | 119 | // Hide the big play button on autoplay |
108 | &.vjs-has-autoplay { | 120 | &.vjs-has-autoplay { |
109 | .vjs-big-play-button { | 121 | .vjs-big-play-button { |