From: Tom Hughes Date: Wed, 16 May 2018 19:27:35 +0000 (+0100) Subject: Remove some inline styles X-Git-Tag: live~3056 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/fdd4361d5b70382000d209c768d721b91b14e535 Remove some inline styles --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 313d6c94b..eb7cbf845 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1028,7 +1028,7 @@ header .search_forms, /* Rules for search sidebar */ -.search_results_entry { +#sidebar .search_results_entry { ul li { border-bottom: $keyline; cursor: pointer; @@ -1036,12 +1036,9 @@ header .search_forms, &.selected { background: $list-highlight; } } - .search_details { - display: block; - float: right; - text-align: right; - margin-top: 0.2em; - margin-left: 0.5em; + .search_more .loader { + display: none; + width: 100%; } } @@ -1131,6 +1128,11 @@ tr.turn:hover { .comments-0 { opacity: 0.5; } + + .changeset_more .loader { + display: none; + width: 100%; + } } /* Rules for the browse sidebar */ diff --git a/app/views/changeset/list.html.erb b/app/views/changeset/list.html.erb index 8dcc121c5..cedd3e83a 100644 --- a/app/views/changeset/list.html.erb +++ b/app/views/changeset/list.html.erb @@ -5,7 +5,7 @@ <% if @edits.size == 20 -%>
<%= link_to t('.load_more'), url_for(@params.merge(:max_id => @edits.last.id - 1)), :class => "button load_more" %> - <%= image_tag "searching.gif", :class => "loader", :style => "display: none;" %> +
<%= image_tag "searching.gif" %>
<% end -%> <% elsif params[:bbox] %> diff --git a/app/views/geocoder/results.html.erb b/app/views/geocoder/results.html.erb index 052b8822e..5ee241375 100644 --- a/app/views/geocoder/results.html.erb +++ b/app/views/geocoder/results.html.erb @@ -9,7 +9,7 @@ <% if @more_params %>
<%= link_to t('.more_results'), url_for(@more_params), :class => "button load_more" %> - <%= image_tag "searching.gif", :class => "loader", :style => "display: none;" %> +
<%= image_tag "searching.gif" %>
<% end %> <% end %>