design_system 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/components/_index.scss +36 -20
  3. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/action-link/_action-link.scss +3 -0
  4. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/action-link/_index.scss +84 -0
  5. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/back-link/_back-link.scss +3 -0
  6. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/back-link/_index.scss +56 -0
  7. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/breadcrumb/_breadcrumb.scss +3 -0
  8. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/breadcrumb/_index.scss +103 -0
  9. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/button/_button.scss +3 -0
  10. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/button/_index.scss +207 -0
  11. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/card/_card.scss +3 -0
  12. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/card/_index.scss +526 -0
  13. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/character-count/_character-count.scss +3 -0
  14. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/character-count/_index.scss +54 -0
  15. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/checkboxes/_checkboxes.scss +3 -0
  16. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/checkboxes/_index.scss +337 -0
  17. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/contents-list/_contents-list.scss +3 -0
  18. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/contents-list/_index.scss +32 -0
  19. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/date-input/_date-input.scss +3 -0
  20. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/date-input/_index.scss +40 -0
  21. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/details/_details.scss +3 -0
  22. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/details/_index.scss +374 -0
  23. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/do-dont-list/_do-dont-list.scss +3 -0
  24. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/do-dont-list/_index.scss +37 -0
  25. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-message/_error-message.scss +3 -0
  26. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-message/_index.scss +22 -0
  27. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-summary/_error-summary.scss +3 -0
  28. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-summary/_index.scss +75 -0
  29. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/fieldset/_fieldset.scss +3 -0
  30. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/fieldset/_index.scss +81 -0
  31. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/file-upload/_file-upload.scss +3 -0
  32. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/file-upload/_index.scss +251 -0
  33. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/footer/_footer.scss +3 -0
  34. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/footer/_index.scss +64 -0
  35. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/header/_header.scss +3 -0
  36. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/header/_index.scss +783 -0
  37. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hero/_hero.scss +3 -0
  38. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hero/_index.scss +205 -0
  39. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hint/_hint.scss +3 -0
  40. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hint/_index.scss +53 -0
  41. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/images/_images.scss +3 -0
  42. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/images/_index.scss +53 -0
  43. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/input/_index.scss +184 -0
  44. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/input/_input.scss +3 -0
  45. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/inset-text/_index.scss +34 -0
  46. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/inset-text/_inset-text.scss +3 -0
  47. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/label/_index.scss +53 -0
  48. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/label/_label.scss +3 -0
  49. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/notification-banner/_index.scss +100 -0
  50. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/notification-banner/_notification-banner.scss +3 -0
  51. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/pagination/_index.scss +261 -0
  52. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/pagination/_pagination.scss +3 -0
  53. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/panel/_index.scss +99 -0
  54. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/panel/_panel.scss +3 -0
  55. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/password-input/_index.scss +37 -0
  56. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/password-input/_password-input.scss +3 -0
  57. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/radios/_index.scss +354 -0
  58. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/radios/_radios.scss +3 -0
  59. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/select/_index.scss +63 -0
  60. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/select/_select.scss +3 -0
  61. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/skip-link/_index.scss +48 -0
  62. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/skip-link/_skip-link.scss +3 -0
  63. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/summary-list/_index.scss +215 -0
  64. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/summary-list/_summary-list.scss +3 -0
  65. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tables/_index.scss +205 -0
  66. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tables/_tables.scss +3 -0
  67. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tabs/_index.scss +138 -0
  68. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tabs/_tabs.scss +3 -0
  69. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tag/_index.scss +101 -0
  70. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tag/_tag.scss +3 -0
  71. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/task-list/_index.scss +111 -0
  72. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/task-list/_task-list.scss +3 -0
  73. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/textarea/_index.scss +52 -0
  74. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/textarea/_textarea.scss +3 -0
  75. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/warning-callout/_index.scss +22 -0
  76. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/warning-callout/_warning-callout.scss +3 -0
  77. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/_index.scss +4 -0
  78. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/_nhsuk-frontend-properties.scss +28 -0
  79. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/all.scss +3 -1
  80. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_forms.scss +4 -2
  81. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_index.scss +2 -0
  82. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_links.scss +3 -2
  83. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/elements/_page.scss +66 -0
  84. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_table.scss +6 -5
  85. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_box-sizing.scss +2 -4
  86. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_font-face.scss +29 -15
  87. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_index.scss +2 -0
  88. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/helpers/_colour.scss +106 -0
  89. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/helpers/_index.scss +7 -0
  90. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_button-group.scss +124 -0
  91. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_form-group.scss +47 -0
  92. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/objects/_grid.scss +5 -3
  93. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/objects/_index.scss +4 -0
  94. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_input-wrapper.scss +81 -0
  95. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_main-wrapper.scss +66 -0
  96. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_width-container.scss +98 -0
  97. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_all.scss +3 -1
  98. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_breakpoints.scss +35 -0
  99. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-applied.scss +326 -0
  100. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-deprecated.scss +116 -0
  101. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-palette.scss +41 -0
  102. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours.scss +12 -0
  103. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_globals.scss +214 -0
  104. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_index.scss +5 -1
  105. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_spacing.scss +3 -3
  106. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_typography.scss +15 -34
  107. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_warnings.scss +11 -5
  108. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/styles/_icons.scss +45 -0
  109. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_index.scss +2 -0
  110. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_lists.scss +15 -10
  111. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_section-break.scss +4 -2
  112. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_typography.scss +34 -39
  113. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_all.scss +3 -1
  114. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_buttons.scss +85 -0
  115. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_exports.scss +1 -11
  116. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_focused.scss +134 -0
  117. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_functions.scss +81 -0
  118. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_grid.scss +74 -0
  119. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_index.scss +5 -1
  120. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_links.scss +234 -0
  121. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_mixins.scss +168 -118
  122. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_sass-mq.scss +9 -11
  123. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_shape-arrow.scss +14 -20
  124. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_shape-chevron.scss +65 -0
  125. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_shape-dash.scss +31 -0
  126. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_spacing.scss +25 -14
  127. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_typography.scss +71 -25
  128. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_clearfix.scss +2 -0
  129. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_display.scss +2 -0
  130. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_float.scss +2 -0
  131. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_grid-widths.scss +19 -20
  132. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_index.scss +2 -0
  133. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_link-nowrap.scss +2 -0
  134. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_list-border.scss +6 -2
  135. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_reading-width.scss +2 -0
  136. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_spacing.scss +6 -0
  137. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_text-align.scss +2 -0
  138. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/utilities/_typography.scss +52 -0
  139. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_visually-hidden.scss +2 -0
  140. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_widths.scss +2 -0
  141. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/vendor/sass-mq.scss +4 -2
  142. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/index.scss +4 -0
  143. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/nhsuk.scss +3 -0
  144. data/app/assets/stylesheets/design_system/nhsuk.scss +2 -2
  145. data/app/helpers/design_system_helper.rb +8 -4
  146. data/app/views/layouts/govuk/application.html.erb +1 -0
  147. data/app/views/layouts/nhsuk/application.html.erb +52 -59
  148. data/app/views/nhsuk/_navigation.html.erb +9 -13
  149. data/lib/design_system/engine.rb +1 -1
  150. data/lib/design_system/generic/builders/action_link.rb +17 -0
  151. data/lib/design_system/generic/builders/elements/backlink.rb +30 -0
  152. data/lib/design_system/generic/builders/fixed_elements.rb +4 -0
  153. data/lib/design_system/generic/builders/link.rb +9 -0
  154. data/lib/design_system/generic/builders/notification.rb +10 -6
  155. data/lib/design_system/generic/builders/pagination_renderer.rb +4 -9
  156. data/lib/design_system/govuk/builders/action_link.rb +17 -0
  157. data/lib/design_system/govuk/form_builder.rb +6 -2
  158. data/lib/design_system/govuk/test_helpers/form_builder_testable.rb +14 -0
  159. data/lib/design_system/nhsuk/builders/action_link.rb +30 -0
  160. data/lib/design_system/nhsuk/builders/elements/breadcrumbs.rb +12 -16
  161. data/lib/design_system/nhsuk/builders/notification.rb +0 -6
  162. data/lib/design_system/version.rb +1 -1
  163. data/lib/tasks/nhsuk.rake +10 -5
  164. data/public/design_system/static/{nhsuk-frontend-9.6.4/favicons → nhsuk-frontend-10.3.1/images}/favicon.ico +0 -0
  165. data/public/design_system/static/nhsuk-frontend-10.3.1/images/favicon.svg +4 -0
  166. data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-180.png +0 -0
  167. data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-192.png +0 -0
  168. data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-512.png +0 -0
  169. data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-mask.svg +3 -0
  170. data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-opengraph-image.png +0 -0
  171. data/public/design_system/static/nhsuk-frontend-10.3.1/manifest.json +39 -0
  172. data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk-frontend.min.js +1 -0
  173. data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk-frontend.min.js.map +1 -0
  174. data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk.js +7 -0
  175. metadata +159 -161
  176. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/action-link/_action-link.scss +0 -1
  177. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/action-link/_index.scss +0 -73
  178. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/back-link/_back-link.scss +0 -1
  179. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/back-link/_index.scss +0 -66
  180. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/breadcrumb/_breadcrumb.scss +0 -1
  181. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/breadcrumb/_index.scss +0 -138
  182. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/button/_button.scss +0 -1
  183. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/button/_index.scss +0 -257
  184. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/card/_card.scss +0 -1
  185. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/card/_index.scss +0 -321
  186. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/character-count/_character-count.scss +0 -1
  187. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/character-count/_index.scss +0 -19
  188. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/checkboxes/_checkboxes.scss +0 -1
  189. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/checkboxes/_index.scss +0 -155
  190. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/contents-list/_contents-list.scss +0 -1
  191. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/contents-list/_index.scss +0 -40
  192. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/date-input/_date-input.scss +0 -1
  193. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/date-input/_index.scss +0 -29
  194. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/details/_details.scss +0 -1
  195. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/details/_index.scss +0 -211
  196. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/do-dont-list/_do-dont-list.scss +0 -1
  197. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/do-dont-list/_index.scss +0 -23
  198. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-message/_error-message.scss +0 -1
  199. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-message/_index.scss +0 -17
  200. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-summary/_error-summary.scss +0 -1
  201. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-summary/_index.scss +0 -72
  202. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/fieldset/_fieldset.scss +0 -1
  203. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/fieldset/_index.scss +0 -65
  204. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/footer/_footer.scss +0 -1
  205. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/footer/_index.scss +0 -87
  206. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-base.scss +0 -495
  207. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-organisation.scss +0 -126
  208. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-service.scss +0 -60
  209. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-transactional.scss +0 -61
  210. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-white.scss +0 -117
  211. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header.scss +0 -1
  212. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_index.scss +0 -5
  213. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hero/_hero.scss +0 -1
  214. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hero/_index.scss +0 -187
  215. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hint/_hint.scss +0 -1
  216. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hint/_index.scss +0 -51
  217. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/images/_images.scss +0 -1
  218. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/images/_index.scss +0 -48
  219. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/input/_index.scss +0 -149
  220. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/input/_input.scss +0 -1
  221. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/inset-text/_index.scss +0 -28
  222. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/inset-text/_inset-text.scss +0 -1
  223. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/label/_index.scss +0 -53
  224. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/label/_label.scss +0 -1
  225. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/pagination/_index.scss +0 -95
  226. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/pagination/_pagination.scss +0 -1
  227. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/panel/_index.scss +0 -57
  228. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/panel/_panel.scss +0 -1
  229. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/radios/_index.scss +0 -180
  230. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/radios/_radios.scss +0 -1
  231. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/select/_index.scss +0 -44
  232. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/select/_select.scss +0 -1
  233. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/skip-link/_index.scss +0 -34
  234. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/skip-link/_skip-link.scss +0 -1
  235. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/summary-list/_index.scss +0 -183
  236. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/summary-list/_summary-list.scss +0 -1
  237. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tables/_index.scss +0 -181
  238. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tables/_tables.scss +0 -1
  239. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tabs/_index.scss +0 -120
  240. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tabs/_tabs.scss +0 -1
  241. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tag/_index.scss +0 -92
  242. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tag/_tag.scss +0 -1
  243. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_index.scss +0 -101
  244. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_task-list.scss +0 -1
  245. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_index.scss +0 -30
  246. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_textarea.scss +0 -1
  247. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/warning-callout/_index.scss +0 -19
  248. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/warning-callout/_warning-callout.scss +0 -1
  249. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/elements/_page.scss +0 -43
  250. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_form-group.scss +0 -25
  251. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_main-wrapper.scss +0 -96
  252. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_width-container.scss +0 -63
  253. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_breakpoints.scss +0 -18
  254. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_colours.scss +0 -188
  255. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_globals.scss +0 -82
  256. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/styles/_icons.scss +0 -105
  257. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_focused.scss +0 -86
  258. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_functions.scss +0 -45
  259. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_grid.scss +0 -138
  260. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_ifff.scss +0 -19
  261. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_links.scss +0 -184
  262. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_typography.scss +0 -72
  263. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/nhsuk.scss +0 -1
  264. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/apple-touch-icon-180x180.png +0 -0
  265. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/apple-touch-icon.png +0 -0
  266. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon-192x192.png +0 -0
  267. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.png +0 -0
  268. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.svg +0 -3
  269. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/largetile-310x310.png +0 -0
  270. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/mediumtile-144x144.png +0 -0
  271. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/mediumtile-150x150.png +0 -0
  272. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/smalltile-70x70.png +0 -0
  273. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/widetile-310x150.png +0 -0
  274. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-left.svg +0 -3
  275. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-right-circle.svg +0 -4
  276. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-right.svg +0 -3
  277. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-chevron-left.svg +0 -3
  278. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-chevron-right.svg +0 -3
  279. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-close.svg +0 -3
  280. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-cross.svg +0 -4
  281. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-emdash-small.svg +0 -3
  282. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-emdash.svg +0 -3
  283. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-minus.svg +0 -4
  284. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-plus.svg +0 -4
  285. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-search.svg +0 -3
  286. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-tick.svg +0 -3
  287. data/public/design_system/static/nhsuk-frontend-9.6.4/logos/logo-nhs.svg +0 -5
  288. data/public/design_system/static/nhsuk-frontend-9.6.4/logos/nhs-logo.png +0 -0
  289. data/public/design_system/static/nhsuk-frontend-9.6.4/logos/open-graph.png +0 -0
  290. data/public/design_system/static/nhsuk-frontend-9.6.4/nhsuk.js +0 -4
  291. data/public/design_system/static/nhsuk-frontend-9.6.4/nhsuk.min.js +0 -1
  292. /data/public/design_system/static/{design_system-0.10.0 → design_system-0.12.0}/design_system.js +0 -0
@@ -0,0 +1,66 @@
1
+ @use "../tools" as *;
2
+
3
+ ////
4
+ /// Page wrapper for the grid system
5
+ ///
6
+ /// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
7
+ ///
8
+ ///
9
+ /// @example html - Example usage with Breadcrumbs, phase banners, back links
10
+ /// <div class="nhsuk-width-container">
11
+ /// <!-- Breadcrumbs, phase banners, back links are placed in here. -->
12
+ /// <div class="nhsuk-main-wrapper">
13
+ /// <!-- Wrapper for the main content of your page which applies padding
14
+ /// to the top / bottom -->
15
+ /// </div>
16
+ /// </div>
17
+ ///
18
+ /// @example html - Example usage without Breadcrumbs, phase banners, back links
19
+ /// <div class="nhsuk-width-container">
20
+ /// <div class="nhsuk-main-wrapper nhsuk-main-wrapper--l">
21
+ /// <!-- Wrapper for the main content of your page which applies padding
22
+ /// to the top / bottom -->
23
+ /// </div>
24
+ /// </div>
25
+ ///
26
+ /// @group objects/layout
27
+ ////
28
+
29
+ @include nhsuk-exports("nhsuk/core/objects/main-wrapper") {
30
+ .nhsuk-main-wrapper {
31
+ // In IE11 the `main` element can be used, but is not recognized –
32
+ // meaning it's not defined in IE's default style sheet,
33
+ // so it uses CSS initial value, which is inline.
34
+ display: block;
35
+ padding-top: nhsuk-spacing(4);
36
+ padding-bottom: nhsuk-spacing(4);
37
+ @include nhsuk-top-and-bottom;
38
+
39
+ @include nhsuk-media-query($from: tablet) {
40
+ padding-top: nhsuk-spacing(7);
41
+ padding-bottom: nhsuk-spacing(7);
42
+ }
43
+ }
44
+
45
+ .nhsuk-main-wrapper--l {
46
+ padding-top: nhsuk-spacing(6);
47
+ padding-bottom: nhsuk-spacing(6);
48
+
49
+ @include nhsuk-media-query($from: tablet) {
50
+ padding-top: nhsuk-spacing(8);
51
+ padding-bottom: nhsuk-spacing(8);
52
+ }
53
+ }
54
+
55
+ .nhsuk-main-wrapper--s {
56
+ padding-top: nhsuk-spacing(3);
57
+ padding-bottom: nhsuk-spacing(3);
58
+
59
+ @include nhsuk-media-query($from: tablet) {
60
+ padding-top: nhsuk-spacing(4);
61
+ padding-bottom: nhsuk-spacing(4);
62
+ }
63
+ }
64
+ }
65
+
66
+ /*# sourceMappingURL=_main-wrapper.scss.map */
@@ -0,0 +1,98 @@
1
+ @use "sass:string";
2
+ @use "../settings" as *;
3
+ @use "../tools" as *;
4
+
5
+ ////
6
+ /// @group objects/layout
7
+ ////
8
+
9
+ /// Width container mixin
10
+ ///
11
+ /// Used to create page width and custom width container classes.
12
+ ///
13
+ /// @param {String} $width [$nhsuk-page-width] - Width in pixels
14
+ ///
15
+ /// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
16
+ ///
17
+ /// @example scss - Creating a 1200px wide container class
18
+ /// .app-width-container--wide {
19
+ /// @include nhsuk-width-container(1200px);
20
+ /// }
21
+
22
+ @mixin nhsuk-width-container($width: $nhsuk-page-width) {
23
+ // By default, limit the width of the container to the page width
24
+ max-width: $width;
25
+
26
+ // On mobile, add half width gutters
27
+ margin-right: $nhsuk-gutter-half;
28
+ margin-left: $nhsuk-gutter-half;
29
+
30
+ // Respect 'display cutout' safe area (avoids notches and rounded corners)
31
+ @supports (margin: string.unquote("max(calc(0px))")) {
32
+ $gutter-safe-area-right: calc(#{$nhsuk-gutter-half} + env(safe-area-inset-right));
33
+ $gutter-safe-area-left: calc(#{$nhsuk-gutter-half} + env(safe-area-inset-left));
34
+
35
+ // Use max() to pick largest margin, default or with safe area
36
+ // Escaped due to Sass max() vs. CSS native max()
37
+ margin-right: string.unquote("max(#{$nhsuk-gutter-half}, #{$gutter-safe-area-right})");
38
+ margin-left: string.unquote("max(#{$nhsuk-gutter-half}, #{$gutter-safe-area-left})");
39
+ }
40
+
41
+ // On desktop, add full width gutters
42
+ @include nhsuk-media-query($from: desktop) {
43
+ margin-right: $nhsuk-gutter;
44
+ margin-left: $nhsuk-gutter;
45
+
46
+ // Respect 'display cutout' safe area (avoids notches and rounded corners)
47
+ @supports (margin: string.unquote("max(calc(0px))")) {
48
+ $gutter-safe-area-right: calc(#{$nhsuk-gutter-half} + env(safe-area-inset-right));
49
+ $gutter-safe-area-left: calc(#{$nhsuk-gutter-half} + env(safe-area-inset-left));
50
+
51
+ // Use max() to pick largest margin, default or with safe area
52
+ // Escaped due to Sass max() vs. CSS native max()
53
+ margin-right: string.unquote("max(#{$nhsuk-gutter}, #{$gutter-safe-area-right})");
54
+ margin-left: string.unquote("max(#{$nhsuk-gutter}, #{$gutter-safe-area-left})");
55
+ }
56
+ }
57
+
58
+ // As soon as the viewport is greater than the width of the page plus the
59
+ // gutters, just centre the content instead of adding gutters.
60
+ @include nhsuk-media-query($and: "(min-width: #{($width + $nhsuk-gutter * 2)})") {
61
+ margin-right: auto;
62
+ margin-left: auto;
63
+
64
+ // Since a safe area may have previously been set above,
65
+ // we need to duplicate this margin that centers the page.
66
+ @supports (margin: string.unquote("max(calc(0px))")) {
67
+ margin-right: auto;
68
+ margin-left: auto;
69
+ }
70
+ }
71
+ }
72
+
73
+ @mixin nhsuk-width-container-fluid {
74
+ // Full width container, spanning the entire width of the viewport
75
+ max-width: 100%;
76
+
77
+ // On mobile, add half width gutters
78
+ margin-right: $nhsuk-gutter-half;
79
+ margin-left: $nhsuk-gutter-half;
80
+
81
+ // On desktop, add full width gutters
82
+ @include nhsuk-media-query($from: desktop) {
83
+ margin-right: $nhsuk-gutter;
84
+ margin-left: $nhsuk-gutter;
85
+ }
86
+ }
87
+
88
+ @include nhsuk-exports("nhsuk/core/objects/width-container") {
89
+ .nhsuk-width-container {
90
+ @include nhsuk-width-container;
91
+ }
92
+
93
+ .nhsuk-width-container-fluid {
94
+ @include nhsuk-width-container-fluid;
95
+ }
96
+ }
97
+
98
+ /*# sourceMappingURL=_width-container.scss.map */
@@ -1,4 +1,4 @@
1
- @use "warnings" as *;
1
+ @use "../settings" as *;
2
2
  @forward ".";
3
3
 
4
4
  @include nhsuk-warning(
@@ -6,3 +6,5 @@
6
6
  "Importing using 'core/settings/all' is deprecated. Update your import statement to import 'core/settings'.",
7
7
  $silence-further-warnings: false
8
8
  );
9
+
10
+ /*# sourceMappingURL=_all.scss.map */
@@ -0,0 +1,35 @@
1
+ @use "sass:map";
2
+ @use "sass:meta";
3
+
4
+ ////
5
+ /// @group settings/layout
6
+ ////
7
+
8
+ /// Breakpoint definitions
9
+ ///
10
+ /// @type Map
11
+
12
+ $nhsuk-breakpoints: (
13
+ mobile: 320px,
14
+ tablet: 641px,
15
+ desktop: 769px,
16
+ large-desktop: 990px
17
+ ) !default;
18
+
19
+ /// Show active breakpoint in top-right corner.
20
+ ///
21
+ /// Only use this during local development.
22
+ ///
23
+ /// @type List
24
+
25
+ $nhsuk-show-breakpoints: () !default;
26
+
27
+ @if meta.type-of($nhsuk-show-breakpoints) == "bool" {
28
+ @if $nhsuk-show-breakpoints {
29
+ $nhsuk-show-breakpoints: map.keys($nhsuk-breakpoints);
30
+ } @else {
31
+ $nhsuk-show-breakpoints: ();
32
+ }
33
+ }
34
+
35
+ /*# sourceMappingURL=_breakpoints.scss.map */
@@ -0,0 +1,326 @@
1
+ @use "../helpers/colour" as *;
2
+
3
+ ////
4
+ /// NHS colour variables
5
+ ///
6
+ /// @group settings/colours
7
+ ///
8
+
9
+ // =========================================================
10
+ // Generic
11
+ // =========================================================
12
+
13
+ /// Brand colour
14
+ ///
15
+ /// @type Colour
16
+
17
+ $nhsuk-brand-colour: nhsuk-colour("blue") !default;
18
+
19
+ /// Text colour
20
+ ///
21
+ /// @type Colour
22
+
23
+ $nhsuk-text-colour: nhsuk-colour("black") !default;
24
+
25
+ /// Text colour (reverse)
26
+ ///
27
+ /// @type Colour
28
+
29
+ $nhsuk-reverse-text-colour: nhsuk-colour("white") !default;
30
+
31
+ /// Template background colour
32
+ ///
33
+ /// Used by components that want to give the illusion of extending
34
+ /// the template background (such as the footer).
35
+ ///
36
+ /// @type Colour
37
+
38
+ $nhsuk-template-background-colour: nhsuk-colour("grey-4") !default;
39
+
40
+ /// Body background colour
41
+ ///
42
+ /// @type Colour
43
+
44
+ $nhsuk-body-background-colour: nhsuk-colour("grey-5") !default;
45
+
46
+ /// Card background colour
47
+ ///
48
+ /// @type Colour
49
+
50
+ $nhsuk-card-background-colour: nhsuk-colour("white") !default;
51
+
52
+ /// Text colour for print media
53
+ ///
54
+ /// Use 'true black' to avoid printers using colour ink to print body text
55
+ ///
56
+ /// @type Colour
57
+
58
+ $nhsuk-print-text-colour: #000000 !default;
59
+
60
+ /// Secondary text colour
61
+ ///
62
+ /// Used in for example 'muted' text and help text.
63
+ ///
64
+ /// @type Colour
65
+
66
+ $nhsuk-secondary-text-colour: nhsuk-colour("grey-1") !default;
67
+
68
+ /// Focus colour
69
+ ///
70
+ /// Used for outline (and background, where appropriate) when interactive
71
+ /// elements (links, form controls) have keyboard focus.
72
+ ///
73
+ /// @type Colour
74
+
75
+ $nhsuk-focus-colour: nhsuk-colour("yellow") !default;
76
+
77
+ /// Focused text colour
78
+ ///
79
+ /// Ensure that the contrast between the text and background colour passes
80
+ /// WCAG Level AA contrast requirements.
81
+ ///
82
+ /// @type Colour
83
+
84
+ $nhsuk-focus-text-colour: nhsuk-colour("black") !default;
85
+
86
+ /// Error colour
87
+ ///
88
+ /// Used to highlight error messages and form controls in an error state
89
+ ///
90
+ /// @type Colour
91
+
92
+ $nhsuk-error-colour: nhsuk-colour("red") !default;
93
+
94
+ /// Success colour
95
+ ///
96
+ /// Used to highlight success messages and banners
97
+ ///
98
+ /// @type Colour
99
+
100
+ $nhsuk-success-colour: nhsuk-colour("green") !default;
101
+
102
+ /// Border colour
103
+ ///
104
+ /// Used in for example borders, separators, rules and keylines.
105
+ ///
106
+ /// @type Colour
107
+
108
+ $nhsuk-border-colour: nhsuk-colour("grey-4") !default;
109
+
110
+ /// Border hover colour
111
+ ///
112
+ /// @type Colour
113
+
114
+ $nhsuk-border-hover-colour: nhsuk-colour("grey-3") !default;
115
+
116
+ /// Secondary border colour
117
+ ///
118
+ /// @type Colour
119
+
120
+ $nhsuk-secondary-border-colour: rgba(nhsuk-colour("white"), 0.2) !default;
121
+
122
+ /// Form border colour
123
+ ///
124
+ /// Used for form inputs and controls
125
+ ///
126
+ /// @type Colour
127
+
128
+ $nhsuk-input-border-colour: nhsuk-colour("grey-1") !default;
129
+
130
+ /// Input hover colour
131
+ ///
132
+ /// Used for hover states on form controls
133
+ ///
134
+ /// @type Colour
135
+
136
+ $nhsuk-hover-colour: nhsuk-colour("grey-3") !default;
137
+
138
+ /// Form element background colour
139
+ ///
140
+ /// @type Colour
141
+
142
+ $nhsuk-input-background-colour: nhsuk-colour("white") !default;
143
+
144
+ // =============================================================================
145
+ // Links
146
+ // =============================================================================
147
+
148
+ /// Link colour
149
+ ///
150
+ /// @type Colour
151
+
152
+ $nhsuk-link-colour: nhsuk-colour("blue") !default;
153
+
154
+ /// Visited link colour
155
+ ///
156
+ /// @type Colour
157
+
158
+ $nhsuk-link-visited-colour: nhsuk-colour("purple") !default;
159
+
160
+ /// Link hover colour
161
+ ///
162
+ /// @type Colour
163
+
164
+ $nhsuk-link-hover-colour: nhsuk-colour("dark-pink") !default;
165
+
166
+ /// Active link colour
167
+ ///
168
+ /// @type Colour
169
+
170
+ $nhsuk-link-active-colour: nhsuk-shade($nhsuk-link-colour, 50%) !default;
171
+
172
+ // =============================================================================
173
+ // Buttons
174
+ // =============================================================================
175
+
176
+ /// Button background colour
177
+ ///
178
+ /// @type Colour
179
+
180
+ $nhsuk-button-colour: nhsuk-colour("green") !default;
181
+
182
+ /// Button text colour
183
+ ///
184
+ /// @type Colour
185
+
186
+ $nhsuk-button-text-colour: nhsuk-colour("white") !default;
187
+
188
+ /// Button background colour (hover)
189
+ ///
190
+ /// @type Colour
191
+
192
+ $nhsuk-button-hover-colour: nhsuk-shade($nhsuk-button-colour, 20%) !default;
193
+
194
+ /// Button background colour (active)
195
+ ///
196
+ /// @type Colour
197
+
198
+ $nhsuk-button-active-colour: nhsuk-shade($nhsuk-button-colour, 50%) !default;
199
+
200
+ /// Button shadow colour
201
+ ///
202
+ /// @type Colour
203
+
204
+ $nhsuk-button-shadow-colour: nhsuk-shade($nhsuk-button-colour, 50%) !default;
205
+
206
+ /// Secondary button background colour
207
+ ///
208
+ /// @type Colour
209
+
210
+ $nhsuk-secondary-button-colour: transparent !default;
211
+
212
+ /// Secondary button (solid background) background colour
213
+ ///
214
+ /// @type Colour
215
+
216
+ $nhsuk-secondary-button-solid-background-colour: nhsuk-colour("white") !default;
217
+
218
+ /// Secondary button border colour
219
+ ///
220
+ /// @type Colour
221
+
222
+ $nhsuk-secondary-button-border-colour: $nhsuk-brand-colour !default;
223
+
224
+ /// Secondary button text colour
225
+ ///
226
+ /// @type Colour
227
+
228
+ $nhsuk-secondary-button-text-colour: $nhsuk-brand-colour !default;
229
+
230
+ /// Secondary button background colour (hover)
231
+ ///
232
+ /// @type Colour
233
+
234
+ $nhsuk-secondary-button-hover-colour: nhsuk-tint($nhsuk-secondary-button-border-colour, 85%) !default;
235
+
236
+ /// Secondary button background colour (active)
237
+ ///
238
+ /// @type Colour
239
+
240
+ $nhsuk-secondary-button-active-colour: nhsuk-tint($nhsuk-secondary-button-border-colour, 78%) !default;
241
+
242
+ /// Secondary button shadow colour
243
+ ///
244
+ /// @type Colour
245
+
246
+ $nhsuk-secondary-button-shadow-colour: $nhsuk-secondary-button-border-colour !default;
247
+
248
+ /// Reverse button background colour
249
+ ///
250
+ /// @type Colour
251
+
252
+ $nhsuk-reverse-button-colour: nhsuk-colour("white") !default;
253
+
254
+ /// Reverse button text colour
255
+ ///
256
+ /// @type Colour
257
+
258
+ $nhsuk-reverse-button-text-colour: nhsuk-colour("black") !default;
259
+
260
+ /// Reverse button background colour (hover)
261
+ ///
262
+ /// @type Colour
263
+
264
+ $nhsuk-reverse-button-hover-colour: nhsuk-shade($nhsuk-reverse-button-colour, 15%) !default;
265
+
266
+ /// Reverse button background colour (active)
267
+ ///
268
+ /// @type Colour
269
+
270
+ $nhsuk-reverse-button-active-colour: nhsuk-shade($nhsuk-reverse-button-colour, 30%) !default;
271
+
272
+ /// Reverse button shadow colour
273
+ ///
274
+ /// @type Colour
275
+
276
+ $nhsuk-reverse-button-shadow-colour: nhsuk-shade($nhsuk-reverse-button-colour, 30%) !default;
277
+
278
+ /// Warning button background colour
279
+ ///
280
+ /// @type Colour
281
+
282
+ $nhsuk-warning-button-colour: nhsuk-colour("red") !default;
283
+
284
+ /// Warning button background colour (hover)
285
+ ///
286
+ /// @type Colour
287
+
288
+ $nhsuk-warning-button-hover-colour: nhsuk-shade($nhsuk-warning-button-colour, 20%) !default;
289
+
290
+ /// Warning button background colour (active)
291
+ ///
292
+ /// @type Colour
293
+
294
+ $nhsuk-warning-button-active-colour: nhsuk-shade($nhsuk-warning-button-colour, 50%) !default;
295
+
296
+ /// Warning button shadow colour
297
+ ///
298
+ /// @type Colour
299
+
300
+ $nhsuk-warning-button-shadow-colour: nhsuk-shade($nhsuk-warning-button-colour, 50%) !default;
301
+
302
+ /// Login button background colour
303
+ ///
304
+ /// @type Colour
305
+
306
+ $nhsuk-login-button-colour: $nhsuk-brand-colour !default;
307
+
308
+ /// Login button background colour (hover)
309
+ ///
310
+ /// @type Colour
311
+
312
+ $nhsuk-login-button-hover-colour: nhsuk-shade($nhsuk-login-button-colour, 20%) !default;
313
+
314
+ /// Login button background colour (active)
315
+ ///
316
+ /// @type Colour
317
+
318
+ $nhsuk-login-button-active-colour: nhsuk-shade($nhsuk-login-button-colour, 50%) !default;
319
+
320
+ /// Login button shadow colour
321
+ ///
322
+ /// @type Colour
323
+
324
+ $nhsuk-login-button-shadow-colour: nhsuk-shade($nhsuk-login-button-colour, 50%) !default;
325
+
326
+ /*# sourceMappingURL=_colours-applied.scss.map */
@@ -0,0 +1,116 @@
1
+ // stylelint-disable scss/dollar-variable-pattern
2
+
3
+ @use "../helpers/colour" as *;
4
+ @use "colours-applied" as *;
5
+
6
+ ////
7
+ /// NHS colour variables (deprecated)
8
+ ///
9
+ /// @group settings/colours
10
+ ///
11
+
12
+ // Primary colours
13
+ // @deprecated To be removed in v11.0
14
+ $color_nhsuk-blue: nhsuk-colour("blue");
15
+ $color_nhsuk-white: nhsuk-colour("white");
16
+ $color_nhsuk-black: nhsuk-colour("black");
17
+ $color_nhsuk-green: nhsuk-colour("green");
18
+ $color_nhsuk-purple: nhsuk-colour("purple");
19
+ $color_nhsuk-dark-pink: nhsuk-colour("dark-pink");
20
+ $color_nhsuk-red: nhsuk-colour("red");
21
+ $color_nhsuk-yellow: nhsuk-colour("yellow");
22
+
23
+ // Secondary colours
24
+ // @deprecated To be removed in v11.0
25
+ $color_nhsuk-dark-blue: nhsuk-colour("dark-blue");
26
+ $color_nhsuk-pale-yellow: nhsuk-colour("pale-yellow");
27
+ $color_nhsuk-warm-yellow: nhsuk-colour("warm-yellow");
28
+ $color_nhsuk-orange: nhsuk-colour("orange");
29
+ $color_nhsuk-aqua-green: nhsuk-colour("aqua-green");
30
+ $color_nhsuk-pink: nhsuk-colour("pink");
31
+
32
+ // Greyscale
33
+ // @deprecated To be removed in v11.0
34
+ $color_nhsuk-grey-1: nhsuk-colour("grey-1");
35
+ $color_nhsuk-grey-2: nhsuk-colour("grey-2");
36
+ $color_nhsuk-grey-3: nhsuk-colour("grey-3");
37
+ $color_nhsuk-grey-4: nhsuk-colour("grey-4");
38
+ $color_nhsuk-grey-5: nhsuk-colour("grey-5");
39
+
40
+ // Text (legacy spelling)
41
+ // @deprecated To be removed in v11.0
42
+ $nhsuk-text-color: $nhsuk-text-colour;
43
+ $nhsuk-reverse-text-color: $nhsuk-reverse-text-colour;
44
+ $nhsuk-print-text-color: $nhsuk-print-text-colour;
45
+ $nhsuk-secondary-text-color: $nhsuk-secondary-text-colour;
46
+
47
+ // Focus (legacy spelling)
48
+ // @deprecated To be removed in v11.0
49
+ $nhsuk-focus-color: $nhsuk-focus-colour;
50
+ $nhsuk-focus-text-color: $nhsuk-focus-text-colour;
51
+
52
+ // Error, Success (legacy spelling)
53
+ // @deprecated To be removed in v11.0
54
+ $nhsuk-error-color: $nhsuk-error-colour;
55
+ $nhsuk-success-color: $nhsuk-success-colour;
56
+
57
+ // Border (legacy spelling)
58
+ // @deprecated To be removed in v11.0
59
+ $nhsuk-border-color: $nhsuk-border-colour;
60
+ $nhsuk-secondary-border-color: $nhsuk-secondary-border-colour;
61
+
62
+ // Forms (legacy spelling)
63
+ // @deprecated To be removed in v11.0
64
+ $nhsuk-form-border-color: $nhsuk-input-border-colour;
65
+ $nhsuk-form-border-colour: $nhsuk-input-border-colour;
66
+ $nhsuk-form-element-background-color: $nhsuk-input-background-colour;
67
+ $nhsuk-form-element-background-colour: $nhsuk-input-background-colour;
68
+
69
+ // Links (legacy spelling)
70
+ // @deprecated To be removed in v11.0
71
+ $nhsuk-link-color: $nhsuk-link-colour;
72
+ $nhsuk-link-visited-color: $nhsuk-link-visited-colour;
73
+ $nhsuk-link-hover-color: $nhsuk-link-hover-colour;
74
+ $nhsuk-link-active-color: $nhsuk-link-active-colour;
75
+
76
+ // Buttons (legacy spelling)
77
+ // @deprecated To be removed in v11.0
78
+ $nhsuk-button-color: $nhsuk-button-colour;
79
+ $nhsuk-button-text-color: $nhsuk-button-text-colour;
80
+ $nhsuk-button-hover-color: $nhsuk-button-hover-colour;
81
+ $nhsuk-button-active-color: $nhsuk-button-active-colour;
82
+ $nhsuk-button-shadow-color: $nhsuk-button-shadow-colour;
83
+
84
+ // Secondary buttons (legacy spelling)
85
+ // @deprecated To be removed in v11.0
86
+ $nhsuk-secondary-button-color: $nhsuk-secondary-button-colour;
87
+ $nhsuk-secondary-button-solid-background-color: $nhsuk-secondary-button-solid-background-colour;
88
+ $nhsuk-secondary-button-border-color: $nhsuk-secondary-button-border-colour;
89
+ $nhsuk-secondary-button-text-color: $nhsuk-secondary-button-text-colour;
90
+ $nhsuk-secondary-button-hover-color: $nhsuk-secondary-button-hover-colour;
91
+ $nhsuk-secondary-button-active-color: $nhsuk-secondary-button-active-colour;
92
+ $nhsuk-secondary-button-shadow-color: $nhsuk-secondary-button-shadow-colour;
93
+
94
+ // Reverse buttons (legacy spelling)
95
+ // @deprecated To be removed in v11.0
96
+ $nhsuk-reverse-button-color: $nhsuk-reverse-button-colour;
97
+ $nhsuk-reverse-button-text-color: $nhsuk-reverse-button-text-colour;
98
+ $nhsuk-reverse-button-hover-color: $nhsuk-reverse-button-hover-colour;
99
+ $nhsuk-reverse-button-active-color: $nhsuk-reverse-button-active-colour;
100
+ $nhsuk-reverse-button-shadow-color: $nhsuk-reverse-button-shadow-colour;
101
+
102
+ // Warning buttons (legacy spelling)
103
+ // @deprecated To be removed in v11.0
104
+ $nhsuk-warning-button-color: $nhsuk-warning-button-colour;
105
+ $nhsuk-warning-button-hover-color: $nhsuk-warning-button-hover-colour;
106
+ $nhsuk-warning-button-active-color: $nhsuk-warning-button-active-colour;
107
+ $nhsuk-warning-button-shadow-color: $nhsuk-warning-button-shadow-colour;
108
+
109
+ // Login buttons (legacy spelling)
110
+ // @deprecated To be removed in v11.0
111
+ $nhsuk-login-button-color: $nhsuk-login-button-colour;
112
+ $nhsuk-login-button-hover-color: $nhsuk-login-button-hover-colour;
113
+ $nhsuk-login-button-active-color: $nhsuk-login-button-active-colour;
114
+ $nhsuk-login-button-shadow-color: $nhsuk-login-button-shadow-colour;
115
+
116
+ /*# sourceMappingURL=_colours-deprecated.scss.map */
@@ -0,0 +1,41 @@
1
+ @use "sass:color";
2
+
3
+ ////
4
+ /// @group settings/colours
5
+ ////
6
+
7
+ /// NHS colour palette
8
+ ///
9
+ /// @type Map
10
+ ///
11
+ /// @prop $colour - Representation for the given $colour, where $colour is the
12
+ /// friendly name for the colour (e.g. "red": #ff0000);
13
+
14
+ $nhsuk-colours: (
15
+ // Primary
16
+ "blue": #005eb8,
17
+ "white": #ffffff,
18
+ "black": #212b32,
19
+ "green": #007f3b,
20
+ "purple": #330072,
21
+ "dark-pink": #7c2855,
22
+ "red": #d5281b,
23
+ "yellow": #ffeb3b,
24
+
25
+ // Secondary
26
+ "dark-blue": #003087,
27
+ "pale-yellow": #fff9c4,
28
+ "warm-yellow": #ffb81c,
29
+ "orange": #ed8b00,
30
+ "aqua-green": #00a499,
31
+ "pink": #ae2573,
32
+
33
+ // Greyscale
34
+ "grey-1": #4c6272,
35
+ "grey-2": #768692,
36
+ "grey-3": #aeb7bd,
37
+ "grey-4": #d8dde0,
38
+ "grey-5": #f0f4f5
39
+ ) !default;
40
+
41
+ /*# sourceMappingURL=_colours-palette.scss.map */