From 6a92e60a6708b9be73966ba9024dc4e08b024fc2 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Fri, 17 Dec 2021 07:39:58 +1100 Subject: [PATCH] fix: remove division logic from ads.scss (fixes #2370) --- src/sass/plugins/ads.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sass/plugins/ads.scss b/src/sass/plugins/ads.scss index 8f5af141..c422c695 100644 --- a/src/sass/plugins/ads.scss +++ b/src/sass/plugins/ads.scss @@ -2,8 +2,6 @@ // Advertisements // ========================================================================== -@use 'sass:math'; - .plyr__ads { border-radius: inherit; bottom: 0; @@ -49,10 +47,10 @@ display: block; height: $plyr-range-track-height; left: 0; - margin: -calc($plyr-range-track-height / 2) 0 0; opacity: 0.8; position: absolute; top: 50%; + transform: translateY(-50%); width: 3px; z-index: 3; // Between progress and thumb }