govuk_publishing_components 21.54.0 → 21.55.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/action-link--nhs.png +0 -0
  3. data/app/assets/images/govuk_publishing_components/action-link--nhs.svg +1 -0
  4. data/app/assets/images/govuk_publishing_components/action-link-arrow--dark.png +0 -0
  5. data/app/assets/images/govuk_publishing_components/action-link-arrow--simple.png +0 -0
  6. data/app/assets/images/govuk_publishing_components/action-link-arrow.png +0 -0
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +38 -7
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +0 -38
  9. data/app/views/govuk_publishing_components/components/_action_link.html.erb +23 -3
  10. data/app/views/govuk_publishing_components/components/docs/action_link.yml +43 -15
  11. data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +1 -1
  12. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +1 -1
  13. data/lib/govuk_publishing_components/presenters/machine_readable/faq_page_schema.rb +7 -6
  14. data/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema.rb +77 -0
  15. data/lib/govuk_publishing_components/presenters/schema_org.rb +24 -16
  16. data/lib/govuk_publishing_components/version.rb +1 -1
  17. data/node_modules/govuk-frontend/README.md +6 -6
  18. data/node_modules/govuk-frontend/govuk/_base.scss +3 -0
  19. data/node_modules/govuk-frontend/govuk/all.js +1 -1
  20. data/node_modules/govuk-frontend/govuk/all.scss +1 -3
  21. data/node_modules/govuk-frontend/govuk/components/_all.scss +31 -29
  22. data/node_modules/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -208
  23. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +207 -0
  24. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +1 -1
  25. data/node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -65
  26. data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +112 -0
  27. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -118
  28. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +138 -0
  29. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro-options.json +6 -0
  30. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/template.njk +12 -1
  31. data/node_modules/govuk-frontend/govuk/components/button/_button.scss +2 -284
  32. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +280 -0
  33. data/node_modules/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -31
  34. data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +28 -0
  35. data/node_modules/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -308
  36. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +304 -0
  37. data/node_modules/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -30
  38. data/node_modules/govuk-frontend/govuk/components/date-input/_index.scss +26 -0
  39. data/node_modules/govuk-frontend/govuk/components/details/_details.scss +2 -88
  40. data/node_modules/govuk-frontend/govuk/components/details/_index.scss +84 -0
  41. data/node_modules/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -15
  42. data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +11 -0
  43. data/node_modules/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -59
  44. data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss +55 -0
  45. data/node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -68
  46. data/node_modules/govuk-frontend/govuk/components/fieldset/_index.scss +64 -0
  47. data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -81
  48. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +77 -0
  49. data/node_modules/govuk-frontend/govuk/components/footer/_footer.scss +2 -244
  50. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +238 -0
  51. data/node_modules/govuk-frontend/govuk/components/header/_header.scss +2 -318
  52. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +312 -0
  53. data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +7 -1
  54. data/node_modules/govuk-frontend/govuk/components/header/template.njk +2 -2
  55. data/node_modules/govuk-frontend/govuk/components/hint/_hint.scss +2 -50
  56. data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +46 -0
  57. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +99 -0
  58. data/node_modules/govuk-frontend/govuk/components/input/_input.scss +2 -103
  59. data/node_modules/govuk-frontend/govuk/components/inset-text/_index.scss +24 -0
  60. data/node_modules/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -28
  61. data/node_modules/govuk-frontend/govuk/components/label/_index.scss +41 -0
  62. data/node_modules/govuk-frontend/govuk/components/label/_label.scss +2 -45
  63. data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +40 -0
  64. data/node_modules/govuk-frontend/govuk/components/panel/_panel.scss +2 -44
  65. data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +27 -0
  66. data/node_modules/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -31
  67. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +342 -0
  68. data/node_modules/govuk-frontend/govuk/components/radios/_radios.scss +2 -346
  69. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +53 -0
  70. data/node_modules/govuk-frontend/govuk/components/select/_select.scss +2 -57
  71. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +33 -0
  72. data/node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -37
  73. data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +153 -0
  74. data/node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -157
  75. data/node_modules/govuk-frontend/govuk/components/table/_index.scss +50 -0
  76. data/node_modules/govuk-frontend/govuk/components/table/_table.scss +2 -54
  77. data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +138 -0
  78. data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -142
  79. data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +87 -0
  80. data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +2 -91
  81. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +51 -0
  82. data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -55
  83. data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +56 -0
  84. data/node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -60
  85. data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +5 -3
  86. data/node_modules/govuk-frontend/govuk/core/_links.scss +5 -3
  87. data/node_modules/govuk-frontend/govuk/core/_lists.scss +17 -3
  88. data/node_modules/govuk-frontend/govuk/core/_section-break.scss +5 -3
  89. data/node_modules/govuk-frontend/govuk/core/_template.scss +5 -3
  90. data/node_modules/govuk-frontend/govuk/core/_typography.scss +5 -3
  91. data/node_modules/govuk-frontend/govuk/helpers/_clearfix.scss +1 -1
  92. data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
  93. data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +2 -1
  94. data/node_modules/govuk-frontend/govuk/helpers/_links.scss +1 -1
  95. data/node_modules/govuk-frontend/govuk/helpers/_media-queries.scss +1 -1
  96. data/node_modules/govuk-frontend/govuk/helpers/_shape-arrow.scss +1 -1
  97. data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +1 -1
  98. data/node_modules/govuk-frontend/govuk/helpers/_typography.scss +1 -1
  99. data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +1 -1
  100. data/node_modules/govuk-frontend/govuk/objects/_form-group.scss +1 -3
  101. data/node_modules/govuk-frontend/govuk/objects/_grid.scss +1 -3
  102. data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +5 -3
  103. data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +2 -4
  104. data/node_modules/govuk-frontend/govuk/overrides/_display.scss +5 -3
  105. data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +5 -3
  106. data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +5 -3
  107. data/node_modules/govuk-frontend/govuk/overrides/_width.scss +5 -3
  108. data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +1 -1
  109. data/node_modules/govuk-frontend/govuk/tools/_compatibility.scss +1 -1
  110. data/node_modules/govuk-frontend/govuk/tools/_font-url.scss +1 -1
  111. data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +1 -1
  112. data/node_modules/govuk-frontend/govuk/tools/_image-url.scss +1 -1
  113. data/node_modules/govuk-frontend/govuk/tools/_px-to-em.scss +1 -1
  114. data/node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss +1 -1
  115. data/node_modules/govuk-frontend/package.json +21 -21
  116. metadata +49 -2
@@ -0,0 +1,238 @@
1
+ @include govuk-exports("govuk/component/footer") {
2
+
3
+ $govuk-footer-background: $govuk-canvas-background-colour;
4
+ $govuk-footer-border: $govuk-border-colour;
5
+ // This variable can be removed entirely once the legacy palette goes away,
6
+ // as it'll just be the same as $govuk-footer-border.
7
+ $govuk-footer-border-top: $govuk-border-colour;
8
+ $govuk-footer-text: $govuk-text-colour;
9
+ $govuk-footer-link: $govuk-footer-text;
10
+ $govuk-footer-link-hover: false;
11
+
12
+ @if ($govuk-use-legacy-palette) {
13
+ // sass-lint:disable no-color-literals
14
+ $govuk-footer-border-top: #a1acb2;
15
+ $govuk-footer-border: govuk-colour("grey-2");
16
+ $govuk-footer-text: #454a4c;
17
+ $govuk-footer-link: $govuk-footer-text;
18
+
19
+ // Only used with the legacy palette
20
+ $govuk-footer-link-hover: #171819;
21
+ }
22
+
23
+ // Based on the govuk-crest-2x.png image dimensions.
24
+ $govuk-footer-crest-image-width-2x: 250px;
25
+ $govuk-footer-crest-image-height-2x: 204px;
26
+ // Half the 2x image so that it fits the regular 1x size.
27
+ $govuk-footer-crest-image-width: ($govuk-footer-crest-image-width-2x / 2);
28
+ $govuk-footer-crest-image-height: ($govuk-footer-crest-image-height-2x / 2);
29
+
30
+ .govuk-footer {
31
+ @include govuk-font($size: 16);
32
+ @include govuk-responsive-padding(7, "top");
33
+ @include govuk-responsive-padding(5, "bottom");
34
+
35
+ border-top: 1px solid $govuk-footer-border-top;
36
+ color: $govuk-footer-text;
37
+ background: $govuk-footer-background;
38
+ }
39
+
40
+ .govuk-footer__link {
41
+ @if ($govuk-use-legacy-palette) {
42
+ &:link,
43
+ &:visited {
44
+ color: $govuk-footer-link;
45
+ }
46
+
47
+ &:hover,
48
+ &:active {
49
+ color: $govuk-footer-link-hover;
50
+ }
51
+ } @else {
52
+ &:link,
53
+ &:visited,
54
+ &:hover,
55
+ &:active {
56
+ color: $govuk-footer-link;
57
+ }
58
+ }
59
+
60
+ &:focus {
61
+ @include govuk-focused-text;
62
+ }
63
+
64
+ // alphagov/govuk_template includes a specific a:link:focus selector
65
+ // designed to make unvisited links a slightly darker blue when focussed, so
66
+ // we need to override the text colour for that combination of selectors.
67
+ @include govuk-compatibility(govuk_template) {
68
+ &:link:focus {
69
+ @include govuk-text-colour;
70
+ }
71
+ }
72
+ }
73
+
74
+ .govuk-footer__section-break {
75
+ margin: 0; // Reset `<hr>` default margins
76
+ @include govuk-responsive-margin(8, "bottom");
77
+ border: 0; // Reset `<hr>` default borders
78
+ border-bottom: 1px solid $govuk-footer-border;
79
+ }
80
+
81
+ .govuk-footer__meta {
82
+ display: -webkit-box;
83
+ display: -ms-flexbox;
84
+ display: flex; // Support: Flexbox
85
+ margin-right: -$govuk-gutter-half;
86
+ margin-left: -$govuk-gutter-half;
87
+ -ms-flex-wrap: wrap;
88
+ flex-wrap: wrap; // Support: Flexbox
89
+ -webkit-box-align: end;
90
+ -ms-flex-align: end;
91
+ align-items: flex-end; // Support: Flexbox
92
+ -webkit-box-pack: center;
93
+ -ms-flex-pack: center;
94
+ justify-content: center; // Support: Flexbox
95
+ }
96
+
97
+ .govuk-footer__meta-item {
98
+ margin-right: $govuk-gutter-half;
99
+ margin-bottom: govuk-spacing(5);
100
+ margin-left: $govuk-gutter-half;
101
+ }
102
+
103
+ .govuk-footer__meta-item--grow {
104
+ -webkit-box-flex: 1;
105
+ -ms-flex: 1;
106
+ flex: 1; // Support: Flexbox
107
+ @include govuk-media-query ($until: tablet) {
108
+ -ms-flex-preferred-size: 320px;
109
+ flex-basis: 320px; // Support: Flexbox
110
+ }
111
+ }
112
+
113
+ .govuk-footer__licence-logo {
114
+ display: inline-block;
115
+ margin-right: govuk-spacing(2);
116
+ @include govuk-media-query ($until: desktop) {
117
+ margin-bottom: govuk-spacing(3);
118
+ }
119
+ vertical-align: top;
120
+ }
121
+
122
+ .govuk-footer__licence-description {
123
+ display: inline-block;
124
+ }
125
+
126
+ .govuk-footer__copyright-logo {
127
+ display: inline-block;
128
+ min-width: $govuk-footer-crest-image-width;
129
+ padding-top: ($govuk-footer-crest-image-height + govuk-spacing(2));
130
+ background-image: govuk-image-url("govuk-crest.png");
131
+ @include govuk-device-pixel-ratio {
132
+ background-image: govuk-image-url("govuk-crest-2x.png");
133
+ }
134
+ background-repeat: no-repeat;
135
+ background-position: 50% 0%;
136
+ background-size: $govuk-footer-crest-image-width $govuk-footer-crest-image-height;
137
+ text-align: center;
138
+ text-decoration: none;
139
+ white-space: nowrap;
140
+ }
141
+
142
+ .govuk-footer__inline-list {
143
+ margin-top: 0;
144
+ margin-bottom: govuk-spacing(3);
145
+ padding: 0;
146
+ }
147
+
148
+ .govuk-footer__meta-custom {
149
+ margin-bottom: govuk-spacing(4);
150
+ }
151
+
152
+ .govuk-footer__inline-list-item {
153
+ display: inline-block;
154
+ margin-right: govuk-spacing(3);
155
+ margin-bottom: govuk-spacing(1);
156
+ }
157
+
158
+ .govuk-footer__heading {
159
+ @include govuk-responsive-margin(7, "bottom");
160
+ padding-bottom: govuk-spacing(4);
161
+ @include govuk-media-query ($until: tablet) {
162
+ padding-bottom: govuk-spacing(2);
163
+ }
164
+ border-bottom: 1px solid $govuk-footer-border;
165
+ }
166
+
167
+ .govuk-footer__navigation {
168
+ display: -webkit-box;
169
+ display: -ms-flexbox;
170
+ display: flex; // Support: Flexbox
171
+ margin-right: -$govuk-gutter-half;
172
+ margin-left: -$govuk-gutter-half;
173
+ -ms-flex-wrap: wrap;
174
+ flex-wrap: wrap; // Support: Flexbox
175
+ }
176
+
177
+ .govuk-footer__section {
178
+ display: inline-block;
179
+ margin-right: $govuk-gutter-half;
180
+ margin-bottom: $govuk-gutter;
181
+ margin-left: $govuk-gutter-half;
182
+ vertical-align: top;
183
+ // Ensure columns take up equal width (typically one-half:one-half)
184
+ -webkit-box-flex: 1;
185
+ -ms-flex-positive: 1;
186
+ flex-grow: 1; // Support: Flexbox
187
+ -ms-flex-negative: 1;
188
+ flex-shrink: 1; // Support: Flexbox
189
+ @include govuk-media-query ($until: desktop) {
190
+ // Make sure columns do not drop below 200px in width
191
+ // Will typically result in wrapping, and end up in a single column on smaller screens.
192
+ -ms-flex-preferred-size: 200px;
193
+ flex-basis: 200px; // Support: Flexbox
194
+ }
195
+ }
196
+
197
+ // If there are only two sections, set the layout to be two-third:one-third on desktop
198
+ @include govuk-media-query ($from: desktop) {
199
+ // We match the first section with `:first-child`.
200
+ // To ensure the section is one of two, we can count backwards using `:nth-last-child(2)`.
201
+ .govuk-footer__section:first-child:nth-last-child(2) {
202
+ -webkit-box-flex: 2;
203
+ -ms-flex-positive: 2;
204
+ flex-grow: 2; // Support: Flexbox
205
+ }
206
+ }
207
+
208
+ .govuk-footer__list {
209
+ margin: 0;
210
+ padding: 0;
211
+ list-style: none;
212
+ -webkit-column-gap: $govuk-gutter;
213
+ -moz-column-gap: $govuk-gutter;
214
+ column-gap: $govuk-gutter; // Support: Columns
215
+ }
216
+
217
+ @include govuk-media-query ($from: desktop) {
218
+ .govuk-footer__list--columns-2 {
219
+ -webkit-column-count: 2;
220
+ -moz-column-count: 2;
221
+ column-count: 2; // Support: Columns
222
+ }
223
+
224
+ .govuk-footer__list--columns-3 {
225
+ -webkit-column-count: 3;
226
+ -moz-column-count: 3;
227
+ column-count: 3; // Support: Columns
228
+ }
229
+ }
230
+
231
+ .govuk-footer__list-item {
232
+ @include govuk-responsive-margin(4, "bottom");
233
+ }
234
+
235
+ .govuk-footer__list-item:last-child {
236
+ margin-bottom: 0;
237
+ }
238
+ }
@@ -1,318 +1,2 @@
1
- @import "../../settings/all";
2
- @import "../../tools/all";
3
- @import "../../helpers/all";
4
-
5
- @import "../../helpers/typography";
6
-
7
- @include govuk-exports("govuk/component/header") {
8
-
9
- $govuk-header-background: govuk-colour("black");
10
- $govuk-header-border-color: $govuk-brand-colour;
11
- $govuk-header-border-width: govuk-spacing(2);
12
- $govuk-header-text: govuk-colour("white");
13
- $govuk-header-link: govuk-colour("white");
14
- $govuk-header-link-hover: govuk-colour("white");
15
- $govuk-header-link-active: #1d8feb;
16
- $govuk-header-nav-item-border-color: #2e3133;
17
-
18
- .govuk-header {
19
- @include govuk-font($size: 16);
20
-
21
- border-bottom: govuk-spacing(2) solid govuk-colour("white");
22
- color: $govuk-header-text;
23
- background: $govuk-header-background;
24
-
25
- }
26
-
27
- .govuk-header__container--full-width {
28
- padding: 0 govuk-spacing(3);
29
- border-color: $govuk-header-border-color;
30
-
31
- .govuk-header__menu-button {
32
- right: govuk-spacing(3);
33
- }
34
- }
35
-
36
- .govuk-header__container {
37
- @include govuk-clearfix;
38
- position: relative;
39
- margin-bottom: -$govuk-header-border-width;
40
- padding-top: govuk-spacing(2);
41
- border-bottom: $govuk-header-border-width solid $govuk-header-border-color;
42
- }
43
-
44
- .govuk-header__logotype {
45
- display: inline-block;
46
- margin-right: govuk-spacing(1);
47
- }
48
-
49
- .govuk-header__logotype-crown {
50
- position: relative;
51
- top: -1px;
52
- margin-right: 1px;
53
- fill: currentColor;
54
- vertical-align: top;
55
- }
56
-
57
- .govuk-header__logotype-crown-fallback-image {
58
- width: 36px;
59
- height: 32px;
60
- border: 0;
61
- vertical-align: middle;
62
- }
63
-
64
- .govuk-header__product-name {
65
- @include govuk-font($size: 24, $line-height: 1);
66
- display: inline-table;
67
- padding-right: govuk-spacing(2);
68
- }
69
-
70
- .govuk-header__link {
71
- text-decoration: none;
72
-
73
- &:link,
74
- &:visited {
75
- color: $govuk-header-link;
76
- }
77
-
78
- &:hover {
79
- text-decoration: underline;
80
- }
81
-
82
- &:focus {
83
- @include govuk-focused-text;
84
- }
85
-
86
- // alphagov/govuk_template includes a specific a:link:focus selector
87
- // designed to make unvisited links a slightly darker blue when focussed, so
88
- // we need to override the text colour for that combination of selectors.
89
- @include govuk-compatibility(govuk_template) {
90
- &:link:focus {
91
- @include govuk-text-colour;
92
- }
93
- }
94
- }
95
-
96
- .govuk-header__link--homepage {
97
- // Font size needs to be set on the link so that the box sizing is correct
98
- // in Firefox
99
- @include govuk-font($size: false, $weight: bold);
100
-
101
- display: inline-block;
102
- font-size: 30px; // We don't have a mixin that produces 30px font size
103
- line-height: 1;
104
-
105
- &:link,
106
- &:visited {
107
- text-decoration: none;
108
- }
109
-
110
- &:hover,
111
- &:active {
112
- // Negate the added border
113
- margin-bottom: -1px;
114
- // Omitting colour will use default value of currentColor – if we
115
- // specified currentColor explicitly IE8 would ignore this rule.
116
- border-bottom: 1px solid;
117
- }
118
-
119
- // Remove any borders that show when focused and hovered.
120
- &:focus {
121
- margin-bottom: 0;
122
- border-bottom: 0;
123
- }
124
- }
125
-
126
- .govuk-header__link--service-name {
127
- display: inline-block;
128
- margin-bottom: govuk-spacing(2);
129
- @include govuk-font($size: 24, $weight: bold);
130
- }
131
-
132
- .govuk-header__logo,
133
- .govuk-header__content {
134
- box-sizing: border-box;
135
- }
136
-
137
- .govuk-header__logo {
138
- @include govuk-responsive-margin(2, "bottom");
139
- padding-right: govuk-spacing(8);
140
-
141
- @include govuk-media-query ($from: desktop) {
142
- width: 33.33%;
143
- padding-right: $govuk-gutter-half;
144
- float: left;
145
- vertical-align: top;
146
- }
147
- }
148
-
149
- .govuk-header__content {
150
- @include govuk-media-query ($from: desktop) {
151
- width: 66.66%;
152
- padding-left: $govuk-gutter-half;
153
- float: left;
154
- }
155
- }
156
-
157
- .govuk-header__menu-button {
158
- @include govuk-font($size: 16);
159
- display: none;
160
- position: absolute;
161
- top: govuk-spacing(4);
162
- right: 0;
163
- margin: 0;
164
- padding: 0;
165
- border: 0;
166
- color: $govuk-header-link;
167
- background: none;
168
-
169
- &:hover {
170
- text-decoration: underline;
171
- }
172
-
173
- &:focus {
174
- @include govuk-focused-text;
175
- }
176
-
177
- &::after {
178
- @include govuk-shape-arrow($direction: down, $base: 10px, $display: inline-block);
179
- content: "";
180
- margin-left: govuk-spacing(1);
181
- }
182
-
183
- @include govuk-media-query ($from: tablet) {
184
- top: govuk-spacing(3);
185
- }
186
- }
187
-
188
- .govuk-header__menu-button--open {
189
- &::after {
190
- @include govuk-shape-arrow($direction: up, $base: 10px, $display: inline-block);
191
- }
192
- }
193
-
194
- .govuk-header__navigation {
195
- @include govuk-responsive-margin(2, "bottom");
196
- display: block;
197
- margin: 0;
198
- padding: 0;
199
- list-style: none;
200
- }
201
-
202
- .js-enabled {
203
- .govuk-header__menu-button {
204
- display: block;
205
- @include govuk-media-query ($from: desktop) {
206
- display: none;
207
- }
208
- }
209
-
210
- .govuk-header__navigation {
211
- display: none;
212
- @include govuk-media-query ($from: desktop) {
213
- display: block;
214
- }
215
- }
216
-
217
- .govuk-header__navigation--open {
218
- display: block;
219
- }
220
- }
221
-
222
-
223
- .govuk-header__navigation--end {
224
- @include govuk-media-query ($from: desktop) {
225
- margin: 0;
226
- padding: govuk-spacing(1) 0;
227
- text-align: right;
228
- }
229
- }
230
-
231
- .govuk-header__navigation--no-service-name {
232
- padding-top: govuk-spacing(7);
233
- }
234
-
235
- .govuk-header__navigation-item {
236
- padding: govuk-spacing(2) 0;
237
- border-bottom: 1px solid $govuk-header-nav-item-border-color;
238
-
239
- @include govuk-media-query ($from: desktop) {
240
- display: inline-block;
241
- margin-right: govuk-spacing(3);
242
- padding: govuk-spacing(1) 0;
243
- border: 0;
244
- }
245
-
246
- a {
247
- @include govuk-font($size: 16, $weight: bold);
248
- white-space: nowrap;
249
- }
250
- }
251
-
252
- .govuk-header__navigation-item--active {
253
- a {
254
- &:link,
255
- &:hover,
256
- &:visited {
257
- color: $govuk-header-link-active;
258
- }
259
-
260
- // When focussed, the text colour needs to be darker to ensure that colour
261
- // contrast is still acceptable
262
- &:focus {
263
- color: $govuk-focus-text-colour;
264
- }
265
- }
266
- }
267
-
268
- .govuk-header__navigation-item:last-child {
269
- margin-right: 0;
270
- }
271
-
272
- @include govuk-media-query($media-type: print) {
273
- .govuk-header {
274
- border-bottom-width: 0;
275
- color: govuk-colour("black");
276
- background: transparent;
277
- }
278
-
279
- // Hide the inverted crown when printing in browsers that don't support SVG.
280
- .govuk-header__logotype-crown-fallback-image {
281
- display: none;
282
- }
283
-
284
- .govuk-header__link {
285
- &:link,
286
- &:visited {
287
- color: govuk-colour("black");
288
- }
289
-
290
- // Do not append link href to GOV.UK link when printing (e.g. '(/)')
291
- &:after {
292
- display: none;
293
- }
294
- }
295
- }
296
-
297
- @if $govuk-use-legacy-font {
298
- // Begin adjustments for font baseline offset
299
- // These should be removed when the font is updated with the correct baseline
300
- .govuk-header__logotype-crown,
301
- .govuk-header__logotype-crown-fallback-image {
302
- position: relative;
303
- top: -4px;
304
- vertical-align: middle;
305
- }
306
-
307
- .govuk-header {
308
- $offset: 3px;
309
- padding-top: $offset;
310
- }
311
-
312
- .govuk-header__link--homepage {
313
- line-height: 30px;
314
- }
315
- // End adjustments
316
- }
317
-
318
- }
1
+ @import "../../base";
2
+ @import "./index";