govuk_tech_docs 5.2.2 → 6.0.0.beta

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 (145) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/CHANGELOG.md +15 -0
  4. data/README.md +11 -3
  5. data/example/config/tech-docs.yml +1 -1
  6. data/govuk_tech_docs.gemspec +1 -1
  7. data/lib/assets/stylesheets/_core.scss +1 -0
  8. data/lib/assets/stylesheets/_govuk_tech_docs.scss +13 -15
  9. data/lib/assets/stylesheets/modules/_app-pane.scss +3 -3
  10. data/lib/assets/stylesheets/modules/_page-review.scss +4 -4
  11. data/lib/assets/stylesheets/modules/_search.scss +3 -3
  12. data/lib/assets/stylesheets/modules/_service-navigation.scss +5 -0
  13. data/lib/assets/stylesheets/modules/_technical-documentation.scss +7 -7
  14. data/lib/assets/stylesheets/modules/_toc.scss +13 -13
  15. data/lib/assets/stylesheets/palette/_syntax-highlighting.scss +9 -7
  16. data/lib/govuk_tech_docs/meta_tags.rb +1 -1
  17. data/lib/govuk_tech_docs/version.rb +1 -1
  18. data/lib/source/layouts/_header.erb +2 -16
  19. data/lib/source/layouts/_service_navigation.erb +27 -0
  20. data/lib/source/layouts/core.erb +7 -7
  21. data/node_modules/govuk-frontend/dist/govuk/_base.scss +1 -0
  22. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +87 -229
  23. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +88 -229
  24. data/node_modules/govuk-frontend/dist/govuk/all.mjs +0 -1
  25. data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.ico +0 -0
  26. data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.svg +1 -1
  27. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-180.png +0 -0
  28. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-192.png +0 -0
  29. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-512.png +0 -0
  30. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-opengraph-image.png +0 -0
  31. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  32. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +18 -15
  33. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +1 -126
  34. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs +1 -126
  35. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +2 -2
  36. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +2 -2
  37. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +18 -21
  38. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -2
  39. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +20 -135
  40. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +20 -135
  41. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +19 -9
  42. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +7 -6
  43. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -5
  44. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +5 -0
  45. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +6 -4
  46. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +1 -1
  47. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +4 -2
  48. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +1 -1
  49. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +1 -126
  50. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs +1 -126
  51. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +30 -38
  52. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js +36 -132
  53. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs +36 -132
  54. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs +35 -6
  55. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +30 -27
  56. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +89 -449
  57. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +1 -1
  58. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +14 -20
  59. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +2 -1
  60. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +10 -8
  61. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +12 -11
  62. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +4 -4
  63. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +2 -2
  64. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +1 -126
  65. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +1 -126
  66. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +12 -6
  67. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +8 -7
  68. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +6 -11
  69. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +55 -76
  70. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +30 -2
  71. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +30 -2
  72. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs +30 -2
  73. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +7 -2
  74. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +25 -21
  75. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +7 -8
  76. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +9 -6
  77. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +66 -31
  78. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +7 -5
  79. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +5 -10
  80. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +5 -4
  81. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +0 -1
  82. data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss +2 -2
  83. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +2 -1
  84. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +6 -20
  85. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss +17 -0
  86. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +15 -0
  87. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +17 -0
  88. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss +5 -0
  89. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  90. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +168 -82
  91. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +41 -6
  92. data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +1 -1
  93. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +24 -40
  94. data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss +172 -33
  95. data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss +1 -1
  96. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +6 -30
  97. data/node_modules/govuk-frontend/dist/govuk/i18n.mjs +1 -126
  98. data/node_modules/govuk-frontend/dist/govuk/init.mjs +1 -2
  99. data/node_modules/govuk-frontend/dist/govuk/objects/_button-group.scss +1 -1
  100. data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss +2 -1
  101. data/node_modules/govuk-frontend/dist/govuk/objects/_main-wrapper.scss +1 -1
  102. data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +3 -7
  103. data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss +2 -2
  104. data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss +1 -1
  105. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +0 -2
  106. data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss +5 -5
  107. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +3 -188
  108. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +366 -0
  109. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +9 -255
  110. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss +117 -25
  111. data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss +18 -0
  112. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +3 -14
  113. data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +0 -9
  114. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +12 -189
  115. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +0 -1
  116. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss +4 -2
  117. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +2 -0
  118. data/package-lock.json +3228 -4
  119. data/package.json +1 -1
  120. metadata +10 -26
  121. data/node_modules/govuk-frontend/dist/govuk/all.scss +0 -9
  122. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.ico +0 -0
  123. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.svg +0 -1
  124. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-crest.svg +0 -1
  125. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-180.png +0 -0
  126. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-192.png +0 -0
  127. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-512.png +0 -0
  128. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-mask.svg +0 -1
  129. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-opengraph-image.png +0 -0
  130. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/manifest.json +0 -39
  131. data/node_modules/govuk-frontend/dist/govuk/components/_all.scss +0 -10
  132. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +0 -238
  133. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +0 -230
  134. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +0 -89
  135. data/node_modules/govuk-frontend/dist/govuk/core/_all.scss +0 -10
  136. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +0 -15
  137. data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss +0 -10
  138. data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss +0 -10
  139. data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss +0 -9
  140. data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss +0 -10
  141. data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss +0 -10
  142. data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +0 -65
  143. data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss +0 -10
  144. data/node_modules/govuk-frontend/dist/govuk/vendor/_sass-mq.scss +0 -349
  145. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js +0 -25
@@ -1,8 +1,44 @@
1
+ ////
2
+ /// @group components/tag
3
+ ////
4
+
5
+ /// Get tag text colour
6
+ /// Almost all tags should use the 50% shade of their colour for their text
7
+ ///
8
+ /// @param {String} $colour - name of colour from the colour palette
9
+ /// @return {Colour} Representation of the named colour for use in tags
10
+ /// @access private
11
+ @function _govuk-tag-text-colour($colour) {
12
+ @return govuk-colour($colour, $variant: "shade-50");
13
+ }
14
+
15
+ /// Get tag background colour
16
+ /// Almost all tags should use the 80% tint of their colour for their background
17
+ ///
18
+ /// @param {String} $colour - name of colour from the colour palette
19
+ /// @return {Colour} Representation of the named colour for use in tags
20
+ /// @access private
21
+ @function _govuk-tag-background-colour($colour) {
22
+ @return govuk-colour($colour, $variant: "tint-80");
23
+ }
24
+
25
+ /// Generate colour CSS for tag and tag modifiers
26
+ /// Applies standard rules from the tag colour functions
27
+ ///
28
+ /// @param {String} $colour - name of colour from the colour palette
29
+ /// @access private
30
+ @mixin _govuk-tag-colours($colour) {
31
+ color: _govuk-tag-text-colour($colour);
32
+ background-color: _govuk-tag-background-colour($colour);
33
+ }
34
+
1
35
  @include govuk-exports("govuk/component/tag") {
2
36
  $govuk-tag-max-width: if(map-has-key($govuk-breakpoints, "mobile"), map-get($govuk-breakpoints, "mobile") / 2, 160px);
3
37
 
4
38
  .govuk-tag {
5
39
  @include govuk-font($size: 19);
40
+ // Default tag colour is blue
41
+ @include _govuk-tag-colours("blue");
6
42
 
7
43
  display: inline-block;
8
44
 
@@ -25,8 +61,8 @@
25
61
  padding-right: 8px;
26
62
  padding-bottom: 3px;
27
63
  padding-left: 8px;
28
- color: govuk-shade(govuk-colour("blue"), 60%);
29
- background-color: govuk-tint(govuk-colour("blue"), 70%);
64
+
65
+ border-radius: 1px;
30
66
  text-decoration: none;
31
67
  overflow-wrap: break-word;
32
68
 
@@ -43,54 +79,53 @@
43
79
  }
44
80
  }
45
81
 
46
- .govuk-tag--grey {
47
- color: govuk-shade(govuk-colour("dark-grey"), 50%);
48
- background-color: govuk-tint(govuk-colour("dark-grey"), 85%);
82
+ // Tag colour modifiers. Use the _govuk-tag-colours mixin to define consistent
83
+ // colour rules per modifier
84
+ .govuk-tag--green {
85
+ @include _govuk-tag-colours("green");
49
86
  }
50
87
 
51
88
  .govuk-tag--purple {
52
- color: govuk-shade(govuk-colour("bright-purple"), 50%);
53
- background-color: govuk-tint(govuk-colour("bright-purple"), 85%);
89
+ @include _govuk-tag-colours("purple");
54
90
  }
55
91
 
56
- .govuk-tag--turquoise {
57
- color: govuk-shade(govuk-colour("turquoise"), 60%);
58
- background-color: govuk-tint(govuk-colour("turquoise"), 80%);
92
+ .govuk-tag--red {
93
+ @include _govuk-tag-colours("red");
59
94
  }
60
95
 
61
- .govuk-tag--blue {
62
- color: govuk-shade(govuk-colour("blue"), 60%);
63
- background-color: govuk-tint(govuk-colour("blue"), 70%);
96
+ .govuk-tag--orange {
97
+ @include _govuk-tag-colours("orange");
64
98
  }
65
99
 
66
- .govuk-tag--light-blue {
67
- color: govuk-shade(govuk-colour("blue"), 60%);
68
- background-color: govuk-tint(govuk-colour("blue"), 90%);
100
+ .govuk-tag--teal {
101
+ @include _govuk-tag-colours("teal");
69
102
  }
70
103
 
71
- .govuk-tag--yellow {
72
- color: govuk-shade(govuk-colour("yellow"), 65%);
73
- background-color: govuk-tint(govuk-colour("yellow"), 75%);
104
+ .govuk-tag--magenta {
105
+ @include _govuk-tag-colours("magenta");
74
106
  }
75
107
 
76
- .govuk-tag--orange {
77
- color: govuk-shade(govuk-colour("orange"), 55%);
78
- background-color: govuk-tint(govuk-colour("orange"), 70%);
108
+ // Yellow uses different colours to ensure it's legible
109
+ .govuk-tag--yellow {
110
+ color: govuk-colour("orange", $variant: "shade-50");
111
+ background-color: govuk-colour("yellow", $variant: "tint-50");
79
112
  }
80
113
 
81
- .govuk-tag--red {
82
- color: govuk-shade(govuk-colour("red"), 80%);
83
- background-color: govuk-tint(govuk-colour("red"), 75%);
114
+ // Grey uses different colours to ensure it's legible
115
+ .govuk-tag--grey {
116
+ color: govuk-colour("black");
117
+ background-color: govuk-colour("black", $variant: "tint-80");
84
118
  }
85
119
 
86
- .govuk-tag--pink {
87
- color: govuk-shade(govuk-colour("pink"), 50%);
88
- background-color: govuk-tint(govuk-colour("pink"), 85%);
120
+ // Turquoise and pink are deprecated over teal and magenta respectively
121
+ // @deprecated
122
+ .govuk-tag--turquoise {
123
+ @include _govuk-tag-colours("teal");
89
124
  }
90
125
 
91
- .govuk-tag--green {
92
- color: govuk-shade(govuk-colour("green"), 20%);
93
- background-color: govuk-tint(govuk-colour("green"), 80%);
126
+ // @deprecated
127
+ .govuk-tag--pink {
128
+ @include _govuk-tag-colours("magenta");
94
129
  }
95
130
  }
96
131
 
@@ -1,7 +1,7 @@
1
1
  @import "../tag/index";
2
2
 
3
3
  @include govuk-exports("govuk/component/task-list") {
4
- $govuk-task-list-hover-colour: govuk-colour("light-grey");
4
+ $govuk-task-list-hover-colour: govuk-colour("black", $variant: "tint-95");
5
5
 
6
6
  .govuk-task-list {
7
7
  @include govuk-font($size: 19);
@@ -25,11 +25,13 @@
25
25
  margin-bottom: 0;
26
26
  padding-top: govuk-spacing(2);
27
27
  padding-bottom: govuk-spacing(2);
28
- border-bottom: 1px solid $govuk-border-colour;
28
+ border-bottom: 1px solid;
29
+ border-bottom-color: govuk-functional-colour(border);
29
30
  }
30
31
 
31
32
  .govuk-task-list__item:first-child {
32
- border-top: 1px solid $govuk-border-colour;
33
+ border-top: 1px solid;
34
+ border-top-color: govuk-functional-colour(border);
33
35
  }
34
36
 
35
37
  // This class is added to the <li> elements where the task name is a link. The
@@ -54,7 +56,7 @@
54
56
  }
55
57
 
56
58
  .govuk-task-list__status--cannot-start-yet {
57
- color: $govuk-secondary-text-colour;
59
+ color: govuk-functional-colour(secondary-text);
58
60
  }
59
61
 
60
62
  // This adds an empty transparent box covering the whole row, including the
@@ -72,7 +74,7 @@
72
74
 
73
75
  .govuk-task-list__hint {
74
76
  margin-top: govuk-spacing(1);
75
- color: $govuk-secondary-text-colour;
77
+ color: govuk-functional-colour(secondary-text);
76
78
  }
77
79
  }
78
80
 
@@ -15,19 +15,14 @@
15
15
 
16
16
  resize: vertical;
17
17
 
18
- border: $govuk-border-width-form-element solid $govuk-input-border-colour;
18
+ border: $govuk-border-width-form-element solid;
19
19
  border-radius: 0;
20
+ border-color: govuk-functional-colour(input-border);
20
21
 
21
22
  -webkit-appearance: none;
22
23
 
23
24
  &:focus {
24
- outline: $govuk-focus-width solid $govuk-focus-colour;
25
- // Ensure outline appears outside of the element
26
- outline-offset: 0;
27
- // Double the border by adding its width again. Use `box-shadow` to do
28
- // this instead of changing `border-width` (which changes element size)
29
- // and since `outline` is already used for the yellow focus state.
30
- box-shadow: inset 0 0 0 $govuk-border-width-form-element;
25
+ @include govuk-focused-form-input;
31
26
  }
32
27
 
33
28
  &:disabled {
@@ -39,10 +34,10 @@
39
34
  }
40
35
 
41
36
  .govuk-textarea--error {
42
- border-color: $govuk-error-colour;
37
+ border-color: govuk-functional-colour(error);
43
38
 
44
39
  &:focus {
45
- border-color: $govuk-input-border-colour;
40
+ border-color: govuk-functional-colour(input-border);
46
41
  }
47
42
  }
48
43
  }
@@ -19,17 +19,18 @@
19
19
  min-height: 35px;
20
20
  margin-top: -7px;
21
21
 
22
- @include govuk-media-query($from: tablet) {
22
+ @media #{govuk-from-breakpoint(tablet)} {
23
23
  margin-top: -5px;
24
24
  }
25
25
 
26
26
  // When a user customises their colours the background colour will often be
27
27
  // removed. Adding a border to the component keeps it's shape as a circle.
28
- border: 3px solid $govuk-text-colour;
28
+ border: 3px solid;
29
29
  border-radius: 50%;
30
+ border-color: govuk-functional-colour(text);
30
31
 
31
- color: $govuk-body-background-colour;
32
- background: $govuk-text-colour;
32
+ color: govuk-functional-colour(body-background);
33
+ background: govuk-functional-colour(text);
33
34
 
34
35
  font-size: 30px;
35
36
  line-height: 29px;
@@ -1,4 +1,3 @@
1
- @import "govuk-frontend-properties";
2
1
  @import "links";
3
2
  @import "lists";
4
3
  @import "typography";
@@ -38,7 +38,7 @@
38
38
  %govuk-list--number > li {
39
39
  margin-bottom: 0;
40
40
 
41
- @include govuk-media-query($from: tablet) {
41
+ @media #{govuk-from-breakpoint(tablet)} {
42
42
  margin-bottom: govuk-spacing(1);
43
43
  }
44
44
  }
@@ -46,7 +46,7 @@
46
46
  %govuk-list--spaced > li {
47
47
  margin-bottom: govuk-spacing(2);
48
48
 
49
- @include govuk-media-query($from: tablet) {
49
+ @media #{govuk-from-breakpoint(tablet)} {
50
50
  margin-bottom: govuk-spacing(3);
51
51
  }
52
52
  }
@@ -40,7 +40,8 @@
40
40
  // Visible variant
41
41
 
42
42
  %govuk-section-break--visible {
43
- border-bottom: 1px solid $govuk-border-colour;
43
+ border-bottom: 1px solid;
44
+ border-bottom-color: govuk-functional-colour(border);
44
45
  }
45
46
 
46
47
  .govuk-section-break--visible {
@@ -66,7 +66,7 @@
66
66
 
67
67
  margin-bottom: govuk-spacing(1);
68
68
 
69
- color: $govuk-secondary-text-colour;
69
+ color: govuk-functional-colour(secondary-text);
70
70
  }
71
71
 
72
72
  .govuk-caption-l {
@@ -75,9 +75,9 @@
75
75
  display: block;
76
76
 
77
77
  margin-bottom: govuk-spacing(1);
78
- color: $govuk-secondary-text-colour;
78
+ color: govuk-functional-colour(secondary-text);
79
79
 
80
- @include govuk-media-query($from: tablet) {
80
+ @media #{govuk-from-breakpoint(tablet)} {
81
81
  margin-bottom: 0;
82
82
  }
83
83
  }
@@ -87,7 +87,7 @@
87
87
 
88
88
  display: block;
89
89
 
90
- color: $govuk-secondary-text-colour;
90
+ color: govuk-functional-colour(secondary-text);
91
91
  }
92
92
 
93
93
  // Body (paragraphs)
@@ -128,20 +128,6 @@
128
128
  @extend %govuk-body-s;
129
129
  }
130
130
 
131
- // @deprecated
132
- %govuk-body-xs {
133
- @include govuk-text-colour;
134
- @include govuk-font($size: _14);
135
-
136
- margin-top: 0;
137
- @include govuk-responsive-margin(4, "bottom");
138
- }
139
-
140
- // @deprecated
141
- .govuk-body-xs {
142
- @extend %govuk-body-xs;
143
- }
144
-
145
131
  // Usage aliases
146
132
 
147
133
  // Using extend to alias means we also inherit any contextual adjustments that
@@ -161,7 +147,7 @@
161
147
  %govuk-body-l + %govuk-heading-l {
162
148
  padding-top: govuk-spacing(1);
163
149
 
164
- @include govuk-media-query($from: tablet) {
150
+ @media #{govuk-from-breakpoint(tablet)} {
165
151
  padding-top: govuk-spacing(2);
166
152
  }
167
153
  }
@@ -180,7 +166,7 @@
180
166
  %govuk-list + %govuk-heading-s {
181
167
  padding-top: govuk-spacing(1);
182
168
 
183
- @include govuk-media-query($from: tablet) {
169
+ @media #{govuk-from-breakpoint(tablet)} {
184
170
  padding-top: govuk-spacing(2);
185
171
  }
186
172
  }
@@ -0,0 +1,17 @@
1
+ @import "../settings/custom-properties";
2
+ @import "../settings/media-queries";
3
+ @import "../tools/exports";
4
+ @import "../tools/px-to-rem";
5
+
6
+ // CSS custom property for each breakpoint
7
+ @include govuk-exports("govuk/custom-properties/breakpoints") {
8
+ :root {
9
+ @if $govuk-output-custom-properties {
10
+ @each $name, $value in $govuk-breakpoints {
11
+ --govuk-breakpoint-#{$name}: #{govuk-px-to-rem($value)};
12
+ }
13
+ }
14
+ }
15
+ }
16
+
17
+ /*# sourceMappingURL=_breakpoints.scss.map */
@@ -0,0 +1,15 @@
1
+ @import "../tools/exports";
2
+
3
+ // This custom property is automatically overwritten during builds and
4
+ // releases. It doesn't need to be updated manually.
5
+ //
6
+ // This custom property is always output by base regardless of if
7
+ // `$govuk-output-custom-properties` is true or not to help with checking if
8
+ // multiple stylesheets are outputting the same version
9
+ @include govuk-exports("govuk/custom-properties/frontend-version") {
10
+ :root {
11
+ --govuk-frontend-version: "6.0.0";
12
+ }
13
+ }
14
+
15
+ /*# sourceMappingURL=_frontend-version.scss.map */
@@ -0,0 +1,17 @@
1
+ @import "../settings/custom-properties";
2
+ @import "../settings/colours-functional";
3
+ @import "../tools/exports";
4
+ @import "../helpers/colour";
5
+
6
+ // CSS custom properties for each functional colour
7
+ @include govuk-exports("govuk/custom-properties/functional-colours") {
8
+ :root {
9
+ @if $govuk-output-custom-properties {
10
+ @each $name, $value in $govuk-functional-colours {
11
+ --govuk-#{$name}-colour: #{_govuk-resolve-colour($value)};
12
+ }
13
+ }
14
+ }
15
+ }
16
+
17
+ /*# sourceMappingURL=_functional-colours.scss.map */
@@ -0,0 +1,5 @@
1
+ @import "breakpoints";
2
+ @import "frontend-version";
3
+ @import "functional-colours";
4
+
5
+ /*# sourceMappingURL=_index.scss.map */