From ff2bb00565eb1111a5b2d5ced5f6405591ae7bc6 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 21 Apr 2016 06:32:41 +0100 Subject: Revert "Rework the help dialog styling." This reverts commit 86470f13d853b33cda8cb006ae24aeb2dcec0c9c. --- content_scripts/vimium.css | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'content_scripts/vimium.css') diff --git a/content_scripts/vimium.css b/content_scripts/vimium.css index 516859e2..f902363c 100644 --- a/content_scripts/vimium.css +++ b/content_scripts/vimium.css @@ -137,22 +137,18 @@ div.vimiumHighlightedFrame { /* Help Dialog CSS */ -/* The help dialog iframe covers most of the height of the window, but is only - * as wide as it needs to be; so clicking to the left or right of it is - * clicking outside of the iframe. */ iframe.vimiumHelpDialogFrame { background-color: transparent; padding: 0px; + overflow: hidden; display: block; position: fixed; - /* The width of div#vimiumHelpDialog, plus twice its padding and twice its border. */ - width: calc(640px + 24px + 4px); - height: calc(100% - 100px); /* 100% minus 2 * top. */ - top: 50px; - left: 50%; - /* This needs to be 1/2 the width to horizontally center the dialog */ - margin-left:-320px; + width: 100%; + min-width: 400px; + height: 100%; + top: 0px; + left: 0px; border: none; /* One less than hint markers. */ @@ -167,12 +163,15 @@ div#vimiumHelpDialog { border:2px solid #b3b3b3; border-radius:6px; padding:8px 12px; - top:0px; - left:0px; + top:50px; + left:50%; width:640px; - max-height: calc(100% - 24px); /* 100% - twice the padding. */ + max-height: calc(100% - 100px - 16px); /* 100% - 2*top - 2*padding for top/bottom */ + /* This needs to be 1/2 width to horizontally center the help dialog */ + margin-left:-320px; -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 6px; - overflow: auto; + overflow-x: auto; + overflow-y: auto; } div#vimiumHelpDialog a { color:blue; } -- cgit v1.2.3