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: 20 additions & 6 deletions packages/core/objects/_main-wrapper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,34 @@
* so it uses CSS initial value, which is inline.
*/

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

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

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

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

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

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

@include govuk-exports("govuk/objects/main-wrapper") {
Expand Down
Loading