]> git.openstreetmap.org Git - rails.git/commitdiff
Remove some inline styles
authorTom Hughes <tom@compton.nu>
Wed, 16 May 2018 19:27:35 +0000 (20:27 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 16 May 2018 19:27:35 +0000 (20:27 +0100)
app/assets/stylesheets/common.scss
app/views/changeset/list.html.erb
app/views/geocoder/results.html.erb

index 313d6c94b171a5e8bdb0c00aa00fd313228f8859..eb7cbf84545d7053271448bf4ff364e20ef0b2bb 100644 (file)
@@ -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 */
index 8dcc121c52c7fee8450359d71a942e280026ad66..cedd3e83aa4d4e75f1f32641e730122b0e6b2aad 100644 (file)
@@ -5,7 +5,7 @@
 <% if @edits.size == 20 -%>
   <div class="changeset_more">
     <%= 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;" %>
+    <div class="loader"><%= image_tag "searching.gif" %></div>
   </div>
 <% end -%>
 <% elsif params[:bbox] %>
index 052b8822e1326797209fcbee5c3bd3dea19dcbc0..5ee241375c7826f0ae2dea72861027655e5728a4 100644 (file)
@@ -9,7 +9,7 @@
   <% if @more_params %>
     <div class="search_more">
       <%= link_to t('.more_results'), url_for(@more_params), :class => "button load_more" %>
-      <%= image_tag "searching.gif", :class => "loader", :style => "display: none;" %>
+      <div class="loader"><%= image_tag "searching.gif" %></div>
     </div>
   <% end %>
 <% end %>