Fix icons and styles on search results

pull/3994/head
Magdalena Kafka 9 years ago
parent 9407d24aa3
commit 60a6d1cff3
  1. 29
      app/assets/stylesheets/_misc_legacy.sass
  2. 2
      app/assets/stylesheets/content/_news.sass
  3. 4
      app/views/search/index.html.erb

@ -125,27 +125,22 @@ div
margin-top: 0
margin-bottom: 1em
div#activity span.project:after, #search-results span.project:after
content: " -"
#search-results
margin-left: 2em
#search-results dd
margin-bottom: 1em
padding-left: 18px
font-size: 0.9em
#search-results dd .description
font-style: italic
div#activity span.project:after, #search-results span.project:after
content: " -"
dd
margin-bottom: 1em
padding-left: 30px
margin-left: 0
font-size: 0.9em
#search-results dd
span.description
display: block
color: #808080
margin-bottom: 1em
padding-left: 20px
margin-left: 0
span.description
display: block
color: #808080
font-style: italic
div#search-results-counts
float: right

@ -27,8 +27,6 @@
//++
.news
margin-bottom: 30px
&.box > p
margin-top: -15px

@ -87,7 +87,9 @@ See doc/COPYRIGHT.rdoc for more details.
<dl id="search-results">
<% @results.each do |e| %>
<dt class="<%= e.event_type %>">
<%= icon_wrapper("icon-context icon-#{e.event_type}", e.event_name) %>
<% event_type = e.event_type == 'meeting' ? 'meetings' : e.event_type %>
<% event_type = e.event_type == 'cost_object' ? 'budget' : event_type %>
<%= icon_wrapper("icon-context icon-#{event_type}", e.event_name) %>
<% if e.project != @project %>
<span class="project"><%= e.project %></span>
<% end %>

Loading…
Cancel
Save