From 080236a2422c343842ad549c144108b7c51dff84 Mon Sep 17 00:00:00 2001 From: Eden Halperin Date: Tue, 5 Nov 2013 11:37:21 -0500 Subject: [PATCH] narrower sidebar, transparent minimized state, cleaned up search results --- app/assets/stylesheets/common.css.scss | 28 +++++++++++++++++++------- app/helpers/geocoder_helper.rb | 10 ++++----- app/views/geocoder/search.html.erb | 2 +- app/views/site/index.html.erb | 4 ++-- 4 files changed, 29 insertions(+), 15 deletions(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 357372a9b..bfbe971dd 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -11,8 +11,8 @@ $lightgrey: #EEE; $darkgrey: #AAA; $hovercolor: 20%; $headerHeight: 54px; -$sidebarWidth: 350px; -$keyline: 1px solid $grey; +$sidebarWidth: 300px; +$keyline: 1px solid $lightgrey; $border-radius: 3px; /* Styles common to large and small screens */ @@ -595,11 +595,13 @@ nav.secondary { border-right: $keyline; h2, h3, h4 { - padding: $lineheight; + padding: $lineheight $lineheight $lineheight/2; } h4 { font-weight: normal; + color: #666; + font-size: 12px; } .icon.close { @@ -620,16 +622,28 @@ nav.secondary { color: #666; } } + + p.large-text { + font-size: 1.7em; + line-height: 1.4em; + font-weight: 300; + } } #sidebar.minimized { position: absolute; z-index: 1000; height: auto; + border-right: none; #sidebar_content { display: none; } + + #search_form { + background: none; + width: 78%; + } } #map { @@ -805,7 +819,7 @@ nav.secondary { #sidebar_content { position: absolute; - top: 72px; + top: 50px; bottom: 0; width: 100%; overflow-y: auto; @@ -823,9 +837,8 @@ nav.secondary { #search_form { position: relative; - padding: $lineheight; + padding: $lineheight/2 $lineheight; background-color: $lightgrey; - border-bottom: $keyline; #query_wrapper { position: relative; @@ -925,7 +938,8 @@ a.donate { .search_results_entry { ul li { - border-bottom: 1px solid #ccc; + border-bottom: $keyline; + &:first-child { border-top: $keyline; } } .search_details { diff --git a/app/helpers/geocoder_helper.rb b/app/helpers/geocoder_helper.rb index c74cba28e..33ef84b07 100644 --- a/app/helpers/geocoder_helper.rb +++ b/app/helpers/geocoder_helper.rb @@ -18,11 +18,11 @@ module GeocoderHelper html << link_to(result[:name], url, html_options) if result[:name] html << result[:suffix] if result[:suffix] - if result[:type] and result[:id] - html << content_tag(:small, :class => ["deemphasize", "search_details"]) do - link_to(t("browse.#{result[:type]}_history.view_details"), :controller => :browse, :action => result[:type], :id => result[:id]) - end - end + # if result[:type] and result[:id] + # html << content_tag(:small, :class => ["deemphasize", "search_details"]) do + # link_to(t("browse.#{result[:type]}_history.view_details"), :controller => :browse, :action => result[:type], :id => result[:id]) + # end + # end return raw(html) end diff --git a/app/views/geocoder/search.html.erb b/app/views/geocoder/search.html.erb index 72afb548c..42a1a306e 100644 --- a/app/views/geocoder/search.html.erb +++ b/app/views/geocoder/search.html.erb @@ -1,6 +1,6 @@

<%= t('site.sidebar.search_results') %>

<% @sources.each do |source| %> -

<%= raw(t "geocoder.search.title.#{source}") %>

+

<%= raw(t "geocoder.search.title.#{source}") %>

"> <%= image_tag "searching.gif", :class => "loader" %>
diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index fa3f31c1a..985a735c3 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -3,7 +3,7 @@ -

<%= t 'layouts.intro_text' %>

+

<%= t 'layouts.intro_text' %>