diff options
| author | Stephen Blott | 2016-04-22 16:03:26 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-04-22 16:35:39 +0100 |
| commit | 4c707140985ae03e3c523f2e6e4b6cb4c8465236 (patch) | |
| tree | 1079539eed6b925c0753834762e2c6a1a0ad62a6 /content_scripts | |
| parent | aeca4facc27e694d79228637994f2a5608606ab3 (diff) | |
| download | vimium-4c707140985ae03e3c523f2e6e4b6cb4c8465236.tar.bz2 | |
Better help-dialog formatting.
Use margins to centre the help dialog. This works better on narrow
windows, and seems to produce a balanced dialog in a variety of cases.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/vimium.css | 45 |
1 files changed, 18 insertions, 27 deletions
diff --git a/content_scripts/vimium.css b/content_scripts/vimium.css index 1c4f1e37..cddfbc97 100644 --- a/content_scripts/vimium.css +++ b/content_scripts/vimium.css @@ -151,26 +151,32 @@ iframe.vimiumHelpDialogFrame { } div#vimiumHelpDialog { - border:3px solid; opacity:1.0; background-color:white; - position:fixed; border:2px solid #b3b3b3; border-radius:6px; padding:8px 12px; - top:50px; - left: 50%; 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; + max-width: calc(100% - 100px); + max-height: calc(100% - 100px); + margin: 50px auto; + overflow-y: auto; } -div#vimiumTitle, div#vimiumTitle span, div#vimiumTitle * { font-size:20px; } +span#vimiumTitle, span#vimiumTitle span, span#vimiumTitle * { font-size:20px; } #vimiumTitle { display: block; line-height: 130%; + white-space: nowrap; +} +td.vimiumHelpDialogTopButtons { + width: 100%; + text-align: right; +} +#helpDialogOptionsPage, #helpDialogWikiPage { + font-size: 14px; + padding-left: 5px; + padding-right: 5px; } div.vimiumColumn { width:50%; @@ -238,34 +244,19 @@ div#vimiumHelpDialog tr.advanced { display: none; } div#vimiumHelpDialog.showAdvanced tr.advanced { display: table-row; } div#vimiumHelpDialog div.advanced td:nth-of-type(3) { color: #555; } div#vimiumHelpDialog a.closeButton { - position:absolute; - right:4px; - top:2px; font-family:"courier new"; font-weight:bold; color:#555; text-decoration:none; - padding-left:10px; font-size:20px; + position: relative; + top: -12px; + right: -10px; } div#vimiumHelpDialog a { text-decoration: underline; } -div#vimiumHelpDialog .wikiPage, div#vimiumHelpDialog .optionsPage { - position: absolute; - display: block; - font-size: 14px; - line-height: 130%; - color:#555; - top: 11px; -} -div#vimiumHelpDialog .optionsPage { - right: 40px; -} -div#vimiumHelpDialog .wikiPage { - right: 100px; -} div#vimiumHelpDialog a.closeButton:hover { color:black; -webkit-user-select:none; |
