diff options
| author | Phil Crosby | 2010-01-22 23:27:11 -0800 | 
|---|---|---|
| committer | Phil Crosby | 2010-01-22 23:27:11 -0800 | 
| commit | 1efef2869130703c295d88d1ac26bec21881c938 (patch) | |
| tree | 20ff90121474e229605a27f2714eb5f92d57ff8b /options.html | |
| parent | 0dfae3a050b4201d54f2558483521b6688691bf6 (diff) | |
| download | vimium-1efef2869130703c295d88d1ac26bec21881c938.tar.bz2 | |
Add a UI on the options page for entering custom CSS for link hints.
Diffstat (limited to 'options.html')
| -rw-r--r-- | options.html | 21 | 
1 files changed, 19 insertions, 2 deletions
diff --git a/options.html b/options.html index d135799a..7d9a1e82 100644 --- a/options.html +++ b/options.html @@ -26,6 +26,10 @@          width:450px;          min-height:100px;        } +      textarea#userDefinedLinkHintCss { +        width:302px; +        min-height:100px; +      }        #status {          margin-left:10px;          font-size:80%; @@ -40,7 +44,6 @@          width:455px;          text-align:right;          margin-top:18px; -          margin-right:-10px;        }        .help { @@ -59,7 +62,8 @@    var defaultSettings = chrome.extension.getBackgroundPage().defaultSettings; -  var editableFields = ["scrollStepSize", "defaultZoomLevel", "excludedUrls", "linkHintCharacters"]; +  var editableFields = ["scrollStepSize", "defaultZoomLevel", "excludedUrls", "linkHintCharacters", +    "userDefinedLinkHintCss"];    function initializeOptions() {      populateOptions(); @@ -163,6 +167,19 @@              <input id="linkHintCharacters" type="text" style="width:150px" />          </td>        </tr> +      <tr class="advancedOption"> +        <td class="caption">CSS for link hints</td> +        <td verticalAlign="top"> +            <div class="help"> +              <div class="example"> +                The CSS used to style the characters next to each link hint.<br/><br/> +                Note: these styles are used in addition to and take precedence over Vimium's +                default styles. +              </div> +            </div> +            <textarea id="userDefinedLinkHintCss" type="text"></textarea> +        </td> +      </tr>      </table>      <div id="buttonsPanel">  | 
