From 08972b5f91a8f76b87622c4a5c7eb06886e9c036 Mon Sep 17 00:00:00 2001 From: Ilya Grigorik Date: Sun, 30 Nov 2014 10:19:22 -0800 Subject: [PATCH] shift controller when YouTube infobar is present closes #12 --- inject.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inject.css b/inject.css index 423fb9c..1550598 100644 --- a/inject.css +++ b/inject.css @@ -47,3 +47,13 @@ font-size: 15px !important; line-height: 15px !important; } + +/* shift controller when YouTube infobar is present */ +.ytp-block-autohide:not(.el-detailpage) .tc-videoController, html[data-player-size=fullscreen] .tc-videoController { + margin-top: 40px; +} + +.html5-video-player:not(.ytp-block-autohide):not(.el-detailpage) .tc-videoController, html[data-player-size=fullscreen] .html5-video-player:not(.ytp-block-autohide) .tc-videoController { + transition: margin-top .25s cubic-bezier(0.4,0,0.2,1); + margin-top: 10px; +}