aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorPhil Crosby2012-07-22 14:42:34 -0700
committerPhil Crosby2012-07-22 14:42:34 -0700
commita5a645d1770e844afad9173592eee10349589714 (patch)
tree4b980f81b8a246f08f19b813d4c7f9f04c05d6ca /content_scripts
parent2fa1f87c9422dc9c34e6951f3447a4df0c94aca7 (diff)
downloadvimium-a5a645d1770e844afad9173592eee10349589714.tar.bz2
Use vimium-specific class names, and use vimium reset. Now the vomnibar is more resistant to a site's css.
Previously the vomnibar didn't look great on Quora because of this.
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vomnibar.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee
index ac02dfca..0b96d2bb 100644
--- a/content_scripts/vomnibar.coffee
+++ b/content_scripts/vomnibar.coffee
@@ -67,7 +67,7 @@ class VomnibarUI
if (@completions.length > 0)
@selection = Math.min(@selection, @completions.length - 1)
for i in [0...@completionList.children.length]
- @completionList.children[i].className = (if i == @selection then "selected" else "")
+ @completionList.children[i].className = (if i == @selection then "vomnibarSelected" else "")
#
# Returns the user's action ("up", "down", "enter", "dismiss" or null) based on their keypress.
@@ -158,8 +158,8 @@ class VomnibarUI
initDom: ->
@box = Utils.createElementFromHtml(
'<div id="vomnibar" class="vimiumReset">' +
- '<div class="searchArea">' +
- '<input type="text" />' +
+ '<div class="vimiumReset vomnibarSearchArea">' +
+ '<input type="text" class="vimiumReset" />' +
'</div>' +
'<ul></ul>' +
'</div>')