diff options
| author | Stephen Blott | 2016-04-21 06:32:41 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-04-21 06:32:41 +0100 |
| commit | ff2bb00565eb1111a5b2d5ced5f6405591ae7bc6 (patch) | |
| tree | 74c3a629951eba5cac60686d14fa614b504bec69 /content_scripts | |
| parent | c9c508ce9adc0b8c8a51e7ba631f2884804a7d4a (diff) | |
| download | vimium-ff2bb00565eb1111a5b2d5ced5f6405591ae7bc6.tar.bz2 | |
Revert "Rework the help dialog styling."
This reverts commit 86470f13d853b33cda8cb006ae24aeb2dcec0c9c.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/vimium.css | 27 |
1 files changed, 13 insertions, 14 deletions
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; } |
