Skip to content

Commit

Permalink
Merge pull request #1749 from alphagov/document-class-name-structure
Browse files Browse the repository at this point in the history
Add note about override naming for media queries
  • Loading branch information
NickColley authored Feb 27, 2020
2 parents 51f0112 + 4491011 commit 7154fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/govuk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ and override all other layers. Rules in this layer will generally be marked as
Class names within this layer use an additional prefix `-!-`, for example
`.govuk-!-font-width-regular`.


If a class only overrides when a condition is met, the condition will be at the end of the class name. For example `.govuk-!-display-none-print` will only override with `display: none` in a print layout.

[ITCSS]: (http://www.creativebloq.com/web-design/manage-large-css-projects-itcss-101517528)

0 comments on commit 7154fe4

Please sign in to comment.