@govuk-pay/pay-js-commons 7.0.76 → 7.0.78

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.
Files changed (91) hide show
  1. package/package.json +1 -1
  2. package/sass/base/_custom-branding.scss +41 -0
  3. package/sass/custom/abuhb.scss +81 -58
  4. package/sass/custom/adur-and-worthing-council.scss +87 -62
  5. package/sass/custom/barking-havering-redbridge-nhs-trust.scss +100 -60
  6. package/sass/custom/belfast-city-council.scss +66 -59
  7. package/sass/custom/bracknell-forest.scss +87 -57
  8. package/sass/custom/british-pharmacopoeia.scss +80 -64
  9. package/sass/custom/caa.scss +81 -58
  10. package/sass/custom/cadw-welsh-government-2023.scss +80 -57
  11. package/sass/custom/cadw-welsh-government.scss +81 -58
  12. package/sass/custom/canterbury-city-council.scss +81 -58
  13. package/sass/custom/cardiff-and-vale-uhb.scss +81 -58
  14. package/sass/custom/coedffranc-town-council.scss +83 -59
  15. package/sass/custom/croydon-council.scss +76 -58
  16. package/sass/custom/custom.scss +62 -60
  17. package/sass/custom/cypress-testing-purple-background.scss +62 -60
  18. package/sass/custom/cypress-testing-white-background.scss +62 -60
  19. package/sass/custom/dacorum.scss +62 -60
  20. package/sass/custom/disclosure-scotland.scss +62 -60
  21. package/sass/custom/dvsa-nidirect.scss +62 -60
  22. package/sass/custom/ea-defra.scss +62 -60
  23. package/sass/custom/edevelopment-scot.scss +62 -60
  24. package/sass/custom/edinburgh-council-pest-control.scss +79 -61
  25. package/sass/custom/food-standards-agency.scss +72 -60
  26. package/sass/custom/gambling-commission.scss +62 -60
  27. package/sass/custom/guys-and-st-thomas-nhs-foundation-trust-nhs-care.scss +80 -73
  28. package/sass/custom/guys-and-st-thomas-nhs-foundation-trust.scss +77 -59
  29. package/sass/custom/gwent-police.scss +62 -60
  30. package/sass/custom/hiw.scss +75 -65
  31. package/sass/custom/hssib.scss +62 -60
  32. package/sass/custom/kcc.scss +62 -60
  33. package/sass/custom/kingston.scss +62 -60
  34. package/sass/custom/knowsley-council.scss +62 -60
  35. package/sass/custom/lbbd.scss +62 -60
  36. package/sass/custom/leeds-city-council.scss +86 -63
  37. package/sass/custom/lewisham-and-greenwich-nhs-trust.scss +95 -75
  38. package/sass/custom/london-fire-brigade.scss +71 -66
  39. package/sass/custom/merseyside-police.scss +62 -60
  40. package/sass/custom/mhra-black.scss +71 -62
  41. package/sass/custom/mhra.scss +63 -60
  42. package/sass/custom/ministry-of-defence-dbs-fps.scss +75 -62
  43. package/sass/custom/my-university-hospitals-sussex-charity.scss +93 -62
  44. package/sass/custom/national-museums-ni.scss +70 -61
  45. package/sass/custom/natural-resources-wales.scss +69 -61
  46. package/sass/custom/neath-port-talbot-county-borough-council-2023.scss +62 -60
  47. package/sass/custom/neath_port_talbet_council.scss +65 -62
  48. package/sass/custom/nhs-england.scss +62 -60
  49. package/sass/custom/nhs-gloucestershire.scss +53 -51
  50. package/sass/custom/nhs-greater-manchester.scss +62 -60
  51. package/sass/custom/nhs-kent-medway.scss +62 -60
  52. package/sass/custom/nhs-sbs.scss +75 -58
  53. package/sass/custom/nhs-west-yorkshire.scss +62 -60
  54. package/sass/custom/nhs-white-on-blue.scss +62 -60
  55. package/sass/custom/nhsbsa.scss +77 -62
  56. package/sass/custom/nibsc-standards-2023-01.scss +63 -60
  57. package/sass/custom/nibsc-standards.scss +64 -60
  58. package/sass/custom/north-east-derbyshire-district-council.scss +62 -60
  59. package/sass/custom/north-yorkshire-council.scss +62 -60
  60. package/sass/custom/north-yorkshire-county-council.scss +62 -60
  61. package/sass/custom/nottingham-university-hospitals-trust.scss +62 -60
  62. package/sass/custom/osdc.scss +54 -52
  63. package/sass/custom/oswestry-town-council.scss +62 -60
  64. package/sass/custom/penzance-council.scss +62 -60
  65. package/sass/custom/planning-and-building-services-edinburgh.scss +63 -60
  66. package/sass/custom/portsmouth.scss +87 -67
  67. package/sass/custom/raf-multiple-service.scss +62 -60
  68. package/sass/custom/registers-of-scotland.scss +62 -60
  69. package/sass/custom/runnymede-borough-council.scss +62 -60
  70. package/sass/custom/rushmoor.scss +62 -60
  71. package/sass/custom/scottish-government-planning.scss +63 -61
  72. package/sass/custom/scottish-government.scss +62 -60
  73. package/sass/custom/social-security-scotland.scss +62 -60
  74. package/sass/custom/someret-west-and-taunton.scss +62 -60
  75. package/sass/custom/south-gloucestershire-council.scss +62 -60
  76. package/sass/custom/south-wales-police.scss +62 -60
  77. package/sass/custom/spa-firearms-licencing-and-accounts.scss +63 -60
  78. package/sass/custom/stratford-upon-avon.scss +62 -60
  79. package/sass/custom/surrey-county-council-logo-large.scss +62 -60
  80. package/sass/custom/surrey-county-council.scss +62 -60
  81. package/sass/custom/sutton.scss +62 -60
  82. package/sass/custom/thames-valley-police.scss +62 -60
  83. package/sass/custom/the-coal-authority.scss +69 -62
  84. package/sass/custom/the-sixth-form-bolton.scss +85 -71
  85. package/sass/custom/torbay-south-devon-nhs-foundation-trust.scss +95 -62
  86. package/sass/custom/uk-atomic-energy-authority.scss +62 -60
  87. package/sass/custom/university-hospital-southampton-nhs-foundation-trust.scss +78 -64
  88. package/sass/custom/university-hospitals-sussex.scss +78 -64
  89. package/sass/custom/wealden.scss +61 -59
  90. package/sass/custom/welshpool-town-council.scss +62 -60
  91. package/sass/custom/west-berkshire-council.scss +62 -60
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/pay-js-commons",
3
- "version": "7.0.76",
3
+ "version": "7.0.78",
4
4
  "description": "Reusable js scripts for GOV.UK Pay Node.js projects",
5
5
  "engines": {
6
6
  "node": "^22.22.0",
@@ -0,0 +1,41 @@
1
+ @use "govuk-frontend/dist/govuk" as *;
2
+ @use "application";
3
+
4
+ .custom-branding {
5
+ .govuk-header__content {
6
+ padding-left: 0px;
7
+ }
8
+
9
+ .pay-custom-service-name {
10
+ margin: 0 0 15px;
11
+ display: inline-block;
12
+ font-size: 1.125rem;
13
+ line-height: 1.1111111111;
14
+ font-weight: 700;
15
+ }
16
+
17
+ @include govuk-media-query($until: desktop) {
18
+ .pay-custom-header-logo {
19
+ width: 100%;
20
+ }
21
+ }
22
+
23
+ @include govuk-media-query($from: tablet) {
24
+ .govuk-header__content {
25
+ width: 66%;
26
+ vertical-align: bottom;
27
+ margin-bottom: 7px;
28
+ }
29
+
30
+ .pay-custom-service-name {
31
+ font-size: 1.5rem;
32
+ line-height: 1.25;
33
+ }
34
+ }
35
+
36
+ @include govuk-media-query($from: desktop) {
37
+ .govuk-header__content {
38
+ padding-left: 15px;
39
+ }
40
+ }
41
+ }
@@ -1,5 +1,12 @@
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";
1
+ $custom-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
+
3
+ @use "govuk-frontend/dist/govuk" as * with (
4
+ $govuk-font-family: $custom-font-family
5
+ );
6
+
7
+ @use "application";
8
+ @use "../base/custom-branding";
9
+
3
10
 
4
11
  // CUSTOM BRANDING
5
12
  // Use the variables below to control the style
@@ -10,71 +17,87 @@ $custom-banner-border-colour: #ffffff;
10
17
  $custom-text-colour: #ffffff;
11
18
  $logo-image-height: 2em;
12
19
 
13
- .govuk-template--rebranded {
14
- .custom-branding {
15
- @if $logo-image-height != null {
16
- .custom-branding-image {
17
- max-height: $logo-image-height;
18
-
19
- @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
20
- width: 100%;
21
- }
20
+ .custom-branding {
21
+ @if $logo-image-height != null {
22
+ .custom-branding-image {
23
+ max-height: $logo-image-height;
24
+
25
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
26
+ width: 100%;
22
27
  }
23
28
  }
24
-
25
- .govuk-header {
26
- background-color: $custom-banner-colour;
27
- border-bottom: 10px solid #ffffff;
28
- }
29
-
30
- .govuk-header__logo {
31
- margin-bottom: 10px;
32
- padding-top: 0;
33
- padding-bottom: 0;
34
- }
35
-
36
- .govuk-header__service-name {
37
- margin: 0 0 15px;
29
+ }
30
+
31
+ .govuk-header {
32
+ background-color: $custom-banner-colour;
33
+ border-bottom: 10px solid #ffffff;
34
+ }
35
+
36
+ .govuk-header__logo {
37
+ margin-bottom: 10px;
38
+ padding-top: 0;
39
+ padding-bottom: 0;
40
+ }
41
+
42
+ .govuk-header__homepage-link {
43
+ &:link,
44
+ &:visited {
38
45
  color: $custom-text-colour;
39
46
  }
40
-
41
- .govuk-header__link{
42
- &:link,
43
- &:visited {
44
- color: $custom-text-colour;
45
- }
47
+ }
48
+
49
+ .govuk-header__homepage-link {
50
+ &:hover,
51
+ &:active {
52
+ border-bottom: none;
53
+ margin-bottom: 0;
46
54
  }
47
55
 
48
- .govuk-header__link--homepage {
49
- &:hover,
50
- &:active {
51
- border-bottom: none;
52
- margin-bottom: 0;
53
- }
54
-
55
- &:not(:focus) {
56
- background-color: transparent;
57
- }
56
+ &:not(:focus) {
57
+ background-color: transparent;
58
58
  }
59
-
60
-
61
- .govuk-header__container {
62
- border-bottom: 10px solid $custom-banner-border-colour;
63
- margin-bottom: -10px;
64
- padding-top: 10px;
59
+ }
60
+
61
+ .govuk-header__container {
62
+ border-bottom: 10px solid $custom-banner-border-colour;
63
+ margin-bottom: -10px;
64
+ padding-top: 10px;
65
+ }
66
+
67
+ .govuk-header__content {
68
+ padding-left: 0px;
69
+ }
70
+
71
+ .pay-custom-service-name {
72
+ color: $custom-text-colour;
73
+ }
74
+
75
+ @include govuk-media-query($until: desktop) {
76
+ .pay-custom-header-logo {
77
+ width: 100%;
65
78
  }
66
-
67
- @include govuk-media-query($from: tablet) {
68
- .govuk-header__content {
69
- width: 66%;
70
- vertical-align: bottom;
71
- margin-bottom: 7px;
72
- }
79
+ }
80
+
81
+ @include govuk-media-query($from: tablet) {
82
+ .govuk-header__content {
83
+ vertical-align: bottom;
84
+ margin-bottom: 7px;
73
85
  }
74
-
75
- .govuk-button {
76
- padding: 7px 15px 6px;
77
- padding: .368421053em .842105263em .315789474em;
86
+
87
+ .pay-custom-service-name {
88
+ font-size: 1.5rem;
89
+ line-height: 1.25;
90
+ }
91
+ }
92
+
93
+ @include govuk-media-query($from: desktop) {
94
+ .govuk-header__content {
95
+ padding-left: 15px;
78
96
  }
79
97
  }
98
+
99
+ .govuk-button {
100
+ padding: 7px 15px 6px;
101
+ padding: .368421053em .842105263em .315789474em;
102
+ }
80
103
  }
@@ -1,5 +1,11 @@
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";
1
+ $custom-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
+
3
+ @use "govuk-frontend/dist/govuk" as * with (
4
+ $govuk-font-family: $custom-font-family
5
+ );
6
+
7
+ @use "application";
8
+ @use "../base/custom-branding";
3
9
 
4
10
  // CUSTOM BRANDING
5
11
  // Use the variables below to control the style
@@ -10,75 +16,94 @@ $custom-banner-border-colour: #066AB1;
10
16
  $custom-text-colour: #ffffff;
11
17
  $logo-image-height: 2em;
12
18
 
13
- .govuk-template--rebranded {
14
- .custom-branding {
15
- @if $logo-image-height != null {
16
- .custom-branding-image {
17
- max-height: $logo-image-height;
18
-
19
- @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
20
- width: 100%;
21
- }
19
+ .custom-branding {
20
+ @if $logo-image-height != null {
21
+ .custom-branding-image {
22
+ max-height: $logo-image-height;
23
+ width: 100%;
24
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
25
+ width: 100%;
22
26
  }
23
27
  }
24
-
25
- .govuk-header {
26
- background-color: $custom-banner-colour;
27
- border-bottom: 10px solid #ffffff;
28
- }
29
-
30
- .govuk-header__logo {
31
- margin-bottom: 10px;
32
- padding-top: 0;
33
- padding-bottom: 0;
34
- }
35
-
36
- .govuk-header__service-name {
37
- margin: 0 0 15px;
28
+ }
29
+
30
+ .govuk-header {
31
+ background-color: $custom-banner-colour;
32
+ border-bottom: 10px solid #ffffff;
33
+ }
34
+
35
+ .govuk-header__logo {
36
+ margin-bottom: 10px;
37
+ padding-top: 0;
38
+ padding-bottom: 0;
39
+ }
40
+
41
+ .pay-custom-service-name {
42
+ color: $custom-text-colour;
43
+ }
44
+
45
+ .govuk-header__homepage-link {
46
+ &:link,
47
+ &:visited {
38
48
  color: $custom-text-colour;
39
49
  }
40
-
41
- .govuk-header__link{
42
- &:link,
43
- &:visited {
44
- color: $custom-text-colour;
45
- }
50
+ }
51
+
52
+ .govuk-header__homepage-link {
53
+ &:hover,
54
+ &:active {
55
+ border-bottom: none;
56
+ margin-bottom: 0;
46
57
  }
47
58
 
48
- .govuk-header__link--homepage {
49
- &:hover,
50
- &:active {
51
- border-bottom: none;
52
- margin-bottom: 0;
53
- }
54
-
55
- &:not(:focus) {
56
- background-color: transparent;
57
- }
59
+ &:not(:focus) {
60
+ background-color: transparent;
58
61
  }
59
-
60
-
61
- .govuk-header__container {
62
- border-bottom: 10px solid $custom-banner-border-colour;
63
- margin-bottom: -10px;
64
- padding-top: 10px;
62
+ }
63
+
64
+ .govuk-header__container {
65
+ border-bottom: 10px solid $custom-banner-border-colour;
66
+ margin-bottom: -10px;
67
+ padding-top: 10px;
68
+ padding-bottom: 7px;
69
+ }
70
+
71
+ .pay-custom-header-content {
72
+ padding-left: 0px;
73
+ }
74
+
75
+ @include govuk-media-query($until: tablet) {
76
+ .pay-custom-service-name {
77
+ margin-bottom: 8px;
65
78
  }
66
-
67
- @include govuk-media-query($from: tablet) {
68
- .govuk-header__content {
69
- width: 66%;
70
- vertical-align: bottom;
71
- margin-bottom: 7px;
72
- }
73
- .govuk-header__service-name {
74
- padding-top: 15px;
75
- float: right;
76
- }
79
+ }
80
+
81
+ @include govuk-media-query($until: desktop) {
82
+ .pay-custom-header-logo {
83
+ width: 100%;
77
84
  }
78
-
79
- .govuk-button {
80
- padding: 7px 15px 6px;
81
- padding: .368421053em .842105263em .315789474em;
85
+ }
86
+
87
+ @include govuk-media-query($from: tablet) {
88
+ .govuk-header__content {
89
+ width: 66%;
90
+ vertical-align: bottom;
91
+ margin-bottom: 7px;
92
+ padding: 0px;
93
+ }
94
+
95
+ .pay-custom-service-name {
96
+ padding-top: 15px;
97
+ float: right;
98
+ padding-bottom: 0px;
99
+ font-size: 1.5rem;
100
+ line-height: 1.25;
101
+ margin-bottom: 0px;
82
102
  }
83
103
  }
104
+
105
+ .govuk-button {
106
+ padding: 7px 15px 6px;
107
+ padding: .368421053em .842105263em .315789474em;
108
+ }
84
109
  }
@@ -1,5 +1,11 @@
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";
1
+ $custom-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
+
3
+ @use "govuk-frontend/dist/govuk" as * with (
4
+ $govuk-font-family: $custom-font-family
5
+ );
6
+
7
+ @use "application";
8
+ @use "../base/custom-branding";
3
9
 
4
10
  // CUSTOM BRANDING
5
11
  // Use the variables below to control the style
@@ -10,75 +16,109 @@ $custom-banner-border-colour: #1d70b8;
10
16
  $custom-text-colour: #000000;
11
17
  $logo-image-width: 320px;
12
18
 
13
- .govuk-template--rebranded {
14
- .custom-branding {
15
- @if $logo-image-width != null {
16
- .custom-branding-image {
17
- width: $logo-image-width;
18
-
19
- @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
20
- width: 100%;
21
- }
19
+ .custom-branding {
20
+ @if $logo-image-width != null {
21
+ .custom-branding-image {
22
+ width: $logo-image-width;
23
+ max-width: 100%;
24
+
25
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
26
+ width: 100%;
22
27
  }
23
28
  }
24
-
25
- .govuk-header {
26
- background-color: $custom-banner-colour;
27
- border-bottom: 10px solid #ffffff;
29
+ }
30
+
31
+ .govuk-header {
32
+ background-color: $custom-banner-colour;
33
+ border-bottom: 10px solid #ffffff;
34
+ }
35
+
36
+ .govuk-header__logo {
37
+ margin-bottom: 9px;
38
+ padding-top: 0;
39
+ padding-bottom: 0;
40
+ }
41
+
42
+ .govuk-header__homepage-link {
43
+ margin-right: 0px;
44
+ }
45
+
46
+ .pay-custom-service-name {
47
+ color: $custom-text-colour;
48
+ }
49
+
50
+ .govuk-header__homepage-link {
51
+ &:link,
52
+ &:visited {
53
+ color: $custom-text-colour;
28
54
  }
29
-
30
- .govuk-header__logo {
31
- margin-bottom: 10px;
32
- padding-top: 0;
33
- padding-bottom: 0;
55
+ }
56
+
57
+ .govuk-header__homepage-link {
58
+ &:hover,
59
+ &:active {
60
+ border-bottom: none;
61
+ margin-bottom: 0;
34
62
  }
35
63
 
36
- .govuk-header__service-name {
37
- margin: 0 0 15px;
38
- color: $custom-text-colour;
64
+ &:not(:focus) {
65
+ background-color: transparent;
39
66
  }
40
-
41
- .govuk-header__link{
42
- &:link,
43
- &:visited {
44
- color: $custom-text-colour;
45
- }
67
+ }
68
+
69
+ .govuk-header__container {
70
+ border-bottom: 10px solid $custom-banner-border-colour;
71
+ margin-bottom: -10px;
72
+ padding-top: 10px;
73
+ }
74
+
75
+ .pay-custom-header-content {
76
+ padding-left: 0px;
77
+ }
78
+
79
+ .pay-custom-service-name {
80
+ display: inline-block;
81
+ font-size: 1.125rem;
82
+ line-height: 1.1111111111;
83
+ font-weight: 700;
84
+ }
85
+
86
+ @include govuk-media-query($from: tablet) {
87
+ .pay-custom-header-logo {
88
+ width: inherit;
46
89
  }
47
-
48
- .govuk-header__link--homepage {
49
- &:hover,
50
- &:active {
51
- border-bottom: none;
52
- margin-bottom: 0;
53
- }
54
-
55
- &:not(:focus) {
56
- background-color: transparent;
57
- }
90
+
91
+ .pay-custom-header-content {
92
+ width: inherit;
58
93
  }
59
-
60
-
61
- .govuk-header__container {
62
- border-bottom: 10px solid $custom-banner-border-colour;
63
- margin-bottom: -10px;
64
- padding-top: 10px;
94
+
95
+ .govuk-header__content {
96
+ vertical-align: bottom;
97
+ margin-bottom: 7px;
65
98
  }
66
99
 
67
- @include govuk-media-query($from: tablet) {
68
- .govuk-header__content {
69
- width: 66%;
70
- vertical-align: bottom;
71
- margin-bottom: 7px;
72
- }
73
- .govuk-header__logo {
74
- float: right;
75
- margin-right: -.75rem;
76
- }
100
+ .govuk-header__logo {
101
+ float: right;
77
102
  }
78
-
79
- .govuk-button {
80
- padding: 7px 15px 6px;
81
- padding: .368421053em .842105263em .315789474em;
103
+
104
+ .pay-custom-service-name {
105
+ font-size: 1.5rem;
106
+ line-height: 1.25;
82
107
  }
108
+
109
+ .govuk-header__link--homepage {
110
+ margin-right: 10px
111
+ }
112
+ }
113
+
114
+ @include govuk-media-query($from: desktop) {
115
+ .pay-custom-header-content {
116
+ padding-left: 15px;
117
+ }
118
+ }
119
+
120
+ .govuk-button {
121
+ padding: 7px 15px 6px;
122
+ padding: .368421053em .842105263em .315789474em;
83
123
  }
84
124
  }