From 9bcf3269872b8249982f17f118c1d367c25cfb78 Mon Sep 17 00:00:00 2001 From: Korbs Date: Sun, 1 Dec 2024 23:09:14 -0500 Subject: [PATCH] Fix auto hide controls function, fix onmousemove function to check video not the entire page --- src/Controls/Controller.astro | 37 ++++++++++++++++------------------- src/Styles/Index.scss | 10 ++++++---- 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/src/Controls/Controller.astro b/src/Controls/Controller.astro index d670407..77ebbfb 100644 --- a/src/Controls/Controller.astro +++ b/src/Controls/Controller.astro @@ -1,11 +1,12 @@ --- const { PlayerName, - BigPlayButton + BigPlayButton, + ShowBackAndForward } = Astro.props --- - \ No newline at end of file diff --git a/src/Styles/Index.scss b/src/Styles/Index.scss index 52d53c4..387e6fe 100644 --- a/src/Styles/Index.scss +++ b/src/Styles/Index.scss @@ -227,9 +227,9 @@ } } -.video-controls.hide { - opacity: 0; - transition: 0.3s opacity; +.zorn-controls-hide { + opacity: 0 !important; + transition: 0.3s opacity !important; } .big-present-button { @@ -241,7 +241,9 @@ color: white; border: none; border-radius: 6rem; - background: rgba(0, 0, 0, 0.32); + background: transparent; + backdrop-filter: blur(6px) contrast(0.9) brightness(0.5); + -webkit-backdrop-filter: blur(6px) contrast(0.9) brightness(0.5); display: flex; align-items: center; justify-content: center;