govuk_publishing_components 11.2.0 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/favicon-example.png +0 -0
  3. data/app/assets/images/govuk_publishing_components/favicon-production.png +0 -0
  4. data/app/assets/javascripts/component_guide/application.js +1 -1
  5. data/app/assets/javascripts/component_guide/no_slimmer.js +15 -0
  6. data/app/assets/javascripts/govuk_publishing_components/admin_scripts.js +2 -4
  7. data/app/assets/javascripts/govuk_publishing_components/all_components.js +4 -0
  8. data/app/assets/stylesheets/component_guide/application.scss +80 -74
  9. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +4 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +26 -5
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +21 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +7 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +2 -0
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +24 -5
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +2 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +19 -7
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +11 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +12 -0
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +9 -2
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +2 -0
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +11 -0
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +7 -2
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +9 -8
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +4 -2
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +12 -1
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +6 -0
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +16 -2
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +7 -0
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +8 -2
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +2 -0
  33. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +5 -0
  34. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +30 -7
  35. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +14 -4
  36. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +2 -0
  37. data/app/assets/stylesheets/govuk_publishing_components/components/_taxonomy-list.scss +2 -1
  38. data/app/assets/stylesheets/govuk_publishing_components/components/_taxonomy-navigation.scss +10 -0
  39. data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +4 -0
  40. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +7 -2
  41. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +4 -0
  42. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +24 -8
  43. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +47 -13
  44. data/app/controllers/govuk_publishing_components/application_controller.rb +5 -6
  45. data/app/views/govuk_publishing_components/component_guide/index.html.erb +2 -2
  46. data/app/views/govuk_publishing_components/component_guide/show.html.erb +9 -9
  47. data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +1 -1
  48. data/app/views/govuk_publishing_components/components/_feedback.html.erb +2 -2
  49. data/app/views/govuk_publishing_components/components/_image_card.html.erb +1 -1
  50. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +4 -7
  51. data/app/views/govuk_publishing_components/components/_notice.html.erb +2 -2
  52. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +2 -2
  53. data/app/views/govuk_publishing_components/components/_radio.html.erb +1 -1
  54. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +1 -1
  55. data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +2 -2
  56. data/app/views/govuk_publishing_components/components/_taxonomy_navigation.html.erb +2 -2
  57. data/app/views/govuk_publishing_components/components/_translation-nav.html.erb +1 -1
  58. data/app/views/govuk_publishing_components/components/docs/fieldset.yml +1 -1
  59. data/app/views/govuk_publishing_components/components/docs/layout_for_admin.yml +1 -0
  60. data/app/views/govuk_publishing_components/components/docs/tabs.yml +7 -7
  61. data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +1 -1
  62. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +3 -3
  63. data/app/views/layouts/govuk_publishing_components/application.html.erb +43 -44
  64. data/config/initializers/assets.rb +2 -0
  65. data/lib/govuk_publishing_components/app_helpers/environment.rb +1 -0
  66. data/lib/govuk_publishing_components/config.rb +1 -1
  67. data/lib/govuk_publishing_components/engine.rb +0 -1
  68. data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +1 -1
  69. data/lib/govuk_publishing_components/presenters/step_by_step_nav_helper.rb +1 -1
  70. data/lib/govuk_publishing_components/version.rb +1 -1
  71. data/node_modules/jquery/AUTHORS.txt +266 -0
  72. data/node_modules/jquery/LICENSE.txt +36 -0
  73. data/node_modules/jquery/README.md +65 -0
  74. data/node_modules/jquery/bower.json +14 -0
  75. data/node_modules/jquery/dist/jquery.js +11008 -0
  76. data/node_modules/jquery/dist/jquery.min.js +5 -0
  77. data/node_modules/jquery/dist/jquery.min.map +1 -0
  78. data/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
  79. data/node_modules/jquery/external/sizzle/dist/sizzle.js +2143 -0
  80. data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  81. data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  82. data/node_modules/jquery/package.json +157 -0
  83. data/node_modules/jquery/src/ajax.js +842 -0
  84. data/node_modules/jquery/src/ajax/jsonp.js +100 -0
  85. data/node_modules/jquery/src/ajax/load.js +83 -0
  86. data/node_modules/jquery/src/ajax/parseJSON.js +53 -0
  87. data/node_modules/jquery/src/ajax/parseXML.js +31 -0
  88. data/node_modules/jquery/src/ajax/script.js +95 -0
  89. data/node_modules/jquery/src/ajax/var/location.js +3 -0
  90. data/node_modules/jquery/src/ajax/var/nonce.js +5 -0
  91. data/node_modules/jquery/src/ajax/var/rquery.js +3 -0
  92. data/node_modules/jquery/src/ajax/xhr.js +229 -0
  93. data/node_modules/jquery/src/attributes.js +11 -0
  94. data/node_modules/jquery/src/attributes/attr.js +281 -0
  95. data/node_modules/jquery/src/attributes/classes.js +174 -0
  96. data/node_modules/jquery/src/attributes/prop.js +156 -0
  97. data/node_modules/jquery/src/attributes/support.js +70 -0
  98. data/node_modules/jquery/src/attributes/val.js +191 -0
  99. data/node_modules/jquery/src/callbacks.js +232 -0
  100. data/node_modules/jquery/src/core.js +529 -0
  101. data/node_modules/jquery/src/core/access.js +65 -0
  102. data/node_modules/jquery/src/core/init.js +140 -0
  103. data/node_modules/jquery/src/core/parseHTML.js +41 -0
  104. data/node_modules/jquery/src/core/ready.js +163 -0
  105. data/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
  106. data/node_modules/jquery/src/css.js +563 -0
  107. data/node_modules/jquery/src/css/addGetHookIf.js +24 -0
  108. data/node_modules/jquery/src/css/adjustCSS.js +65 -0
  109. data/node_modules/jquery/src/css/curCSS.js +137 -0
  110. data/node_modules/jquery/src/css/defaultDisplay.js +72 -0
  111. data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +42 -0
  112. data/node_modules/jquery/src/css/showHide.js +45 -0
  113. data/node_modules/jquery/src/css/support.js +184 -0
  114. data/node_modules/jquery/src/css/var/cssExpand.js +3 -0
  115. data/node_modules/jquery/src/css/var/isHidden.js +16 -0
  116. data/node_modules/jquery/src/css/var/rmargin.js +3 -0
  117. data/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
  118. data/node_modules/jquery/src/css/var/swap.js +24 -0
  119. data/node_modules/jquery/src/data.js +342 -0
  120. data/node_modules/jquery/src/data/support.js +23 -0
  121. data/node_modules/jquery/src/data/var/acceptData.js +20 -0
  122. data/node_modules/jquery/src/deferred.js +159 -0
  123. data/node_modules/jquery/src/deprecated.js +34 -0
  124. data/node_modules/jquery/src/dimensions.js +56 -0
  125. data/node_modules/jquery/src/effects.js +640 -0
  126. data/node_modules/jquery/src/effects/Tween.js +121 -0
  127. data/node_modules/jquery/src/effects/animatedSelector.js +13 -0
  128. data/node_modules/jquery/src/effects/support.js +58 -0
  129. data/node_modules/jquery/src/event.js +1134 -0
  130. data/node_modules/jquery/src/event/ajax.js +20 -0
  131. data/node_modules/jquery/src/event/alias.js +25 -0
  132. data/node_modules/jquery/src/event/support.js +28 -0
  133. data/node_modules/jquery/src/exports/amd.js +24 -0
  134. data/node_modules/jquery/src/exports/global.js +26 -0
  135. data/node_modules/jquery/src/intro.js +44 -0
  136. data/node_modules/jquery/src/jquery.js +37 -0
  137. data/node_modules/jquery/src/manipulation.js +585 -0
  138. data/node_modules/jquery/src/manipulation/_evalUrl.js +21 -0
  139. data/node_modules/jquery/src/manipulation/buildFragment.js +157 -0
  140. data/node_modules/jquery/src/manipulation/createSafeFragment.js +20 -0
  141. data/node_modules/jquery/src/manipulation/getAll.js +33 -0
  142. data/node_modules/jquery/src/manipulation/setGlobalEval.js +19 -0
  143. data/node_modules/jquery/src/manipulation/support.js +72 -0
  144. data/node_modules/jquery/src/manipulation/var/nodeNames.js +5 -0
  145. data/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
  146. data/node_modules/jquery/src/manipulation/var/rleadingWhitespace.js +3 -0
  147. data/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
  148. data/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
  149. data/node_modules/jquery/src/manipulation/wrapMap.js +30 -0
  150. data/node_modules/jquery/src/offset.js +219 -0
  151. data/node_modules/jquery/src/outro.js +2 -0
  152. data/node_modules/jquery/src/queue.js +144 -0
  153. data/node_modules/jquery/src/queue/delay.js +22 -0
  154. data/node_modules/jquery/src/selector-sizzle.js +14 -0
  155. data/node_modules/jquery/src/selector.js +1 -0
  156. data/node_modules/jquery/src/serialize.js +125 -0
  157. data/node_modules/jquery/src/support.js +63 -0
  158. data/node_modules/jquery/src/traversing.js +179 -0
  159. data/node_modules/jquery/src/traversing/findFilter.js +100 -0
  160. data/node_modules/jquery/src/traversing/var/dir.js +20 -0
  161. data/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
  162. data/node_modules/jquery/src/traversing/var/siblings.js +15 -0
  163. data/node_modules/jquery/src/var/class2type.js +5 -0
  164. data/node_modules/jquery/src/var/concat.js +5 -0
  165. data/node_modules/jquery/src/var/deletedIds.js +3 -0
  166. data/node_modules/jquery/src/var/document.js +3 -0
  167. data/node_modules/jquery/src/var/documentElement.js +5 -0
  168. data/node_modules/jquery/src/var/hasOwn.js +5 -0
  169. data/node_modules/jquery/src/var/indexOf.js +5 -0
  170. data/node_modules/jquery/src/var/pnum.js +3 -0
  171. data/node_modules/jquery/src/var/push.js +5 -0
  172. data/node_modules/jquery/src/var/rcssNum.js +7 -0
  173. data/node_modules/jquery/src/var/rnotwhite.js +3 -0
  174. data/node_modules/jquery/src/var/slice.js +5 -0
  175. data/node_modules/jquery/src/var/support.js +5 -0
  176. data/node_modules/jquery/src/var/toString.js +5 -0
  177. data/node_modules/jquery/src/wrap.js +77 -0
  178. metadata +111 -19
  179. data/app/assets/images/govuk_publishing_components/favicon-test.png +0 -0
  180. data/app/assets/stylesheets/govuk_publishing_components/admin_styles_ie8.scss +0 -3
  181. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_touch-friendly-links.scss +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8c9d9ec6c6487bdef155ae590798d937c6a5107cae8844c82b734d228401519
4
- data.tar.gz: 2652dac3fae86a01a886daea03ec694ed975290b5ccd2629a34b99e020a05720
3
+ metadata.gz: 3ee32f536043a1a2f64756b001e8461fc1d9c1115224355d5c4df4e5e85345fb
4
+ data.tar.gz: ab008670e129c580ad58822896f218a3d310aba562ffa9bbad94e1ddc2cada38
5
5
  SHA512:
6
- metadata.gz: f2b354947e964e18326d7077b0ff9bae41db3fd5aa5b1775abd115a30dd1514c04ef1dc7e30d255f7ebf64b3ce059477ea796c60bc1b1f536d7ec0780564fd72
7
- data.tar.gz: 4c3d8b859c0d3de97bd21c82754e2538c98721d03a91bf3f8ba16a2ff28fa528c2ca3dae21ba5f7aeb56e772d33e3372137cdd8fb6d6cfa97d9bb40426c70863
6
+ metadata.gz: 478e64833260a3752fe680760bdfcb1b227ac8cd9cf3cacb53de5e76d8a2fc4588b1d631f223029c033e47caae2eba1abd667faf544b9b288a177fc354ba3039
7
+ data.tar.gz: f58a472db124e4eef3ec5f79c1087d2e112d22d4150b80cf98ba2e5d030861ad2718655c91e48835a67bdec4da05089c4fb05fac938398d3f850b2aeb09d460b
@@ -1,3 +1,3 @@
1
- //= require govuk/modules
1
+ //= require ./no_slimmer
2
2
  //= require_tree ./vendor
3
3
  //= require_tree .
@@ -0,0 +1,15 @@
1
+ // This adds in javascript that initialiases components and dependencies
2
+ // that would normally be provided by slimmer
3
+ //= require jquery/dist/jquery
4
+ //= require govuk/modules
5
+
6
+ $(document).ready(function () {
7
+ 'use strict'
8
+
9
+ GOVUK.modules.start()
10
+
11
+ // Static has a Toggle module in here we have a GemToggle module, we can't
12
+ // easily change govspeak to use GemToggle but we can use the GemToggle module
13
+ var gemToggle = new GOVUK.Modules.GemToggle();
14
+ gemToggle.start($("[data-module=toggle]"));
15
+ })
@@ -1,4 +1,2 @@
1
- //= require govuk-frontend/all.js
2
-
3
- // Initialise all GOVUKFrontend components
4
- window.GOVUKFrontend.initAll()
1
+ //= require component_guide/no_slimmer
2
+ //= require govuk_publishing_components/all_components
@@ -1,2 +1,6 @@
1
1
  //= require_tree ./lib
2
2
  //= require_tree ./components
3
+ //= require govuk-frontend/all.js
4
+
5
+ // Initialise all GOVUKFrontend components
6
+ window.GOVUKFrontend.initAll()
@@ -1,32 +1,35 @@
1
1
  // This file contains the styles for the Component Guide.
2
2
 
3
- // `govuk_frontend_toolkit`
4
- @import "measurements";
5
- @import "grid_layout";
6
- @import "typography";
7
- @import "colours";
8
-
9
- $border-color: #ccc;
10
-
11
- .govuk-component-guide-wrapper {
12
- padding-bottom: $gutter * 1.5;
3
+ @import "govuk_publishing_components/components/helpers/govuk-frontend-settings";
4
+ @import "govuk-frontend/settings/all";
5
+ @import "govuk-frontend/tools/all";
6
+ @import "govuk-frontend/helpers/all";
7
+ @import "govuk-frontend/core/all";
8
+
9
+ .component-guide-wrapper {
10
+ padding-bottom: $govuk-gutter * 1.5;
13
11
  }
14
12
 
15
13
  .component-list {
16
- margin-left: 20px;
14
+ @include govuk-text-colour;
15
+ @extend %govuk-list--bullet;
17
16
 
18
17
  li {
19
- @include core-19;
20
- margin-bottom: $gutter-half;
18
+ @include govuk-font($size: 19);
19
+ margin-bottom: $govuk-gutter-half;
20
+ }
21
+
22
+ p {
23
+ margin: 0;
21
24
  }
22
25
  }
23
26
 
24
27
  .component-body {
25
- margin-bottom: $gutter * 1.5;
28
+ margin-bottom: $govuk-gutter * 1.5;
26
29
  }
27
30
 
28
31
  .component-doc {
29
- @include core-16;
32
+ @include govuk-font($size: 16);
30
33
 
31
34
  .component-doc-h2:first-child {
32
35
  margin-top: 0;
@@ -34,70 +37,63 @@ $border-color: #ccc;
34
37
  }
35
38
 
36
39
  .component-violation {
37
- border: 3px solid $error-colour;
38
- margin: 0 0 $gutter;
39
- padding: $gutter $gutter;
40
+ @include govuk-text-colour;
41
+ border: 3px solid $govuk-error-colour;
42
+ margin: 0 0 $govuk-gutter;
43
+ padding: $govuk-gutter $govuk-gutter;
40
44
 
41
45
  .component-violation__title {
42
- @include bold-24;
46
+ @include govuk-font($size: 24, $weight: bold);
47
+ margin: 0;
43
48
  }
44
49
 
45
50
  .component-violation__link {
46
51
  display: block;
47
- @include bold-19;
48
- color: $error-colour;
49
- margin: $gutter-half 0;
52
+ @include govuk-font($size: 19, $weight: bold);
53
+ color: $govuk-error-colour;
54
+ margin: $govuk-gutter-half 0;
50
55
  }
51
56
  }
52
57
 
53
58
  .component-doc-h2 {
54
- @include bold-27;
55
- margin: ($gutter * 1.5) 0 $gutter;
59
+ @include govuk-text-colour;
60
+ @include govuk-font($size: 27, $weight: bold);
61
+ margin: ($govuk-gutter * 1.5) 0 $govuk-gutter;
56
62
 
57
63
  small {
58
- @include bold-16;
64
+ @include govuk-font($size: 16, $weight: bold);
59
65
  }
60
66
  }
61
67
 
62
68
  .component-doc-h3 {
63
- margin: $gutter 0 $gutter-half;
64
- @include bold-19;
65
- }
66
-
67
- .component-guide-preview {
68
- padding: 30px 0;
69
-
70
- .preview-title {
71
- margin-bottom: 1em;
72
- @include bold-16;
73
-
74
- a {
75
- color: $black;
76
- }
77
- }
69
+ @include govuk-text-colour;
70
+ margin: $govuk-gutter 0 $govuk-gutter-half;
71
+ @include govuk-font($size: 19, $weight: bold);
78
72
  }
79
73
 
80
74
  .component-call {
81
- margin-top: $gutter-half;
82
- margin-bottom: $gutter-half;
75
+ margin-top: $govuk-gutter-half;
76
+ margin-bottom: $govuk-gutter-half;
83
77
 
84
78
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
85
79
  font-size: 16px;
86
80
  line-height: 1.5;
87
- border: 1px solid $border-colour;
81
+ border: 1px solid $govuk-border-colour;
88
82
 
89
83
  &[contenteditable]:hover {
90
84
  cursor: text;
91
85
  }
92
86
 
93
87
  &[contenteditable]:focus {
94
- outline: 3px solid $focus-colour;
88
+ outline: 3px solid $govuk-focus-colour;
95
89
  }
96
90
 
97
91
  > pre {
98
- padding: $gutter;
92
+ margin: 0;
93
+ padding: $govuk-gutter;
99
94
  max-height: 300px;
100
95
  overflow: auto;
96
+ font-family: inherit;
101
97
 
102
98
  > code {
103
99
  font-family: inherit;
@@ -119,26 +115,26 @@ $border-color: #ccc;
119
115
  }
120
116
 
121
117
  &.dark-background {
122
- background-color: $govuk-blue;
118
+ background-color: govuk-colour("blue");
123
119
  }
124
120
 
125
121
  &.component-output {
126
122
  padding: 0;
127
123
  }
128
124
 
129
- padding: ($gutter * 1.5) $gutter $gutter;
130
- border: 1px solid $border-colour;
125
+ padding: ($govuk-gutter * 1.5) $govuk-gutter $govuk-gutter;
126
+ border: 1px solid $govuk-border-colour;
131
127
  position: relative;
132
128
 
133
129
  &:before {
134
- @include core-14;
130
+ @include govuk-font($size: 14);
135
131
  content: attr(data-content);
136
132
  position: absolute;
137
133
  top: 0;
138
134
  left: 0;
139
135
  padding: 0.21053em 0.78947em;
140
- background: $border-colour;
141
- color: $black;
136
+ background: $govuk-border-colour;
137
+ color: govuk-colour("black");
142
138
  font-weight: bold;
143
139
  }
144
140
  }
@@ -154,24 +150,31 @@ $border-color: #ccc;
154
150
 
155
151
  .component-guide-preview--violation,
156
152
  .component-guide-preview--warning {
157
- margin-top: $gutter-half;
158
- @include core-19;
153
+ @include govuk-text-colour;
154
+ margin-top: $govuk-gutter-half;
155
+
156
+ @include govuk-font($size: 19);
159
157
 
160
158
  &:empty {
161
159
  display: none;
162
160
  }
163
161
 
164
162
  h3 {
165
- @include bold-19;
163
+ @include govuk-font($size: 19, $weight: bold);
166
164
  }
167
165
 
168
166
  p,
169
167
  h3 {
170
- margin-bottom: $gutter / 2;
168
+ margin-top: 0;
169
+ margin-bottom: $govuk-gutter / 2;
170
+ }
171
+
172
+ h3 a {
173
+ @extend %govuk-link;
171
174
  }
172
175
 
173
176
  h3:not(:first-child) {
174
- margin-top: $gutter;
177
+ margin-top: $govuk-gutter;
175
178
  }
176
179
 
177
180
  .selector {
@@ -180,32 +183,33 @@ $border-color: #ccc;
180
183
  }
181
184
 
182
185
  .component-guide-preview--warning {
183
- border-color: $yellow;
186
+ border-color: govuk-colour("yellow");
184
187
 
185
188
  &:before {
186
- background-color: $yellow;
189
+ background-color: govuk-colour("yellow");
187
190
  }
188
191
  }
189
192
 
190
193
  .component-guide-preview--violation {
191
- border-color: $red;
194
+ border-color: govuk-colour("red");
192
195
 
193
196
  &:before {
194
- background-color: $red;
195
- color: $white;
197
+ background-color: govuk-colour("red");
198
+ color: govuk-colour("white");
196
199
  }
197
200
  }
198
201
 
199
202
  .examples {
200
203
  .component-example {
201
- margin: 0 0 $gutter * 1.5;
204
+ margin: 0 0 $govuk-gutter * 1.5;
202
205
 
203
206
  .example-title {
204
- @include bold-24;
205
- margin: $gutter-half 0;
207
+ @include govuk-text-colour;
208
+ @include govuk-font($size: 24, $weight: bold);
209
+ margin: $govuk-gutter-half 0;
206
210
 
207
211
  small {
208
- @include bold-16;
212
+ @include govuk-font($size: 16, $weight: bold);
209
213
  }
210
214
  }
211
215
  }
@@ -213,7 +217,7 @@ $border-color: #ccc;
213
217
 
214
218
  // Preview Page Styling
215
219
  html {
216
- background: $white;
220
+ background: govuk-colour("white");
217
221
  }
218
222
 
219
223
  .hide-header-and-footer {
@@ -228,15 +232,17 @@ html {
228
232
  }
229
233
 
230
234
  .component-guide-preview-page {
231
- padding: ($gutter * 1.5) 0;
235
+ padding: ($govuk-gutter * 1.5) 0;
232
236
  position: relative;
233
237
 
234
238
  .preview-title {
239
+ margin-top: 0;
235
240
  margin-bottom: 1em;
236
- @include bold-16;
241
+ @include govuk-font($size: 16, $weight: bold);
237
242
 
238
243
  a {
239
- color: $black;
244
+ @include govuk-link-common;
245
+ @include govuk-link-style-text;
240
246
  }
241
247
  }
242
248
  }
@@ -252,20 +258,20 @@ html {
252
258
  // Rouge syntax highlighting
253
259
  // Based on https://github.com/alphagov/tech-docs-template/blob/master/template/source/stylesheets/palette/_syntax-highlighting.scss
254
260
 
255
- $code-00: scale-color($highlight-colour, $lightness:50%); // Default Background
261
+ $code-00: scale-color(govuk-colour("grey-4"), $lightness:50%); // Default Background
256
262
  $code-01: #f5f5f5; // Lighter Background (Unused)
257
263
  $code-02: #bfc1c3; // Selection Background
258
- $code-03: darken($secondary-text-colour, 2%); // Comments, Invisibles, Line Highlighting
264
+ $code-03: darken($govuk-secondary-text-colour, 2%); // Comments, Invisibles, Line Highlighting
259
265
  $code-04: #e8e8e8; // Dark Foreground (Unused)
260
- $code-05: $text-colour; // Default Foreground, Caret, Delimiters, Operators
266
+ $code-05: $govuk-text-colour; // Default Foreground, Caret, Delimiters, Operators
261
267
  $code-06: #ffffff; // Light Foreground (Unused)
262
268
  $code-07: #ffffff; // Light Background (Unused)
263
269
 
264
270
  $code-08: #ae5f3d; // Variables, XML Tags, Markup Link Text, Markup Lists
265
271
  $code-09: #0E7754; // Integers, Boolean, Constants, XML Attributes, Markup Link Url
266
272
  $code-0a: #4C4077; // Classes, Markup Bold, Search Text Background
267
- $code-0b: $govuk-blue; // Strings, Inherited Class, Markup Code
268
- $code-0c: $govuk-blue; // Support, Regular Expressions, Escape Characters, Markup Quotes
273
+ $code-0b: govuk-colour("blue"); // Strings, Inherited Class, Markup Code
274
+ $code-0c: govuk-colour("blue"); // Support, Regular Expressions, Escape Characters, Markup Quotes
269
275
  $code-0d: #4C4077; // Functions, Methods, Attribute IDs, Headings
270
276
  $code-0e: #a71d5d; // Keywords, Storage, Selector, Markup Italic
271
277
  $code-0f: #C92424; // Deprecated, Opening/Closing Embedded Language Tags e.g. <?php ?> (Unused)
@@ -1,3 +1,7 @@
1
+ // Include all of the GOV.UK Frontend styles. This includes fonts, and individual components.
2
+ @import "components/helpers/govuk-frontend-settings";
3
+ @import "govuk-frontend/all";
4
+
1
5
  // This is the file that the application needs to include in order to use
2
6
  // the components.
3
7
 
@@ -1,7 +1,6 @@
1
1
  @import "design-patterns/breadcrumbs";
2
2
  @import "mixins/back-arrow";
3
3
  @import "mixins/media-down";
4
- @import "mixins/touch-friendly-links";
5
4
 
6
5
  .gem-c-breadcrumbs {
7
6
  // reset the default browser styles
@@ -11,11 +10,28 @@
11
10
  }
12
11
 
13
12
  @include breadcrumbs;
14
- @include touch-friendly-links();
13
+
14
+ .gem-c-breadcrumbs__item {
15
+ @include govuk-text-colour;
16
+ }
17
+
18
+ .gem-c-breadcrumbs__link {
19
+ @include govuk-link-common;
20
+ @include govuk-link-style-text;
21
+ }
15
22
 
16
23
  .gem-c-breadcrumbs--current {
17
- color: $secondary-text-colour;
18
- text-decoration: none;
24
+ &:link,
25
+ &:visited,
26
+ &:hover,
27
+ &:active {
28
+ color: $secondary-text-colour;
29
+ text-decoration: none;
30
+ }
31
+
32
+ &:focus {
33
+ text-decoration: none;
34
+ }
19
35
  }
20
36
 
21
37
  @include media-down(mobile) {
@@ -39,5 +55,10 @@
39
55
 
40
56
  .gem-c-breadcrumbs--current.gem-c-breadcrumbs--inverse,
41
57
  .gem-c-breadcrumbs .gem-c-breadcrumbs--inverse {
42
- color: $white;
58
+ &:link,
59
+ &:visited,
60
+ &:hover,
61
+ &:active {
62
+ color: $white;
63
+ }
43
64
  }
@@ -29,6 +29,8 @@ $gem-destructive-button-border-colour: govuk-colour("black");
29
29
  }
30
30
 
31
31
  .gem-c-button__info-text {
32
+ @include govuk-text-colour;
33
+ @include govuk-font($size: 16);
32
34
  display: block;
33
35
  max-width: 14em;
34
36
  margin-top: .5em;
@@ -4,12 +4,32 @@
4
4
  // Always render the contents list above a
5
5
  // back to contents link
6
6
  position: relative;
7
- margin-bottom: $gutter-two-thirds;
7
+ margin: 0 0 $gutter-two-thirds 0;
8
8
  z-index: 1;
9
9
  background: $white;
10
10
  box-shadow: 0 20px 15px -10px $white;
11
11
  }
12
12
 
13
+ .gem-c-contents-list__title {
14
+ @include govuk-text-colour;
15
+ @include govuk-font($size: 16, $weight: regular, $line-height: 1.5);
16
+ margin: 0;
17
+ }
18
+
19
+ .gem-c-contents-list__list,
20
+ .gem-c-contents-list__nested-list {
21
+ @include govuk-text-colour;
22
+ @include govuk-font($size: 16);
23
+ margin: 0;
24
+ padding: 0;
25
+ list-style-type: none;
26
+ }
27
+
28
+ .gem-c-contents-list__link {
29
+ @include govuk-link-common;
30
+ @include govuk-link-style-default;
31
+ }
32
+
13
33
  .gem-c-contents-list--no-underline {
14
34
  .gem-c-contents-list__link {
15
35
  text-decoration: none;