@itcenteratunihelsinki/huds-lib 0.6.6 → 0.6.8

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 (38) hide show
  1. package/dist/cjs/huds-lib.cjs.js +1 -1
  2. package/dist/cjs/{hy-accordion-container_89.cjs.entry.js → hy-accordion-container_83.cjs.entry.js} +611 -1315
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/collection-manifest.json +0 -12
  5. package/dist/collection/components/hy-video/hy-video.css +16 -2
  6. package/dist/collection/components/hy-video/hy-video.js +46 -3
  7. package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.js +20 -1
  8. package/dist/collection/components/site-header/site-header.css +18 -1
  9. package/dist/collection/components/site-header/site-header.js +15 -37
  10. package/dist/esm/huds-lib.js +1 -1
  11. package/dist/esm/{hy-accordion-container_89.entry.js → hy-accordion-container_83.entry.js} +613 -1311
  12. package/dist/esm/loader.js +1 -1
  13. package/dist/huds-lib/huds-lib.esm.js +1 -1
  14. package/dist/huds-lib/p-e39d3bcc.entry.js +86 -0
  15. package/dist/types/components/hy-video/hy-video.d.ts +4 -0
  16. package/dist/types/components/navigation/hy-menu-main-group/hy-menu-main-group.d.ts +1 -0
  17. package/dist/types/components/site-header/site-header.d.ts +0 -1
  18. package/dist/types/components.d.ts +19 -212
  19. package/package.json +1 -1
  20. package/dist/collection/components/navigation/menu/menu.css +0 -262
  21. package/dist/collection/components/navigation/menu/menu.js +0 -431
  22. package/dist/collection/components/navigation/menu-item/menu-item.css +0 -348
  23. package/dist/collection/components/navigation/menu-item/menu-item.js +0 -557
  24. package/dist/collection/components/navigation/menu-level-container/menu-level-container.css +0 -129
  25. package/dist/collection/components/navigation/menu-level-container/menu-level-container.js +0 -300
  26. package/dist/collection/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.css +0 -90
  27. package/dist/collection/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.js +0 -151
  28. package/dist/collection/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.css +0 -140
  29. package/dist/collection/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.js +0 -68
  30. package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.css +0 -469
  31. package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.js +0 -482
  32. package/dist/huds-lib/p-f28263c0.entry.js +0 -86
  33. package/dist/types/components/navigation/menu/menu.d.ts +0 -30
  34. package/dist/types/components/navigation/menu-item/menu-item.d.ts +0 -31
  35. package/dist/types/components/navigation/menu-level-container/menu-level-container.d.ts +0 -27
  36. package/dist/types/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.d.ts +0 -12
  37. package/dist/types/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.d.ts +0 -13
  38. package/dist/types/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.d.ts +0 -60
@@ -1,348 +0,0 @@
1
- :root {
2
- --brand-main: #0e688b;
3
- --brand-main-soft: #b1e7ff;
4
- --brand-main-bright: #48c5f8;
5
- --brand-main-light: #107eab;
6
- --brand-main-active: #005379;
7
- --brand-main-dark: #003146;
8
- --brand-main-nearly-black: #000222;
9
- --link-blue: #0479a4;
10
- --link-disabled: #767676;
11
- --grayscale-white: #fff;
12
- --grayscale-slightly-gray: #fefefe;
13
- --grayscale-light: #f8f8f8;
14
- --grayscale-medium: #d2d2d2;
15
- --grayscale-background-box: #f5f5f5;
16
- --grayscale-tabs-border: #e6e6e6;
17
- --grayscale-background-arrow: #dfdfdf;
18
- --grayscale-medium-dark: #979797;
19
- --grayscale-dark: #555555;
20
- --grayscale-dark-text: #222222;
21
- --grayscale-black: #000000;
22
- --additional-red-light: #e5053a;
23
- --additional-red-dark: #a31621;
24
- --additional-purple-light: #420039;
25
- --additional-yellow: #f9a21a;
26
- --additional-skyblue: #48c5f8;
27
- --additional-orange: #d14600;
28
- --additional-green-light: #96ba3c;
29
- --additional-green-dark: #006400;
30
- --hover-gray: #eaeaea;
31
- }
32
-
33
- * {
34
- -webkit-box-sizing: border-box;
35
- box-sizing: border-box;
36
- }
37
-
38
- :root {
39
- --gutter-mobile: 16px;
40
- --gutter-narrow: 24px;
41
- --gutter-medium: 24px;
42
- --gutter-wide: 24px;
43
- --gutter-extrawide: 32px;
44
- }
45
-
46
- /**
47
- * Mixin for fluid type.
48
- * Example usage: @include fluid-type(font-size, 320px, 1600px, 32px, 80px);
49
- */
50
-
51
- :root {
52
- --breakpoint-extrawide: 75.0625rem;
53
- --breakpoint-max-width: 75.0625rem;
54
- --breakpoint-medium: 48rem;
55
- --breakpoint-narrow: 30rem;
56
- --breakpoint-wide: 60rem;
57
- }
58
-
59
- :host(.hy-menu-item--mobile) {
60
- --menu-item-display: flex;
61
- display: -webkit-box;
62
- display: -ms-flexbox;
63
- display: flex;
64
- margin-bottom: 4px;
65
- }
66
-
67
- :host(.hy-menu-item--mobile.hy-menu-item--alternative) {
68
- border-bottom: 0 none;
69
- border-top: 1px solid black;
70
- }
71
-
72
- :host(.hy-menu-item--mobile:last-of-type) {
73
- border-bottom: 0 none;
74
- }
75
-
76
- :host(.hy-menu-item--mobile.is-hidden) {
77
- visibility: hidden !important;
78
- }
79
-
80
- :host(.hy-menu-item--mobile.is-hidden):focus {
81
- outline: none;
82
- }
83
-
84
- :host(.hy-menu-item--sidenav) {
85
- display: -webkit-box;
86
- display: -ms-flexbox;
87
- display: flex;
88
- -webkit-box-orient: vertical;
89
- -webkit-box-direction: normal;
90
- -ms-flex-flow: column;
91
- flex-flow: column;
92
- --hy-menu-item-sidenav-display: block;
93
- }
94
-
95
- :host(.hy-menu-item--sidenav.is-active) {
96
- display: block;
97
- visibility: visible;
98
- }
99
-
100
- :host(.hy-menu-item--sidenav.is-active--child) {
101
- display: block;
102
- visibility: visible;
103
- }
104
-
105
- :host(.hy-menu-item--sidenav.in-active-trail) {
106
- display: block;
107
- visibility: visible;
108
- }
109
-
110
- :host(.hy-menu-item) a {
111
- font-size: 1rem;
112
- line-height: 20px;
113
- font-weight: 600;
114
- -webkit-box-align: center;
115
- -ms-flex-align: center;
116
- align-items: center;
117
- color: var(--brand-main);
118
- display: -webkit-box;
119
- display: -ms-flexbox;
120
- display: flex;
121
- font-family: var(--main-font-family);
122
- letter-spacing: -0.5px;
123
- text-decoration: none;
124
- width: 100%;
125
- padding: 12px 16px;
126
- }
127
-
128
- :host(.hy-menu-item) a:focus {
129
- outline: solid 2px var(--additional-yellow);
130
- outline-offset: -2px;
131
- }
132
-
133
- :host(.hy-menu-item) a .hy-menu-item__label hy-icon {
134
- display: -webkit-inline-box !important;
135
- display: -ms-inline-flexbox !important;
136
- display: inline-flex !important;
137
- margin-left: 6px;
138
- margin-right: 0;
139
- -webkit-transform: rotate(-45deg);
140
- transform: rotate(-45deg);
141
- }
142
-
143
- :host(.hy-menu-item) a .hy-menu-item__label hy-icon svg {
144
- fill: var(--brand-main);
145
- }
146
-
147
- :host(.hy-menu-item) a.hy-menu-item--mobile.first {
148
- font-size: 1.3125rem;
149
- line-height: 28px;
150
- font-weight: 700;
151
- color: var(--brand-main-light);
152
- letter-spacing: -0.42px;
153
- padding: 16px 0 16px 16px;
154
- }
155
-
156
- :host(.hy-menu-item) a.hy-menu-item--mobile.is-active {
157
- color: var(--grayscale-black);
158
- position: relative;
159
- }
160
-
161
- :host(.hy-menu-item) a.hy-menu-item--mobile.is-active:before {
162
- border-left: 3px solid var(--grayscale-black);
163
- content: "";
164
- height: 75%;
165
- left: 10px;
166
- position: absolute;
167
- top: 50%;
168
- -webkit-transform: translate(-50%, -50%);
169
- transform: translate(-50%, -50%);
170
- }
171
-
172
- :host(.hy-menu-item) a.hy-menu-item--mobile.in-active-trail {
173
- font-weight: 700;
174
- color: var(--grayscale-black);
175
- }
176
-
177
- :host(.hy-menu-item) a.hy-menu-item--mobile.in-active-trail:before {
178
- border-left-width: 3px;
179
- height: 55%;
180
- }
181
-
182
- :host(.hy-menu-item) a.hy-menu-item--mobile.is-heading {
183
- font-size: 1.3125rem;
184
- line-height: 28px;
185
- font-weight: 700;
186
- color: var(--brand-main-light);
187
- letter-spacing: -0.42px;
188
- padding: 16px;
189
- }
190
-
191
- :host(.hy-menu-item) a.hy-menu-item--mobile.is-heading.is-active, :host(.hy-menu-item) a.hy-menu-item--mobile.is-heading.in-active-trail {
192
- font-weight: 700;
193
- background: transparent;
194
- border-bottom: 0;
195
- color: var(--grayscale-black);
196
- }
197
-
198
- :host(.hy-menu-item) a.hy-menu-item--mobile.is-heading.is-active:before, :host(.hy-menu-item) a.hy-menu-item--mobile.is-heading.in-active-trail:before {
199
- border-left-width: 3px;
200
- height: 55%;
201
- }
202
-
203
- :host(.hy-menu-item) a.hy-menu-item--mobile > hy-icon {
204
- -ms-flex-item-align: start;
205
- align-self: flex-start;
206
- margin-top: 10px;
207
- -webkit-transform: translateY(-50%);
208
- transform: translateY(-50%);
209
- }
210
-
211
- :host(.hy-menu-item) a.hy-menu-item--mobile hy-icon + .hy-menu-item__label {
212
- margin-left: 10px;
213
- }
214
-
215
- :host(.hy-menu-item) a.is-heading {
216
- display: inherit;
217
- }
218
-
219
- @media (min-width: 75.0625rem) {
220
- :host(.hy-menu-item) a.is-heading {
221
- display: none;
222
- }
223
- }
224
-
225
- :host(.hy-menu-item) a.hy-menu-item--sidenav {
226
- font-size: 1.125rem;
227
- line-height: 24px;
228
- font-weight: 700;
229
- color: var(--brand-main-light);
230
- display: var(--hy-menu-item-sidenav-display);
231
- font-family: var(--main-font-family);
232
- margin: 10px 0;
233
- padding: 8px 0;
234
- }
235
-
236
- :host(.hy-menu-item) a.hy-menu-item--sidenav:focus {
237
- outline-offset: 4px;
238
- }
239
-
240
- :host(.hy-menu-item) a.hy-menu-item--sidenav:hover {
241
- color: var(--brand-main-nearly-black);
242
- }
243
-
244
- :host(.hy-menu-item) a.hy-menu-item--sidenav.is-active {
245
- color: var(--brand-main-nearly-black);
246
- text-decoration: none;
247
- }
248
-
249
- :host(.hy-menu-item) a.hy-menu-item--sidenav.is-active .hy-menu-item__label {
250
- padding-bottom: 0;
251
- }
252
-
253
- :host(.hy-menu-item) a.hy-menu-item--sidenav.is-active--heading {
254
- font-size: 1.625rem;
255
- line-height: 40px;
256
- color: var(--brand-main-nearly-black);
257
- text-transform: uppercase;
258
- }
259
-
260
- :host(.hy-menu-item) a.hy-menu-item--sidenav.is-active--heading .hy-menu-item__label {
261
- border-bottom: 4px solid var(--brand-main-nearly-black);
262
- padding: 0;
263
- }
264
-
265
- :host(.hy-menu-item) a.hy-menu-item--sidenav.is-active--heading .hy-menu-item__label__icon {
266
- display: none;
267
- }
268
-
269
- :host(.hy-menu-item) a.hy-menu-item--sidenav.is-active--child {
270
- color: var(--brand-main-light);
271
- text-decoration: none;
272
- }
273
-
274
- :host(.hy-menu-item) a.hy-menu-item--sidenav .hy-menu-item__label__icon {
275
- color: var(--brand-main-light);
276
- display: inline-block;
277
- padding-left: 5px;
278
- }
279
-
280
- .is-active :host(.hy-menu-item) a.hy-menu-item--sidenav .hy-menu-item__label__icon {
281
- display: none;
282
- }
283
-
284
- :host(.hy-menu-item) a.hy-menu-item--sidenav.is-parent {
285
- font-size: 1rem;
286
- line-height: 22px;
287
- font-weight: 600;
288
- -webkit-box-align: center;
289
- -ms-flex-align: center;
290
- align-items: center;
291
- color: var(--brand-main-light);
292
- display: -webkit-box;
293
- display: -ms-flexbox;
294
- display: flex;
295
- text-decoration: none;
296
- }
297
-
298
- :host(.hy-menu-item) a.hy-menu-item--sidenav.is-parent:hover {
299
- color: var(--brand-main-nearly-black);
300
- }
301
-
302
- :host(.hy-menu-item) a.hy-menu-item--sidenav.is-parent:hover .hy-menu-item__label__icon {
303
- color: var(--brand-main-nearly-black);
304
- }
305
-
306
- :host(.hy-menu-item) a.hy-menu-item--sidenav.is-parent .hy-menu-item__label__icon {
307
- margin-right: 8px;
308
- }
309
-
310
- .hy-menu-item__button {
311
- -webkit-box-align: center;
312
- -ms-flex-align: center;
313
- align-items: center;
314
- background: transparent;
315
- border: 0;
316
- border-bottom: 0;
317
- border-right: 0;
318
- border-top: 0;
319
- cursor: pointer;
320
- display: -webkit-inline-box;
321
- display: -ms-inline-flexbox;
322
- display: inline-flex;
323
- -webkit-box-pack: center;
324
- -ms-flex-pack: center;
325
- justify-content: center;
326
- padding: 0;
327
- width: 44px;
328
- position: relative;
329
- -ms-flex-negative: 0;
330
- flex-shrink: 0;
331
- }
332
-
333
- .hy-menu-item__button:before {
334
- background-color: var(--grayscale-medium);
335
- width: 1px;
336
- height: 32px;
337
- content: "";
338
- display: inline-block;
339
- -webkit-transform: translateY(-50%);
340
- transform: translateY(-50%);
341
- top: 50%;
342
- left: 0;
343
- position: absolute;
344
- }
345
-
346
- .hy-menu-item__button svg {
347
- fill: var(--grayscale-black);
348
- }