Skip to content

Commit

Permalink
Adjust spacing for taxons breacrumbs and inverted header
Browse files Browse the repository at this point in the history
We essentially want to move from setting the padding and margin at the top of the inverted header (where it now comes between the breadcrumbs and the inverted header) to setting it at the top of the breacrumbs instead.
  • Loading branch information
hannalaakso committed Jun 11, 2024
1 parent 9618ca9 commit 75071c5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 9 additions & 0 deletions app/assets/stylesheets/views/_taxons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
}
}

.taxon-page__breadcrumbs-wrapper {
background-color: govuk-colour("blue");
padding: govuk-spacing(3) 0 govuk-spacing(4);

@include govuk-media-query($from: tablet) {
padding-bottom: govuk-spacing(8);
}
}

.taxon-page__email-link-wrapper {
background-color: govuk-colour("light-grey");
margin-top: -(govuk-spacing(6));
Expand Down
9 changes: 6 additions & 3 deletions app/views/taxons/_page_header.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<%= render "govuk_publishing_components/components/inverse_header", { full_width: true } do %>
<%= render "govuk_publishing_components/components/inverse_header", {
full_width: true,
padding_top: false
} do %>
<div class="govuk-width-container">

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/title", {
title: presented_taxon.title,
average_title_length: 'long',
inverse: true
inverse: true,
margin_top: 0
} %>
<%= render 'govuk_publishing_components/components/lead_paragraph', {
Expand Down

0 comments on commit 75071c5

Please sign in to comment.