@govuk-pay/pay-js-commons 6.0.28 → 6.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg enable-background="new 0 0 918 324.7" viewBox="0 0 918 324.7" width="918" xmlns="http://www.w3.org/2000/svg"><g fill="#fff"><path d="m90.3 112.5 49.3 49.9-49.3 49.9v-25.8c-46.2-.7-83.5-38.9-83.5-85.8 0-47.4 38-85.8 84.8-85.8 19.5 0 37.4 6.7 51.8 17.8-9.7 10.5-17.2 23-21.7 37-7.7-7.7-18.3-12.4-30-12.4-23.7 0-42.9 19.5-42.9 43.5 0 23.5 18.5 42.7 41.6 43.4v-31.7z"/><path d="m202.9 98.2-49.3 49.9-49.3-49.9h25.5c.7-46.8 38.4-84.5 84.8-84.5 46.8 0 84.8 38.4 84.8 85.8 0 19.7-6.6 37.9-17.6 52.4-10.3-9.8-22.7-17.4-36.5-22 7.6-7.8 12.3-18.6 12.3-30.4 0-24-19.2-43.5-42.9-43.5-23.3 0-42.2 18.8-42.9 42.2z"/><path d="m217 212.2-49.3-49.9 49.3-49.9v25.8c46.2.7 83.5 38.9 83.5 85.8 0 47.4-38 85.8-84.8 85.8-19.5 0-37.4-6.7-51.8-17.8 9.7-10.5 17.2-23 21.7-37 7.7 7.7 18.3 12.4 30.1 12.4 23.7 0 42.9-19.5 42.9-43.5 0-23.5-18.5-42.7-41.6-43.4z"/><path d="m104.4 226.5 49.3-49.9 49.3 49.9h-25.5c-.7 46.8-38.4 84.5-84.8 84.5-46.8 0-84.7-38.4-84.7-85.8 0-19.7 6.6-37.9 17.6-52.4 10.3 9.8 22.8 17.4 36.5 22-7.6 7.8-12.3 18.6-12.3 30.4 0 24 19.2 43.5 42.9 43.5 23.3 0 42.2-18.8 42.9-42.1h-31.2z"/><path d="m382.2 70.5c11.9-.1 19.7 1.5 25.2 7.1 3.4 3.5 5.3 8.6 5.3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9-5.3 2.9-13 5-20.4 5-16.5 0-27-10.3-27-28.1 0-17.2 9.8-29.4 25.8-29.4s24.3 11.9 24.3 28.3c0 4.1-.2 5.5-1 5.5zm20.7-10.3c-.6-6.5-3.9-11.3-9.8-11.3-5.8 0-9.6 4.3-10.9 11.3z"/><path d="m732.2 90.7c5.1 0 6.1.2 6.4 1.4.3.9 1 6.6 1.3 10.8 3.4-8.6 7.8-13.2 14.5-13.2 1 0 2 .1 2.7.4s.9.5.9 5.3v1.5c0 5.4-.3 5.6-1.5 5.7-5.9.5-9.6 3-12.3 7.1-2.6 4-3.9 10-3.9 19.9v15.1c0 1.2-.6 1.6-6.8 1.6h-.5c-6.8 0-7-.4-7-1.6v-29c0-8.2-.3-17.3-.7-23-.1-1.5.3-1.9 6.3-1.9h.6z"/><path d="m766.5 134.3c1.8-3.2 2.7-4.1 3.9-3.3 4.1 2.7 9 4.5 13.4 4.5 5.6 0 8.8-2.1 8.8-4.9 0-8.2-26.9-3.2-26.9-23.2 0-11 9.5-17.8 21.7-17.8 6.9 0 12.9 1.9 17.3 5.3 1 .7.8 1.6-1.3 5.1l-.9 1.5c-1.9 3.3-2.6 3.8-3.8 3-3.4-2.1-6.6-3.4-10.7-3.4-3 0-5.5.6-6.8 1.8-.9.8-1.5 1.8-1.5 3 0 7.9 26.9 3.8 26.9 22.7 0 4.8-2 9.5-5.4 12.7-3.9 3.8-9.7 5.8-17.3 5.8-8.1 0-15.2-2.6-19.5-6.3-.8-.7-.7-1.7.9-4.7z"/><path d="m415.7 229.8c0 19-9.5 29.8-27 29.8-15.7 0-25.2-9.6-25.2-27.7 0-19 9.5-29.8 27-29.8 15.6-.1 25.2 9.5 25.2 27.7zm-37.4 1.4c0 10.2 3.4 16 10.7 16 8.3 0 11.9-6.3 11.9-16.8 0-10.2-3.4-16-10.7-16-8.4 0-11.9 6.3-11.9 16.8z"/><path d="m429.9 203.1v-2.5c0-7.7 2.1-13.5 5.9-17.4 3.6-3.7 8.7-5.5 15.1-5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3 7.9-3.2 1.2-1.5 1.5-3.4 1.5-5.9v-18.9z"/><path d="m804.3 203.1c5.1 0 6.1.2 6.5 1.4.3.9.5 2.6.7 4.2 3.4-3.9 8.8-6.6 15.2-6.6s11.5 2.1 14.6 5.7c3.5 3.9 4.9 8.9 4.9 16.9v32.3c0 1.2-.6 1.6-6.8 1.6h-.4c-6.8 0-7-.4-7-1.6v-28.4c0-7.2-.4-9.5-2.1-11.3-1.4-1.6-4-2.4-7-2.4-2.4 0-5.1.5-7 1.7-2.2 1.4-2.7 3-2.9 5.6-.2 2.4-.2 6.3-.2 10.3v24.5c0 1.2-.6 1.6-6.8 1.6h-.5c-6.8 0-7-.4-7-1.6v-29c0-8.2-.3-17.3-.7-23-.1-1.5.3-1.9 6.3-1.9z"/><path d="m900 178.7c6.2 0 6.8.4 6.8 1.6v64.2c0 2.3.9 2.9 3 2.9 1.3 0 1.4.5 1.4 4.3v1.2c0 3.7-.2 4.5-1 4.8-1.9.7-4.7 1.3-7.6 1.3-4.6 0-7.8-2.1-9.1-5.3-3.6 3.8-8.8 5.9-14.6 5.9-13.8 0-22.2-10.7-22.2-27.9 0-18.6 9.3-29.6 23.1-29.6 4.9 0 9 1.7 12.5 4.7v-26.5c0-1.2.2-1.6 7-1.6zm-7.5 40.6c-2.6-3.1-5.8-4.8-9.5-4.8-7.7 0-11.3 6.1-11.3 17.2 0 6.2 1.5 10.2 3.6 12.6 1.9 2.2 4.9 3 7.9 3 2.9 0 6.3-1 7.9-2.7 1.2-1.3 1.5-2.9 1.5-5.7v-19.6z"/></g></svg>
|
package/package.json
CHANGED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
$govuk-font-family: -apple-system,BlinkMacSystemFont,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; // Override font as so not to use New Transport
|
|
2
|
+
@import "application";
|
|
3
|
+
|
|
4
|
+
// CUSTOM BRANDING
|
|
5
|
+
// Use the variables below to control the style
|
|
6
|
+
// Make sure banner colours meet minimum colour contrast levels
|
|
7
|
+
|
|
8
|
+
$custom-banner-colour: #ffffff;
|
|
9
|
+
$custom-banner-border-colour: #ffffff;
|
|
10
|
+
$custom-text-colour: #0b0c0c;
|
|
11
|
+
$logo-image-height: 2em;
|
|
12
|
+
|
|
13
|
+
.custom-branding {
|
|
14
|
+
@if $logo-image-height != null {
|
|
15
|
+
.custom-branding-image {
|
|
16
|
+
max-height: $logo-image-height;
|
|
17
|
+
|
|
18
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.govuk-header {
|
|
25
|
+
background-color: $custom-banner-colour;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.govuk-header__link{
|
|
29
|
+
&:link,
|
|
30
|
+
&:visited {
|
|
31
|
+
color: $custom-text-colour;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.govuk-header__link--homepage {
|
|
36
|
+
&:hover,
|
|
37
|
+
&:active {
|
|
38
|
+
border-bottom: none;
|
|
39
|
+
margin-bottom: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.govuk-header__service-name {
|
|
44
|
+
color: $custom-text-colour;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.govuk-header__container {
|
|
48
|
+
border-bottom-color: $custom-banner-border-colour;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include govuk-media-query($from: tablet) {
|
|
52
|
+
.govuk-header__content {
|
|
53
|
+
width: 66%;
|
|
54
|
+
vertical-align: bottom;
|
|
55
|
+
margin-bottom: 7px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.govuk-button {
|
|
60
|
+
padding: 7px 15px 6px;
|
|
61
|
+
padding: .368421053em .842105263em .315789474em;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
$govuk-font-family: -apple-system,BlinkMacSystemFont,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; // Override font as so not to use New Transport
|
|
2
|
+
@import "application";
|
|
3
|
+
|
|
4
|
+
// CUSTOM BRANDING
|
|
5
|
+
// Use the variables below to control the style
|
|
6
|
+
// Make sure banner colours meet minimum colour contrast levels
|
|
7
|
+
|
|
8
|
+
$custom-banner-colour: #041854;
|
|
9
|
+
$custom-banner-border-colour: #ffffff;
|
|
10
|
+
$custom-text-colour: #ffffff;
|
|
11
|
+
$logo-image-height: 2em;
|
|
12
|
+
|
|
13
|
+
.custom-branding {
|
|
14
|
+
@if $logo-image-height != null {
|
|
15
|
+
.custom-branding-image {
|
|
16
|
+
max-height: $logo-image-height;
|
|
17
|
+
|
|
18
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.govuk-header {
|
|
25
|
+
background-color: $custom-banner-colour;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.govuk-header__link{
|
|
29
|
+
&:link,
|
|
30
|
+
&:visited {
|
|
31
|
+
color: $custom-text-colour;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.govuk-header__link--homepage {
|
|
36
|
+
&:hover,
|
|
37
|
+
&:active {
|
|
38
|
+
border-bottom: none;
|
|
39
|
+
margin-bottom: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.govuk-header__service-name {
|
|
44
|
+
color: $custom-text-colour;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.govuk-header__container {
|
|
48
|
+
border-bottom-color: $custom-banner-border-colour;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include govuk-media-query($from: tablet) {
|
|
52
|
+
.govuk-header__content {
|
|
53
|
+
width: 66%;
|
|
54
|
+
vertical-align: bottom;
|
|
55
|
+
margin-bottom: 7px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.govuk-button {
|
|
60
|
+
padding: 7px 15px 6px;
|
|
61
|
+
padding: .368421053em .842105263em .315789474em;
|
|
62
|
+
}
|
|
63
|
+
}
|