@govuk-pay/pay-js-commons 3.3.0 → 3.3.1
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govuk-pay/pay-js-commons",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Reusable js scripts for GOV.UK Pay Node.js projects",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"karma-source-map-support": "^1.2.0",
|
|
128
128
|
"lint-staged": "^11.0.0",
|
|
129
129
|
"mocha": "^9.1.0",
|
|
130
|
-
"sinon": "^
|
|
130
|
+
"sinon": "^12.0.0",
|
|
131
131
|
"standard": "^16.0.3",
|
|
132
132
|
"uglify-js": "^3.6.0",
|
|
133
133
|
"watchify": "^4.0.0",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"lodash": "4.17.21",
|
|
141
141
|
"moment-timezone": "0.5.33",
|
|
142
142
|
"rfc822-validate": "1.0.0",
|
|
143
|
-
"slugify": "1.6.
|
|
143
|
+
"slugify": "1.6.2",
|
|
144
144
|
"winston": "3.3.3"
|
|
145
145
|
}
|
|
146
146
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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: #005EB8;
|
|
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--homepage {
|
|
29
|
+
border: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.govuk-header__link {
|
|
33
|
+
&:link,
|
|
34
|
+
&:visited {
|
|
35
|
+
color: $custom-text-colour;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.govuk-header__link--service-name {
|
|
40
|
+
color: $custom-text-colour;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.govuk-header__container {
|
|
44
|
+
border-bottom-color: $custom-banner-border-colour;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@include govuk-media-query($from: 48em) {
|
|
48
|
+
.govuk-header__content {
|
|
49
|
+
width: 66%;
|
|
50
|
+
vertical-align: bottom;
|
|
51
|
+
margin-bottom: 7px;
|
|
52
|
+
}
|
|
53
|
+
.govuk-header__link--service-name {
|
|
54
|
+
padding-top: 15px;
|
|
55
|
+
float: right;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@include govuk-media-query($until: 48em) {
|
|
60
|
+
.govuk-header__content {
|
|
61
|
+
width: 99%;
|
|
62
|
+
text-align: center;
|
|
63
|
+
}
|
|
64
|
+
.govuk-header__link--service-name {
|
|
65
|
+
padding-top: 5px;
|
|
66
|
+
float: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.govuk-button {
|
|
71
|
+
padding: 7px 15px 6px;
|
|
72
|
+
padding: .368421053em .842105263em .315789474em;
|
|
73
|
+
}
|
|
74
|
+
}
|
package/.tool-versions
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nodejs 12.17.0
|