Skip to content

Commit

Permalink
Fix spacing issuing on popular links
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinJJones committed Sep 22, 2023
1 parent 42ccdc7 commit a7477d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/assets/stylesheets/views/_homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,13 @@

display: grid;
grid-auto-flow: row; // Use CSS grid to calculate the number of rows
grid-auto-rows: fractions(1); // Set all rows to same fractional height of the complete grid
grid-template-columns: fractions(1);

@include govuk-media-query($from: "desktop") {
// Note that browsers that don't support CSS grid display the component as one column on all
// breakpoints
grid-template-columns: fractions(3);
grid-auto-rows: fractions(1); // Set all rows to same fractional height of the complete grid

// For browsers that don't support CSS grid, constrain the width to 50% to improve usability
// especially for screen magnifier users
Expand All @@ -289,6 +289,9 @@
// internal margins.
margin: 0 govuk-spacing(3);
padding: 0 govuk-spacing(4) govuk-spacing(4) 0;
&:last-of-type {
padding-bottom: 0;
}
}

.homepage-most-viewed-list__item-link {
Expand Down

0 comments on commit a7477d4

Please sign in to comment.