From efad742e8dbcd7bc9c3cbcacb3ef5e3c9f3a0f7c Mon Sep 17 00:00:00 2001 From: Caleb Spare Date: Mon, 20 Aug 2012 01:56:01 -0700 Subject: [Options] Initial options restyling. * Tidy up CSS for consistency * Remove inline styles * Fonts, sizes, colors, borders, etc. based on Chrome's settings pages. --- options/options.coffee | 5 ++ options/options.html | 195 ++++++++++++++++++++++++++++++++++++------------- 2 files changed, 148 insertions(+), 52 deletions(-) diff --git a/options/options.coffee b/options/options.coffee index 0823bd4b..9f43defd 100644 --- a/options/options.coffee +++ b/options/options.coffee @@ -87,4 +87,9 @@ openAdvancedOptions = (event) -> elements = document.getElementsByClassName("advancedOption") for element in elements element.style.display = (if (element.style.display is "table-row") then "none" else "table-row") + showOrHideLink = $("advancedOptions") + if showOrHideLink.innerHTML.match(/^Show/)? + showOrHideLink.innerHTML = "Hide advanced options…" + else + showOrHideLink.innerHTML = "Show advanced options…" event.preventDefault() diff --git a/options/options.html b/options/options.html index 1178c42e..a0a12d43 100644 --- a/options/options.html +++ b/options/options.html @@ -10,77 +10,170 @@ @@ -89,12 +182,12 @@ -

Vimium - Options

- +
Vimium options
+
@@ -110,11 +203,6 @@ - - - @@ -197,7 +285,7 @@ command. - + @@ -208,20 +296,23 @@ Vimium will match against these patterns when using the "navigate to the next page" command. - +
Scroll step size - px + px
- Advanced options » -
Custom key
mappings
@@ -122,7 +210,7 @@
Enter commands to remap your keys. Available commands:
-
+
map j scrollDown
unmap j
unmapAll
@@ -143,7 +231,7 @@ The characters placed next to each link after typing "F" to enter link hinting mode.
- +
- - + Show advanced options… +
+ + +

-
- To view all available shortcuts, type ? to show the Vimium help dialog. -
+ -- cgit v1.2.3