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

Reduce the padding on main wrapper on mobile #1003

Merged
merged 9 commits into from
Sep 10, 2024
26 changes: 21 additions & 5 deletions packages/core/objects/_main-wrapper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,44 @@
*/

@mixin govuk-main-wrapper {
@include nhsuk-responsive-padding(7, "top");
@include nhsuk-responsive-padding(7, "bottom");
@include top-and-bottom();
display: block; /* [1] */
padding-top: nhsuk-spacing(4);
padding-bottom: nhsuk-spacing(4);

@include mq($from: tablet) {
padding-top: nhsuk-spacing(7);
padding-bottom: nhsuk-spacing(7);
}
}

@mixin govuk-main-wrapper--l {
@include nhsuk-responsive-padding(8, "top");
padding-top: nhsuk-spacing(6);

@include mq($from: tablet) {
padding-top: nhsuk-spacing(8);
}
}

@mixin govuk-main-wrapper--s {
@include nhsuk-responsive-padding(5, "bottom");
@include nhsuk-responsive-padding(5, "top");
padding-top: nhsuk-spacing(3);
padding-bottom: nhsuk-spacing(3);

@include mq($from: tablet) {
padding-top: nhsuk-spacing(4);
padding-bottom: nhsuk-spacing(4);
}
}

@include govuk-exports("govuk/objects/main-wrapper") {
.nhsuk-main-wrapper {
@include govuk-main-wrapper;
}

.nhsuk-main-wrapper--l {
@include govuk-main-wrapper--l;
}

.nhsuk-main-wrapper--s {
@include govuk-main-wrapper--s;
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading