From a137eec58b92b9b901d3b0d779f9dcfe9e790375 Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Tue, 29 Oct 2024 07:19:23 -0400 Subject: [PATCH] move transparency seting to media query --- .../ft-shaka-video-player/ft-shaka-video-player.css | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 adabf8c77ecad..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,10 +197,6 @@ opacity: 1; } -:deep(.shaka-controls-container[shown='true'] > .shaka-play-button-container > .shaka-play-button) { - opacity: 0.75 !important; -} - :deep(.shaka-controls-container > .shaka-play-button-container > .shaka-play-button) { padding: min(calc(15% / 2), 55px); } @@ -256,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 */