govuk_publishing_components 21.52.1 → 21.55.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) 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/controllers/govuk_publishing_components/component_guide_controller.rb +34 -22
  10. data/app/views/govuk_publishing_components/components/_action_link.html.erb +23 -3
  11. data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +5 -36
  12. data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +28 -8
  13. data/app/views/govuk_publishing_components/components/docs/action_link.yml +43 -15
  14. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +23 -0
  15. data/lib/govuk_publishing_components.rb +1 -0
  16. data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +107 -0
  17. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +14 -1
  18. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb +1 -3
  19. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +40 -19
  20. data/lib/govuk_publishing_components/presenters/machine_readable/faq_page_schema.rb +7 -6
  21. data/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema.rb +77 -0
  22. data/lib/govuk_publishing_components/presenters/schema_org.rb +24 -16
  23. data/lib/govuk_publishing_components/version.rb +1 -1
  24. data/node_modules/axe-core/CHANGELOG.md +6 -0
  25. data/node_modules/axe-core/axe.js +19 -3
  26. data/node_modules/axe-core/axe.min.js +2 -2
  27. data/node_modules/axe-core/bower.json +1 -1
  28. data/node_modules/axe-core/lib/commons/dom/get-element-stack.js +27 -1
  29. data/node_modules/axe-core/package.json +23 -23
  30. data/node_modules/axe-core/sri-history.json +4 -0
  31. data/node_modules/govuk-frontend/README.md +6 -6
  32. data/node_modules/govuk-frontend/govuk/_base.scss +3 -0
  33. data/node_modules/govuk-frontend/govuk/all.js +1 -1
  34. data/node_modules/govuk-frontend/govuk/all.scss +1 -3
  35. data/node_modules/govuk-frontend/govuk/components/_all.scss +31 -29
  36. data/node_modules/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -208
  37. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +207 -0
  38. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +1 -1
  39. data/node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -65
  40. data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +112 -0
  41. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -118
  42. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +138 -0
  43. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro-options.json +6 -0
  44. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/template.njk +12 -1
  45. data/node_modules/govuk-frontend/govuk/components/button/_button.scss +2 -284
  46. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +280 -0
  47. data/node_modules/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -31
  48. data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +28 -0
  49. data/node_modules/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -308
  50. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +304 -0
  51. data/node_modules/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -30
  52. data/node_modules/govuk-frontend/govuk/components/date-input/_index.scss +26 -0
  53. data/node_modules/govuk-frontend/govuk/components/details/_details.scss +2 -88
  54. data/node_modules/govuk-frontend/govuk/components/details/_index.scss +84 -0
  55. data/node_modules/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -15
  56. data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +11 -0
  57. data/node_modules/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -59
  58. data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss +55 -0
  59. data/node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -68
  60. data/node_modules/govuk-frontend/govuk/components/fieldset/_index.scss +64 -0
  61. data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -81
  62. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +77 -0
  63. data/node_modules/govuk-frontend/govuk/components/footer/_footer.scss +2 -244
  64. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +238 -0
  65. data/node_modules/govuk-frontend/govuk/components/header/_header.scss +2 -318
  66. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +312 -0
  67. data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +7 -1
  68. data/node_modules/govuk-frontend/govuk/components/header/template.njk +2 -2
  69. data/node_modules/govuk-frontend/govuk/components/hint/_hint.scss +2 -50
  70. data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +46 -0
  71. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +99 -0
  72. data/node_modules/govuk-frontend/govuk/components/input/_input.scss +2 -103
  73. data/node_modules/govuk-frontend/govuk/components/inset-text/_index.scss +24 -0
  74. data/node_modules/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -28
  75. data/node_modules/govuk-frontend/govuk/components/label/_index.scss +41 -0
  76. data/node_modules/govuk-frontend/govuk/components/label/_label.scss +2 -45
  77. data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +40 -0
  78. data/node_modules/govuk-frontend/govuk/components/panel/_panel.scss +2 -44
  79. data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +27 -0
  80. data/node_modules/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -31
  81. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +342 -0
  82. data/node_modules/govuk-frontend/govuk/components/radios/_radios.scss +2 -346
  83. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +53 -0
  84. data/node_modules/govuk-frontend/govuk/components/select/_select.scss +2 -57
  85. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +33 -0
  86. data/node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -37
  87. data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +153 -0
  88. data/node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -157
  89. data/node_modules/govuk-frontend/govuk/components/table/_index.scss +50 -0
  90. data/node_modules/govuk-frontend/govuk/components/table/_table.scss +2 -54
  91. data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +138 -0
  92. data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -142
  93. data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +87 -0
  94. data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +2 -91
  95. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +51 -0
  96. data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -55
  97. data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +56 -0
  98. data/node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -60
  99. data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +5 -3
  100. data/node_modules/govuk-frontend/govuk/core/_links.scss +5 -3
  101. data/node_modules/govuk-frontend/govuk/core/_lists.scss +17 -3
  102. data/node_modules/govuk-frontend/govuk/core/_section-break.scss +5 -3
  103. data/node_modules/govuk-frontend/govuk/core/_template.scss +5 -3
  104. data/node_modules/govuk-frontend/govuk/core/_typography.scss +5 -3
  105. data/node_modules/govuk-frontend/govuk/helpers/_clearfix.scss +1 -1
  106. data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
  107. data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +2 -1
  108. data/node_modules/govuk-frontend/govuk/helpers/_links.scss +1 -1
  109. data/node_modules/govuk-frontend/govuk/helpers/_media-queries.scss +1 -1
  110. data/node_modules/govuk-frontend/govuk/helpers/_shape-arrow.scss +1 -1
  111. data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +1 -1
  112. data/node_modules/govuk-frontend/govuk/helpers/_typography.scss +1 -1
  113. data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +1 -1
  114. data/node_modules/govuk-frontend/govuk/objects/_form-group.scss +1 -3
  115. data/node_modules/govuk-frontend/govuk/objects/_grid.scss +1 -3
  116. data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +5 -3
  117. data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +2 -4
  118. data/node_modules/govuk-frontend/govuk/overrides/_display.scss +5 -3
  119. data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +5 -3
  120. data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +5 -3
  121. data/node_modules/govuk-frontend/govuk/overrides/_width.scss +5 -3
  122. data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +1 -1
  123. data/node_modules/govuk-frontend/govuk/tools/_compatibility.scss +1 -1
  124. data/node_modules/govuk-frontend/govuk/tools/_font-url.scss +1 -1
  125. data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +1 -1
  126. data/node_modules/govuk-frontend/govuk/tools/_image-url.scss +1 -1
  127. data/node_modules/govuk-frontend/govuk/tools/_px-to-em.scss +1 -1
  128. data/node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss +1 -1
  129. data/node_modules/govuk-frontend/package.json +23 -23
  130. data/node_modules/jquery/package.json +2 -2
  131. metadata +50 -2
@@ -0,0 +1,304 @@
1
+ @import "../error-message/index";
2
+ @import "../fieldset/index";
3
+ @import "../hint/index";
4
+ @import "../label/index";
5
+
6
+ @include govuk-exports("govuk/component/checkboxes") {
7
+
8
+ $govuk-touch-target-size: 44px;
9
+ $govuk-checkboxes-size: 40px;
10
+ $govuk-small-checkboxes-size: 24px;
11
+ $govuk-checkboxes-label-padding-left-right: govuk-spacing(3);
12
+
13
+ .govuk-checkboxes__item {
14
+ @include govuk-font($size: 19);
15
+
16
+ display: block;
17
+ position: relative;
18
+
19
+ min-height: $govuk-checkboxes-size;
20
+
21
+ margin-bottom: govuk-spacing(2);
22
+ padding-left: $govuk-checkboxes-size;
23
+
24
+ clear: left;
25
+ }
26
+
27
+ .govuk-checkboxes__item:last-child,
28
+ .govuk-checkboxes__item:last-of-type {
29
+ margin-bottom: 0;
30
+ }
31
+
32
+ .govuk-checkboxes__input {
33
+ $input-offset: ($govuk-touch-target-size - $govuk-checkboxes-size) / 2;
34
+
35
+ cursor: pointer;
36
+
37
+ // IE8 doesn’t support pseudo-elements, so we don’t want to hide native
38
+ // elements there.
39
+ @include govuk-not-ie8 {
40
+ position: absolute;
41
+
42
+ z-index: 1;
43
+ top: $input-offset * -1;
44
+ left: $input-offset * -1;
45
+
46
+ width: $govuk-touch-target-size;
47
+ height: $govuk-touch-target-size;
48
+ margin: 0;
49
+
50
+ opacity: 0;
51
+ }
52
+
53
+ @include govuk-if-ie8 {
54
+ margin-top: 10px;
55
+ margin-right: $govuk-checkboxes-size / -2;
56
+ margin-left: $govuk-checkboxes-size / -2;
57
+ float: left;
58
+
59
+ // add focus outline to input
60
+ &:focus {
61
+ outline: $govuk-focus-width solid $govuk-focus-colour;
62
+ }
63
+ }
64
+ }
65
+
66
+ .govuk-checkboxes__label {
67
+ display: inline-block;
68
+ margin-bottom: 0;
69
+ padding: 8px $govuk-checkboxes-label-padding-left-right govuk-spacing(1);
70
+ cursor: pointer;
71
+ // remove 300ms pause on mobile
72
+ -ms-touch-action: manipulation;
73
+ touch-action: manipulation;
74
+ }
75
+
76
+ // [ ] Check box
77
+ .govuk-checkboxes__label::before {
78
+ content: "";
79
+ box-sizing: border-box;
80
+ position: absolute;
81
+ top: 0;
82
+ left: 0;
83
+ width: $govuk-checkboxes-size;
84
+ height: $govuk-checkboxes-size;
85
+ border: $govuk-border-width-form-element solid currentColor;
86
+ background: transparent;
87
+ }
88
+
89
+ // ✔ Check mark
90
+ //
91
+ // The check mark is a box with a border on the left and bottom side (└──),
92
+ // rotated 45 degrees
93
+ .govuk-checkboxes__label::after {
94
+ content: "";
95
+
96
+ position: absolute;
97
+ top: 11px;
98
+ left: 9px;
99
+ width: 18px;
100
+ height: 7px;
101
+
102
+ -webkit-transform: rotate(-45deg);
103
+
104
+ -ms-transform: rotate(-45deg);
105
+
106
+ transform: rotate(-45deg);
107
+ border: solid;
108
+ border-width: 0 0 $govuk-border-width $govuk-border-width;
109
+ // Fix bug in IE11 caused by transform rotate (-45deg).
110
+ // See: alphagov/govuk_elements/issues/518
111
+ border-top-color: transparent;
112
+
113
+ opacity: 0;
114
+
115
+ background: transparent;
116
+ }
117
+
118
+ .govuk-checkboxes__hint {
119
+ display: block;
120
+ padding-right: $govuk-checkboxes-label-padding-left-right;
121
+ padding-left: $govuk-checkboxes-label-padding-left-right;
122
+ }
123
+
124
+ // Focused state
125
+ .govuk-checkboxes__input:focus + .govuk-checkboxes__label::before {
126
+ border-width: 4px;
127
+ box-shadow: 0 0 0 $govuk-focus-width $govuk-focus-colour;
128
+ }
129
+
130
+ // Selected state
131
+ .govuk-checkboxes__input:checked + .govuk-checkboxes__label::after {
132
+ opacity: 1;
133
+ }
134
+
135
+ // Disabled state
136
+ .govuk-checkboxes__input:disabled,
137
+ .govuk-checkboxes__input:disabled + .govuk-checkboxes__label {
138
+ cursor: default;
139
+ }
140
+
141
+ .govuk-checkboxes__input:disabled + .govuk-checkboxes__label {
142
+ opacity: .5;
143
+ }
144
+
145
+ // =========================================================
146
+ // Conditional reveals
147
+ // =========================================================
148
+
149
+ // The narrow border is used in the conditional reveals because the border has
150
+ // to be an even number in order to be centred under the 40px checkbox or radio.
151
+ $conditional-border-width: $govuk-border-width-narrow;
152
+ // Calculate the amount of padding needed to keep the border centered against the checkbox.
153
+ $conditional-border-padding: ($govuk-checkboxes-size / 2) - ($conditional-border-width / 2);
154
+ // Move the border centered with the checkbox
155
+ $conditional-margin-left: $conditional-border-padding;
156
+ // Move the contents of the conditional inline with the label
157
+ $conditional-padding-left: $conditional-border-padding + $govuk-checkboxes-label-padding-left-right;
158
+
159
+ .govuk-checkboxes__conditional {
160
+ @include govuk-responsive-margin(4, "bottom");
161
+ margin-left: $conditional-margin-left;
162
+ padding-left: $conditional-padding-left;
163
+ border-left: $conditional-border-width solid $govuk-border-colour;
164
+
165
+ .js-enabled &--hidden {
166
+ display: none;
167
+ }
168
+
169
+ & > :last-child {
170
+ margin-bottom: 0;
171
+ }
172
+ }
173
+
174
+ // =========================================================
175
+ // Small checkboxes
176
+ // =========================================================
177
+
178
+ .govuk-checkboxes--small {
179
+
180
+ $input-offset: ($govuk-touch-target-size - $govuk-small-checkboxes-size) / 2;
181
+ $label-offset: $govuk-touch-target-size - $input-offset;
182
+
183
+ .govuk-checkboxes__item {
184
+ @include govuk-clearfix;
185
+ min-height: 0;
186
+ margin-bottom: 0;
187
+ padding-left: $label-offset;
188
+ float: left;
189
+ }
190
+
191
+ // Shift the touch target into the left margin so that the visible edge of
192
+ // the control is aligned
193
+ //
194
+ // ┆What colours do you like?
195
+ // ┌┆───┐
196
+ // │┆[] │ Purple
197
+ // └┆▲──┘
198
+ // ▲┆└─ Check box pseudo element, aligned with margin
199
+ // └─── Touch target (invisible input), shifted into the margin
200
+ .govuk-checkboxes__input {
201
+ @include govuk-not-ie8 {
202
+ left: $input-offset * -1;
203
+ }
204
+
205
+ @include govuk-if-ie8 {
206
+ margin-left: $govuk-small-checkboxes-size * -1;
207
+ }
208
+ }
209
+
210
+ // Adjust the size and position of the label.
211
+ //
212
+ // Unlike larger checkboxes, we also have to float the label in order to
213
+ // 'shrink' it, preventing the hover state from kicking in across the full
214
+ // width of the parent element.
215
+ .govuk-checkboxes__label {
216
+ margin-top: -2px;
217
+ padding: 13px govuk-spacing(3) 13px 1px;
218
+ float: left;
219
+
220
+ @include govuk-media-query($from: tablet) {
221
+ padding: 11px govuk-spacing(3) 10px 1px;
222
+ }
223
+ }
224
+
225
+ // [ ] Check box
226
+ //
227
+ // Reduce the size of the check box [1], vertically center it within the
228
+ // touch target [2]
229
+ .govuk-checkboxes__label::before {
230
+ top: $input-offset - $govuk-border-width-form-element; // 2
231
+ width: $govuk-small-checkboxes-size; // 1
232
+ height: $govuk-small-checkboxes-size; // 1
233
+ }
234
+
235
+ // ✔ Check mark
236
+ //
237
+ // Reduce the size of the check mark and re-align within the checkbox
238
+ .govuk-checkboxes__label::after {
239
+ top: 15px;
240
+ left: 6px;
241
+ width: 9px;
242
+ height: 3.5px;
243
+ border-width: 0 0 3px 3px;
244
+ }
245
+
246
+ // Fix position of hint with small checkboxes
247
+ //
248
+ // Do not use hints with small checkboxes – because they're within the input
249
+ // wrapper they trigger the hover state, but clicking them doesn't actually
250
+ // activate the control.
251
+ //
252
+ // (If you do use them, they won't look completely broken... but seriously,
253
+ // don't use them)
254
+ .govuk-checkboxes__hint {
255
+ padding: 0;
256
+ clear: both;
257
+ }
258
+
259
+ // Align conditional reveals with small checkboxes
260
+ .govuk-checkboxes__conditional {
261
+ $margin-left: ($govuk-small-checkboxes-size / 2) - ($conditional-border-width / 2);
262
+ margin-left: $margin-left;
263
+ padding-left: $label-offset - ($margin-left + $conditional-border-width);
264
+ clear: both;
265
+ }
266
+
267
+ // Hover state for small checkboxes.
268
+ //
269
+ // We use a hover state for small checkboxes because the touch target size
270
+ // is so much larger than their visible size, and so we need to provide
271
+ // feedback to the user as to which checkbox they will select when their
272
+ // cursor is outside of the visible area.
273
+ .govuk-checkboxes__item:hover .govuk-checkboxes__input:not(:disabled) + .govuk-checkboxes__label::before {
274
+ box-shadow: 0 0 0 $govuk-hover-width $govuk-hover-colour;
275
+ }
276
+
277
+ // Because we've overridden the border-shadow provided by the focus state,
278
+ // we need to redefine that too.
279
+ //
280
+ // We use two box shadows, one that restores the original focus state [1]
281
+ // and another that then applies the hover state [2].
282
+ .govuk-checkboxes__item:hover .govuk-checkboxes__input:focus + .govuk-checkboxes__label::before {
283
+ // sass-lint:disable indentation
284
+ box-shadow: 0 0 0 $govuk-focus-width $govuk-focus-colour, // 1
285
+ 0 0 0 $govuk-hover-width $govuk-hover-colour; // 2
286
+ }
287
+
288
+ // For devices that explicitly don't support hover, don't provide a hover
289
+ // state (e.g. on touch devices like iOS).
290
+ //
291
+ // We can't use `@media (hover: hover)` because we wouldn't get the hover
292
+ // state in browsers that don't support `@media (hover)` (like Internet
293
+ // Explorer) – so we have to 'undo' the hover state instead.
294
+ @media (hover: none), (pointer: coarse) {
295
+ .govuk-checkboxes__item:hover .govuk-checkboxes__input:not(:disabled) + .govuk-checkboxes__label::before {
296
+ box-shadow: initial;
297
+ }
298
+
299
+ .govuk-checkboxes__item:hover .govuk-checkboxes__input:focus + .govuk-checkboxes__label::before {
300
+ box-shadow: 0 0 0 $govuk-focus-width $govuk-focus-colour;
301
+ }
302
+ }
303
+ }
304
+ }
@@ -1,30 +1,2 @@
1
- @import "../../settings/all";
2
- @import "../../tools/all";
3
- @import "../../helpers/all";
4
-
5
- @import "../error-message/error-message";
6
- @import "../input/input";
7
- @import "../hint/hint";
8
- @import "../label/label";
9
-
10
- @include govuk-exports("govuk/component/date-input") {
11
- .govuk-date-input {
12
- @include govuk-clearfix;
13
- // font-size: 0 removes whitespace caused by inline-block
14
- font-size: 0;
15
- }
16
-
17
- .govuk-date-input__item {
18
- display: inline-block;
19
- margin-right: govuk-spacing(4);
20
- margin-bottom: 0;
21
- }
22
-
23
- .govuk-date-input__label {
24
- display: block;
25
- }
26
-
27
- .govuk-date-input__input {
28
- margin-bottom: 0;
29
- }
30
- }
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,26 @@
1
+ @import "../error-message/index";
2
+ @import "../input/index";
3
+ @import "../hint/index";
4
+ @import "../label/index";
5
+
6
+ @include govuk-exports("govuk/component/date-input") {
7
+ .govuk-date-input {
8
+ @include govuk-clearfix;
9
+ // font-size: 0 removes whitespace caused by inline-block
10
+ font-size: 0;
11
+ }
12
+
13
+ .govuk-date-input__item {
14
+ display: inline-block;
15
+ margin-right: govuk-spacing(4);
16
+ margin-bottom: 0;
17
+ }
18
+
19
+ .govuk-date-input__label {
20
+ display: block;
21
+ }
22
+
23
+ .govuk-date-input__input {
24
+ margin-bottom: 0;
25
+ }
26
+ }
@@ -1,88 +1,2 @@
1
- @import "../../settings/all";
2
- @import "../../tools/all";
3
- @import "../../helpers/all";
4
-
5
- @include govuk-exports("govuk/component/details") {
6
-
7
- .govuk-details {
8
- @include govuk-font($size: 19);
9
- @include govuk-text-colour;
10
- @include govuk-responsive-margin(6, "bottom");
11
-
12
- display: block;
13
- }
14
-
15
- .govuk-details__summary {
16
- // Make the focus outline shrink-wrap the text content of the summary
17
- display: inline-block;
18
-
19
- // Absolutely position the marker against this element
20
- position: relative;
21
-
22
- margin-bottom: govuk-spacing(1);
23
-
24
- // Allow for absolutely positioned marker and align with disclosed text
25
- padding-left: govuk-spacing(4) + $govuk-border-width;
26
-
27
- // Style the summary to look like a link...
28
- color: $govuk-link-colour;
29
- cursor: pointer;
30
-
31
- &:hover {
32
- color: $govuk-link-hover-colour;
33
- }
34
-
35
- &:focus {
36
- @include govuk-focused-text;
37
- }
38
- }
39
-
40
- // ...but only underline the text, not the arrow
41
- .govuk-details__summary-text {
42
- text-decoration: underline;
43
- }
44
-
45
- // Remove the underline when focussed to avoid duplicate borders
46
- .govuk-details__summary:focus .govuk-details__summary-text {
47
- text-decoration: none;
48
- }
49
-
50
- // Remove the default details marker so we can style our own consistently and
51
- // ensure it displays in Firefox (see implementation.md for details)
52
- .govuk-details__summary::-webkit-details-marker {
53
- display: none;
54
- }
55
-
56
- // Append our own open / closed marker using a pseudo-element
57
- .govuk-details__summary:before {
58
- content: "";
59
- position: absolute;
60
-
61
- top: -1px;
62
- bottom: 0;
63
- left: 0;
64
-
65
- margin: auto;
66
-
67
- @include govuk-shape-arrow($direction: right, $base: 14px);
68
-
69
- .govuk-details[open] > & {
70
- @include govuk-shape-arrow($direction: down, $base: 14px);
71
- }
72
- }
73
-
74
- .govuk-details__text {
75
- padding: govuk-spacing(3);
76
- padding-left: govuk-spacing(4);
77
- border-left: $govuk-border-width solid $govuk-border-colour;
78
- }
79
-
80
- .govuk-details__text p {
81
- margin-top: 0;
82
- margin-bottom: govuk-spacing(4);
83
- }
84
-
85
- .govuk-details__text > :last-child {
86
- margin-bottom: 0;
87
- }
88
- }
1
+ @import "../../base";
2
+ @import "./index";