@zanichelli/albe-web-components 2.30.1 → 2.31.0-clav-272
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 +1177 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert_66.cjs.entry.js +36 -15
- package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
- package/dist/cjs/z-visually-hidden.cjs.entry.js +19 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/footer/z-footer/index.js +161 -19
- package/dist/collection/components/footer/z-footer/styles.css +105 -43
- package/dist/collection/components/footer/z-footer-link/styles.css +1 -1
- package/dist/collection/components/footer/z-footer-section/styles.css +7 -8
- package/dist/collection/components/footer/z-footer-social/styles.css +1 -1
- package/dist/collection/components/logo/z-logo/index.js +25 -8
- package/dist/collection/components/logo/z-logo/styles.css +9 -11
- package/dist/collection/components/navigation/z-app-topbar/index.js +1 -1
- package/dist/collection/components/z-visually-hidden/index.js +15 -0
- package/dist/collection/components/z-visually-hidden/styles.css +15 -0
- package/dist/collection/snowflakes/myz/topbar/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert_66.entry.js +36 -15
- package/dist/esm/z-myz-topbar.entry.js +1 -1
- package/dist/esm/z-visually-hidden.entry.js +15 -0
- package/dist/types/components/footer/z-footer/index.d.ts +23 -2
- package/dist/types/components/logo/z-logo/index.d.ts +4 -2
- package/dist/types/components/z-visually-hidden/index.d.ts +3 -0
- package/dist/types/components.d.ts +69 -8
- package/dist/web-components-library/p-16197e3c.entry.js +7 -0
- package/dist/web-components-library/p-dc51dcc8.entry.js +1 -0
- package/dist/web-components-library/p-f83347fd.entry.js +1 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +2 -1
- package/react/components.js.map +1 -1
- package/src-react/index.ts +1 -0
- package/www/build/p-16197e3c.entry.js +7 -0
- package/www/build/p-beb043f8.js +1 -0
- package/www/build/p-dc51dcc8.entry.js +1 -0
- package/www/build/p-f83347fd.entry.js +1 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +3 -3
- package/www/pages/notification.html +3 -6
- package/dist/web-components-library/p-14543c46.entry.js +0 -1
- package/dist/web-components-library/p-b89ae2ca.entry.js +0 -7
- package/www/build/p-14543c46.entry.js +0 -1
- package/www/build/p-b89ae2ca.entry.js +0 -7
- package/www/build/p-e4e9baf3.js +0 -1
|
@@ -1,21 +1,34 @@
|
|
|
1
|
-
import { Component, h, Prop } from "@stencil/core";
|
|
1
|
+
import { Component, h, Prop, Event, Listen } from "@stencil/core";
|
|
2
|
+
import { ButtonSizeEnum, ButtonVariantEnum } from "../../../beans";
|
|
2
3
|
/**
|
|
3
4
|
* @slot - main navigation
|
|
4
5
|
* @slot links - bottom navigation
|
|
5
6
|
* @slot social - social links
|
|
6
7
|
*/
|
|
7
8
|
export class ZFooter {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.creditsLinkId = "creditsLinkId";
|
|
11
|
+
this.emitReportAProblemButtonClick = this.emitReportAProblemButtonClick.bind(this);
|
|
12
|
+
}
|
|
8
13
|
componentWillLoad() {
|
|
9
14
|
if (this.data) {
|
|
10
15
|
console.warn("z-footer: `data` prop is deprecated and will be removed in a future version. Use slots instead.");
|
|
11
16
|
this.jsonData = JSON.parse(this.data);
|
|
12
17
|
}
|
|
13
|
-
|
|
14
|
-
|
|
18
|
+
}
|
|
19
|
+
zLinkClickListener(e) {
|
|
20
|
+
if (e.detail.linkId === this.creditsLinkId) {
|
|
21
|
+
this.emitCreditsLinkClick();
|
|
15
22
|
}
|
|
16
23
|
}
|
|
24
|
+
emitCreditsLinkClick() {
|
|
25
|
+
this.creditsLinkClick.emit();
|
|
26
|
+
}
|
|
27
|
+
emitReportAProblemButtonClick() {
|
|
28
|
+
this.reportAProblemButtonClick.emit();
|
|
29
|
+
}
|
|
17
30
|
renderZLogo() {
|
|
18
|
-
return (h("z-logo", { link: "https://www.zanichelli.it", width: 144, height: 38,
|
|
31
|
+
return (h("z-logo", { link: "https://www.zanichelli.it", width: 144, height: 38, imageAlt: "Home Zanichelli", targetBlank: true }));
|
|
19
32
|
}
|
|
20
33
|
renderAddress() {
|
|
21
34
|
return (h("p", null,
|
|
@@ -49,20 +62,42 @@ export class ZFooter {
|
|
|
49
62
|
this.renderFooterBottomJsonData()));
|
|
50
63
|
}
|
|
51
64
|
renderFooterBottom() {
|
|
52
|
-
return (h("section", {
|
|
53
|
-
h("div", { class: "
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
65
|
+
return (h("section", { id: "bottom" },
|
|
66
|
+
h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} },
|
|
67
|
+
h("div", { class: "item logo" },
|
|
68
|
+
this.renderZLogo(),
|
|
69
|
+
this.renderCopyright(),
|
|
70
|
+
this.renderCertification()),
|
|
71
|
+
h("div", { class: "item" },
|
|
72
|
+
this.renderAddress(),
|
|
73
|
+
this.renderSocial()),
|
|
74
|
+
this.renderBottomLinks())));
|
|
61
75
|
}
|
|
62
76
|
renderFooterTop() {
|
|
63
|
-
return (h("section", {
|
|
64
|
-
h("
|
|
65
|
-
|
|
77
|
+
return (h("section", { id: "top" },
|
|
78
|
+
h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} },
|
|
79
|
+
h("slot", null),
|
|
80
|
+
this.renderFooterTopJsonData())));
|
|
81
|
+
}
|
|
82
|
+
renderFooterProductInfo() {
|
|
83
|
+
var _a;
|
|
84
|
+
if (this.productName || this.productVersion || this.productCreditsLink != null || this.showReportAProblemButton) {
|
|
85
|
+
const versionString = `${this.productName ? ' versione' : 'Versione'} ${this.productVersion}`;
|
|
86
|
+
const creditsObject = h("z-body", { level: 5 },
|
|
87
|
+
(this.productName || this.productVersion) && ' - ',
|
|
88
|
+
h("z-link", { htmlid: this.creditsLinkId, href: (_a = this.productCreditsLink) === null || _a === void 0 ? void 0 : _a.trim(), target: "_blank", textcolor: "white" }, "Credits"));
|
|
89
|
+
return (h("div", { id: "extension" },
|
|
90
|
+
h("div", { class: { "limited-width": !!this.contentMaxWidth }, style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} },
|
|
91
|
+
h("span", null,
|
|
92
|
+
this.productName && h("z-body", { level: 5, variant: "semibold" }, this.productName),
|
|
93
|
+
this.productVersion && h("z-body", { level: 5 }, versionString),
|
|
94
|
+
this.productCreditsLink != null && creditsObject),
|
|
95
|
+
this.showReportAProblemButton &&
|
|
96
|
+
h("div", null,
|
|
97
|
+
h("z-body", { level: 5 }, "Hai bisogno di aiuto?"),
|
|
98
|
+
h("z-button", { variant: ButtonVariantEnum["dark-bg"], size: ButtonSizeEnum.small, onClick: this.emitReportAProblemButtonClick }, "SEGNALA UN PROBLEMA")),
|
|
99
|
+
h("z-divider", { color: "gray500" }))));
|
|
100
|
+
}
|
|
66
101
|
}
|
|
67
102
|
// INFO: backward compatibility
|
|
68
103
|
renderFooterTopJsonData() {
|
|
@@ -94,6 +129,7 @@ export class ZFooter {
|
|
|
94
129
|
}
|
|
95
130
|
render() {
|
|
96
131
|
return (h("footer", null,
|
|
132
|
+
this.renderFooterProductInfo(),
|
|
97
133
|
this.renderFooterTop(),
|
|
98
134
|
this.renderFooterBottom()));
|
|
99
135
|
}
|
|
@@ -123,7 +159,41 @@ export class ZFooter {
|
|
|
123
159
|
"attribute": "data",
|
|
124
160
|
"reflect": false
|
|
125
161
|
},
|
|
126
|
-
"
|
|
162
|
+
"productName": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"mutable": false,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "string",
|
|
167
|
+
"resolved": "string",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": true,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "The product name to be displayed on the top panel of the footer"
|
|
175
|
+
},
|
|
176
|
+
"attribute": "product-name",
|
|
177
|
+
"reflect": false
|
|
178
|
+
},
|
|
179
|
+
"productVersion": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"mutable": false,
|
|
182
|
+
"complexType": {
|
|
183
|
+
"original": "string",
|
|
184
|
+
"resolved": "string",
|
|
185
|
+
"references": {}
|
|
186
|
+
},
|
|
187
|
+
"required": false,
|
|
188
|
+
"optional": true,
|
|
189
|
+
"docs": {
|
|
190
|
+
"tags": [],
|
|
191
|
+
"text": "The product version to be displayed on the top panel of the footer"
|
|
192
|
+
},
|
|
193
|
+
"attribute": "product-version",
|
|
194
|
+
"reflect": false
|
|
195
|
+
},
|
|
196
|
+
"productCreditsLink": {
|
|
127
197
|
"type": "string",
|
|
128
198
|
"mutable": false,
|
|
129
199
|
"complexType": {
|
|
@@ -135,10 +205,82 @@ export class ZFooter {
|
|
|
135
205
|
"optional": true,
|
|
136
206
|
"docs": {
|
|
137
207
|
"tags": [],
|
|
138
|
-
"text": "
|
|
208
|
+
"text": "'undefined' or 'null' means 'don't show Credits',\nempty string means 'emit creditsLinkClick event', \nnot empty string means 'open the url and emit creditsLinkClick event'"
|
|
139
209
|
},
|
|
140
|
-
"attribute": "
|
|
210
|
+
"attribute": "product-credits-link",
|
|
211
|
+
"reflect": false
|
|
212
|
+
},
|
|
213
|
+
"showReportAProblemButton": {
|
|
214
|
+
"type": "boolean",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "boolean",
|
|
218
|
+
"resolved": "boolean",
|
|
219
|
+
"references": {}
|
|
220
|
+
},
|
|
221
|
+
"required": false,
|
|
222
|
+
"optional": true,
|
|
223
|
+
"docs": {
|
|
224
|
+
"tags": [],
|
|
225
|
+
"text": "True if the product must display a \"Report a problem\" button on the top panel of the footer"
|
|
226
|
+
},
|
|
227
|
+
"attribute": "show-report-a-problem-button",
|
|
228
|
+
"reflect": false
|
|
229
|
+
},
|
|
230
|
+
"contentMaxWidth": {
|
|
231
|
+
"type": "number",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "number",
|
|
235
|
+
"resolved": "number",
|
|
236
|
+
"references": {}
|
|
237
|
+
},
|
|
238
|
+
"required": false,
|
|
239
|
+
"optional": true,
|
|
240
|
+
"docs": {
|
|
241
|
+
"tags": [],
|
|
242
|
+
"text": "Maximum width of footer content"
|
|
243
|
+
},
|
|
244
|
+
"attribute": "content-max-width",
|
|
141
245
|
"reflect": false
|
|
142
246
|
}
|
|
143
247
|
}; }
|
|
248
|
+
static get events() { return [{
|
|
249
|
+
"method": "creditsLinkClick",
|
|
250
|
+
"name": "creditsLinkClick",
|
|
251
|
+
"bubbles": true,
|
|
252
|
+
"cancelable": true,
|
|
253
|
+
"composed": true,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": "Emitted on credits link click"
|
|
257
|
+
},
|
|
258
|
+
"complexType": {
|
|
259
|
+
"original": "any",
|
|
260
|
+
"resolved": "any",
|
|
261
|
+
"references": {}
|
|
262
|
+
}
|
|
263
|
+
}, {
|
|
264
|
+
"method": "reportAProblemButtonClick",
|
|
265
|
+
"name": "reportAProblemButtonClick",
|
|
266
|
+
"bubbles": true,
|
|
267
|
+
"cancelable": true,
|
|
268
|
+
"composed": true,
|
|
269
|
+
"docs": {
|
|
270
|
+
"tags": [],
|
|
271
|
+
"text": "Emitted on report a problem button click"
|
|
272
|
+
},
|
|
273
|
+
"complexType": {
|
|
274
|
+
"original": "any",
|
|
275
|
+
"resolved": "any",
|
|
276
|
+
"references": {}
|
|
277
|
+
}
|
|
278
|
+
}]; }
|
|
279
|
+
static get listeners() { return [{
|
|
280
|
+
"name": "zLinkClick",
|
|
281
|
+
"method": "zLinkClickListener",
|
|
282
|
+
"target": undefined,
|
|
283
|
+
"capture": false,
|
|
284
|
+
"passive": false
|
|
285
|
+
}]; }
|
|
144
286
|
}
|
|
@@ -6,10 +6,10 @@ footer {
|
|
|
6
6
|
width: auto;
|
|
7
7
|
height: auto;
|
|
8
8
|
box-sizing: border-box;
|
|
9
|
-
font-family: var(--
|
|
9
|
+
font-family: var(--font-family-sans);
|
|
10
10
|
font-size: 13px;
|
|
11
|
-
padding: var(--space-unit) 0
|
|
12
|
-
background-color: var(--
|
|
11
|
+
padding: var(--space-unit) 0;
|
|
12
|
+
background-color: var(--gray900);
|
|
13
13
|
color: var(--gray50);
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -17,22 +17,29 @@ footer * {
|
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
footer > section {
|
|
20
|
+
footer > section > div {
|
|
21
21
|
display: grid;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
#top {
|
|
25
|
+
padding: 0 calc(var(--space-unit) * 2);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
#bottom {
|
|
27
29
|
width: auto;
|
|
28
30
|
height: auto;
|
|
29
31
|
margin: 0;
|
|
30
|
-
padding: 0;
|
|
32
|
+
padding: 0 calc(var(--space-unit) * 2);
|
|
31
33
|
white-space: pre-line;
|
|
32
34
|
font-size: 12px;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
#bottom > div {
|
|
38
|
+
display: grid;
|
|
39
|
+
grid-template-columns: 1fr;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#bottom > div > div.item {
|
|
36
43
|
display: flex;
|
|
37
44
|
flex-direction: column;
|
|
38
45
|
align-items: flex-start;
|
|
@@ -40,19 +47,18 @@ footer > section.bottom > div.item {
|
|
|
40
47
|
height: auto;
|
|
41
48
|
width: auto;
|
|
42
49
|
padding: calc(var(--space-unit) * 2) 0;
|
|
43
|
-
margin: 0 calc(var(--space-unit) * 3);
|
|
44
50
|
}
|
|
45
51
|
|
|
46
|
-
|
|
52
|
+
#bottom > div > div.item:nth-child(1) {
|
|
47
53
|
order: 2;
|
|
48
54
|
}
|
|
49
55
|
|
|
50
|
-
|
|
56
|
+
#bottom > div > div.item:nth-child(2) {
|
|
51
57
|
order: 1;
|
|
52
58
|
border-bottom: 1px solid var(--gray50);
|
|
53
59
|
}
|
|
54
60
|
|
|
55
|
-
|
|
61
|
+
#bottom > div > div.item > div.social {
|
|
56
62
|
display: grid;
|
|
57
63
|
grid-template-columns: repeat(5, 1fr);
|
|
58
64
|
grid-template-rows: repeat(auto-fill, 24px);
|
|
@@ -61,120 +67,176 @@ footer > section.bottom > div.item > div.social {
|
|
|
61
67
|
margin-bottom: 0px;
|
|
62
68
|
}
|
|
63
69
|
|
|
64
|
-
|
|
70
|
+
#bottom > div > div.bottom-links {
|
|
65
71
|
display: none;
|
|
66
72
|
}
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
#bottom > div > div.item > p {
|
|
69
75
|
margin: var(--space-unit) 0;
|
|
70
76
|
padding: var(--space-unit) 0;
|
|
71
77
|
}
|
|
72
78
|
|
|
73
|
-
|
|
79
|
+
#bottom > div > div.item > p:first-child {
|
|
74
80
|
margin-top: 0;
|
|
75
81
|
}
|
|
76
82
|
|
|
77
|
-
|
|
83
|
+
#bottom > div > div.item > p:last-child {
|
|
78
84
|
margin-bottom: 0;
|
|
79
85
|
}
|
|
80
86
|
|
|
81
|
-
|
|
87
|
+
#bottom > div > div.logo > p > span {
|
|
82
88
|
display: block;
|
|
83
89
|
}
|
|
84
90
|
|
|
91
|
+
#extension {
|
|
92
|
+
padding: 0 calc(var(--space-unit) * 2);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
#extension > div {
|
|
96
|
+
display: grid;
|
|
97
|
+
grid-template-columns: 1fr;
|
|
98
|
+
grid-row-gap: var(--space-unit);
|
|
99
|
+
align-items: center;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
#extension z-divider {
|
|
103
|
+
margin-top: var(--space-unit);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
#extension z-button {
|
|
107
|
+
margin-left: var(--space-unit);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
div.limited-width {
|
|
111
|
+
margin: auto;
|
|
112
|
+
max-width: var(--mw);
|
|
113
|
+
}
|
|
114
|
+
|
|
85
115
|
/* Tablet breakpoint */
|
|
86
116
|
@media only screen and (min-width: 768px) {
|
|
87
117
|
footer {
|
|
88
118
|
padding: 0;
|
|
89
119
|
}
|
|
90
120
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
121
|
+
#top {
|
|
122
|
+
background-color: var(--gray800);
|
|
123
|
+
padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);
|
|
94
124
|
}
|
|
95
125
|
|
|
96
126
|
/* backward compatibility */
|
|
97
|
-
|
|
127
|
+
#top z-footer-section:last-child {
|
|
98
128
|
display: none;
|
|
99
129
|
}
|
|
100
130
|
|
|
101
|
-
|
|
131
|
+
#bottom {
|
|
132
|
+
background-color: var(--gray900);
|
|
133
|
+
padding: 0 calc(var(--space-unit) * 3);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
#bottom > div {
|
|
102
137
|
grid-template-columns: repeat(4, 1fr);
|
|
103
138
|
grid-column-gap: var(--grid-tablet-margin);
|
|
104
|
-
background-color: var(--bg-grey-900);
|
|
105
|
-
padding: 0 calc(var(--space-unit) * 4);
|
|
106
139
|
}
|
|
107
140
|
|
|
108
|
-
|
|
141
|
+
#bottom > div > div.item {
|
|
109
142
|
margin: 0;
|
|
110
143
|
}
|
|
111
144
|
|
|
112
|
-
|
|
145
|
+
#bottom > div > div.item:nth-child(1) {
|
|
113
146
|
order: 1;
|
|
114
147
|
}
|
|
115
148
|
|
|
116
|
-
|
|
149
|
+
#bottom > div > div.item:nth-child(2) {
|
|
117
150
|
order: 2;
|
|
118
151
|
border-bottom: none;
|
|
119
152
|
}
|
|
120
153
|
|
|
121
|
-
|
|
154
|
+
#bottom > div > div.item > p {
|
|
122
155
|
padding-top: 0;
|
|
123
156
|
}
|
|
124
157
|
|
|
125
|
-
|
|
158
|
+
#bottom > div > div.logo > z-logo {
|
|
126
159
|
width: auto;
|
|
127
160
|
height: 39px;
|
|
128
161
|
}
|
|
129
162
|
|
|
130
|
-
|
|
163
|
+
#bottom > div > div.bottom-links {
|
|
131
164
|
display: block;
|
|
132
165
|
grid-column: span 2;
|
|
133
166
|
order: 3;
|
|
134
167
|
}
|
|
135
168
|
|
|
136
|
-
|
|
169
|
+
#bottom > div > div.bottom-links {
|
|
137
170
|
display: grid;
|
|
138
171
|
grid-template-columns: repeat(2, 1fr);
|
|
139
172
|
grid-template-rows: repeat(auto-fill, 24px);
|
|
140
173
|
grid-column-gap: var(--grid-tablet-margin);
|
|
141
174
|
font-size: 12px;
|
|
142
175
|
}
|
|
176
|
+
|
|
177
|
+
#extension {
|
|
178
|
+
margin: auto;
|
|
179
|
+
padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 3) 0;
|
|
180
|
+
background-color: var(--gray800);
|
|
181
|
+
color: white;
|
|
182
|
+
grid-template-columns: 1fr 1fr;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
#extension > div > div {
|
|
186
|
+
text-align: end;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
#extension z-divider {
|
|
190
|
+
grid-column: 1 / span 2;
|
|
191
|
+
}
|
|
143
192
|
}
|
|
144
193
|
|
|
145
194
|
/* Desktop breakpoint */
|
|
146
195
|
@media only screen and (min-width: 1152px) {
|
|
147
|
-
|
|
148
|
-
grid-template-columns: repeat(6, 1fr);
|
|
149
|
-
grid-column-gap: var(--grid-desktop-margin);
|
|
196
|
+
#top {
|
|
150
197
|
width: 100%;
|
|
151
|
-
padding: calc(var(--space-unit) * 3) calc(var(--space-unit) * 4);
|
|
152
198
|
}
|
|
153
199
|
|
|
154
|
-
|
|
155
|
-
|
|
200
|
+
#top > div {
|
|
201
|
+
grid-template-columns: repeat(6, 1fr);
|
|
202
|
+
grid-column-gap: var(--grid-desktop-margin);
|
|
156
203
|
}
|
|
157
204
|
|
|
158
|
-
|
|
205
|
+
#bottom > div > div.item:nth-child(1) > p:nth-of-type(2) {
|
|
159
206
|
font-size: 10px;
|
|
160
207
|
}
|
|
161
208
|
|
|
162
|
-
|
|
209
|
+
#bottom > div > div.item > p {
|
|
163
210
|
padding-bottom: 0;
|
|
164
211
|
margin-bottom: calc(var(--space-unit) * 2);
|
|
165
212
|
}
|
|
166
213
|
|
|
167
|
-
|
|
214
|
+
#bottom > div > div.item > div.social {
|
|
168
215
|
margin-top: 0;
|
|
169
216
|
}
|
|
170
217
|
|
|
171
|
-
|
|
218
|
+
#bottom > div > div.bottom-links {
|
|
172
219
|
padding: calc(var(--space-unit) * 2) 0 0 0;
|
|
173
220
|
}
|
|
174
221
|
|
|
175
|
-
|
|
222
|
+
#bottom > div > div.bottom-links {
|
|
176
223
|
grid-template-columns: repeat(3, 1fr);
|
|
177
224
|
grid-column-gap: var(--grid-desktop-margin);
|
|
178
225
|
margin: 0;
|
|
179
226
|
}
|
|
180
227
|
}
|
|
228
|
+
|
|
229
|
+
/* Wide breakpoint */
|
|
230
|
+
@media only screen and (min-width: 1366px) {
|
|
231
|
+
#top {
|
|
232
|
+
padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 4);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
#bottom {
|
|
236
|
+
padding: 0 calc(var(--space-unit) * 4);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
#extension {
|
|
240
|
+
padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 4) 0;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
font-family: var(--
|
|
2
|
+
font-family: var(--font-family-sans);
|
|
3
3
|
font-weight: var(--font-rg);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
:host > nav {
|
|
7
|
-
background-color: var(--
|
|
7
|
+
background-color: var(--gray900);
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
justify-items: flex-start;
|
|
11
11
|
overflow: hidden;
|
|
12
|
-
margin: calc(var(--space-unit) / 2) 0
|
|
12
|
+
margin: calc(var(--space-unit) / 2) 0;
|
|
13
13
|
padding: 0;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
justify-content: flex-start;
|
|
22
22
|
align-items: stretch;
|
|
23
23
|
align-content: flex-start;
|
|
24
|
-
margin: 0 calc(var(--space-unit) * 4);
|
|
25
24
|
height: calc(var(--space-unit) * 4);
|
|
26
25
|
border-bottom: 1px solid var(--gray50);
|
|
27
26
|
line-height: 1;
|
|
@@ -30,7 +29,7 @@
|
|
|
30
29
|
:host > nav > .header > h2 {
|
|
31
30
|
color: var(--color-white);
|
|
32
31
|
font-size: 16px;
|
|
33
|
-
margin: var(--space-unit) 0
|
|
32
|
+
margin: var(--space-unit) 0;
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
:host > nav > .header {
|
|
@@ -54,11 +53,11 @@
|
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
:host > nav > .content {
|
|
57
|
-
background-color: var(--
|
|
56
|
+
background-color: var(--gray800);
|
|
58
57
|
display: none;
|
|
59
58
|
height: 0;
|
|
60
59
|
transition: 0.3s ease;
|
|
61
|
-
padding: calc(var(--space-unit) * 3) calc(var(--space-unit) *
|
|
60
|
+
padding: calc(var(--space-unit) * 3) calc(var(--space-unit) * 2);
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
:host > nav > .content.show {
|
|
@@ -77,7 +76,7 @@
|
|
|
77
76
|
padding: calc(var(--space-unit) * 2) 0;
|
|
78
77
|
border-bottom: 1px solid var(--color-white);
|
|
79
78
|
margin: 0;
|
|
80
|
-
background-color: var(--
|
|
79
|
+
background-color: var(--gray800);
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
:host > nav > .header > button.toggleButton {
|
|
@@ -8,10 +8,10 @@ export class ZLogo {
|
|
|
8
8
|
if (this.height) {
|
|
9
9
|
style["height"] = style["max-height"] = `${this.height}px`;
|
|
10
10
|
}
|
|
11
|
-
return (h(Host, { style: style }, this.link ?
|
|
12
|
-
h("a", { href: this.link, target: this.
|
|
13
|
-
h("img", { alt: this.
|
|
14
|
-
h("img", { alt: this.
|
|
11
|
+
return (h(Host, { style: style, class: { "mobile": !!this.mobileLogo } }, this.link ?
|
|
12
|
+
h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" },
|
|
13
|
+
h("img", { alt: this.imageAlt })) :
|
|
14
|
+
h("img", { alt: this.imageAlt })));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "z-logo"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,7 +56,7 @@ export class ZLogo {
|
|
|
56
56
|
"attribute": "height",
|
|
57
57
|
"reflect": false
|
|
58
58
|
},
|
|
59
|
-
"
|
|
59
|
+
"imageAlt": {
|
|
60
60
|
"type": "string",
|
|
61
61
|
"mutable": false,
|
|
62
62
|
"complexType": {
|
|
@@ -70,7 +70,7 @@ export class ZLogo {
|
|
|
70
70
|
"tags": [],
|
|
71
71
|
"text": "alternative image text"
|
|
72
72
|
},
|
|
73
|
-
"attribute": "
|
|
73
|
+
"attribute": "image-alt",
|
|
74
74
|
"reflect": false
|
|
75
75
|
},
|
|
76
76
|
"link": {
|
|
@@ -90,7 +90,7 @@ export class ZLogo {
|
|
|
90
90
|
"attribute": "link",
|
|
91
91
|
"reflect": false
|
|
92
92
|
},
|
|
93
|
-
"
|
|
93
|
+
"targetBlank": {
|
|
94
94
|
"type": "boolean",
|
|
95
95
|
"mutable": false,
|
|
96
96
|
"complexType": {
|
|
@@ -104,7 +104,24 @@ export class ZLogo {
|
|
|
104
104
|
"tags": [],
|
|
105
105
|
"text": "link target: true means _blank, false means _self"
|
|
106
106
|
},
|
|
107
|
-
"attribute": "
|
|
107
|
+
"attribute": "target-blank",
|
|
108
|
+
"reflect": false
|
|
109
|
+
},
|
|
110
|
+
"mobileLogo": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "boolean",
|
|
115
|
+
"resolved": "boolean",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": true,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "if true, the mobile logo is displayed, otherwise the desktop one"
|
|
123
|
+
},
|
|
124
|
+
"attribute": "mobile-logo",
|
|
108
125
|
"reflect": false
|
|
109
126
|
}
|
|
110
127
|
}; }
|