ActivityPub-federated video streaming platform using P2P directly in your web browser
fix(client/embed): use correct CSS variable for big play button color (#7733)
[email protected]5602fd529241
diff --git a/client/src/standalone/player/src/sass/shared/peertube-skin.scss b/client/src/standalone/player/src/sass/shared/peertube-skin.scssindex 88a0ff0bdc..2c6de9ca27 100644--- a/client/src/standalone/player/src/sass/shared/peertube-skin.scss+++ b/client/src/standalone/player/src/sass/shared/peertube-skin.scss@@ -8,8 +8,6 @@ body {--pt-player-overlay-bg: rgba(0, 0, 0, 0.6);--pt-player-overlay-bg-hover: rgba(255, 255, 255, 0.15);- --pt-player-big-play-background-color: rgba(0, 0, 0, 0.8);-// Prevent z-index bug with Firefox PiP button// See:// * https://bugzilla.mozilla.org/show_bug.cgi?id=1742585diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.tsindex 66aec6587f..f01696a07c 100644--- a/client/src/standalone/videos/embed.ts+++ b/client/src/standalone/videos/embed.ts@@ -395,7 +395,7 @@ export class PeerTubeEmbed {const body = document.getElementById('custom-css')if (this.playerOptionsBuilder.hasBigPlayBackgroundColor()) {- body.style.setProperty('--pt-player-big-play-background-color', this.playerOptionsBuilder.getBigPlayBackgroundColor())+ body.style.setProperty('--pt-player-big-play-bg', this.playerOptionsBuilder.getBigPlayBackgroundColor())}if (this.playerOptionsBuilder.hasForegroundColor()) {