Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Embed player responsive

Chocobozzz9e6b41cc1d82
diff --git a/client/src/sass/video-js-custom.scss b/client/src/sass/video-js-custom.scss
index fe9495e777..1c5701bea2 100644
--- a/client/src/sass/video-js-custom.scss
+++ b/client/src/sass/video-js-custom.scss
@@ -23,6 +23,7 @@ $control-bar-height: 34px;
}
.vjs-big-play-button {
+ outline: 0;
font-size: 8em;
$big-play-width: 3em;
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index 0a35bc362d..fa4d0bdba5 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -11,7 +11,7 @@
<body>
- <video id="video-container" class="video-js vjs-sublime-skin vjs-big-play-centered">
+ <video id="video-container" class="video-js vjs-peertube-skin">
</video>
</body>
diff --git a/client/src/standalone/videos/embed.scss b/client/src/standalone/videos/embed.scss
index b76f096775..9140cd37c2 100644
--- a/client/src/standalone/videos/embed.scss
+++ b/client/src/standalone/videos/embed.scss
@@ -23,17 +23,13 @@ html, body {
}
.vjs-peertube-link {
- color: white;
+ color: #fff;
text-decoration: none;
- font-size: 1.3em;
- line-height: 2.20;
+ font-size: $font-size;
+ line-height: $control-bar-height;
transition: all .4s;
- position: relative;
- right: 8px;
-}
-
-.vjs-resolution-button-label {
- left: -7px;
+ font-weight: $font-semibold;
+ margin-right: 3px;
}
.vjs-peertube-link:hover {
@@ -42,5 +38,21 @@ html, body {
// Fix volume panel because we added a new component (PeerTube link)
.vjs-volume-panel {
- margin-right: 130px !important;
+ margin-right: 121px !important;
+}
+
+@media screen and (max-width: 350px) {
+ .vjs-play-control {
+ padding: 0 5px !important;
+ width: 25px !important;
+ }
+
+ .vjs-volume-control {
+ display: none !important;
+ }
+
+ .vjs-volume-panel {
+ width: 26px !important;
+ margin-right: 140px !important;
+ }
}