design_system 0.11.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 +4 -0
  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 +2 -0
  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 -7
  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.11.0 → design_system-0.12.0}/design_system.js +0 -0
@@ -0,0 +1,374 @@
1
+ @use "sass:math";
2
+ @use "../../core/settings" as *;
3
+ @use "../../core/tools" as *;
4
+ @use "../../core/helpers" as *;
5
+
6
+ ////
7
+ /// Details component
8
+ ///
9
+ /// 1. Style the summary to look like a link...
10
+ /// 2. Make the focus outline shrink-wrap the text content of the summary
11
+ /// 3. Absolutely position the marker against this element
12
+ /// 3. Allow for absolutely positioned marker and align with disclosed text
13
+ /// 4. Only underline the text, not the arrow
14
+ /// 5. Remove the default details marker so we can style our own consistently
15
+ /// and ensure it displays in Firefox
16
+ /// 6. Custom padding to left align the details text with the summary
17
+ ///
18
+ /// @group components/details
19
+ /// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
20
+ ////
21
+
22
+ $nhsuk-expander-border-width: 1px;
23
+ $nhsuk-expander-border-bottom-width: nhsuk-spacing(1);
24
+ $nhsuk-expander-border-colour: $nhsuk-border-colour;
25
+ $nhsuk-expander-border-hover-colour: $nhsuk-border-hover-colour;
26
+ $nhsuk-expander-icon-size: 27px; // 19px font size + 4px summary text padding
27
+
28
+ // @deprecated To be removed in v11.0
29
+ $expander-border-width: $nhsuk-expander-border-width;
30
+ $expander-border-bottom-width: $nhsuk-expander-border-bottom-width;
31
+ $expander-border-color: $nhsuk-expander-border-colour;
32
+ $expander-border-colour: $nhsuk-expander-border-colour;
33
+ $expander-border-hover-color: $nhsuk-expander-border-hover-colour;
34
+ $expander-border-hover-colour: $nhsuk-expander-border-hover-colour;
35
+ $expander-icon-size: $nhsuk-expander-icon-size;
36
+
37
+ @include nhsuk-exports("nhsuk/components/details") {
38
+ .nhsuk-details {
39
+ display: block;
40
+ @include nhsuk-text-colour;
41
+ @include nhsuk-font-size(19);
42
+ @include nhsuk-responsive-margin(4, "bottom");
43
+ }
44
+
45
+ .nhsuk-details__summary {
46
+ display: block;
47
+ }
48
+
49
+ .nhsuk-details__text {
50
+ @include nhsuk-top-and-bottom;
51
+ }
52
+
53
+ // Hack to support Internet Explorer 11
54
+ @media screen\0 {
55
+ .nhsuk-details {
56
+ margin-top: nhsuk-spacing(2);
57
+ padding: nhsuk-spacing(3) 0;
58
+ padding-left: nhsuk-px-to-rem(20px); // [6]
59
+ border-left: nhsuk-spacing(1) solid $nhsuk-border-colour;
60
+ }
61
+
62
+ .nhsuk-details__summary-text {
63
+ display: block;
64
+ font-weight: $nhsuk-font-weight-bold;
65
+ @include nhsuk-responsive-margin(4, "bottom");
66
+ }
67
+ }
68
+
69
+ // Use a feature query to style the <details> element in newer browsers,
70
+ // leaving older browsers to only show the content
71
+ //
72
+ // Additionally, -ms-ime-align is only supported by Edge 12 - 18
73
+ //
74
+ // This ensures we don't use these styles in browsers which:
75
+ // - support ES6 modules but not the <details> element (Edge 16 - 18)
76
+ // - do not support ES6 modules or the <details> element (eg, IE8+)
77
+ @supports not (-ms-ime-align: auto) {
78
+ .nhsuk-details__summary {
79
+ position: relative; // [3]
80
+ width: -webkit-fit-content;
81
+ width: fit-content; // [2]
82
+ padding-left: nhsuk-px-to-rem(nhsuk-spacing(4));
83
+ color: $nhsuk-link-colour; // [1]
84
+ cursor: pointer;
85
+
86
+ &:hover {
87
+ color: $nhsuk-link-hover-colour;
88
+ }
89
+
90
+ &:focus {
91
+ @include nhsuk-focused-text;
92
+ }
93
+
94
+ &:hover,
95
+ &:focus {
96
+ .nhsuk-details__summary-text {
97
+ text-decoration: none;
98
+ }
99
+ }
100
+
101
+ &::-webkit-details-marker {
102
+ display: none; // [5]
103
+ }
104
+
105
+ &::before {
106
+ content: "";
107
+
108
+ position: absolute;
109
+ top: 0;
110
+ bottom: 0;
111
+ left: 0;
112
+
113
+ margin: auto;
114
+
115
+ @include nhsuk-shape-arrow($direction: right, $base: 14px);
116
+ }
117
+
118
+ .nhsuk-details[open] > &::before {
119
+ @include nhsuk-shape-arrow($direction: down, $base: 14px);
120
+ }
121
+ }
122
+
123
+ .nhsuk-details__summary-text {
124
+ text-decoration: underline; // [4]
125
+ }
126
+
127
+ .nhsuk-details__text {
128
+ margin-top: nhsuk-spacing(2);
129
+ padding: nhsuk-spacing(3) 0;
130
+ padding-right: 0;
131
+ padding-left: 20px; // [6]
132
+ border-left: nhsuk-spacing(1) solid $nhsuk-border-colour;
133
+ }
134
+ }
135
+
136
+ // Expander variant
137
+
138
+ .nhsuk-expander {
139
+ border: $nhsuk-expander-border-width solid $nhsuk-expander-border-colour;
140
+ background-color: $nhsuk-card-background-colour;
141
+
142
+ .nhsuk-details__summary {
143
+ display: block;
144
+ width: auto;
145
+ padding: nhsuk-spacing(4) - $nhsuk-focus-width nhsuk-spacing(4) 0;
146
+ border-top: $nhsuk-focus-width solid transparent;
147
+ background-color: $nhsuk-card-background-colour;
148
+
149
+ @include nhsuk-media-query($from: tablet) {
150
+ padding: nhsuk-spacing(5) - $nhsuk-focus-width nhsuk-spacing(5) 0;
151
+ }
152
+ }
153
+
154
+ .nhsuk-details__text {
155
+ margin-top: 0;
156
+ margin-left: 0;
157
+ border-left: 0;
158
+
159
+ @include nhsuk-responsive-padding(5, "bottom");
160
+ @include nhsuk-responsive-padding(5, "left");
161
+ @include nhsuk-responsive-padding(5, "right");
162
+ @include nhsuk-responsive-padding(0, "top");
163
+ }
164
+
165
+ // Hack to support Internet Explorer 11
166
+ @media screen\0 {
167
+ margin-top: 0;
168
+ padding: 0;
169
+
170
+ .nhsuk-details__summary-text {
171
+ display: block;
172
+ font-weight: $nhsuk-font-weight-bold;
173
+ @include nhsuk-font-size(26);
174
+ @include nhsuk-responsive-margin(4, "bottom");
175
+ }
176
+ }
177
+
178
+ // Use a feature query to style the <details> element in newer browsers,
179
+ // leaving older browsers to show the content in a card style box
180
+ @supports not (-ms-ime-align: auto) {
181
+ border-bottom-width: $nhsuk-expander-border-bottom-width;
182
+
183
+ &:hover {
184
+ border-color: $nhsuk-expander-border-hover-colour;
185
+ }
186
+
187
+ .nhsuk-details__summary {
188
+ padding-bottom: nhsuk-spacing(4);
189
+ }
190
+
191
+ @include nhsuk-media-query($from: tablet) {
192
+ .nhsuk-details__summary {
193
+ padding-bottom: nhsuk-spacing(5);
194
+ }
195
+ }
196
+
197
+ .nhsuk-details__summary::before {
198
+ display: none;
199
+ }
200
+
201
+ .nhsuk-details__summary:focus {
202
+ box-shadow: none;
203
+ }
204
+
205
+ .nhsuk-details__summary-text {
206
+ display: inline-block;
207
+
208
+ position: relative;
209
+
210
+ padding: nhsuk-spacing(1);
211
+ padding-left: $nhsuk-expander-icon-size + nhsuk-spacing(2);
212
+
213
+ color: $nhsuk-link-colour;
214
+
215
+ cursor: pointer;
216
+ }
217
+
218
+ .nhsuk-details__summary:hover .nhsuk-details__summary-text {
219
+ color: $nhsuk-link-hover-colour;
220
+ }
221
+
222
+ .nhsuk-details__summary:focus .nhsuk-details__summary-text {
223
+ @include nhsuk-focused-text;
224
+ }
225
+
226
+ // Internet Explorer 11 doesn’t support clip-path, but we don’t show the
227
+ // ::before pseudo element to users of that browser
228
+ .nhsuk-details__summary-text::before {
229
+ content: "";
230
+
231
+ position: absolute;
232
+ top: calc(50% - math.div($nhsuk-expander-icon-size, 2));
233
+ left: 0;
234
+
235
+ width: $nhsuk-expander-icon-size;
236
+ height: $nhsuk-expander-icon-size;
237
+
238
+ -webkit-clip-path: path(
239
+ "M13.5 1a12.5 12.5 0 1 1 0 25 12.5 12.5 0 0 1 0-25Zm0 6c-.8 0-1.5.7-1.5 1.5V12H8.5c-.8 0-1.4.6-1.5 1.4v.1c0 .8.7 1.5 1.5 1.5H12v3.5c0 .8.6 1.4 1.4 1.5h.1c.8 0 1.5-.7 1.5-1.5V15h3.5c.8 0 1.4-.6 1.5-1.4v-.1c0-.8-.7-1.5-1.5-1.5H15V8.5c0-.8-.6-1.4-1.4-1.5Z"
240
+ );
241
+
242
+ clip-path: path(
243
+ "M13.5 1a12.5 12.5 0 1 1 0 25 12.5 12.5 0 0 1 0-25Zm0 6c-.8 0-1.5.7-1.5 1.5V12H8.5c-.8 0-1.4.6-1.5 1.4v.1c0 .8.7 1.5 1.5 1.5H12v3.5c0 .8.6 1.4 1.4 1.5h.1c.8 0 1.5-.7 1.5-1.5V15h3.5c.8 0 1.4-.6 1.5-1.4v-.1c0-.8-.7-1.5-1.5-1.5H15V8.5c0-.8-.6-1.4-1.4-1.5Z"
244
+ ); // Plus icon
245
+
246
+ background-color: currentcolor;
247
+ }
248
+
249
+ &[open] {
250
+ border-bottom-width: $nhsuk-expander-border-width;
251
+ }
252
+
253
+ &[open] .nhsuk-details__summary-text::before {
254
+ -webkit-clip-path: path(
255
+ "M13.5 1a12.5 12.5 0 1 1 0 25 12.5 12.5 0 0 1 0-25Zm5 11h-10a1.5 1.5 0 0 0 0 3h10a1.5 1.5 0 0 0 0-3Z"
256
+ );
257
+ clip-path: path(
258
+ "M13.5 1a12.5 12.5 0 1 1 0 25 12.5 12.5 0 0 1 0-25Zm5 11h-10a1.5 1.5 0 0 0 0 3h10a1.5 1.5 0 0 0 0-3Z"
259
+ ); // Minus icon
260
+ }
261
+
262
+ // Use a feature query to check for scalable clip-path support,
263
+ // replacing fixed pixel sizes with rems for text-only zooming
264
+ @supports ((-webkit-clip-path: shape(from 0% 0%, line to 100% 100%)) or (clip-path: shape(from 0% 0%, line to 100% 100%))) {
265
+ .nhsuk-details__summary-text {
266
+ padding-left: nhsuk-px-to-rem($nhsuk-expander-icon-size + nhsuk-spacing(2));
267
+ }
268
+
269
+ .nhsuk-details__summary-text::before {
270
+ top: calc(50% - nhsuk-px-to-rem(math.div($nhsuk-expander-icon-size, 2)));
271
+ width: nhsuk-px-to-rem($nhsuk-expander-icon-size);
272
+ height: nhsuk-px-to-rem($nhsuk-expander-icon-size);
273
+ -webkit-clip-path: shape(
274
+ from 50% 3.7%,
275
+ arc by 0% 92.6% of 46.3% 46.3% large cw,
276
+ arc by 0% -92.6% of 46.3% 46.3% small cw,
277
+ close,
278
+ move by 0% 22.22%,
279
+ curve by -5.56% 5.56% with -2.96% 0% / -5.56% 2.59%,
280
+ vline to 44.44%,
281
+ hline to 31.48%,
282
+ curve by -5.56% 5.19% with -2.96% 0% / -5.19% 2.22%,
283
+ vline by 0.37%,
284
+ curve by 5.56% 5.56% with 0% 2.96% / 2.59% 5.56%,
285
+ hline to 44.44%,
286
+ vline by 12.96%,
287
+ curve by 5.19% 5.56% with 0% 2.96% / 2.22% 5.19%,
288
+ hline by 0.37%,
289
+ curve by 5.56% -5.56% with 2.96% 0% / 5.56% -2.59%,
290
+ vline to 55.56%,
291
+ hline by 12.96%,
292
+ curve by 5.56% -5.19% with 2.96% 0% / 5.19% -2.22%,
293
+ vline by -0.37%,
294
+ curve by -5.56% -5.56% with 0% -2.96% / -2.59% -5.56%,
295
+ hline to 55.56%,
296
+ vline to 31.48%,
297
+ curve by -5.19% -5.56% with 0% -2.96% / -2.22% -5.19%,
298
+ close
299
+ );
300
+ clip-path: shape(
301
+ from 50% 3.7%,
302
+ arc by 0% 92.6% of 46.3% 46.3% large cw,
303
+ arc by 0% -92.6% of 46.3% 46.3% small cw,
304
+ close,
305
+ move by 0% 22.22%,
306
+ curve by -5.56% 5.56% with -2.96% 0% / -5.56% 2.59%,
307
+ vline to 44.44%,
308
+ hline to 31.48%,
309
+ curve by -5.56% 5.19% with -2.96% 0% / -5.19% 2.22%,
310
+ vline by 0.37%,
311
+ curve by 5.56% 5.56% with 0% 2.96% / 2.59% 5.56%,
312
+ hline to 44.44%,
313
+ vline by 12.96%,
314
+ curve by 5.19% 5.56% with 0% 2.96% / 2.22% 5.19%,
315
+ hline by 0.37%,
316
+ curve by 5.56% -5.56% with 2.96% 0% / 5.56% -2.59%,
317
+ vline to 55.56%,
318
+ hline by 12.96%,
319
+ curve by 5.56% -5.19% with 2.96% 0% / 5.19% -2.22%,
320
+ vline by -0.37%,
321
+ curve by -5.56% -5.56% with 0% -2.96% / -2.59% -5.56%,
322
+ hline to 55.56%,
323
+ vline to 31.48%,
324
+ curve by -5.19% -5.56% with 0% -2.96% / -2.22% -5.19%,
325
+ close
326
+ ); // Plus icon, scalable
327
+ }
328
+
329
+ &[open] .nhsuk-details__summary-text::before {
330
+ -webkit-clip-path: shape(
331
+ from 50% 3.7%,
332
+ arc by 0% 92.6% of 46.3% 46.3% large cw,
333
+ arc by 0% -92.6% of 46.3% 46.3% small cw,
334
+ close,
335
+ move by 18.52% 40.74%,
336
+ hline by -37.04%,
337
+ arc by 0% 11.11% of 5.56% 5.56% small ccw,
338
+ hline by 37.04%,
339
+ arc by 0% -11.11% of 5.56% 5.56% small ccw,
340
+ close
341
+ );
342
+ clip-path: shape(
343
+ from 50% 3.7%,
344
+ arc by 0% 92.6% of 46.3% 46.3% large cw,
345
+ arc by 0% -92.6% of 46.3% 46.3% small cw,
346
+ close,
347
+ move by 18.52% 40.74%,
348
+ hline by -37.04%,
349
+ arc by 0% 11.11% of 5.56% 5.56% small ccw,
350
+ hline by 37.04%,
351
+ arc by 0% -11.11% of 5.56% 5.56% small ccw,
352
+ close
353
+ ); // Minus icon, scalable
354
+ }
355
+ }
356
+ }
357
+ }
358
+
359
+ // Reduce margin between a group of expanders so they sit together
360
+ .nhsuk-expander-group {
361
+ @include nhsuk-responsive-margin(4, "bottom");
362
+
363
+ > .nhsuk-details {
364
+ @include nhsuk-responsive-margin(2, "bottom");
365
+ }
366
+ }
367
+
368
+ .nhsuk-details + h2,
369
+ .nhsuk-details + .nhsuk-heading-l {
370
+ @include nhsuk-responsive-padding(4, "top");
371
+ }
372
+ }
373
+
374
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,3 @@
1
+ @forward ".";
2
+
3
+ /*# sourceMappingURL=_do-dont-list.scss.map */
@@ -0,0 +1,37 @@
1
+ @use "../../core/settings" as *;
2
+ @use "../../core/tools" as *;
3
+ @use "../../core/helpers" as *;
4
+ @forward "../../core/styles/icons";
5
+ @forward "../../core/styles/lists";
6
+
7
+ ////
8
+ /// Do and Don't list component
9
+ ///
10
+ /// Do and Don't lists help users understand more easily what they should
11
+ /// and shouldn't do.
12
+ ///
13
+ /// @group components/do-dont-list
14
+ ////
15
+
16
+ @include nhsuk-exports("nhsuk/components/do-dont-list") {
17
+ .nhsuk-do-dont-list {
18
+ @include nhsuk-panel-with-label($nhsuk-card-background-colour, $nhsuk-text-colour, $nhsuk-border-colour); // [1]
19
+
20
+ .nhsuk-icon__cross,
21
+ .nhsuk-icon--cross {
22
+ fill: nhsuk-colour("red");
23
+ }
24
+
25
+ .nhsuk-icon__tick,
26
+ .nhsuk-icon--tick {
27
+ fill: nhsuk-colour("green");
28
+ }
29
+ }
30
+
31
+ .nhsuk-do-dont-list__label {
32
+ @include nhsuk-heading-label($nhsuk-brand-colour, $nhsuk-reverse-text-colour); // [2]
33
+ @include nhsuk-print-colour;
34
+ }
35
+ }
36
+
37
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,3 @@
1
+ @forward ".";
2
+
3
+ /*# sourceMappingURL=_error-message.scss.map */
@@ -0,0 +1,22 @@
1
+ @use "../../core/settings" as *;
2
+ @use "../../core/tools" as *;
3
+
4
+ ////
5
+ /// Error message component
6
+ ///
7
+ /// @group components/error-message
8
+ ////
9
+
10
+ @include nhsuk-exports("nhsuk/components/error-message") {
11
+ .nhsuk-error-message {
12
+ display: block;
13
+ margin-top: 0; // Reset any default browser margins for paragraphs
14
+ margin-bottom: nhsuk-spacing(3);
15
+ clear: both;
16
+ color: $nhsuk-error-colour;
17
+
18
+ @include nhsuk-font(19, $weight: bold);
19
+ }
20
+ }
21
+
22
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,3 @@
1
+ @forward ".";
2
+
3
+ /*# sourceMappingURL=_error-summary.scss.map */
@@ -0,0 +1,75 @@
1
+ @use "../../core/settings" as *;
2
+ @use "../../core/tools" as *;
3
+ @forward "../../core/styles/lists";
4
+
5
+ ////
6
+ /// Error summary component
7
+ ///
8
+ /// @group components/error-summary
9
+ ////
10
+
11
+ @include nhsuk-exports("nhsuk/components/error-summary") {
12
+ .nhsuk-error-summary {
13
+ border: $nhsuk-border-width solid $nhsuk-error-colour;
14
+
15
+ @include nhsuk-text-colour;
16
+ @include nhsuk-font($size: 19);
17
+ @include nhsuk-responsive-padding(4);
18
+ @include nhsuk-responsive-margin(8, "bottom");
19
+
20
+ &:focus {
21
+ border: $nhsuk-focus-width solid $nhsuk-focus-text-colour;
22
+ outline: $nhsuk-focus-width solid transparent;
23
+ box-shadow: 0 0 0 $nhsuk-focus-width $nhsuk-focus-colour;
24
+ }
25
+ }
26
+
27
+ .nhsuk-error-summary__title {
28
+ margin-top: 0;
29
+
30
+ @include nhsuk-font(26, $weight: bold);
31
+ @include nhsuk-responsive-margin(4, "bottom");
32
+ }
33
+
34
+ .nhsuk-error-summary__body {
35
+ p {
36
+ margin-bottom: 0;
37
+ }
38
+
39
+ > * + * {
40
+ @include nhsuk-responsive-margin(4, "top");
41
+ }
42
+
43
+ > :last-child {
44
+ @include nhsuk-responsive-margin(1, "bottom");
45
+ }
46
+ }
47
+
48
+ // Cross-component class - adjusts styling of list component
49
+ .nhsuk-error-summary__list {
50
+ margin-bottom: 0;
51
+ }
52
+
53
+ // Remove the bottom margin from the last list item
54
+ .nhsuk-error-summary__list li:last-child {
55
+ margin-bottom: 0;
56
+ }
57
+
58
+ .nhsuk-error-summary__list a {
59
+ @include nhsuk-typography-weight-bold;
60
+
61
+ // Override default link styling to use error colour
62
+ &:link,
63
+ &:visited,
64
+ &:hover,
65
+ &:active {
66
+ color: $nhsuk-error-colour;
67
+ }
68
+
69
+ &:focus {
70
+ @include nhsuk-focused-text;
71
+ }
72
+ }
73
+ }
74
+
75
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,3 @@
1
+ @forward ".";
2
+
3
+ /*# sourceMappingURL=_fieldset.scss.map */
@@ -0,0 +1,81 @@
1
+ @use "../../core/settings" as *;
2
+ @use "../../core/tools" as *;
3
+ @use "../../core/helpers" as *;
4
+
5
+ ////
6
+ /// Fieldset component
7
+ ///
8
+ /// @group components/fieldset
9
+ ////
10
+
11
+ @include nhsuk-exports("nhsuk/components/fieldset") {
12
+ .nhsuk-fieldset {
13
+ min-width: 0;
14
+ margin: 0;
15
+ padding: 0;
16
+ border: 0;
17
+ @include nhsuk-clearfix;
18
+ }
19
+
20
+ // Fix for Firefox < 53 (https://bugzil.la/504622)
21
+ // stylelint-disable selector-type-no-unknown -- Ignore 'x:-moz-any-link'
22
+ @supports not (caret-color: auto) {
23
+ .nhsuk-fieldset,
24
+ x:-moz-any-link {
25
+ display: table-cell;
26
+ }
27
+ }
28
+ // stylelint-enable selector-type-no-unknown
29
+
30
+ .nhsuk-fieldset__legend {
31
+ // Fix legend text wrapping in Edge and IE
32
+ // 1. IE9-11 & Edge 12-13
33
+ // 2. IE8-11
34
+ box-sizing: border-box; // 1
35
+
36
+ display: table; // 2
37
+
38
+ max-width: 100%; // 1
39
+ margin-bottom: nhsuk-spacing(2);
40
+ padding: 0;
41
+
42
+ white-space: normal; // 1
43
+
44
+ @include nhsuk-text-colour;
45
+ @include nhsuk-font($size: 19);
46
+ }
47
+
48
+ // Modifiers that make legends look more like their equivalent headings
49
+ .nhsuk-fieldset__legend--xl,
50
+ .nhsuk-fieldset__legend--l,
51
+ .nhsuk-fieldset__legend--m {
52
+ margin-bottom: nhsuk-spacing(3);
53
+ @include nhsuk-typography-weight-bold;
54
+ }
55
+
56
+ .nhsuk-fieldset__legend--xl {
57
+ @include nhsuk-font-size($size: 48);
58
+ }
59
+
60
+ .nhsuk-fieldset__legend--l {
61
+ @include nhsuk-font-size($size: 36);
62
+ }
63
+
64
+ .nhsuk-fieldset__legend--m {
65
+ @include nhsuk-font-size($size: 26);
66
+ }
67
+
68
+ .nhsuk-fieldset__legend--s {
69
+ @include nhsuk-typography-weight-bold;
70
+ }
71
+
72
+ // When the legend contains an H1, we want the H1 to inherit all styles from
73
+ // the legend. Effectively treat the heading as if it is not there.
74
+ .nhsuk-fieldset__heading {
75
+ margin: 0;
76
+ font-size: inherit;
77
+ font-weight: inherit;
78
+ }
79
+ }
80
+
81
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,3 @@
1
+ @forward ".";
2
+
3
+ /*# sourceMappingURL=_file-upload.scss.map */