From 8224e4a59ff5a34b6b96f6b0f8aee816b4c53e90 Mon Sep 17 00:00:00 2001 From: Arjun Rao Date: Tue, 21 Jun 2016 22:01:47 -0700 Subject: [PATCH] Move controller on YT using relative positioning --- inject.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/inject.css b/inject.css index e80c15e..7de9928 100644 --- a/inject.css +++ b/inject.css @@ -2,7 +2,8 @@ /* YouTube player */ .ytp-hide-info-bar .vsc-controller { - margin-top: 10px; + position: relative; + top: 10px; } .ytp-autohide .vsc-controller { @@ -19,12 +20,14 @@ /* YouTube embedded player */ /* e.g. https://www.igvita.com/2012/09/12/web-fonts-performance-making-pretty-fast/ */ .full-frame .html5-video-player:not(.ytp-fullscreen) .vsc-controller { - margin-top: 45px; + position: relative; + top: 45px; } .ytp-fullscreen .vsc-controller { display: block; - margin-top: 60px; + position: relative; + top: 60px; } /* shift controller on vine.co */