diff options
| author | Stephen Blott | 2015-05-16 12:29:33 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-16 12:29:33 +0100 |
| commit | 9742cee10745f256c66b52608090ddcc5107f33d (patch) | |
| tree | d7b3708b3fba243f5962f14f4c178e276f3bb878 | |
| parent | 93000bc401417954c8d9c1f52ef449292c2cd6fa (diff) | |
| download | vimium-9742cee10745f256c66b52608090ddcc5107f33d.tar.bz2 | |
Add insertText visual indicator.
| -rw-r--r-- | background_scripts/completion.coffee | 7 | ||||
| -rw-r--r-- | pages/vomnibar.css | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index c9a03629..66546708 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -45,14 +45,17 @@ class Suggestion return @html if @html relevancyHtml = if @showRelevancy then "<span class='relevancy'>#{@computeRelevancy()}</span>" else "" # NOTE(philc): We're using these vimium-specific class names so we don't collide with the page's CSS. + insertTextClass = if @insertText then "vomnibarInsertText" else "vomnibarNoInsertText" + insertTextIndicator = "﹢" # A small plus sign. + insertTextIndicator = "﹥" # A small "greater than" sign. @html = """ <div class="vimiumReset vomnibarTopHalf"> - <span class="vimiumReset vomnibarSource">#{@type}</span> + <span class="vimiumReset vomnibarSource #{insertTextClass}">#{insertTextIndicator}</span><span class="vimiumReset vomnibarSource">#{@type}</span> <span class="vimiumReset vomnibarTitle">#{@highlightQueryTerms Utils.escapeHtml @title}</span> </div> <div class="vimiumReset vomnibarBottomHalf"> - <span class="vimiumReset vomnibarUrl">#{@highlightQueryTerms Utils.escapeHtml @shortenUrl()}</span> + <span class="vimiumReset vomnibarSource vomnibarNoInsertText">#{insertTextIndicator}</span><span class="vimiumReset vomnibarUrl">#{@highlightQueryTerms Utils.escapeHtml @shortenUrl()}</span> #{relevancyHtml} </div> """ diff --git a/pages/vomnibar.css b/pages/vomnibar.css index 9fdc43ba..b1ed0252 100644 --- a/pages/vomnibar.css +++ b/pages/vomnibar.css @@ -145,3 +145,10 @@ * on the eye for this purpose. */ background-color: #E6EEFB; } + +.vomnibarInsertText { +} + +.vomnibarNoInsertText { + visibility: hidden; +} |
