@linzjs/lui 18.4.2 → 18.4.4
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.
- package/CHANGELOG.md +14 -0
- package/dist/assets/images/error-access-denied-illustration.svg +1 -0
- package/dist/assets/images/error-not-found-illustration.svg +1 -0
- package/dist/assets/images/nz-govt-logo-rev.svg +196 -10
- package/dist/components/LuiFooter/LuiAppFooterSml.d.ts +13 -0
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/lui.css +108 -22
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +5 -6
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/Footer/footer.scss +98 -21
- package/dist/scss/Components/LuiErrorPage/LuiErrorPage.scss +29 -18
- package/package.json +1 -1
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
@use "../../
|
|
2
|
-
@use "../../Foundation/
|
|
3
|
-
@use "../../Foundation/Variables/MiscVars.scss" as misc;
|
|
4
|
-
@use "../../Foundation/Variables/SpacingVars.scss" as spacing;
|
|
5
|
-
@use "../../Foundation/Utilities/" as *;
|
|
1
|
+
@use "../../Core" as lui;
|
|
2
|
+
@use "../../Foundation/Utilities" as *;
|
|
6
3
|
|
|
7
4
|
// This builds on the NZ Govt footer SCSS which lives in a separate folder
|
|
8
5
|
|
|
9
6
|
.lui-footer {
|
|
10
|
-
padding-top:
|
|
11
|
-
padding-bottom:
|
|
7
|
+
padding-top: lui.$unit-lg;
|
|
8
|
+
padding-bottom: lui.$unit-md;
|
|
12
9
|
|
|
13
|
-
padding-left:
|
|
14
|
-
padding-right:
|
|
10
|
+
padding-left: lui.$unit-md;
|
|
11
|
+
padding-right: lui.$unit-md;
|
|
15
12
|
|
|
16
13
|
// colour row dividers (border top)
|
|
17
14
|
div[class*='row-divider'] {
|
|
18
|
-
border-color:
|
|
15
|
+
border-color: lui.$surfie;
|
|
19
16
|
}
|
|
20
17
|
|
|
21
18
|
.lui-footer-columns {
|
|
@@ -44,17 +41,17 @@
|
|
|
44
41
|
p,
|
|
45
42
|
li,
|
|
46
43
|
a {
|
|
47
|
-
color:
|
|
44
|
+
color: lui.$iceberg;
|
|
48
45
|
}
|
|
49
46
|
|
|
50
|
-
background-color:
|
|
47
|
+
background-color: lui.$sherpa;
|
|
51
48
|
|
|
52
49
|
h1,
|
|
53
50
|
h2,
|
|
54
51
|
h3,
|
|
55
52
|
h4 {
|
|
56
53
|
margin-top: 0;
|
|
57
|
-
@include
|
|
54
|
+
@include lui.font-regular;
|
|
58
55
|
}
|
|
59
56
|
|
|
60
57
|
a {
|
|
@@ -65,11 +62,11 @@
|
|
|
65
62
|
}
|
|
66
63
|
|
|
67
64
|
&:hover {
|
|
68
|
-
color:
|
|
65
|
+
color: lui.$white;
|
|
69
66
|
}
|
|
70
67
|
|
|
71
68
|
&:visited {
|
|
72
|
-
color:
|
|
69
|
+
color: lui.$silver;
|
|
73
70
|
}
|
|
74
71
|
}
|
|
75
72
|
|
|
@@ -79,10 +76,10 @@
|
|
|
79
76
|
margin: 0;
|
|
80
77
|
|
|
81
78
|
li {
|
|
82
|
-
margin-top:
|
|
79
|
+
margin-top: lui.$unit-sm;
|
|
83
80
|
|
|
84
81
|
a {
|
|
85
|
-
color:
|
|
82
|
+
color: lui.$iceberg;
|
|
86
83
|
}
|
|
87
84
|
}
|
|
88
85
|
}
|
|
@@ -101,23 +98,27 @@
|
|
|
101
98
|
margin-top: 0;
|
|
102
99
|
|
|
103
100
|
@include breakpoint(md) {
|
|
104
|
-
margin-top:
|
|
101
|
+
margin-top: lui.$unit-xl;
|
|
105
102
|
}
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
.lui-footer-nz-govt-logo,
|
|
109
106
|
.lui-footer-copyright {
|
|
110
107
|
text-align: left;
|
|
108
|
+
img {
|
|
109
|
+
height: rem(56px);
|
|
110
|
+
width: auto;
|
|
111
|
+
}
|
|
111
112
|
@include breakpoint(md) {
|
|
112
113
|
text-align: right;
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
.lui-footer-nz-govt-logo {
|
|
117
|
-
margin-top:
|
|
118
|
+
margin-top: lui.$unit-xl;
|
|
118
119
|
@include breakpoint(md) {
|
|
119
120
|
text-align: right;
|
|
120
|
-
margin-top:
|
|
121
|
+
margin-top: lui.$unit-sm;
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
|
|
@@ -131,6 +132,82 @@
|
|
|
131
132
|
|
|
132
133
|
// Target the GDS std footer class + lui-footer-sm to restyle. Trying to avoid rewrite of GDS scss and using overrides.
|
|
133
134
|
&.lui-footer-small {
|
|
134
|
-
padding:
|
|
135
|
+
padding: lui.$unit-xs lui.$unit-sm;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// -----------------------------------------------------------------------------
|
|
140
|
+
// ---------------------- LUI App footer small --------------------------------
|
|
141
|
+
// -----------------------------------------------------------------------------
|
|
142
|
+
|
|
143
|
+
$AppFooterSmlContainerBreakPointLg: 1100px;
|
|
144
|
+
$AppFooterSmlContainerBreakPointMd: 860px;
|
|
145
|
+
$FooterLogoHeight: rem(56px);
|
|
146
|
+
|
|
147
|
+
.luiAppFooter-sm {
|
|
148
|
+
container-type: inline-size;
|
|
149
|
+
container-name: appFooterSml;
|
|
150
|
+
background-color: lui.$sherpa;
|
|
151
|
+
min-height: $FooterLogoHeight;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.luiAppFooter-grid {
|
|
155
|
+
display: grid;
|
|
156
|
+
grid-template-columns: 1fr;
|
|
157
|
+
align-items: center;
|
|
158
|
+
padding: lui.$unit-md;
|
|
159
|
+
@container appFooterSml (inline-size >= #{$AppFooterSmlContainerBreakPointLg}) {
|
|
160
|
+
grid-template-columns: 1fr 240px;
|
|
161
|
+
padding: 0 lui.$unit-md;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.luiAppFooter-columnOne {
|
|
166
|
+
display: grid;
|
|
167
|
+
grid-template-columns: 1fr;
|
|
168
|
+
column-gap: lui.$unit-md;
|
|
169
|
+
row-gap: lui.$unit-sm;
|
|
170
|
+
@container appFooterSml (inline-size >= #{$AppFooterSmlContainerBreakPointMd}) {
|
|
171
|
+
grid-template-columns: 1fr 350px;
|
|
172
|
+
}
|
|
173
|
+
@container appFooterSml (inline-size >= #{$AppFooterSmlContainerBreakPointLg}) {
|
|
174
|
+
grid-template-columns: minmax(min-content, max-content) 350px;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.luiAppFooter-linksCell {
|
|
179
|
+
display: flex;
|
|
180
|
+
column-gap: lui.$unit-md;
|
|
181
|
+
flex-wrap: wrap;
|
|
182
|
+
a {
|
|
183
|
+
color: lui.$snow;
|
|
184
|
+
font-size: rem(14px);
|
|
185
|
+
@include lui.font-regular();
|
|
186
|
+
text-decoration: none;
|
|
187
|
+
line-height: rem(24px);
|
|
188
|
+
&:hover {
|
|
189
|
+
text-decoration: underline;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.luiAppFooter-copyright {
|
|
195
|
+
color: lui.$snow;
|
|
196
|
+
font-size: rem(14px);
|
|
197
|
+
@include lui.font-regular();
|
|
198
|
+
line-height: rem(24px);
|
|
199
|
+
opacity: 0.8;
|
|
200
|
+
margin: 0;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.luiAppFooter-nzGovtLogo {
|
|
204
|
+
justify-self: start;
|
|
205
|
+
font-size: 0; //remove whitespace
|
|
206
|
+
@container appFooterSml (inline-size >= #{$AppFooterSmlContainerBreakPointLg}) {
|
|
207
|
+
justify-self: end;
|
|
208
|
+
}
|
|
209
|
+
img {
|
|
210
|
+
height: $FooterLogoHeight;
|
|
211
|
+
width: auto;
|
|
135
212
|
}
|
|
136
213
|
}
|
|
@@ -1,34 +1,45 @@
|
|
|
1
1
|
@use '../../Core.scss' as lui;
|
|
2
|
+
@use "../../Foundation/Utilities" as *;
|
|
3
|
+
|
|
4
|
+
$MaxContentWidth: rem(800px);
|
|
5
|
+
$MaxImgWidth: rem(280px);
|
|
2
6
|
|
|
3
7
|
.LuiErrorPage {
|
|
4
|
-
display:
|
|
5
|
-
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: 1fr;
|
|
10
|
+
grid-template-rows: minmax(min-content, max-content) 1fr minmax(
|
|
11
|
+
min-content,
|
|
12
|
+
max-content
|
|
13
|
+
);
|
|
14
|
+
height: 100%;
|
|
6
15
|
}
|
|
7
16
|
|
|
8
17
|
.LuiErrorPage-wrapper {
|
|
9
|
-
margin-top: 32px;
|
|
10
|
-
margin-bottom: 96px;
|
|
11
18
|
display: grid;
|
|
12
|
-
grid-template-columns:
|
|
13
|
-
gap: 24px;
|
|
14
|
-
}
|
|
19
|
+
grid-template-columns: 1fr;
|
|
15
20
|
|
|
16
|
-
.LuiErrorPage-content {
|
|
17
|
-
grid-column: span 12;
|
|
18
|
-
@include lui.breakpoint(sm) {
|
|
19
|
-
grid-column: span 7;
|
|
20
|
-
}
|
|
21
21
|
@include lui.breakpoint(md) {
|
|
22
|
-
grid-
|
|
22
|
+
grid-template-columns: 1fr $MaxImgWidth;
|
|
23
|
+
}
|
|
24
|
+
max-width: $MaxContentWidth;
|
|
25
|
+
margin: lui.$unit-xl auto;
|
|
26
|
+
.ErrorPageHeading {
|
|
27
|
+
margin-top: 0;
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
.LuiErrorPage-image {
|
|
27
|
-
|
|
28
|
-
@include lui.breakpoint(sm) {
|
|
29
|
-
grid-column: span 5;
|
|
30
|
-
}
|
|
32
|
+
justify-self: center;
|
|
31
33
|
@include lui.breakpoint(md) {
|
|
32
|
-
|
|
34
|
+
justify-self: start;
|
|
35
|
+
}
|
|
36
|
+
img {
|
|
37
|
+
display: block;
|
|
38
|
+
width: $MaxImgWidth;
|
|
39
|
+
height: auto;
|
|
40
|
+
margin-top: lui.$unit-sm;
|
|
41
|
+
@include lui.breakpoint(md) {
|
|
42
|
+
margin-top: 0;
|
|
43
|
+
}
|
|
33
44
|
}
|
|
34
45
|
}
|
package/package.json
CHANGED