Skip to content

Commit

Permalink
Improve styling of search_sidebar_list headings
Browse files Browse the repository at this point in the history
Contain the heading within the element `<div>` and reduce the margin so
they're a bit tighter together, which works better in the context.
  • Loading branch information
garethrees committed Nov 9, 2023
1 parent 8420bd9 commit e879970
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions app/assets/stylesheets/responsive/_search_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,10 @@ input.use-datepicker[type=text] {
}
}
}

.search_latest,
.help_requests {
h2 {
margin-top: 1.5em !important;
}
}
2 changes: 2 additions & 0 deletions app/views/general/_help_requests.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<div class="help_requests">
<h2><%= _('Help Out') %></h2>

<ul class="search_sidebar_list">
<li class="search_sidebar_list__item">
<%= link_to _('Classify requests'), categorise_play_path %>
Expand Down
2 changes: 2 additions & 0 deletions app/views/general/_search_latest.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<div class="search_latest">
<h2><%= _('Latest') %></h2>

<ul class="search_sidebar_list">
<li class="search_sidebar_list__item">
<%= link_to _('Browse latest responses'), search_requests_path('variety:response') %>
Expand Down
3 changes: 0 additions & 3 deletions app/views/request/list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
<%= render :partial => 'track/rss_feed', :locals => { :track_thing => @track_thing, :location => 'main' } %>
<% end %>

<h2><%= _('Latest') %></h2>
<%= render partial: 'general/search_latest' %>

<h2><%= _('Help Out') %></h2>
<%= render partial: 'general/help_requests' %>
</div>

Expand Down

0 comments on commit e879970

Please sign in to comment.