govuk_publishing_components 21.53.0 → 21.55.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/govuk_publishing_components/action-link--nhs.png +0 -0
- data/app/assets/images/govuk_publishing_components/action-link--nhs.svg +1 -0
- data/app/assets/images/govuk_publishing_components/action-link-arrow--dark.png +0 -0
- data/app/assets/images/govuk_publishing_components/action-link-arrow--simple.png +0 -0
- data/app/assets/images/govuk_publishing_components/action-link-arrow.png +0 -0
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +5 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +38 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +0 -38
- data/app/controllers/govuk_publishing_components/component_guide_controller.rb +34 -22
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +23 -3
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +28 -8
- data/app/views/govuk_publishing_components/components/docs/action_link.yml +43 -15
- data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +23 -0
- data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +11 -9
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +8 -1
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +1 -1
- data/lib/govuk_publishing_components/presenters/machine_readable/faq_page_schema.rb +7 -6
- data/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema.rb +77 -0
- data/lib/govuk_publishing_components/presenters/schema_org.rb +24 -16
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/CHANGELOG.md +6 -0
- data/node_modules/axe-core/axe.js +19 -3
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/bower.json +1 -1
- data/node_modules/axe-core/lib/commons/dom/get-element-stack.js +27 -1
- data/node_modules/axe-core/package.json +21 -21
- data/node_modules/axe-core/sri-history.json +4 -0
- data/node_modules/govuk-frontend/README.md +6 -6
- data/node_modules/govuk-frontend/govuk/_base.scss +3 -0
- data/node_modules/govuk-frontend/govuk/all.js +1 -1
- data/node_modules/govuk-frontend/govuk/all.scss +1 -3
- data/node_modules/govuk-frontend/govuk/components/_all.scss +31 -29
- data/node_modules/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -208
- data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +207 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +1 -1
- data/node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -65
- data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +112 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -118
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +138 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro-options.json +6 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/template.njk +12 -1
- data/node_modules/govuk-frontend/govuk/components/button/_button.scss +2 -284
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +280 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -31
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +28 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -308
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +304 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -30
- data/node_modules/govuk-frontend/govuk/components/date-input/_index.scss +26 -0
- data/node_modules/govuk-frontend/govuk/components/details/_details.scss +2 -88
- data/node_modules/govuk-frontend/govuk/components/details/_index.scss +84 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -15
- data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +11 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -59
- data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss +55 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -68
- data/node_modules/govuk-frontend/govuk/components/fieldset/_index.scss +64 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -81
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +77 -0
- data/node_modules/govuk-frontend/govuk/components/footer/_footer.scss +2 -244
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +238 -0
- data/node_modules/govuk-frontend/govuk/components/header/_header.scss +2 -318
- data/node_modules/govuk-frontend/govuk/components/header/_index.scss +312 -0
- data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +7 -1
- data/node_modules/govuk-frontend/govuk/components/header/template.njk +2 -2
- data/node_modules/govuk-frontend/govuk/components/hint/_hint.scss +2 -50
- data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +46 -0
- data/node_modules/govuk-frontend/govuk/components/input/_index.scss +99 -0
- data/node_modules/govuk-frontend/govuk/components/input/_input.scss +2 -103
- data/node_modules/govuk-frontend/govuk/components/inset-text/_index.scss +24 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -28
- data/node_modules/govuk-frontend/govuk/components/label/_index.scss +41 -0
- data/node_modules/govuk-frontend/govuk/components/label/_label.scss +2 -45
- data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +40 -0
- data/node_modules/govuk-frontend/govuk/components/panel/_panel.scss +2 -44
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +27 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -31
- data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +342 -0
- data/node_modules/govuk-frontend/govuk/components/radios/_radios.scss +2 -346
- data/node_modules/govuk-frontend/govuk/components/select/_index.scss +53 -0
- data/node_modules/govuk-frontend/govuk/components/select/_select.scss +2 -57
- data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +33 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -37
- data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +153 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -157
- data/node_modules/govuk-frontend/govuk/components/table/_index.scss +50 -0
- data/node_modules/govuk-frontend/govuk/components/table/_table.scss +2 -54
- data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +138 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -142
- data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +87 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +2 -91
- data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +51 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -55
- data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +56 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -60
- data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +5 -3
- data/node_modules/govuk-frontend/govuk/core/_links.scss +5 -3
- data/node_modules/govuk-frontend/govuk/core/_lists.scss +17 -3
- data/node_modules/govuk-frontend/govuk/core/_section-break.scss +5 -3
- data/node_modules/govuk-frontend/govuk/core/_template.scss +5 -3
- data/node_modules/govuk-frontend/govuk/core/_typography.scss +5 -3
- data/node_modules/govuk-frontend/govuk/helpers/_clearfix.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +2 -1
- data/node_modules/govuk-frontend/govuk/helpers/_links.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_media-queries.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_shape-arrow.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_typography.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +1 -1
- data/node_modules/govuk-frontend/govuk/objects/_form-group.scss +1 -3
- data/node_modules/govuk-frontend/govuk/objects/_grid.scss +1 -3
- data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +5 -3
- data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +2 -4
- data/node_modules/govuk-frontend/govuk/overrides/_display.scss +5 -3
- data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +5 -3
- data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +5 -3
- data/node_modules/govuk-frontend/govuk/overrides/_width.scss +5 -3
- data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_compatibility.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_font-url.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_image-url.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_px-to-em.scss +1 -1
- data/node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss +1 -1
- data/node_modules/govuk-frontend/package.json +21 -21
- metadata +49 -2
@@ -876,7 +876,7 @@ Accordion.prototype.initHeaderAttributes = function ($headerWrapper, index) {
|
|
876
876
|
icon.className = this.iconClass;
|
877
877
|
icon.setAttribute('aria-hidden', 'true');
|
878
878
|
|
879
|
-
$
|
879
|
+
$button.appendChild(icon);
|
880
880
|
};
|
881
881
|
|
882
882
|
// When section toggled, set and store state
|
@@ -1,65 +1,2 @@
|
|
1
|
-
@import "../../
|
2
|
-
@import "
|
3
|
-
@import "../../helpers/all";
|
4
|
-
|
5
|
-
@include govuk-exports("govuk/component/back-link") {
|
6
|
-
|
7
|
-
.govuk-back-link {
|
8
|
-
@include govuk-typography-responsive($size: 16);
|
9
|
-
@include govuk-link-common;
|
10
|
-
@include govuk-link-style-text;
|
11
|
-
|
12
|
-
display: inline-block;
|
13
|
-
position: relative;
|
14
|
-
|
15
|
-
margin-top: govuk-spacing(3);
|
16
|
-
margin-bottom: govuk-spacing(3);
|
17
|
-
|
18
|
-
// Allow space for the arrow
|
19
|
-
padding-left: 14px;
|
20
|
-
}
|
21
|
-
|
22
|
-
// Only add a custom underline if the component is linkable
|
23
|
-
.govuk-back-link[href] {
|
24
|
-
// Use border-bottom rather than text-decoration so that the arrow is
|
25
|
-
// underlined as well.
|
26
|
-
border-bottom: 1px solid govuk-colour("black");
|
27
|
-
|
28
|
-
// Underline is provided by a bottom border
|
29
|
-
text-decoration: none;
|
30
|
-
|
31
|
-
// When the back link is focused, hide the bottom link border as the
|
32
|
-
// focus styles has a bottom border.
|
33
|
-
&:focus {
|
34
|
-
border-bottom-color: transparent;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
// Prepend left pointing arrow
|
39
|
-
.govuk-back-link:before {
|
40
|
-
@include govuk-shape-arrow($direction: left, $base: 10px, $height: 6px);
|
41
|
-
|
42
|
-
content: "";
|
43
|
-
|
44
|
-
// Vertically align with the parent element
|
45
|
-
position: absolute;
|
46
|
-
|
47
|
-
top: 0;
|
48
|
-
bottom: 0;
|
49
|
-
left: 0;
|
50
|
-
|
51
|
-
margin: auto;
|
52
|
-
}
|
53
|
-
|
54
|
-
@if $govuk-use-legacy-font {
|
55
|
-
// Begin adjustments for font baseline offset
|
56
|
-
// These should be removed when legacy font support is dropped
|
57
|
-
.govuk-back-link:before {
|
58
|
-
$offset: 1px;
|
59
|
-
|
60
|
-
top: $offset * -1;
|
61
|
-
bottom: $offset;
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
}
|
1
|
+
@import "../../base";
|
2
|
+
@import "./index";
|
@@ -0,0 +1,112 @@
|
|
1
|
+
@include govuk-exports("govuk/component/back-link") {
|
2
|
+
|
3
|
+
// Size of chevron (excluding border)
|
4
|
+
$chevron-size: 7px;
|
5
|
+
|
6
|
+
// Size of chevron border
|
7
|
+
$chevron-border-width: 1px;
|
8
|
+
|
9
|
+
// Colour of chevron
|
10
|
+
$chevron-border-colour: $govuk-secondary-text-colour;
|
11
|
+
|
12
|
+
.govuk-back-link {
|
13
|
+
@include govuk-typography-responsive($size: 16);
|
14
|
+
@include govuk-link-common;
|
15
|
+
@include govuk-link-style-text;
|
16
|
+
|
17
|
+
display: inline-block;
|
18
|
+
position: relative;
|
19
|
+
|
20
|
+
margin-top: govuk-spacing(3);
|
21
|
+
margin-bottom: govuk-spacing(3);
|
22
|
+
|
23
|
+
// Allow space for the arrow
|
24
|
+
padding-left: 14px;
|
25
|
+
}
|
26
|
+
|
27
|
+
// Only underline if the component is linkable
|
28
|
+
.govuk-back-link[href] {
|
29
|
+
text-decoration: underline;
|
30
|
+
|
31
|
+
// When the back link is focused, hide the bottom link border as the
|
32
|
+
// focus styles has a bottom border.
|
33
|
+
&:focus {
|
34
|
+
text-decoration: none;
|
35
|
+
|
36
|
+
&:before {
|
37
|
+
border-color: $govuk-text-colour;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
// Prepend left pointing chevron
|
43
|
+
.govuk-back-link:before {
|
44
|
+
content: "";
|
45
|
+
display: block;
|
46
|
+
|
47
|
+
// Vertically align with the parent element
|
48
|
+
position: absolute;
|
49
|
+
|
50
|
+
@if $govuk-use-legacy-font {
|
51
|
+
// Begin adjustments for font baseline offset
|
52
|
+
// These should be removed when legacy font support is dropped
|
53
|
+
top: -1px;
|
54
|
+
bottom: 1px;
|
55
|
+
|
56
|
+
} @else {
|
57
|
+
top: 0;
|
58
|
+
bottom: 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
left: 3px;
|
62
|
+
|
63
|
+
width: $chevron-size;
|
64
|
+
height: $chevron-size;
|
65
|
+
|
66
|
+
margin: auto 0;
|
67
|
+
|
68
|
+
-webkit-transform: rotate(225deg);
|
69
|
+
|
70
|
+
-ms-transform: rotate(225deg);
|
71
|
+
|
72
|
+
transform: rotate(225deg);
|
73
|
+
|
74
|
+
border: solid;
|
75
|
+
border-width: $chevron-border-width $chevron-border-width 0 0;
|
76
|
+
border-color: $chevron-border-colour;
|
77
|
+
|
78
|
+
// Fall back to a less than sign for IE8
|
79
|
+
@include govuk-if-ie8 {
|
80
|
+
content: "\003c"; // Less than sign (<)
|
81
|
+
width: auto;
|
82
|
+
height: auto;
|
83
|
+
border: 0;
|
84
|
+
color: $chevron-border-colour;
|
85
|
+
|
86
|
+
// IE8 doesn't seem to like rendering pseudo-elements using @font-faces,
|
87
|
+
// so fall back to using another sans-serif font to render the chevron.
|
88
|
+
font-family: Arial, sans-serif;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
.govuk-back-link:after {
|
93
|
+
content: "";
|
94
|
+
position: absolute;
|
95
|
+
top: -14px;
|
96
|
+
right: 0;
|
97
|
+
bottom: -14px;
|
98
|
+
left: 0;
|
99
|
+
}
|
100
|
+
|
101
|
+
@if $govuk-use-legacy-font {
|
102
|
+
// Begin adjustments for font baseline offset
|
103
|
+
// These should be removed when legacy font support is dropped
|
104
|
+
.govuk-back-link:before {
|
105
|
+
$offset: 1px;
|
106
|
+
|
107
|
+
top: $offset * -1;
|
108
|
+
bottom: $offset;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
}
|
@@ -1,118 +1,2 @@
|
|
1
|
-
@import "../../
|
2
|
-
@import "
|
3
|
-
@import "../../helpers/all";
|
4
|
-
|
5
|
-
@include govuk-exports("govuk/component/breadcrumbs") {
|
6
|
-
|
7
|
-
// Size of chevron (excluding border)
|
8
|
-
$chevron-size: 7px;
|
9
|
-
|
10
|
-
// Size of chevron border
|
11
|
-
$chevron-border-width: 1px;
|
12
|
-
|
13
|
-
// Colour of chevron
|
14
|
-
$chevron-border-colour: $govuk-secondary-text-colour;
|
15
|
-
|
16
|
-
// Calculated altitude (△↕) of the right-angled isosceles chevron with sides
|
17
|
-
// of length 8 (7px + 1px border):
|
18
|
-
//
|
19
|
-
// √(8² + 8²) * 0.5 ≅ 5.655
|
20
|
-
$chevron-altitude-calculated: 5.655px;
|
21
|
-
|
22
|
-
.govuk-breadcrumbs {
|
23
|
-
@include govuk-font($size: 16);
|
24
|
-
@include govuk-text-colour;
|
25
|
-
|
26
|
-
margin-top: govuk-spacing(3);
|
27
|
-
margin-bottom: govuk-spacing(2);
|
28
|
-
}
|
29
|
-
|
30
|
-
.govuk-breadcrumbs__list {
|
31
|
-
@include govuk-clearfix;
|
32
|
-
|
33
|
-
margin: 0;
|
34
|
-
padding: 0;
|
35
|
-
list-style-type: none;
|
36
|
-
}
|
37
|
-
|
38
|
-
.govuk-breadcrumbs__list-item {
|
39
|
-
|
40
|
-
display: inline-block;
|
41
|
-
position: relative;
|
42
|
-
|
43
|
-
margin-bottom: govuk-spacing(1);
|
44
|
-
|
45
|
-
// Add both margin and padding such that the chevron appears centrally
|
46
|
-
// between each breadcrumb item
|
47
|
-
margin-left: govuk-spacing(2);
|
48
|
-
padding-left: govuk-spacing(2) + $chevron-altitude-calculated;
|
49
|
-
|
50
|
-
float: left;
|
51
|
-
|
52
|
-
// Create a chevron using a box with borders on two sides, rotated 45deg.
|
53
|
-
&:before {
|
54
|
-
content: "";
|
55
|
-
display: block;
|
56
|
-
|
57
|
-
position: absolute;
|
58
|
-
|
59
|
-
@if $govuk-use-legacy-font {
|
60
|
-
// Begin adjustments for font baseline offset
|
61
|
-
// These should be removed when legacy font support is dropped
|
62
|
-
top: -1px;
|
63
|
-
bottom: 1px;
|
64
|
-
|
65
|
-
} @else {
|
66
|
-
top: 0;
|
67
|
-
bottom: 0;
|
68
|
-
}
|
69
|
-
|
70
|
-
// Offset by the difference between the width of the non-rotated square
|
71
|
-
// and its width when rotated
|
72
|
-
left: (($chevron-altitude-calculated * -2) + $chevron-size + $chevron-border-width);
|
73
|
-
|
74
|
-
width: $chevron-size;
|
75
|
-
height: $chevron-size;
|
76
|
-
|
77
|
-
margin: auto 0;
|
78
|
-
|
79
|
-
-webkit-transform: rotate(45deg);
|
80
|
-
|
81
|
-
-ms-transform: rotate(45deg);
|
82
|
-
|
83
|
-
transform: rotate(45deg);
|
84
|
-
|
85
|
-
border: solid;
|
86
|
-
border-width: $chevron-border-width $chevron-border-width 0 0;
|
87
|
-
border-color: $chevron-border-colour;
|
88
|
-
|
89
|
-
// Fall back to a greater than sign for IE8
|
90
|
-
@include govuk-if-ie8 {
|
91
|
-
content: "\003e"; // Greater than sign (>)
|
92
|
-
width: auto;
|
93
|
-
height: auto;
|
94
|
-
border: 0;
|
95
|
-
color: $chevron-border-colour;
|
96
|
-
|
97
|
-
// IE8 doesn't seem to like rendering pseudo-elements using @font-faces,
|
98
|
-
// so fall back to using another sans-serif font to render the chevron.
|
99
|
-
font-family: Arial, sans-serif;
|
100
|
-
}
|
101
|
-
}
|
102
|
-
|
103
|
-
&:first-child {
|
104
|
-
margin-left: 0;
|
105
|
-
padding-left: 0;
|
106
|
-
|
107
|
-
&:before {
|
108
|
-
content: none;
|
109
|
-
display: none;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
.govuk-breadcrumbs__link {
|
115
|
-
@include govuk-link-common;
|
116
|
-
@include govuk-link-style-text;
|
117
|
-
}
|
118
|
-
}
|
1
|
+
@import "../../base";
|
2
|
+
@import "./index";
|
@@ -0,0 +1,138 @@
|
|
1
|
+
@include govuk-exports("govuk/component/breadcrumbs") {
|
2
|
+
|
3
|
+
// Size of chevron (excluding border)
|
4
|
+
$chevron-size: 7px;
|
5
|
+
|
6
|
+
// Size of chevron border
|
7
|
+
$chevron-border-width: 1px;
|
8
|
+
|
9
|
+
// Colour of chevron
|
10
|
+
$chevron-border-colour: $govuk-secondary-text-colour;
|
11
|
+
|
12
|
+
// Calculated altitude (△↕) of the right-angled isosceles chevron with sides
|
13
|
+
// of length 8 (7px + 1px border):
|
14
|
+
//
|
15
|
+
// √(8² + 8²) * 0.5 ≅ 5.655
|
16
|
+
$chevron-altitude-calculated: 5.655px;
|
17
|
+
|
18
|
+
.govuk-breadcrumbs {
|
19
|
+
@include govuk-font($size: 16);
|
20
|
+
@include govuk-text-colour;
|
21
|
+
|
22
|
+
margin-top: govuk-spacing(3);
|
23
|
+
margin-bottom: govuk-spacing(2);
|
24
|
+
}
|
25
|
+
|
26
|
+
.govuk-breadcrumbs__list {
|
27
|
+
@include govuk-clearfix;
|
28
|
+
|
29
|
+
margin: 0;
|
30
|
+
padding: 0;
|
31
|
+
list-style-type: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
.govuk-breadcrumbs__list-item {
|
35
|
+
|
36
|
+
display: inline-block;
|
37
|
+
position: relative;
|
38
|
+
|
39
|
+
margin-bottom: govuk-spacing(1);
|
40
|
+
|
41
|
+
// Add both margin and padding such that the chevron appears centrally
|
42
|
+
// between each breadcrumb item
|
43
|
+
margin-left: govuk-spacing(2);
|
44
|
+
padding-left: govuk-spacing(2) + $chevron-altitude-calculated;
|
45
|
+
|
46
|
+
float: left;
|
47
|
+
|
48
|
+
// Create a chevron using a box with borders on two sides, rotated 45deg.
|
49
|
+
&:before {
|
50
|
+
content: "";
|
51
|
+
display: block;
|
52
|
+
|
53
|
+
position: absolute;
|
54
|
+
|
55
|
+
@if $govuk-use-legacy-font {
|
56
|
+
// Begin adjustments for font baseline offset
|
57
|
+
// These should be removed when legacy font support is dropped
|
58
|
+
top: -1px;
|
59
|
+
bottom: 1px;
|
60
|
+
|
61
|
+
} @else {
|
62
|
+
top: 0;
|
63
|
+
bottom: 0;
|
64
|
+
}
|
65
|
+
|
66
|
+
// Offset by the difference between the width of the non-rotated square
|
67
|
+
// and its width when rotated
|
68
|
+
left: (($chevron-altitude-calculated * -2) + $chevron-size + $chevron-border-width);
|
69
|
+
|
70
|
+
width: $chevron-size;
|
71
|
+
height: $chevron-size;
|
72
|
+
|
73
|
+
margin: auto 0;
|
74
|
+
|
75
|
+
-webkit-transform: rotate(45deg);
|
76
|
+
|
77
|
+
-ms-transform: rotate(45deg);
|
78
|
+
|
79
|
+
transform: rotate(45deg);
|
80
|
+
|
81
|
+
border: solid;
|
82
|
+
border-width: $chevron-border-width $chevron-border-width 0 0;
|
83
|
+
border-color: $chevron-border-colour;
|
84
|
+
|
85
|
+
// Fall back to a greater than sign for IE8
|
86
|
+
@include govuk-if-ie8 {
|
87
|
+
content: "\003e"; // Greater than sign (>)
|
88
|
+
width: auto;
|
89
|
+
height: auto;
|
90
|
+
border: 0;
|
91
|
+
color: $chevron-border-colour;
|
92
|
+
|
93
|
+
// IE8 doesn't seem to like rendering pseudo-elements using @font-faces,
|
94
|
+
// so fall back to using another sans-serif font to render the chevron.
|
95
|
+
font-family: Arial, sans-serif;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
&:first-child {
|
100
|
+
margin-left: 0;
|
101
|
+
padding-left: 0;
|
102
|
+
|
103
|
+
&:before {
|
104
|
+
content: none;
|
105
|
+
display: none;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
.govuk-breadcrumbs__link {
|
111
|
+
@include govuk-link-common;
|
112
|
+
@include govuk-link-style-text;
|
113
|
+
}
|
114
|
+
|
115
|
+
.govuk-breadcrumbs--collapse-on-mobile {
|
116
|
+
@include govuk-media-query($until: tablet) {
|
117
|
+
.govuk-breadcrumbs__list-item {
|
118
|
+
display: none;
|
119
|
+
|
120
|
+
&:first-child,
|
121
|
+
&:last-child {
|
122
|
+
display: inline-block;
|
123
|
+
}
|
124
|
+
|
125
|
+
&:before {
|
126
|
+
top: 6px;
|
127
|
+
margin: 0;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
.govuk-breadcrumbs__list {
|
132
|
+
display: -webkit-box;
|
133
|
+
display: -ms-flexbox;
|
134
|
+
display: flex;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|