Skip to content

Commit

Permalink
Merge pull request #3801 from alphagov/increase-spacing-mobile-new-ho…
Browse files Browse the repository at this point in the history
…mepage

Increase spacing on mobile for homepage
  • Loading branch information
MartinJJones authored Oct 13, 2023
2 parents bad755b + edd4439 commit cbce3bd
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/assets/stylesheets/views/_homepage_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ $pale-blue-colour: #d2e2f1;
padding-top: govuk-spacing(4);
@include govuk-typography-common;

// Add 9px of padding to the left and right on mobile screen sizes
// This gives a total size of 24px (9px padding + 15px margin)
@include govuk-media-query($until: "tablet") {
padding-left: 9px;
padding-right: 9px;
}

@include govuk-media-query($from: desktop) {
padding-bottom: govuk-spacing(8);
padding-top: govuk-spacing(6);
Expand Down
28 changes: 28 additions & 0 deletions app/assets/stylesheets/views/_homepage_new.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@
.homepage-section--promotion-slots {
padding: 26px 0 govuk-spacing(4);

// Add 9px of padding to the left and right on mobile screen sizes
// This gives a total size of 24px (9px padding + 15px margin)
@include govuk-media-query($until: "tablet") {
padding-left: 9px;
padding-right: 9px;
}

@include govuk-media-query($from: "desktop") {
padding: govuk-spacing(9) 0;
}
Expand Down Expand Up @@ -159,6 +166,13 @@
.homepage-section--services-and-info {
padding: govuk-spacing(8) 0 0;

// Add 9px of padding to the left and right on mobile screen sizes
// This gives a total size of 24px (9px padding + 15px margin)
@include govuk-media-query($until: "tablet") {
padding-left: 9px;
padding-right: 9px;
}

@include govuk-media-query($from: "desktop") {
padding: govuk-spacing(9) govuk-spacing(4) govuk-spacing(9) 0;
}
Expand Down Expand Up @@ -193,6 +207,13 @@
.homepage-section__government-activity {
padding: 0 0 24px;

// Add 9px of padding to the left and right on mobile screen sizes
// This gives a total size of 24px (9px padding + 15px margin)
@include govuk-media-query($until: "tablet") {
padding-left: 9px;
padding-right: 9px;
}

@include govuk-media-query($from: "desktop") {
padding-top: govuk-spacing(9);
padding-right: govuk-spacing(4);
Expand All @@ -202,6 +223,13 @@
.homepage-section__more-on-govuk {
padding: 0 0 govuk-spacing(8);

// Add 9px of padding to the left and right on mobile screen sizes
// This gives a total size of 24px (9px padding + 15px margin)
@include govuk-media-query($until: "tablet") {
padding-left: 9px;
padding-right: 9px;
}

@include govuk-media-query($from: "desktop") {
padding: govuk-spacing(9) 0;
}
Expand Down
7 changes: 7 additions & 0 deletions app/assets/stylesheets/views/_popular_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
background: govuk-colour("white");
padding: govuk-spacing(8) 0 0;

// Add 9px of padding to the left and right on mobile screen sizes
// This gives a total size of 24px (9px padding + 15px margin)
@include govuk-media-query($until: "tablet") {
padding-left: 9px;
padding-right: 9px;
}

@include govuk-media-query($from: "desktop") {
padding: govuk-spacing(9) 0 28px;
}
Expand Down

0 comments on commit cbce3bd

Please sign in to comment.