@itcenteratunihelsinki/huds-lib 0.5.46 → 0.6.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.
- package/dist/cjs/color-box_8.cjs.entry.js +1 -1
- package/dist/cjs/huds-lib.cjs.js +1 -1
- package/dist/cjs/{hy-accordion-container_91.cjs.entry.js → hy-accordion-container_89.cjs.entry.js} +3 -492
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-eeb7b089.js → utils-00f72b1e.js} +0 -2
- package/dist/collection/collection-manifest.json +0 -4
- package/dist/collection/components/hy-main/hy-main.css +3 -2
- package/dist/collection/components/navigation/menu/menu.js +1 -1
- package/dist/collection/components/navigation/menu-item/menu-item.js +1 -17
- package/dist/collection/components/navigation/menu-level-container/menu-level-container.css +0 -236
- package/dist/collection/components/navigation/menu-level-container/menu-level-container.js +1 -48
- package/dist/collection/components/site-header/site-header.js +1 -1
- package/dist/collection/utils/utils.js +0 -2
- package/dist/esm/color-box_8.entry.js +1 -1
- package/dist/esm/huds-lib.js +1 -1
- package/dist/esm/{hy-accordion-container_91.entry.js → hy-accordion-container_89.entry.js} +4 -491
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-966ffdb5.js → utils-159098a4.js} +0 -2
- package/dist/huds-lib/huds-lib.esm.js +1 -1
- package/dist/huds-lib/{p-77f7df4b.entry.js → p-152d3e8d.entry.js} +54 -54
- package/dist/huds-lib/{p-d3ced29c.entry.js → p-2efc8ca0.entry.js} +1 -1
- package/dist/huds-lib/{p-cd2316f0.js → p-d9dc337b.js} +1 -1
- package/dist/types/components.d.ts +0 -200
- package/dist/types/utils/utils.d.ts +0 -2
- package/package.json +1 -1
- package/dist/collection/components/navigation/menu-item-sidebar/menu-item-sidebar.css +0 -399
- package/dist/collection/components/navigation/menu-item-sidebar/menu-item-sidebar.js +0 -580
- package/dist/collection/components/navigation/menu-sidebar/menu-sidebar.css +0 -337
- package/dist/collection/components/navigation/menu-sidebar/menu-sidebar.js +0 -677
- package/dist/types/components/navigation/menu-item-sidebar/menu-item-sidebar.d.ts +0 -34
- package/dist/types/components/navigation/menu-sidebar/menu-sidebar.d.ts +0 -90
|
@@ -1,337 +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 {
|
|
60
|
-
display: block;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* .hy-menu-sidebar__no-scroll {
|
|
64
|
-
height: 200vh;
|
|
65
|
-
overflow: hidden;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.hy-menu-sidepanel__no-scroll {
|
|
69
|
-
height: 100vh;
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
} */
|
|
72
|
-
|
|
73
|
-
.hy-menu-sidebar--container {
|
|
74
|
-
background: none;
|
|
75
|
-
position: relative;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.hy-menu-sidebar--container.sidebar-open {
|
|
79
|
-
background: linear-gradient(to right, #fff 380px, rgba(0, 0, 0, 0.5) 10%);
|
|
80
|
-
bottom: 0;
|
|
81
|
-
display: block;
|
|
82
|
-
height: auto;
|
|
83
|
-
left: 16px;
|
|
84
|
-
overflow: auto;
|
|
85
|
-
position: absolute;
|
|
86
|
-
right: 0;
|
|
87
|
-
top: -96px;
|
|
88
|
-
-webkit-transition: all 0.25s ease-in;
|
|
89
|
-
transition: all 0.25s ease-in;
|
|
90
|
-
z-index: 15;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.hy-menu-sidebar--container.sidebar-open .hy-menu-sidebar__logo {
|
|
94
|
-
-webkit-box-align: center;
|
|
95
|
-
-ms-flex-align: center;
|
|
96
|
-
align-items: center;
|
|
97
|
-
display: -webkit-box;
|
|
98
|
-
display: -ms-flexbox;
|
|
99
|
-
display: flex;
|
|
100
|
-
height: 96px;
|
|
101
|
-
margin-bottom: 40px;
|
|
102
|
-
margin-top: -8px;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.hy-menu-sidebar--container.sidebar-open .hy-menu-sidebar__logo .hy-site-logo__label {
|
|
106
|
-
max-width: 200px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.hy-menu-sidebar--container.sidebar-open .hy-menu-sidebar__panel-toggle {
|
|
110
|
-
display: -webkit-box;
|
|
111
|
-
display: -ms-flexbox;
|
|
112
|
-
display: flex;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.hy-menu-sidebar--container .hy-menu-sidebar__panel-toggle,
|
|
116
|
-
.hy-menu-sidebar--container .hy-menu-sidebar__logo {
|
|
117
|
-
display: none;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.hy-menu-sidepanel--container {
|
|
121
|
-
-webkit-animation-direction: normal;
|
|
122
|
-
animation-direction: normal;
|
|
123
|
-
-webkit-animation-duration: 0.25s;
|
|
124
|
-
animation-duration: 0.25s;
|
|
125
|
-
-webkit-animation-fill-mode: forwards;
|
|
126
|
-
animation-fill-mode: forwards;
|
|
127
|
-
-webkit-animation-name: sidepanel-moveout;
|
|
128
|
-
animation-name: sidepanel-moveout;
|
|
129
|
-
bottom: 0;
|
|
130
|
-
display: none;
|
|
131
|
-
left: 0;
|
|
132
|
-
overflow: auto;
|
|
133
|
-
position: absolute;
|
|
134
|
-
right: 0;
|
|
135
|
-
top: -96px;
|
|
136
|
-
-webkit-transform: translateX(-105%);
|
|
137
|
-
transform: translateX(-105%);
|
|
138
|
-
visibility: hidden;
|
|
139
|
-
z-index: 124;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.hy-menu-sidepanel--container.sidepanel-open {
|
|
143
|
-
-webkit-animation-direction: normal;
|
|
144
|
-
animation-direction: normal;
|
|
145
|
-
-webkit-animation-duration: 0.35s;
|
|
146
|
-
animation-duration: 0.35s;
|
|
147
|
-
-webkit-animation-fill-mode: forwards;
|
|
148
|
-
animation-fill-mode: forwards;
|
|
149
|
-
-webkit-animation-name: sidepanel-movein;
|
|
150
|
-
animation-name: sidepanel-movein;
|
|
151
|
-
display: -webkit-box;
|
|
152
|
-
display: -ms-flexbox;
|
|
153
|
-
display: flex;
|
|
154
|
-
height: auto;
|
|
155
|
-
min-height: 100vh;
|
|
156
|
-
width: 100%;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.hy-menu-sidepanel--container.sidepanel-open :not(.is-parent):not(.in-active-trail):not(.is-active-item).hy-menu-item-sidebar .hy-menu-item-sidebar--label-container {
|
|
160
|
-
background: -webkit-gradient(linear, right top, left top, from(#f5f5f5), to(#f8f8f8));
|
|
161
|
-
background: linear-gradient(270deg, #f5f5f5 0%, #f8f8f8 100%);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.hy-menu-sidepanel--container.sidepanel-open .hy-menu-sidepanel__logo {
|
|
165
|
-
-webkit-box-align: center;
|
|
166
|
-
-ms-flex-align: center;
|
|
167
|
-
align-items: center;
|
|
168
|
-
display: -webkit-box;
|
|
169
|
-
display: -ms-flexbox;
|
|
170
|
-
display: flex;
|
|
171
|
-
height: 96px;
|
|
172
|
-
margin-bottom: 46px;
|
|
173
|
-
margin-top: -26px;
|
|
174
|
-
margin-left: -4px;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.hy-menu-sidepanel--container.sidepanel-open .hy-menu-sidepanel__logo .hy-site-logo__label {
|
|
178
|
-
max-width: 200px;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.hy-menu-sidebar {
|
|
182
|
-
display: none;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
@media (min-width: 75.0625rem) {
|
|
186
|
-
.hy-menu-sidebar {
|
|
187
|
-
display: block;
|
|
188
|
-
max-width: calc(320px - 16px);
|
|
189
|
-
}
|
|
190
|
-
.hy-menu-sidebar[aria-hidden=false] {
|
|
191
|
-
padding-right: 12px;
|
|
192
|
-
min-height: var(--minHeight);
|
|
193
|
-
width: 20vw;
|
|
194
|
-
}
|
|
195
|
-
.hy-menu-sidebar[aria-hidden=false] .hy-menu-item-sidebar.hy-menu-item-sidebar--sidenav.hy-menu-item--level-1.is-parent {
|
|
196
|
-
border-bottom: 1px solid var(--brand-main-light) !important;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.hy-menu-sidebar__panel-toggle {
|
|
201
|
-
font-size: 0.875rem;
|
|
202
|
-
line-height: 20px;
|
|
203
|
-
-webkit-box-align: center;
|
|
204
|
-
-ms-flex-align: center;
|
|
205
|
-
align-items: center;
|
|
206
|
-
background-color: transparent;
|
|
207
|
-
border: none;
|
|
208
|
-
color: var(--brand-main-light);
|
|
209
|
-
display: -webkit-box;
|
|
210
|
-
display: -ms-flexbox;
|
|
211
|
-
display: flex;
|
|
212
|
-
-webkit-box-orient: horizontal;
|
|
213
|
-
-webkit-box-direction: normal;
|
|
214
|
-
-ms-flex-direction: row;
|
|
215
|
-
flex-direction: row;
|
|
216
|
-
font-family: var(--main-font-family);
|
|
217
|
-
font-weight: 600;
|
|
218
|
-
letter-spacing: -0.5px;
|
|
219
|
-
margin-bottom: 1rem;
|
|
220
|
-
text-decoration: none;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.hy-menu-sidebar__panel-toggle:hover {
|
|
224
|
-
cursor: pointer;
|
|
225
|
-
color: var(--brand-main);
|
|
226
|
-
text-decoration: underline;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.hy-menu-sidebar__panel-toggle svg {
|
|
230
|
-
fill: var(--brand-main-light);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.hy-menu-sidebar__panel-toggle hy-icon:last-child {
|
|
234
|
-
margin-right: 0.75rem;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.hy-menu-sidepanel__logo-container {
|
|
238
|
-
display: -webkit-box;
|
|
239
|
-
display: -ms-flexbox;
|
|
240
|
-
display: flex;
|
|
241
|
-
-webkit-box-orient: vertical;
|
|
242
|
-
-webkit-box-direction: normal;
|
|
243
|
-
-ms-flex-direction: column;
|
|
244
|
-
flex-direction: column;
|
|
245
|
-
height: 150px;
|
|
246
|
-
-webkit-box-pack: justify;
|
|
247
|
-
-ms-flex-pack: justify;
|
|
248
|
-
justify-content: space-between;
|
|
249
|
-
margin: 20px;
|
|
250
|
-
position: relative;
|
|
251
|
-
z-index: 125;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
@-webkit-keyframes sidepanel-movein {
|
|
255
|
-
from {
|
|
256
|
-
display: none;
|
|
257
|
-
-webkit-transform: translateX(-105%);
|
|
258
|
-
transform: translateX(-105%);
|
|
259
|
-
visibility: hidden;
|
|
260
|
-
}
|
|
261
|
-
5% {
|
|
262
|
-
display: -webkit-box;
|
|
263
|
-
display: flex;
|
|
264
|
-
}
|
|
265
|
-
50% {
|
|
266
|
-
background-color: rgba(0, 0, 0, 0);
|
|
267
|
-
}
|
|
268
|
-
to {
|
|
269
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
270
|
-
-webkit-transform: translateX(0);
|
|
271
|
-
transform: translateX(0);
|
|
272
|
-
visibility: visible;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
@keyframes sidepanel-movein {
|
|
277
|
-
from {
|
|
278
|
-
display: none;
|
|
279
|
-
-webkit-transform: translateX(-105%);
|
|
280
|
-
transform: translateX(-105%);
|
|
281
|
-
visibility: hidden;
|
|
282
|
-
}
|
|
283
|
-
5% {
|
|
284
|
-
display: -webkit-box;
|
|
285
|
-
display: -ms-flexbox;
|
|
286
|
-
display: flex;
|
|
287
|
-
}
|
|
288
|
-
50% {
|
|
289
|
-
background-color: rgba(0, 0, 0, 0);
|
|
290
|
-
}
|
|
291
|
-
to {
|
|
292
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
293
|
-
-webkit-transform: translateX(0);
|
|
294
|
-
transform: translateX(0);
|
|
295
|
-
visibility: visible;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
@-webkit-keyframes sidepanel-moveout {
|
|
300
|
-
from {
|
|
301
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
302
|
-
-webkit-transform: translateX(0);
|
|
303
|
-
transform: translateX(0);
|
|
304
|
-
visibility: visible;
|
|
305
|
-
}
|
|
306
|
-
75% {
|
|
307
|
-
background-color: rgba(0, 0, 0, 0);
|
|
308
|
-
}
|
|
309
|
-
90% {
|
|
310
|
-
-webkit-transform: translateX(-105%);
|
|
311
|
-
transform: translateX(-105%);
|
|
312
|
-
}
|
|
313
|
-
to {
|
|
314
|
-
display: none;
|
|
315
|
-
visibility: hidden;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
@keyframes sidepanel-moveout {
|
|
320
|
-
from {
|
|
321
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
322
|
-
-webkit-transform: translateX(0);
|
|
323
|
-
transform: translateX(0);
|
|
324
|
-
visibility: visible;
|
|
325
|
-
}
|
|
326
|
-
75% {
|
|
327
|
-
background-color: rgba(0, 0, 0, 0);
|
|
328
|
-
}
|
|
329
|
-
90% {
|
|
330
|
-
-webkit-transform: translateX(-105%);
|
|
331
|
-
transform: translateX(-105%);
|
|
332
|
-
}
|
|
333
|
-
to {
|
|
334
|
-
display: none;
|
|
335
|
-
visibility: hidden;
|
|
336
|
-
}
|
|
337
|
-
}
|