diff options
| author | Phil Crosby | 2012-07-22 13:53:46 -0700 | 
|---|---|---|
| committer | Phil Crosby | 2012-07-22 13:53:46 -0700 | 
| commit | 954ac5f188be210a773aa5e0ef05507a3bc2aa5a (patch) | |
| tree | 2c8bd5020422b0e223c37cca905ea84d6151de38 | |
| parent | 14d379b3c3acd2aee713ac0b29fa36b823312a73 (diff) | |
| download | vimium-954ac5f188be210a773aa5e0ef05507a3bc2aa5a.tar.bz2 | |
Document what the css reset is used for.
| -rw-r--r-- | help_dialog.html | 1 | ||||
| -rw-r--r-- | vimium.css | 13 | 
2 files changed, 12 insertions, 2 deletions
| diff --git a/help_dialog.html b/help_dialog.html index 7bd08829..5e188406 100644 --- a/help_dialog.html +++ b/help_dialog.html @@ -2,6 +2,7 @@    This is shown when typing "?". This HTML is loaded by the background page and then populated with the    latest keybindings information before displaying.  --> +    <!-- Note that the template placeholders (e.g. "pageNavigation") will be filled in by the background         page with the up-to-date key bindings when the dialog is shown. -->    <div id="vimiumHelpDialog" class="vimiumReset"> @@ -1,5 +1,14 @@ -/* All of these declarations contain more specifiers than nesscesary to increase their specificity and help to -   ensure they override broad CSS declarations by the website vimium overlays. */ +/* + * Many CSS class names in this file use the verbose "vimiumXYZ" as the class name. This is so we don't + * use the same CSS class names that the page is using, so the page's CSS doesn't mess with the style of our + * Vimium dialogs. + */ + +/* + * This vimiumReset class can be added to any of our UI elements to give it a clean slate. This is useful in + * case the page has declared a broad rule like "a { padding: 50px; }" which will mess up our UI. These + * declarations contain more specifiers than necessary to increase their specificity (precedence). + */  .vimiumReset,  div.vimiumReset,  span.vimiumReset, | 
