# HG changeset patch # User Chris Cannam # Date 1321541815 0 # Node ID 58410c63bb8410925046ace084ee4a5afe1fcb6b # Parent 7fd52a786954b2be3c42d9ef6a6cd7f0b942d380 Force a Google search box rudely into the middle of the search view, just to see how it looks. It can be styled reasonably well -- but the adverts, when they appear, are atrocious. diff -r 7fd52a786954 -r 58410c63bb84 app/views/search/index.rhtml --- a/app/views/search/index.rhtml Tue Nov 15 10:36:40 2011 +0000 +++ b/app/views/search/index.rhtml Thu Nov 17 14:56:55 2011 +0000 @@ -20,6 +20,17 @@ <% end %> +
Loading
+ + + <% if @project_matches and !@project_matches.empty? and (@project_matches.count < 6) and !@pagination_previous_date %>

<%= l(:label_matching_project_plural) %> (<%= @project_matches.count %>)

diff -r 7fd52a786954 -r 58410c63bb84 public/themes/soundsoftware/stylesheets/application.css --- a/public/themes/soundsoftware/stylesheets/application.css Tue Nov 15 10:36:40 2011 +0000 +++ b/public/themes/soundsoftware/stylesheets/application.css Thu Nov 17 14:56:55 2011 +0000 @@ -232,6 +232,42 @@ } +/* For Google search results */ + +.gs-title { + text-decoration: none !important; +} +.gs-title:hover { + text-decoration: underline !important; +} +.gs-title b { + color: #be5700 !important; +/* background-color: #FCFD8D; */ + text-decoration: none !important; +} +.gs-snippet { + font-style: italic; color: #808080; +} +/* +.gs-snippet b { + background-color: #FCFD8D; +} +*/ +.gs-visibleUrl { + display: none; +} +.gs-title, .gs-title b { + font-size: 12px !important; +} +.gs-snippet,.gs-visibleUrl,.gsc-cursor-page,.gsc-result-info { + font-size: 11px !important; +} +.gsc-result-info,.gs-fileFormat,.gs-fileFormatType { + font-size: 10px !important; +} +.gs-result { + padding-left: 40px; +} diff -r 7fd52a786954 -r 58410c63bb84 public/themes/soundsoftware/stylesheets/fonts-generic.css --- a/public/themes/soundsoftware/stylesheets/fonts-generic.css Tue Nov 15 10:36:40 2011 +0000 +++ b/public/themes/soundsoftware/stylesheets/fonts-generic.css Thu Nov 17 14:56:55 2011 +0000 @@ -10,3 +10,7 @@ line-height: 1.34; } +.gs-title,.gs-snippet,.gs-visibleUrl,.gsc-cursor-page,.gsc-result-info,.gs-fileFormat,.gs-fileFormatType { + font-family: DroidSans, 'Liberation Sans', tahoma, verdana, sans-serif; + line-height: 1.34; +} diff -r 7fd52a786954 -r 58410c63bb84 public/themes/soundsoftware/stylesheets/fonts-mac.css --- a/public/themes/soundsoftware/stylesheets/fonts-mac.css Tue Nov 15 10:36:40 2011 +0000 +++ b/public/themes/soundsoftware/stylesheets/fonts-mac.css Thu Nov 17 14:56:55 2011 +0000 @@ -9,3 +9,8 @@ font-family: 'Lucida Grande', 'Lucida Sans Unicode', DroidSans, 'Liberation Sans', tahoma, verdana, sans-serif; line-height: 1.34; } + +.gs-title,.gs-snippet,.gs-visibleUrl,.gsc-cursor-page,.gsc-result-info,.gs-fileFormat,.gs-fileFormatType { + font-family: 'Lucida Grande', 'Lucida Sans Unicode', DroidSans, 'Liberation Sans', tahoma, verdana, sans-serif; + line-height: 1.34; +} diff -r 7fd52a786954 -r 58410c63bb84 public/themes/soundsoftware/stylesheets/fonts-ms.css --- a/public/themes/soundsoftware/stylesheets/fonts-ms.css Tue Nov 15 10:36:40 2011 +0000 +++ b/public/themes/soundsoftware/stylesheets/fonts-ms.css Thu Nov 17 14:56:55 2011 +0000 @@ -9,3 +9,8 @@ font-family: Calibri, DroidSans, 'Liberation Sans', tahoma, verdana, sans-serif; line-height: 1.34; } + +.gs-title,.gs-snippet,.gs-visibleUrl,.gsc-cursor-page,.gsc-result-info,.gs-fileFormat,.gs-fileFormatType { + font-family: Calibri, DroidSans, 'Liberation Sans', tahoma, verdana, sans-serif; + line-height: 1.34; +}