Skip to content

Commit

Permalink
Merge pull request #30 from alphagov/visual-tweaks
Browse files Browse the repository at this point in the history
Assorted visual & content tweaks
  • Loading branch information
csutter authored Dec 1, 2023
2 parents 1e4e51a + 823d21e commit e18c410
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app/assets/stylesheets/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@

.search-results__parts {
margin: govuk-spacing(2) 0 0 0;
padding: govuk-spacing(1);
padding: govuk-spacing(2);
border-radius: govuk-spacing(1);

background-color: govuk-colour("blue");
color: govuk-colour("white");
background-color: govuk-colour("light-grey");
}

.search-results__metadata {
Expand All @@ -81,7 +80,6 @@

.search-results__metadata-item--content-type {
font-weight: bold;
color: govuk-colour("black");
}

.search-results__ranking {
Expand Down
2 changes: 1 addition & 1 deletion app/views/searches/_result.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<%= result.document_type %>
</span>
<span class="search-results__metadata-item">
Updated <%= result.public_timestamp.strftime("%e %b %Y") %> (<%= time_ago_in_words result.public_timestamp %> ago)
Public timestamp: <%= result.public_timestamp.strftime("%e %b %Y") %> (<%= time_ago_in_words result.public_timestamp %> ago)
</span>
</div>
<% end %>
Expand Down

0 comments on commit e18c410

Please sign in to comment.