-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use consistent naming for container and wrapper
- Rename `side-width-container` to `width-container`, `content` to `main-wrapper` - Move gutter and site width definitions to settings - Update app to use new class names
- Loading branch information
Showing
13 changed files
with
188 additions
and
186 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Example usage: | ||
// <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> | ||
|
||
@mixin govuk-main-wrapper { | ||
padding: $govuk-spacing-scale-3 0; | ||
|
||
@include mq($from: tablet) { | ||
padding: $govuk-spacing-scale-6 0; | ||
} | ||
} | ||
|
||
@include exports("main-wrapper") { | ||
.govuk-o-main-wrapper { | ||
@include govuk-main-wrapper; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@mixin govuk-width-container { | ||
// Limit the width of the container to the page width | ||
max-width: $govuk-page-width; | ||
|
||
@include ie-lte(8) { | ||
width: $govuk-page-width; | ||
} | ||
|
||
// On mobile, add half width gutters | ||
margin: 0 $govuk-gutter-half; | ||
|
||
// On tablet, add full width gutters | ||
@include mq($from: tablet) { | ||
margin: 0 $govuk-gutter; | ||
} | ||
|
||
// As soon as the viewport is greater than the width of the page plus the | ||
// gutters, just centre the content instead of adding gutters. | ||
@include mq($and: "(min-width: #{($govuk-page-width + $govuk-gutter * 2)})") { | ||
margin: 0 auto; | ||
} | ||
} | ||
|
||
@include exports("width-container") { | ||
.govuk-o-width-container { | ||
@include govuk-width-container; | ||
} | ||
} |
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
Oops, something went wrong.