Permalink
Browse files

Tweak keyboard help

  • Loading branch information...
1 parent e23df8f commit 4f134b4dcd09ea35b458bcd71e16c44156e5f9e3 @rwdaigle committed Oct 19, 2012
Showing with 5 additions and 4 deletions.
  1. +3 −2 app/assets/stylesheets/search.sass
  2. +2 −2 app/views/gists/search.html.haml
@@ -26,11 +26,12 @@
background: #EBEBEB
color: #555
height: 15px
- font-size: 12px
+ font-size: 11px
line-height: 1.0
- padding: 3px 2px 2px 8px
+ padding: 5px 2px 2px 8px
text-shadow: -1px 2px 1px white
border-top: 1px solid #BBB
+ text-align: center
em
font-weight: bold
@@ -5,15 +5,15 @@
= form_tag(search_gists_path, :method => "get", :id => "top_search_form", :class => "command_bar_form") do
.commandbar.focused
= text_field_tag(:q, params[:q], :size => 50, :class => "mousetrap", :id => "command-bar", :placeholder => "Search your gists", :tabindex => "1", :autocomplete => "off")
- .display(style="display: block;")
+ .display(style="display: #{!params[:q].blank? ? "block" : "none"};")
- if @results.size > 0
- for result in @results
.choice
%span.command= search_result_link(result)
%span.description= pluralize(result.comment_count, "comments")
.hints
%em keyboard:
- ↑ = up, ↓ = down, enter = go, / = search
+ ↑ = up, ↓ = down, enter = follow link, / = search
- else
.choice
%span.command= "No results found. Bummer."

0 comments on commit 4f134b4

Please sign in to comment.