From aeca4facc27e694d79228637994f2a5608606ab3 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Fri, 22 Apr 2016 14:59:03 +0100 Subject: Fix x-axis position. This gest the centring calculation correct. Also, remove the shadow; it's not visible. --- content_scripts/vimium.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/content_scripts/vimium.css b/content_scripts/vimium.css index 6037c9c2..1c4f1e37 100644 --- a/content_scripts/vimium.css +++ b/content_scripts/vimium.css @@ -143,7 +143,6 @@ iframe.vimiumHelpDialogFrame { top: 0px; left: 0px; width: 100%; - min-width: 400px; height: 100%; display: block; position: fixed; @@ -153,7 +152,6 @@ iframe.vimiumHelpDialogFrame { div#vimiumHelpDialog { border:3px solid; - -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 6px; opacity:1.0; background-color:white; position:fixed; @@ -162,10 +160,10 @@ div#vimiumHelpDialog { padding:8px 12px; top:50px; left: 50%; - max-height: calc(100% - 100px - 12px); - max-width: calc(100% - 100px + 12px); - width: calc(840px + 24px + 4px + 12px); - margin-left:calc(0px - 420px - 12px - 2px - 6px); /* Minus half of the width, above. */ + width: 840px; + height: calc(100% - 100px - 16px); /* 100% -top - 2*padding */ + max-width: calc(100% - 100px - 12px); + margin-left:calc(-420px - 12px); /* -1/2*width - 1*padding */ overflow: auto; } -- cgit v1.2.3