naturescot-frontend 4.5.1 → 4.5.3
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.
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
$naturescot-logo: "naturescot-logo.png" !default;
|
|
8
8
|
|
|
9
9
|
@include govuk-exports("naturescot/component/footer") {
|
|
10
|
-
|
|
11
10
|
$naturescot-footer-background: $govuk-canvas-background-colour;
|
|
12
11
|
$naturescot-footer-border: $govuk-border-colour;
|
|
13
12
|
// This variable can be removed entirely once the legacy palette goes away,
|
|
@@ -108,16 +107,16 @@ $naturescot-logo: "naturescot-logo.png" !default;
|
|
|
108
107
|
margin-right: -$govuk-gutter-half;
|
|
109
108
|
margin-left: -$govuk-gutter-half;
|
|
110
109
|
-webkit-flex-wrap: wrap;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
-ms-flex-wrap: wrap;
|
|
111
|
+
flex-wrap: wrap; // Support: Flexbox
|
|
113
112
|
-webkit-box-align: end;
|
|
114
113
|
-webkit-align-items: flex-end;
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
-ms-flex-align: end;
|
|
115
|
+
align-items: flex-end; // Support: Flexbox
|
|
117
116
|
-webkit-box-pack: center;
|
|
118
117
|
-webkit-justify-content: center;
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
-ms-flex-pack: center;
|
|
119
|
+
justify-content: center; // Support: Flexbox
|
|
121
120
|
}
|
|
122
121
|
|
|
123
122
|
.naturescot-footer__meta-item {
|
|
@@ -129,19 +128,19 @@ $naturescot-logo: "naturescot-logo.png" !default;
|
|
|
129
128
|
.naturescot-footer__meta-item--grow {
|
|
130
129
|
-webkit-box-flex: 1;
|
|
131
130
|
-webkit-flex: 1;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
@include mq
|
|
131
|
+
-ms-flex: 1;
|
|
132
|
+
flex: 1; // Support: Flexbox
|
|
133
|
+
@include mq($until: tablet) {
|
|
135
134
|
-webkit-flex-basis: 320px;
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
-ms-flex-preferred-size: 320px;
|
|
136
|
+
flex-basis: 320px; // Support: Flexbox
|
|
138
137
|
}
|
|
139
138
|
}
|
|
140
139
|
|
|
141
140
|
.naturescot-footer__licence-logo {
|
|
142
141
|
display: inline-block;
|
|
143
142
|
margin-right: govuk-spacing(2);
|
|
144
|
-
@include mq
|
|
143
|
+
@include mq($until: desktop) {
|
|
145
144
|
margin-bottom: govuk-spacing(3);
|
|
146
145
|
}
|
|
147
146
|
vertical-align: top;
|
|
@@ -183,7 +182,7 @@ $naturescot-logo: "naturescot-logo.png" !default;
|
|
|
183
182
|
.naturescot-footer__heading {
|
|
184
183
|
@include govuk-responsive-margin(7, "bottom");
|
|
185
184
|
padding-bottom: govuk-spacing(4);
|
|
186
|
-
@include mq
|
|
185
|
+
@include mq($until: tablet) {
|
|
187
186
|
padding-bottom: govuk-spacing(2);
|
|
188
187
|
}
|
|
189
188
|
border-bottom: 1px solid $naturescot-footer-border;
|
|
@@ -197,8 +196,8 @@ $naturescot-logo: "naturescot-logo.png" !default;
|
|
|
197
196
|
margin-right: -$govuk-gutter-half;
|
|
198
197
|
margin-left: -$govuk-gutter-half;
|
|
199
198
|
-webkit-flex-wrap: wrap;
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
-ms-flex-wrap: wrap;
|
|
200
|
+
flex-wrap: wrap; // Support: Flexbox
|
|
202
201
|
}
|
|
203
202
|
|
|
204
203
|
.naturescot-footer__section {
|
|
@@ -210,29 +209,29 @@ $naturescot-logo: "naturescot-logo.png" !default;
|
|
|
210
209
|
// Ensure columns take up equal width (typically one-half:one-half)
|
|
211
210
|
-webkit-box-flex: 1;
|
|
212
211
|
-webkit-flex-grow: 1;
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
-ms-flex-positive: 1;
|
|
213
|
+
flex-grow: 1; // Support: Flexbox
|
|
215
214
|
-webkit-flex-shrink: 1;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
@include mq
|
|
215
|
+
-ms-flex-negative: 1;
|
|
216
|
+
flex-shrink: 1; // Support: Flexbox
|
|
217
|
+
@include mq($until: desktop) {
|
|
219
218
|
// Make sure columns do not drop below 200px in width
|
|
220
219
|
// Will typically result in wrapping, and end up in a single column on smaller screens.
|
|
221
220
|
-webkit-flex-basis: 200px;
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
-ms-flex-preferred-size: 200px;
|
|
222
|
+
flex-basis: 200px; // Support: Flexbox
|
|
224
223
|
}
|
|
225
224
|
}
|
|
226
225
|
|
|
227
226
|
// If there are only two sections, set the layout to be two-third:one-third on desktop
|
|
228
|
-
@include mq
|
|
227
|
+
@include mq($from: desktop) {
|
|
229
228
|
// We match the first section with `:first-child`.
|
|
230
229
|
// To ensure the section is one of two, we can count backwards using `:nth-last-child(2)`.
|
|
231
230
|
.naturescot-footer__section:first-child:nth-last-child(2) {
|
|
232
231
|
-webkit-box-flex: 2;
|
|
233
232
|
-webkit-flex-grow: 2;
|
|
234
|
-
|
|
235
|
-
|
|
233
|
+
-ms-flex-positive: 2;
|
|
234
|
+
flex-grow: 2; // Support: Flexbox
|
|
236
235
|
}
|
|
237
236
|
}
|
|
238
237
|
|
|
@@ -241,21 +240,21 @@ $naturescot-logo: "naturescot-logo.png" !default;
|
|
|
241
240
|
padding: 0;
|
|
242
241
|
list-style: none;
|
|
243
242
|
-webkit-column-gap: $govuk-gutter;
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
-moz-column-gap: $govuk-gutter;
|
|
244
|
+
column-gap: $govuk-gutter; // Support: Columns
|
|
246
245
|
}
|
|
247
246
|
|
|
248
|
-
@include mq
|
|
247
|
+
@include mq($from: desktop) {
|
|
249
248
|
.naturescot-footer__list--columns-2 {
|
|
250
249
|
-webkit-column-count: 2;
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
-moz-column-count: 2;
|
|
251
|
+
column-count: 2; // Support: Columns
|
|
253
252
|
}
|
|
254
253
|
|
|
255
254
|
.naturescot-footer__list--columns-3 {
|
|
256
255
|
-webkit-column-count: 3;
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
-moz-column-count: 3;
|
|
257
|
+
column-count: 3; // Support: Columns
|
|
259
258
|
}
|
|
260
259
|
}
|
|
261
260
|
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
@import "govuk-frontend/govuk/helpers/typography";
|
|
6
6
|
|
|
7
7
|
@include govuk-exports("naturescot/component/header") {
|
|
8
|
-
|
|
9
8
|
$naturescot-header-background: #5e8bbf;
|
|
10
9
|
$naturescot-header-border-color: #85be00;
|
|
11
10
|
$naturescot-header-border-width: govuk-spacing(2);
|
|
@@ -21,7 +20,6 @@
|
|
|
21
20
|
border-bottom: govuk-spacing(2) solid govuk-colour("white");
|
|
22
21
|
color: $naturescot-header-text;
|
|
23
22
|
background: $naturescot-header-background;
|
|
24
|
-
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
.naturescot-header__container--full-width {
|
|
@@ -138,7 +136,7 @@
|
|
|
138
136
|
@include govuk-responsive-margin(2, "bottom");
|
|
139
137
|
padding-right: govuk-spacing(8);
|
|
140
138
|
|
|
141
|
-
@include mq
|
|
139
|
+
@include mq($from: desktop) {
|
|
142
140
|
width: 33.33%;
|
|
143
141
|
padding-right: $govuk-gutter-half;
|
|
144
142
|
float: left;
|
|
@@ -147,7 +145,7 @@
|
|
|
147
145
|
}
|
|
148
146
|
|
|
149
147
|
.naturescot-header__content {
|
|
150
|
-
@include mq
|
|
148
|
+
@include mq($from: desktop) {
|
|
151
149
|
width: 66.66%;
|
|
152
150
|
padding-left: $govuk-gutter-half;
|
|
153
151
|
float: left;
|
|
@@ -180,7 +178,7 @@
|
|
|
180
178
|
margin-left: govuk-spacing(1);
|
|
181
179
|
}
|
|
182
180
|
|
|
183
|
-
@include mq
|
|
181
|
+
@include mq($from: tablet) {
|
|
184
182
|
top: govuk-spacing(3);
|
|
185
183
|
}
|
|
186
184
|
}
|
|
@@ -202,14 +200,14 @@
|
|
|
202
200
|
.js-enabled {
|
|
203
201
|
.naturescot-header__menu-button {
|
|
204
202
|
display: block;
|
|
205
|
-
@include mq
|
|
203
|
+
@include mq($from: desktop) {
|
|
206
204
|
display: none;
|
|
207
205
|
}
|
|
208
206
|
}
|
|
209
207
|
|
|
210
208
|
.naturescot-header__navigation {
|
|
211
209
|
display: none;
|
|
212
|
-
@include mq
|
|
210
|
+
@include mq($from: desktop) {
|
|
213
211
|
display: block;
|
|
214
212
|
}
|
|
215
213
|
}
|
|
@@ -219,9 +217,8 @@
|
|
|
219
217
|
}
|
|
220
218
|
}
|
|
221
219
|
|
|
222
|
-
|
|
223
220
|
.naturescot-header__navigation--end {
|
|
224
|
-
@include mq
|
|
221
|
+
@include mq($from: desktop) {
|
|
225
222
|
margin: 0;
|
|
226
223
|
padding: govuk-spacing(1) 0;
|
|
227
224
|
text-align: right;
|
|
@@ -236,7 +233,7 @@
|
|
|
236
233
|
padding: govuk-spacing(2) 0;
|
|
237
234
|
border-bottom: 1px solid $naturescot-header-nav-item-border-color;
|
|
238
235
|
|
|
239
|
-
@include mq
|
|
236
|
+
@include mq($from: desktop) {
|
|
240
237
|
display: inline-block;
|
|
241
238
|
margin-right: govuk-spacing(3);
|
|
242
239
|
padding: govuk-spacing(1) 0;
|
|
@@ -318,19 +315,18 @@
|
|
|
318
315
|
// Styles for the .svg used in the header.
|
|
319
316
|
|
|
320
317
|
.whitename {
|
|
321
|
-
fill: #
|
|
318
|
+
fill: #ffffff;
|
|
322
319
|
}
|
|
323
320
|
|
|
324
321
|
.cls-3 {
|
|
325
|
-
fill: #
|
|
322
|
+
fill: #ffffff;
|
|
326
323
|
}
|
|
327
324
|
|
|
328
325
|
.cls-4 {
|
|
329
|
-
fill: #
|
|
326
|
+
fill: #ffffff;
|
|
330
327
|
}
|
|
331
328
|
|
|
332
329
|
.cls-5 {
|
|
333
330
|
fill: url(#linear-gradient);
|
|
334
331
|
}
|
|
335
|
-
|
|
336
332
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "naturescot-frontend",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.3",
|
|
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": "^5.
|
|
9
|
+
"govuk-frontend": "^4.5.0",
|
|
10
10
|
"sass": "^1.35.2"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|