From a5a645d1770e844afad9173592eee10349589714 Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Sun, 22 Jul 2012 14:42:34 -0700 Subject: 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. --- background_scripts/completion.coffee | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'background_scripts') diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index b9069dce..5920db0b 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -27,13 +27,14 @@ class Suggestion generateHtml: -> return @html if @html relevancyHtml = if @showRelevancy then "#{@computeRelevancy() + ''}" else "" + # NOTE(philc): We're using these vimium-specific class names so we don't collide with the page's CSS. @html = - "
- #{@type} - #{@highlightTerms(Utils.escapeHtml(@title))} + "
+ #{@type} + #{@highlightTerms(Utils.escapeHtml(@title))}
-
- #{@shortenUrl(@highlightTerms(@url))} +
+ #{@shortenUrl(@highlightTerms(@url))} #{relevancyHtml}
" @@ -58,7 +59,7 @@ class Suggestion for [start, end] in ranges string = string.substring(0, start) + - "" + string.substring(start, end) + "" + + "" + string.substring(start, end) + "" + string.substring(end) string -- cgit v1.2.3