Skip to content

Commit

Permalink
Increase spacing on mobile for homepage
Browse files Browse the repository at this point in the history
For the new homepage design, the total space on the left and right of the content should be `24px` for mobile, increasing it from `15px`.
  • Loading branch information
MartinJJones committed Oct 12, 2023
1 parent 72600d8 commit bc071b5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
8 changes: 6 additions & 2 deletions app/assets/stylesheets/views/_homepage_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ $pale-blue-colour: #d2e2f1;

.homepage-header {
background-color: $govuk-brand-colour;
padding-bottom: govuk-spacing(7);
padding-top: govuk-spacing(4);
padding: govuk-spacing(4) 9px govuk-spacing(7);
@include govuk-typography-common;

@include govuk-media-query($from: tablet) {
padding-left: 0;
padding-right: 0;
}

@include govuk-media-query($from: desktop) {
padding-bottom: govuk-spacing(8);
padding-top: govuk-spacing(6);
Expand Down
28 changes: 24 additions & 4 deletions app/assets/stylesheets/views/_homepage_new.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@
}

.homepage-section--promotion-slots {
padding: 26px 0 govuk-spacing(4);
padding: 26px 9px govuk-spacing(4);

@include govuk-media-query($from: "tablet") {
padding-left: 0;
padding-right: 0;
}

@include govuk-media-query($from: "desktop") {
padding: govuk-spacing(9) 0;
Expand Down Expand Up @@ -157,7 +162,12 @@
}

.homepage-section--services-and-info {
padding: govuk-spacing(8) 0 0;
padding: govuk-spacing(8) 9px 0;

@include govuk-media-query($from: tablet) {
padding-left: 0;
padding-right: 0;
}

@include govuk-media-query($from: "desktop") {
padding: govuk-spacing(9) govuk-spacing(4) govuk-spacing(9) 0;
Expand Down Expand Up @@ -191,7 +201,12 @@
}

.homepage-section__government-activity {
padding: 0 0 24px;
padding: 0 9px 24px;

@include govuk-media-query($from: "tablet") {
padding-left: 0;
padding-right: 0;
}

@include govuk-media-query($from: "desktop") {
padding-top: govuk-spacing(9);
Expand All @@ -200,7 +215,12 @@
}

.homepage-section__more-on-govuk {
padding: 0 0 govuk-spacing(8);
padding: 0 9px govuk-spacing(8);

@include govuk-media-query($from: "tablet") {
padding-left: 0;
padding-right: 0;
}

@include govuk-media-query($from: "desktop") {
padding: govuk-spacing(9) 0;
Expand Down
7 changes: 6 additions & 1 deletion app/assets/stylesheets/views/_popular_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@

.homepage-section__popular-links {
background: govuk-colour("white");
padding: govuk-spacing(8) 0 0;
padding: govuk-spacing(8) 9px 0;

@include govuk-media-query($from: "tablet") {
padding-left: 0;
padding-right: 0;
}

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

0 comments on commit bc071b5

Please sign in to comment.