naturescot-frontend 4.5.3 → 5.9.0
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import "govuk-frontend/govuk/settings/
|
|
2
|
-
@import "govuk-frontend/govuk/tools/
|
|
3
|
-
@import "govuk-frontend/govuk/helpers/
|
|
1
|
+
@import "govuk-frontend/dist/govuk/settings/index";
|
|
2
|
+
@import "govuk-frontend/dist/govuk/tools/index";
|
|
3
|
+
@import "govuk-frontend/dist/govuk/helpers/index";
|
|
4
4
|
|
|
5
5
|
@include govuk-exports("naturescot/component/cookie-bar") {
|
|
6
6
|
.naturescot-cookie-bar {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@import "govuk-frontend/govuk/settings/
|
|
2
|
-
@import "govuk-frontend/govuk/tools/
|
|
3
|
-
@import "govuk-frontend/govuk/helpers/
|
|
1
|
+
@import "govuk-frontend/dist/govuk/settings/index";
|
|
2
|
+
@import "govuk-frontend/dist/govuk/tools/index";
|
|
3
|
+
@import "govuk-frontend/dist/govuk/helpers/index";
|
|
4
4
|
|
|
5
|
-
@import "govuk-frontend/govuk/helpers/typography";
|
|
5
|
+
@import "govuk-frontend/dist/govuk/helpers/typography";
|
|
6
6
|
|
|
7
7
|
$naturescot-logo: "naturescot-logo.png" !default;
|
|
8
8
|
|
|
@@ -16,17 +16,6 @@ $naturescot-logo: "naturescot-logo.png" !default;
|
|
|
16
16
|
$naturescot-footer-link: $naturescot-footer-text;
|
|
17
17
|
$naturescot-footer-link-hover: false;
|
|
18
18
|
|
|
19
|
-
@if ($govuk-use-legacy-palette) {
|
|
20
|
-
// sass-lint:disable no-color-literals
|
|
21
|
-
$naturescot-footer-border-top: #a1acb2;
|
|
22
|
-
$naturescot-footer-border: govuk-colour("grey-2");
|
|
23
|
-
$naturescot-footer-text: #454a4c;
|
|
24
|
-
$naturescot-footer-link: $naturescot-footer-text;
|
|
25
|
-
|
|
26
|
-
// Only used with the legacy palette
|
|
27
|
-
$naturescot-footer-link-hover: #171819;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
19
|
// Was originally based on the govuk-crest-2x.png image dimensions, but the new
|
|
31
20
|
// image is larger.
|
|
32
21
|
$naturescot-footer-crest-image-width-original: 512px;
|
|
@@ -46,49 +35,30 @@ $naturescot-logo: "naturescot-logo.png" !default;
|
|
|
46
35
|
}
|
|
47
36
|
|
|
48
37
|
.naturescot-footer__link {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
&:hover,
|
|
56
|
-
&:active {
|
|
57
|
-
color: $naturescot-footer-link-hover;
|
|
58
|
-
}
|
|
59
|
-
} @else {
|
|
60
|
-
&:link,
|
|
61
|
-
&:visited,
|
|
62
|
-
&:hover,
|
|
63
|
-
&:active {
|
|
64
|
-
color: $naturescot-footer-link;
|
|
65
|
-
}
|
|
38
|
+
&:link,
|
|
39
|
+
&:visited,
|
|
40
|
+
&:hover,
|
|
41
|
+
&:active {
|
|
42
|
+
color: $naturescot-footer-link;
|
|
66
43
|
}
|
|
44
|
+
|
|
67
45
|
|
|
68
46
|
&:focus {
|
|
69
47
|
@include govuk-focused-text;
|
|
70
48
|
}
|
|
71
49
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
// we need to override the text colour for that combination of selectors.
|
|
75
|
-
@include govuk-compatibility(govuk_template) {
|
|
76
|
-
&:link:focus {
|
|
77
|
-
@include govuk-text-colour;
|
|
78
|
-
}
|
|
50
|
+
&:link:focus {
|
|
51
|
+
@include govuk-text-colour;
|
|
79
52
|
}
|
|
80
53
|
}
|
|
81
54
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
.naturescot-footer__list .naturescot-footer__link {
|
|
86
|
-
text-decoration: none;
|
|
55
|
+
.naturescot-footer__inline-list .naturescot-footer__link,
|
|
56
|
+
.naturescot-footer__list .naturescot-footer__link {
|
|
57
|
+
text-decoration: none;
|
|
87
58
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
59
|
+
&:hover:not(:focus),
|
|
60
|
+
&:active:not(:focus) {
|
|
61
|
+
text-decoration: underline;
|
|
92
62
|
}
|
|
93
63
|
}
|
|
94
64
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@import "govuk-frontend/govuk/settings/
|
|
2
|
-
@import "govuk-frontend/govuk/tools/
|
|
3
|
-
@import "govuk-frontend/govuk/helpers/
|
|
1
|
+
@import "govuk-frontend/dist/govuk/settings/index";
|
|
2
|
+
@import "govuk-frontend/dist/govuk/tools/index";
|
|
3
|
+
@import "govuk-frontend/dist/govuk/helpers/index";
|
|
4
4
|
|
|
5
|
-
@import "govuk-frontend/govuk/helpers/typography";
|
|
5
|
+
@import "govuk-frontend/dist/govuk/helpers/typography";
|
|
6
6
|
|
|
7
7
|
@include govuk-exports("naturescot/component/header") {
|
|
8
8
|
$naturescot-header-background: #5e8bbf;
|
|
@@ -81,14 +81,10 @@
|
|
|
81
81
|
@include govuk-focused-text;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
// we need to override the text colour for that combination of selectors.
|
|
87
|
-
@include govuk-compatibility(govuk_template) {
|
|
88
|
-
&:link:focus {
|
|
89
|
-
@include govuk-text-colour;
|
|
90
|
-
}
|
|
84
|
+
&:link:focus {
|
|
85
|
+
@include govuk-text-colour;
|
|
91
86
|
}
|
|
87
|
+
|
|
92
88
|
}
|
|
93
89
|
|
|
94
90
|
.naturescot-header__link--homepage {
|
|
@@ -291,27 +287,6 @@
|
|
|
291
287
|
}
|
|
292
288
|
}
|
|
293
289
|
|
|
294
|
-
@if $govuk-use-legacy-font {
|
|
295
|
-
// Begin adjustments for font baseline offset
|
|
296
|
-
// These should be removed when the font is updated with the correct baseline
|
|
297
|
-
.naturescot-header__logotype-crown,
|
|
298
|
-
.naturescot-header__logotype-crown-fallback-image {
|
|
299
|
-
position: relative;
|
|
300
|
-
top: -4px;
|
|
301
|
-
vertical-align: middle;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.naturescot-header {
|
|
305
|
-
$offset: 3px;
|
|
306
|
-
padding-top: $offset;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.naturescot-header__link--homepage {
|
|
310
|
-
line-height: 30px;
|
|
311
|
-
}
|
|
312
|
-
// End adjustments
|
|
313
|
-
}
|
|
314
|
-
|
|
315
290
|
// Styles for the .svg used in the header.
|
|
316
291
|
|
|
317
292
|
.whitename {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "naturescot-frontend",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.9.0",
|
|
4
4
|
"description": "NatureScot's extensions to GDS' govuk-frontend",
|
|
5
5
|
"author": "Mike Coats <mike.coats@nature.scot>",
|
|
6
6
|
"repository": "github:Scottish-Natural-Heritage/naturescot-frontend",
|
|
7
7
|
"license": "(MIT OR OGL-UK-3.0 OR Apache-2.0)",
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"govuk-frontend": "^
|
|
10
|
-
"sass": "^1.
|
|
9
|
+
"govuk-frontend": "^5.9.0",
|
|
10
|
+
"sass": "^1.85.1"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"prettier": "^1.19.1"
|