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

Copy base styles from govuk template #131

Merged
merged 8 commits into from
Dec 4, 2015

Conversation

gemmaleigh
Copy link
Contributor

For users who want to use govuk_frontend_toolkit and govuk_elements, to make use of GOV.UK design patterns.

govuk_elements has the govuk_template and govuk_frontend_toolkit as dependencies.

To use govuk_elements without the govuk_template, any base styles (which are currently set by the template) are copied to the new partial _base.scss.

Ideally, this file would use Normalize.css as its starting point, which can then be customised to meet the design's requirements.

cc. @fofr, @robinwhittleton.

Remove any styles which relate to the govuk  template header, if not
using the govuk_template - these won’t be required.
Remove helper classes which are used only by the govuk_template:
.group (clearfix)
.content-fixed and .shim
.ir (for image replacement)
.invisible
.skiplink
- Move helper class .hidden to the helpers partial
- Remove .visuallyhidden from the base partial as this already exists
in elements/helpers
- Group styles for focus, links and external links
- Group all rules defined for html and body elements
- Use Sass comment format
If the govuk_template isn’t being used - there isn’t by default a
search box in the header.

Remove these styles as they should only be set once, in normalize.css,
as if required.
Ensure the partial is commented out, as these styles are already set by
govuk_template - there’s no need to duplicate in govuk_elements.
@robinwhittleton
Copy link
Contributor

LGTM

robinwhittleton added a commit that referenced this pull request Dec 4, 2015
…plate

Copy base styles from govuk template
@robinwhittleton robinwhittleton merged commit a860e4d into master Dec 4, 2015
@robinwhittleton robinwhittleton deleted the copy-base-styles-from-govuk-template branch December 4, 2015 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants