}
}
-#sidebar {
- #sidebar_loader,
- .search_more {
- width: 100%;
- margin: $lineheight auto;
- }
-
- .loader {
- text-align: center;
- margin: auto;
- width: 40px;
- display: block;
- }
-}
-
/* Temporary label size override until we remove site-wide font customisation */
form {
.search_more .loader {
display: none;
- width: 100%;
}
}
.directions_form {
background-color: $lightgrey;
-
- .loader_copy {
- display: none;
-
- img {
- vertical-align: middle;
- }
- }
}
/* Rules for user images */
<div id="query-nearby" class="query-results">
<h3><%= t(".nearby") %></h3>
- <%= image_tag "searching.gif", :class => "loader" %>
+ <div class="text-center loader">
+ <div class="spinner-border" role="status">
+ <span class="visually-hidden"><%= t("browse.start_rjs.loading") %></span>
+ </div>
+ </div>
<div class="mx-n3">
<ul class="query-results-list list-group list-group-flush"></ul>
</div>
<div id="query-isin" class="query-results">
<h3><%= t(".enclosing") %></h3>
- <%= image_tag "searching.gif", :class => "loader" %>
+ <div class="text-center loader">
+ <div class="spinner-border" role="status">
+ <span class="visually-hidden"><%= t("browse.start_rjs.loading") %></span>
+ </div>
+ </div>
<div class="mx-n3">
<ul class="query-results-list list-group list-group-flush"></ul>
</div>
<%= render "sidebar_header", :title => @heading %>
<div class="changesets mx-n3">
- <%= image_tag "searching.gif", :class => "loader" %>
+ <div class="text-center loader">
+ <div class="spinner-border" role="status">
+ <span class="visually-hidden"><%= t("browse.start_rjs.loading") %></span>
+ </div>
+ </div>
</div>
<% if @changesets.size == 20 -%>
<div class="changeset_more mt-3 text-center">
<%= link_to t(".load_more"), url_for(@params.merge(:max_id => @changesets.last.id - 1)), :class => "btn btn-primary" %>
- <div class="loader"><%= image_tag "searching.gif" %></div>
+ <div class="text-center loader">
+ <div class="spinner-border" role="status">
+ <span class="visually-hidden"><%= t("browse.start_rjs.loading") %></span>
+ </div>
+ </div>
</div>
<% end -%>
<% elsif params[:bbox] %>
<% end %>
</ul>
<% if @more_params %>
- <div class="search_more text-center">
+ <div class="search_more text-center my-3">
<%= link_to t(".more_results"), url_for(@more_params), :class => "btn btn-primary" %>
- <div class="loader"><%= image_tag "searching.gif" %></div>
+ <div class="text-center loader">
+ <div class="spinner-border" role="status">
+ <span class="visually-hidden"><%= t("browse.start_rjs.loading") %></span>
+ </div>
+ </div>
</div>
<% end %>
<% end %>
<% @sources.each do |source| %>
<h4><%= t(".title.#{source}_html") %></h4>
<div class="search_results_entry mx-n3" data-href="<%= url_for @params.merge(:action => "search_#{source}") %>">
- <%= image_tag "searching.gif", :class => "loader" %>
+ <div class="text-center loader">
+ <div class="spinner-border" role="status">
+ <span class="visually-hidden"><%= t("browse.start_rjs.loading") %></span>
+ </div>
+ </div>
</div>
<% end %>
</div>
</div>
- <div class="loader_copy"><div class="loader"><%= image_tag "searching.gif" %></div></div>
+ <div class="loader_copy d-none">
+ <div class="text-center loader">
+ <div class="spinner-border" role="status">
+ <span class="visually-hidden"><%= t("browse.start_rjs.loading") %></span>
+ </div>
+ </div>
+ </div>
</form>
</div>
<div id="browse_status"></div>
- <div id="sidebar_loader">
- <img alt="<%= t("browse.start_rjs.loading") %>" class="loader" src="<%= image_path("searching.gif") %>">
+ <div id="sidebar_loader" class="my-3 text-center loader">
+ <div class="spinner-border" role="status">
+ <span class="visually-hidden"><%= t("browse.start_rjs.loading") %></span>
+ </div>
</div>
<div id="sidebar_content">