From 865e4b6a3077cb9547952b9c1b04ddb2b15ea952 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Tue, 18 Nov 2014 14:39:30 +0000 Subject: Options; Exclusion headers, style fiddles. --- pages/options.coffee | 6 +++--- pages/options.html | 52 +++++++++++++++++++++++++--------------------------- 2 files changed, 28 insertions(+), 30 deletions(-) diff --git a/pages/options.coffee b/pages/options.coffee index aaa4d9b4..6167e719 100644 --- a/pages/options.coffee +++ b/pages/options.coffee @@ -88,8 +88,8 @@ class ExclusionRulesOption extends Option exclusionScrollBox.scrollTop = exclusionScrollBox.scrollHeight populateElement: (rules) -> - while @element.firstChild - @element.removeChild @element.firstChild + # while @element.firstChild.nextSibling + # @element.removeChild @element.firstChild.nextSibling for rule in rules @appendRule rule @@ -114,7 +114,7 @@ class ExclusionRulesOption extends Option readValueFromElement: -> rules = - for element in @element.children + for element in @element.getElementsByClassName "exclusionRuleTemplateInstance" pattern = element.children[0].firstChild.value.trim() passKeys = element.children[1].firstChild.value.trim() { pattern: pattern, passKeys: passKeys } diff --git a/pages/options.html b/pages/options.html index 480f14fc..ce9fe77f 100644 --- a/pages/options.html +++ b/pages/options.html @@ -114,21 +114,11 @@ width: 40px; margin-right: 3px; } - textarea#userDefinedLinkHintCss { + textarea#userDefinedLinkHintCss, textarea#keyMappings, textarea#searchEngines { width: 100%;; min-height: 130px; white-space: nowrap; } - textarea#keyMappings { - width: 100%; - min-height: 135px; - white-space: nowrap; - } - textarea#searchEngines { - width: 100%; - min-height: 135px; - white-space: nowrap; - } input#previousPatterns, input#nextPatterns { width: 100%; } @@ -180,7 +170,8 @@ overflow: scroll; overflow-x: hidden; overflow-y: auto; - height: 170px; + min-height: 135px; + height: 135px; border: 1px solid #bfbfbf; border-radius: 2px; color: #444; @@ -195,11 +186,15 @@ .exclusionRemoveButton { width: 1px; /* 1px; smaller than the button itself. */ } - input.pattern, input.passKeys { + input.pattern, input.passKeys, .exclusionHeaderText { width: 100%; font-family: Consolas, "Liberation Mono", Courier, monospace; font-size: 14px; } + .exclusionHeaderText { + padding-left: 3px; + color: #979ca0; + } #exclusionAddButton { float: right; margin-right: 0px; @@ -207,6 +202,7 @@ } #footer { background: #f5f5f5; + border-top: 1px solid #979ca0; position: fixed; bottom: 0px; z-index: 10; @@ -220,7 +216,6 @@ max-height: 30px; } #helpText { - color: #979ca0; font-size: 12px; } #saveOptionsTableData { @@ -245,24 +240,27 @@
- The left column contains URL patterns. Vimium will be wholly or partially disabled for URLs - matching these patterns. Patterns are Javascript regular expressions. Additionally, the - character "*" matches any zero or more characters. + Wholly or partially disable Vimium. "Patterns" are URL regular expressions; + additionally, "*" matches any zero or more characters.

- The right column contains keys which Vimium would would normally handle, but which should - instead be passed through to the underlying web page (for pages matching the - pattern). If left empty, then Vimium will be wholly disabled. + If "Keys" is left empty, then vimium is wholly disabled. + Otherwise, just the listed keys are disabled (they are passed through).
-
+ + + + + +
PatternsKeys
@@ -352,7 +350,7 @@ unmapAll - Miscellaneous
toggles + Miscellaneous
options
-- cgit v1.2.3