diff options
| author | Stephen Blott | 2016-04-22 14:59:03 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-04-22 15:11:24 +0100 |
| commit | aeca4facc27e694d79228637994f2a5608606ab3 (patch) | |
| tree | 332199391c8bf68896ddfcae5218e41b376649a0 | |
| parent | 740df9a23fa9a1e5b812584ce0702b813b226623 (diff) | |
| download | vimium-aeca4facc27e694d79228637994f2a5608606ab3.tar.bz2 | |
Fix x-axis position.
This gest the centring calculation correct.
Also, remove the shadow; it's not visible.
| -rw-r--r-- | content_scripts/vimium.css | 10 |
1 files 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; } |
