-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(examples): update example css to reflect real-life usage (#1064)
* docs(examples): update example css to reflect real-life usage The code in our examples was using application.css, which is a sass compiled file including all of govuk frontend, moj-frontend and all the custom styles for the docs site. This could cause potential issues where our own css could affect components. This commit refactors things such that the example layout includes compiled govuk-frontend and (separately) compiled moj-frontend and none of the docs site css. This ensure we are presenting (and testing) components in a more isolated way with no danger of style leakage. * docs(examples): disable govuk global styles
- Loading branch information
Showing
4 changed files
with
24 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$govuk-page-width: 1220px !default; | ||
$govuk-assets-path: "../" !default; | ||
$govuk-global-styles: false; | ||
|
||
// GOV.UK Frontend | ||
@import "node_modules/govuk-frontend/dist/govuk/all"; | ||
|
||
|
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,6 @@ | ||
$moj-page-width: 1220px !default; | ||
$moj-assets-path: "../" !default; | ||
|
||
// MOJ Frontend | ||
@import "src/moj/all"; | ||
|
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