diff --git a/src/stylesheets/typography/_global.scss b/src/stylesheets/typography/_global.scss index 2e4661967..94b1e7742 100644 --- a/src/stylesheets/typography/_global.scss +++ b/src/stylesheets/typography/_global.scss @@ -48,7 +48,7 @@ a { } } -p { +p, .p { @include nice-font($scale: 0, $line-height: 1.6); font-feature-settings: 'kern', 'onum', 'liga'; } diff --git a/src/stylesheets/typography/_headings.scss b/src/stylesheets/typography/_headings.scss index 77d7e231f..7f183fcf7 100644 --- a/src/stylesheets/typography/_headings.scss +++ b/src/stylesheets/typography/_headings.scss @@ -8,9 +8,42 @@ h3, h4, h5, h6 { + clear: both; margin: 0; } +.heading { + clear: both; + + &--primary { + @include h1; + } + + &--secondary { + @include h2; + } + + &--tertiary { + @include h3; + } + + &--quaternary { + @include h4; + } + + &--quinary { + @include h5; + } + + &--senary { + @include h6; + } + + &--separator { + border-bottom: 1px solid get-colour(grey); + } +} + h1, .h1 { @include h1; diff --git a/web/client/stylesheets/components/_swatch.scss b/web/client/stylesheets/components/_swatch.scss new file mode 100644 index 000000000..244fd2118 --- /dev/null +++ b/web/client/stylesheets/components/_swatch.scss @@ -0,0 +1,26 @@ +.swatch { + border-radius: 999px; + display: block; + float: left; + height: 100px; + line-height: 100px; + margin: 0 8px 8px; + text-align: center; + width: 100px; + + @each $name, $palette in $palettes { + + @each $key, $hex in $palette { + &--#{$name}-#{$key} { + background: $hex; + + &:after { + color: invert($hex); + content: '#{$hex}'; + // TODO: Change colour based on hex + } + } + } + } + +} diff --git a/web/client/stylesheets/main.scss b/web/client/stylesheets/main.scss index 1044c53d7..64af4734d 100644 --- a/web/client/stylesheets/main.scss +++ b/web/client/stylesheets/main.scss @@ -5,5 +5,6 @@ // Components @import 'components/example'; +@import 'components/swatch'; // Other diff --git a/web/server/views/404.njk b/web/server/views/404.njk index 2d925851c..f9366cb68 100644 --- a/web/server/views/404.njk +++ b/web/server/views/404.njk @@ -3,8 +3,10 @@ {% block body %} -
Sorry, that page could not be found
+Sorry, that page could not be found
++ {{ description }} +
+The foundations and patterns that are to be used for faster product development.
Further patterns
+ +We use SASS as our CSS pre-processor
+ ++ Syntax and formatting +
++ Variable naming and BEM convention +
+- It's a modern replacement for NICE.Bootstrap and NICE.UI with improved tooling and documentation, allowing consistent and rapid prototyping for NICE online services and web applications. + Grid unit proportions, gutters and spacing.
- We haven't re-invented the wheel. - We've used our experience and borrowed & adapted the best bits from Bootstrap and GOV.UK's Front End Toolkit & Elements. + Colour contrast, Sass variables, colour palettes.
- We've made it easy to extend and add to, and equally easy to integrate it into your application. + Colour contrast, Sass variables, colour palettes.
- Get started<a>
, <button>
or <input>
+ + +
+ {%- endexample %} +This guide shows how to make your service look consistent with the rest of NICE.
- -- Grid unit proportions, gutters and spacing. -
-- Headings, body text, links, lists, inset text, hidden text. -
-- Colour contrast, Sass variables, colour palettes. -
-