katalyst-govuk-formbuilder 1.3.2 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/app/assets/builds/katalyst/govuk/formbuilder.css +58 -5
- data/app/assets/builds/katalyst/govuk/formbuilder.js +98 -64
- data/app/assets/builds/katalyst/govuk/formbuilder.min.js +1 -1
- data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss +7 -6
- data/app/assets/stylesheets/katalyst/govuk/formbuilder.scss +1 -1
- data/lib/katalyst/govuk/formbuilder/engine.rb +1 -0
- data/lib/katalyst/govuk/formbuilder/version.rb +1 -1
- data/vendor/assets/stylesheets/govuk-frontend/govuk/_base.scss +3 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/all-ie8.scss +14 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/all.scss +9 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/_all.scss +34 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_index.scss +392 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_index.scss +99 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_index.scss +147 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_button.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_index.scss +297 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/character-count/_index.scss +34 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_index.scss +335 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/cookie-banner/_index.scss +49 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/date-input/_index.scss +26 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_details.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_index.scss +88 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_index.scss +12 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_index.scss +43 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_index.scss +64 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_index.scss +55 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_footer.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_index.scss +193 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_header.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_index.scss +349 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/hint/_hint.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/hint/_index.scss +42 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/input/_index.scss +193 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/input/_input.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_index.scss +24 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/label/_index.scss +41 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/label/_label.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_index.scss +89 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_index.scss +247 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_pagination.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/panel/_index.scss +56 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/panel/_panel.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_index.scss +27 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_index.scss +349 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_radios.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_index.scss +66 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_select.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_index.scss +47 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_index.scss +276 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/table/_index.scss +71 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/table/_table.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tabs/_index.scss +130 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_index.scss +81 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_tag.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_index.scss +54 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_index.scss +66 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_all.scss +6 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_global-styles.scss +19 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_govuk-frontend-version.scss +5 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_links.scss +35 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_lists.scss +66 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_section-break.scss +56 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_typography.scss +186 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_all.scss +12 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_clearfix.scss +15 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_colour.scss +98 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_device-pixels.scss +37 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_focused.scss +33 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_font-faces.scss +41 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_grid.scss +61 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_links.scss +429 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_media-queries.scss +91 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_shape-arrow.scss +80 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_spacing.scss +171 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_typography.scss +214 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_visually-hidden.scss +84 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_all.scss +6 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_button-group.scss +85 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_form-group.scss +23 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_grid.scss +24 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_main-wrapper.scss +53 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_template.scss +32 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_width-container.scss +84 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_all.scss +5 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_display.scss +24 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_spacing.scss +102 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_text-align.scss +14 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_typography.scss +21 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_width.scss +46 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_all.scss +24 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_assets.scss +82 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-applied.scss +155 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-organisations.scss +146 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-palette.scss +120 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_compatibility.scss +100 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_global-styles.scss +13 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_ie8.scss +34 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_links.scss +66 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_measurements.scss +95 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_media-queries.scss +23 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_spacing.scss +76 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font-families.scss +32 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font.scss +112 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-responsive.scss +195 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_warnings.scss +53 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_all.scss +7 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_compatibility.scss +50 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_exports.scss +33 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_font-url.scss +25 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_ie8.scss +87 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_image-url.scss +25 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_px-to-em.scss +20 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_px-to-rem.scss +20 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_all.scss +2 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_clearfix.scss +5 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_visually-hidden.scss +9 -0
- data/vendor/assets/stylesheets/govuk-frontend/govuk/vendor/_sass-mq.scss +347 -0
- metadata +132 -4
- data/app/assets/builds/katalyst/govuk/formbuilder.min.css +0 -1
data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_index.scss
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
@include govuk-exports("govuk/component/notification-banner") {
|
2
|
+
.govuk-notification-banner {
|
3
|
+
@include govuk-font($size: 19);
|
4
|
+
@include govuk-responsive-margin(8, "bottom");
|
5
|
+
|
6
|
+
border: $govuk-border-width solid $govuk-brand-colour;
|
7
|
+
|
8
|
+
background-color: $govuk-brand-colour;
|
9
|
+
|
10
|
+
&:focus {
|
11
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.govuk-notification-banner__header {
|
16
|
+
padding: 2px govuk-spacing(3) govuk-spacing(1);
|
17
|
+
|
18
|
+
// Ensures the notification header appears separate to the notification body text in high contrast mode
|
19
|
+
border-bottom: 1px solid transparent;
|
20
|
+
|
21
|
+
@include govuk-media-query($from: tablet) {
|
22
|
+
padding: 2px govuk-spacing(4) govuk-spacing(1);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.govuk-notification-banner__title {
|
27
|
+
@include govuk-font($size: 19, $weight: bold);
|
28
|
+
|
29
|
+
margin: 0;
|
30
|
+
|
31
|
+
padding: 0;
|
32
|
+
|
33
|
+
color: govuk-colour("white");
|
34
|
+
}
|
35
|
+
|
36
|
+
.govuk-notification-banner__content {
|
37
|
+
$padding-tablet: govuk-spacing(4);
|
38
|
+
@include govuk-text-colour;
|
39
|
+
padding: govuk-spacing(3);
|
40
|
+
|
41
|
+
background-color: $govuk-body-background-colour;
|
42
|
+
|
43
|
+
@include govuk-media-query($from: tablet) {
|
44
|
+
padding: $padding-tablet;
|
45
|
+
}
|
46
|
+
|
47
|
+
// Wrap content at the same place that a 2/3 grid column ends, to maintain
|
48
|
+
// shorter line-lengths when the notification banner is full width
|
49
|
+
> * {
|
50
|
+
// When elements have their own padding (like lists), include the padding
|
51
|
+
// in the max-width calculation
|
52
|
+
box-sizing: border-box;
|
53
|
+
|
54
|
+
// Calculate the internal width of a two-thirds column...
|
55
|
+
$two-col-width: ($govuk-page-width * 2 / 3) - ($govuk-gutter * 1 / 3);
|
56
|
+
|
57
|
+
// ...and then factor in the left border and padding
|
58
|
+
$banner-exterior: ($padding-tablet + $govuk-border-width);
|
59
|
+
max-width: $two-col-width - $banner-exterior;
|
60
|
+
}
|
61
|
+
|
62
|
+
> :last-child {
|
63
|
+
margin-bottom: 0;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
.govuk-notification-banner__heading {
|
68
|
+
@include govuk-font($size: 24, $weight: bold);
|
69
|
+
|
70
|
+
margin: 0 0 govuk-spacing(3) 0;
|
71
|
+
|
72
|
+
padding: 0;
|
73
|
+
}
|
74
|
+
|
75
|
+
.govuk-notification-banner__link {
|
76
|
+
@include govuk-link-common;
|
77
|
+
@include govuk-link-style-no-visited-state;
|
78
|
+
}
|
79
|
+
|
80
|
+
.govuk-notification-banner--success {
|
81
|
+
border-color: $govuk-success-colour;
|
82
|
+
|
83
|
+
background-color: $govuk-success-colour;
|
84
|
+
|
85
|
+
.govuk-notification-banner__link {
|
86
|
+
@include govuk-link-style-success;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
@@ -0,0 +1,247 @@
|
|
1
|
+
@include govuk-exports("govuk/component/pagination") {
|
2
|
+
// Flexbox enhancement for small screen visual design
|
3
|
+
// Falls back to a float: left layout on non-flex browsers
|
4
|
+
.govuk-pagination {
|
5
|
+
@include govuk-responsive-margin(6, "bottom");
|
6
|
+
display: -ms-flexbox;
|
7
|
+
display: flex;
|
8
|
+
-ms-flex-direction: column;
|
9
|
+
flex-direction: column;
|
10
|
+
-ms-flex-align: center;
|
11
|
+
align-items: center;
|
12
|
+
-ms-flex-wrap: wrap;
|
13
|
+
flex-wrap: wrap;
|
14
|
+
|
15
|
+
@include govuk-media-query($from: tablet) {
|
16
|
+
-ms-flex-direction: row;
|
17
|
+
flex-direction: row;
|
18
|
+
-ms-flex-align: start;
|
19
|
+
align-items: flex-start;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.govuk-pagination__list {
|
24
|
+
margin: 0;
|
25
|
+
padding: 0;
|
26
|
+
list-style: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
.govuk-pagination__item,
|
30
|
+
.govuk-pagination__next,
|
31
|
+
.govuk-pagination__prev {
|
32
|
+
@include govuk-font(19);
|
33
|
+
box-sizing: border-box;
|
34
|
+
position: relative;
|
35
|
+
min-width: 45px;
|
36
|
+
min-height: 45px;
|
37
|
+
padding: govuk-spacing(2) govuk-spacing(3);
|
38
|
+
float: left; // Float is ignored if flex is active for prev/next links
|
39
|
+
|
40
|
+
&:hover {
|
41
|
+
background-color: govuk-colour("light-grey", $legacy: "grey-4");
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.govuk-pagination__item {
|
46
|
+
// Hide items on small screens except the prev/next items,
|
47
|
+
// non-link items and the first and last items
|
48
|
+
display: none;
|
49
|
+
|
50
|
+
// Center align pagination links in their parent list item so that they
|
51
|
+
// visually sit in the middle of their touch area
|
52
|
+
text-align: center;
|
53
|
+
|
54
|
+
@include govuk-media-query($from: tablet) {
|
55
|
+
display: block;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.govuk-pagination__prev,
|
60
|
+
.govuk-pagination__next {
|
61
|
+
@include govuk-typography-weight-bold;
|
62
|
+
|
63
|
+
// Use flex to get around a whitespace issue between the arrow svg and the link text
|
64
|
+
// without having to rely on whitespace control from backend tooling
|
65
|
+
.govuk-pagination__link {
|
66
|
+
display: -ms-flexbox;
|
67
|
+
display: flex;
|
68
|
+
-ms-flex-align: center;
|
69
|
+
align-items: center;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
.govuk-pagination__prev {
|
74
|
+
padding-left: 0;
|
75
|
+
}
|
76
|
+
|
77
|
+
.govuk-pagination__next {
|
78
|
+
padding-right: 0;
|
79
|
+
}
|
80
|
+
|
81
|
+
// Only show first, last and non-link items on mobile
|
82
|
+
.govuk-pagination__item--current,
|
83
|
+
.govuk-pagination__item--ellipses,
|
84
|
+
.govuk-pagination__item:first-child,
|
85
|
+
.govuk-pagination__item:last-child {
|
86
|
+
display: block;
|
87
|
+
}
|
88
|
+
|
89
|
+
.govuk-pagination__item--current {
|
90
|
+
@include govuk-typography-weight-bold;
|
91
|
+
outline: 1px solid transparent;
|
92
|
+
background-color: $govuk-link-colour;
|
93
|
+
|
94
|
+
&:hover {
|
95
|
+
background-color: $govuk-link-colour;
|
96
|
+
}
|
97
|
+
|
98
|
+
.govuk-pagination__link {
|
99
|
+
@include govuk-link-style-inverse;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.govuk-pagination__item--ellipses {
|
104
|
+
@include govuk-typography-weight-bold;
|
105
|
+
color: $govuk-secondary-text-colour;
|
106
|
+
|
107
|
+
// Remove hover state for ellipsis items as they don't have links within them
|
108
|
+
&:hover {
|
109
|
+
background-color: transparent;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
.govuk-pagination__link {
|
114
|
+
display: block;
|
115
|
+
min-width: govuk-spacing(3);
|
116
|
+
|
117
|
+
// Increase the touch area for the link to the parent element.
|
118
|
+
@media screen {
|
119
|
+
&:after {
|
120
|
+
content: "";
|
121
|
+
position: absolute;
|
122
|
+
top: 0;
|
123
|
+
right: 0;
|
124
|
+
bottom: 0;
|
125
|
+
left: 0;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
// Add link hover decoration to prev/next text if no label present on prev/next only mode
|
130
|
+
// We do this so that we have a hover state in all possible instances
|
131
|
+
&:hover,
|
132
|
+
&:active {
|
133
|
+
.govuk-pagination__link-title--decorated {
|
134
|
+
@include govuk-link-decoration;
|
135
|
+
}
|
136
|
+
|
137
|
+
.govuk-pagination__link-label,
|
138
|
+
.govuk-pagination__link-title--decorated {
|
139
|
+
@include govuk-link-hover-decoration;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
&:focus {
|
144
|
+
.govuk-pagination__icon {
|
145
|
+
color: $govuk-focus-text-colour;
|
146
|
+
}
|
147
|
+
|
148
|
+
.govuk-pagination__link-label {
|
149
|
+
text-decoration: none;
|
150
|
+
}
|
151
|
+
|
152
|
+
.govuk-pagination__link-title--decorated {
|
153
|
+
text-decoration: none;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
.govuk-pagination__link-label {
|
159
|
+
@include govuk-font($size: 19, $weight: "regular");
|
160
|
+
@include govuk-link-decoration;
|
161
|
+
display: inline-block;
|
162
|
+
padding-left: govuk-spacing(6);
|
163
|
+
}
|
164
|
+
|
165
|
+
.govuk-pagination__icon {
|
166
|
+
// Set size using rems to make the icon scale with text if user resizes text in their browser
|
167
|
+
width: govuk-px-to-rem(15px);
|
168
|
+
height: govuk-px-to-rem(13px);
|
169
|
+
color: $govuk-secondary-text-colour;
|
170
|
+
fill: currentcolor;
|
171
|
+
forced-color-adjust: auto;
|
172
|
+
}
|
173
|
+
|
174
|
+
.govuk-pagination__icon--prev {
|
175
|
+
margin-right: govuk-spacing(3);
|
176
|
+
}
|
177
|
+
|
178
|
+
.govuk-pagination__icon--next {
|
179
|
+
margin-left: govuk-spacing(3);
|
180
|
+
}
|
181
|
+
|
182
|
+
// Block mode - position previous and next links above and below numbers
|
183
|
+
.govuk-pagination--block {
|
184
|
+
display: block;
|
185
|
+
|
186
|
+
.govuk-pagination__item {
|
187
|
+
padding: govuk-spacing(3);
|
188
|
+
float: none;
|
189
|
+
}
|
190
|
+
|
191
|
+
.govuk-pagination__next,
|
192
|
+
.govuk-pagination__prev {
|
193
|
+
padding-left: 0;
|
194
|
+
float: none;
|
195
|
+
}
|
196
|
+
|
197
|
+
.govuk-pagination__next {
|
198
|
+
padding-right: govuk-spacing(3);
|
199
|
+
|
200
|
+
.govuk-pagination__icon {
|
201
|
+
margin-left: 0;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
// Only apply a border between prev and next if both are present
|
206
|
+
.govuk-pagination__prev + .govuk-pagination__next {
|
207
|
+
border-top: 1px solid $govuk-border-colour;
|
208
|
+
}
|
209
|
+
|
210
|
+
// Reset both these elements to their inline default, both to ensure that the focus state
|
211
|
+
// for block mode "shrink wraps" text as expected
|
212
|
+
.govuk-pagination__link,
|
213
|
+
.govuk-pagination__link-title {
|
214
|
+
display: inline;
|
215
|
+
}
|
216
|
+
|
217
|
+
// Set the after pseudo element to a block which makes the title visually display
|
218
|
+
// as block level whilst programmatically being inline
|
219
|
+
// We do this to get around an NVDA quirk where adjacent block level
|
220
|
+
// elements are always read out separately
|
221
|
+
.govuk-pagination__link-title:after {
|
222
|
+
content: "";
|
223
|
+
display: block;
|
224
|
+
}
|
225
|
+
|
226
|
+
.govuk-pagination__link {
|
227
|
+
text-align: left;
|
228
|
+
|
229
|
+
&:focus {
|
230
|
+
// apply focus styling to the label within the link as if it were being focused
|
231
|
+
// to get around a display issue with a focusable inline element containing a mixture
|
232
|
+
// of inline and inline-block level elements
|
233
|
+
.govuk-pagination__link-label {
|
234
|
+
@include govuk-focused-text;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
|
238
|
+
&:not(:focus) {
|
239
|
+
text-decoration: none;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
.govuk-pagination__icon {
|
244
|
+
margin-right: govuk-spacing(2);
|
245
|
+
}
|
246
|
+
}
|
247
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
@include govuk-exports("govuk/component/panel") {
|
2
|
+
.govuk-panel {
|
3
|
+
@include govuk-font($size: 19);
|
4
|
+
|
5
|
+
box-sizing: border-box;
|
6
|
+
|
7
|
+
margin-bottom: govuk-spacing(3);
|
8
|
+
padding: govuk-spacing(7) - $govuk-border-width;
|
9
|
+
|
10
|
+
border: $govuk-border-width solid transparent;
|
11
|
+
|
12
|
+
text-align: center;
|
13
|
+
|
14
|
+
@include govuk-media-query($until: tablet) {
|
15
|
+
padding: govuk-spacing(3) - $govuk-border-width;
|
16
|
+
|
17
|
+
// This is an if-all-else-fails attempt to stop long words from overflowing the container
|
18
|
+
// on very narrow viewports by forcing them to break and wrap instead. This
|
19
|
+
// overflowing is more likely to happen when user increases text size on a mobile eg. using
|
20
|
+
// iOS Safari text resize controls.
|
21
|
+
//
|
22
|
+
// The overflowing is a particular problem with the panel component since it uses white
|
23
|
+
// text: when the text overflows the container, it is invisible on the white (page)
|
24
|
+
// background. When the text in our other components overflow, the user might have to scroll
|
25
|
+
// horizontally to view it but the the text remains legible.
|
26
|
+
overflow-wrap: break-word;
|
27
|
+
word-wrap: break-word; // Support IE (autoprefixer doesn't add this as it's not a prefix)
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.govuk-panel--confirmation {
|
32
|
+
color: govuk-colour("white");
|
33
|
+
background: govuk-colour("green", $legacy: "turquoise");
|
34
|
+
|
35
|
+
@include govuk-media-query($media-type: print) {
|
36
|
+
border-color: currentcolor;
|
37
|
+
color: $govuk-print-text-colour;
|
38
|
+
background: none;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.govuk-panel__title {
|
43
|
+
margin-top: 0;
|
44
|
+
margin-bottom: govuk-spacing(6);
|
45
|
+
|
46
|
+
@include govuk-font($size: 48, $weight: bold);
|
47
|
+
}
|
48
|
+
|
49
|
+
.govuk-panel__title:last-child {
|
50
|
+
margin-bottom: 0;
|
51
|
+
}
|
52
|
+
|
53
|
+
.govuk-panel__body {
|
54
|
+
@include govuk-font($size: 36);
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
@import "../tag/index";
|
2
|
+
|
3
|
+
@include govuk-exports("govuk/component/phase-banner") {
|
4
|
+
.govuk-phase-banner {
|
5
|
+
padding-top: govuk-spacing(2);
|
6
|
+
padding-bottom: govuk-spacing(2);
|
7
|
+
|
8
|
+
border-bottom: 1px solid $govuk-border-colour;
|
9
|
+
}
|
10
|
+
|
11
|
+
.govuk-phase-banner__content {
|
12
|
+
@include govuk-font($size: 16);
|
13
|
+
@include govuk-text-colour;
|
14
|
+
|
15
|
+
display: table;
|
16
|
+
margin: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
.govuk-phase-banner__content__tag {
|
20
|
+
margin-right: govuk-spacing(2);
|
21
|
+
}
|
22
|
+
|
23
|
+
.govuk-phase-banner__text {
|
24
|
+
display: table-cell;
|
25
|
+
vertical-align: middle;
|
26
|
+
}
|
27
|
+
}
|