Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase spacing on mobile for homepage #3801

Merged
merged 1 commit into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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