From a84d55084f95555310476b8ddfb506e1cf4b82dd Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Sun, 10 Nov 2024 15:43:48 -0500 Subject: [PATCH] Make `Big Play Button` smaller (#6002) * Make player button smaller * move transparency seting to media query --- .../ft-shaka-video-player/ft-shaka-video-player.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.css b/src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.css index 37650c9febb6e..87d9f32b358c5 100644 --- a/src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.css +++ b/src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.css @@ -197,6 +197,10 @@ opacity: 1; } +:deep(.shaka-controls-container > .shaka-play-button-container > .shaka-play-button) { + padding: min(calc(15% / 2), 55px); +} + .ftVideoPlayer:fullscreen :deep(.theatre-button), .ftVideoPlayer:fullscreen :deep(.full-window-button), .fullWindow :deep(.theatre-button) { @@ -248,4 +252,11 @@ } } +@media (prefers-reduced-transparency:no-preference) { + /* add transparency to big play button */ + :deep(.shaka-controls-container[shown='true'] > .shaka-play-button-container > .shaka-play-button) { + opacity: 0.75 !important; + } +} + /* stylelint-enable liberty/use-logical-spec */