-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to use the responsive spacing mixin and add a large variant for use when the page does not contain back links or breadcrumbs
- Loading branch information
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,37 @@ | ||
// Example usage: | ||
// Example usage with Breadcrumbs, phase banners, back links: | ||
// <div class="govuk-o-width-container"> | ||
// <!-- Breadcrumbs, phase banners, back links are placed in here. --> | ||
// <div class="govuk-o-main-wrapper"> | ||
// <!-- Wrapper for the main content of your page which applies padding | ||
// to the top / bottom --> | ||
// </div> | ||
// </div> | ||
// | ||
// Example usage without Breadcrumbs, phase banners, back links: | ||
// <div class="govuk-o-width-container"> | ||
// <div class="govuk-main-wrapper govuk-o-main-wrapper--l"> | ||
// <!-- Wrapper for the main content of your page which applies padding | ||
// to the top / bottom --> | ||
// </div> | ||
// </div> | ||
|
||
|
||
@mixin govuk-main-wrapper { | ||
padding: $govuk-spacing-scale-3 0; | ||
@include govuk-responsive-padding($govuk-spacing-responsive-6, "top"); | ||
@include govuk-responsive-padding($govuk-spacing-responsive-6, "bottom"); | ||
} | ||
|
||
@include mq($from: tablet) { | ||
padding: $govuk-spacing-scale-6 0; | ||
} | ||
// Use govuk-main-wrapper--l when you page does not have Breadcrumbs, phase banners or back links | ||
@mixin govuk-main-wrapper--l { | ||
@include govuk-responsive-padding($govuk-spacing-responsive-8, "top"); | ||
} | ||
|
||
@include govuk-exports("main-wrapper") { | ||
.govuk-o-main-wrapper { | ||
@include govuk-main-wrapper; | ||
} | ||
|
||
.govuk-o-main-wrapper--l { | ||
@include govuk-main-wrapper--l; | ||
} | ||
} |