Skip to content

Commit

Permalink
Merge pull request #215 from alphagov/remove-patterns-css-file
Browse files Browse the repository at this point in the history
Remove patterns css file
  • Loading branch information
joelanman authored Jun 10, 2016
2 parents 7f6adcf + da73ce4 commit 4d476b4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 27 deletions.
20 changes: 3 additions & 17 deletions app/assets/sass/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,9 @@
// Take a look in /govuk-modules/_govuk-elements.scss to see which files are imported.
@import 'govuk-elements';

// Take a look at patterns.scss to see which files are imported.
@import 'patterns';

// If you need to create a page as part of your journey, but without GOV.UK branding
// See localhost:3000/examples/unbranded/
.unbranded {
background: $white;
// Use the universal selector and !important to *ALWAYS OVERRIDE* GDS Transport
* {
font-family: Arial !important;
}
// Remove GOV.UK footer styles
#footer {
border: 0;
background: $white;
}
}
// Take a look at in app/assets/sass/patterns/ to see which files are imported.
@import 'patterns/check-your-answers';
@import 'patterns/unbranded';

// Related items
// (These styles will be moved to GOV.UK elements, duplicating here for now.)
Expand Down
10 changes: 0 additions & 10 deletions app/assets/sass/patterns.scss

This file was deleted.

21 changes: 21 additions & 0 deletions app/assets/sass/patterns/_unbranded.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// If you need to create a page as part of your journey, but without GOV.UK branding
// See localhost:3000/examples/unbranded/

// Override the govuk_frontend_toolkit's font stack
// https://github.com/alphagov/govuk_frontend_toolkit/blob/master/stylesheets/_font_stack.scss#L13
$toolkit-font-stack: $Helvetica-Regular;

.unbranded {
background: $white;

// Use the universal selector and !important to *ALWAYS OVERRIDE* GDS Transport
* {
font-family: $toolkit-font-stack !important;
}

// Remove GOV.UK footer styles
#footer {
border: 0;
background: $white;
}
}

0 comments on commit 4d476b4

Please sign in to comment.