@illinois-toolkit/ilw-header-megamenu 0.0.1 → 1.0.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/LICENSE +20 -20
- package/README.md +229 -261
- package/builder/ilw-header-megamenu.json +12 -12
- package/builder/versions/ilw-header-megamenu.1.0-alpha.json +70 -70
- package/builder/versions/ilw-header-megamenu.1.0.json +70 -0
- package/builder/versions/ilw-header-megamenu.2.0-alpha.json +76 -0
- package/dist/MegaMenu.d.ts.map +1 -1
- package/dist/MegaMenuSection.d.ts +2 -8
- package/dist/MegaMenuSection.d.ts.map +1 -1
- package/dist/cdn/ilw-header-megamenu.css +1 -1
- package/dist/cdn/ilw-header-megamenu.js +317 -329
- package/dist/ilw-header-megamenu.css +1 -1
- package/dist/ilw-header-megamenu.js +111 -123
- package/package.json +49 -49
- package/src/MegaMenu.css +82 -79
- package/src/MegaMenu.styles.css +37 -36
- package/src/MegaMenu.ts +169 -144
- package/src/MegaMenuSection.css +232 -347
- package/src/MegaMenuSection.styles.css +242 -162
- package/src/MegaMenuSection.ts +220 -284
- package/src/ilw-header-megamenu.ts +1 -1
package/src/MegaMenuSection.css
CHANGED
|
@@ -1,348 +1,233 @@
|
|
|
1
|
-
ilw-header-megamenu-section
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
border-right: none;
|
|
234
|
-
|
|
235
|
-
ul{
|
|
236
|
-
margin-top: 0;
|
|
237
|
-
margin-bottom: 0;
|
|
238
|
-
border: none;
|
|
239
|
-
|
|
240
|
-
li{
|
|
241
|
-
border-right: none;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
ilw-header-megamenu-section {
|
|
255
|
-
ilw-header-megamenu-section {
|
|
256
|
-
--ilw-header-megamenu--items--top: 0;
|
|
257
|
-
--ilw-header-megamenu--items--left: 250px;
|
|
258
|
-
--ilw-header-megamenu--link-border-left-highlight: 4px solid transparent;
|
|
259
|
-
--ilw-header-megamenu--link-border-left-highlight--hover: 4px solid var(--il-orange);
|
|
260
|
-
--ilw-header-megamenu--link-border-left-highlight--focus: 4px solid var(--il-blue);
|
|
261
|
-
--ilw-header-megamenu--link-border-bottom-highlight: initial;
|
|
262
|
-
--ilw-header-megamenu--link-border-bottom-highlight--hover: initial;
|
|
263
|
-
--ilw-header-megamenu--link-border-bottom-highlight--focus: initial;
|
|
264
|
-
--ilw-header-megamenu--grid-template-columns: auto 55px;
|
|
265
|
-
--ilw-header-megamenu-section--transform: rotate(270deg);
|
|
266
|
-
--ilw-header-megamenu-section--transform--selected: rotate(90deg);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
ilw-header-megamenu[compact] ilw-header-megamenu-section {
|
|
271
|
-
display: block;
|
|
272
|
-
border-bottom: 1px solid var(--il-storm-lighter-3);
|
|
273
|
-
a {
|
|
274
|
-
&:focus {
|
|
275
|
-
background: var(--ilw-header-megamenu--link-background--sub--focus);
|
|
276
|
-
border-left: var(--ilw-header-megamenu--link-border-left-highlight--focus);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
span[slot="action"]{
|
|
280
|
-
grid-column: auto;
|
|
281
|
-
height: auto;
|
|
282
|
-
}
|
|
283
|
-
span[slot="action"] button{
|
|
284
|
-
margin-bottom: 20px;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
span[slot="action"].span-3 img, span[slot="action"].span-2 img, span[slot="action"] img {
|
|
288
|
-
margin: auto 0;
|
|
289
|
-
width: 100%;
|
|
290
|
-
height: 100%;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
img{
|
|
294
|
-
display: none;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
div {
|
|
298
|
-
display: block;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
ul{
|
|
303
|
-
display:inherit;
|
|
304
|
-
padding: 0;
|
|
305
|
-
margin: 0;
|
|
306
|
-
}
|
|
307
|
-
ul li {
|
|
308
|
-
--ilw-header-megamenu-section--anchor--text-indent: 20px;
|
|
309
|
-
border-top: 1px solid var(--il-storm-lighter-3);
|
|
310
|
-
background: var(--il-storm-lighter-4);
|
|
311
|
-
padding-left: 0;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
a {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
&:focus {
|
|
318
|
-
background: var(--ilw-header-megamenu--link-background--sub--focus);
|
|
319
|
-
border-left: var(--ilw-header-megamenu--link-border-left-highlight--focus);
|
|
320
|
-
border-bottom: none;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
ul li ul li a{
|
|
326
|
-
padding-left: 45px;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
ilw-header-megamenu[compact] ilw-header-megamenu-section ilw-header-megamenu-section {
|
|
332
|
-
border-bottom: none;
|
|
333
|
-
--ilw-header-megamenu-section--transform: none;
|
|
334
|
-
--ilw-header-megamenu-section--transform--selected: rotate(180deg);
|
|
335
|
-
--ilw-header-megamenu--grid-template-columns: auto 51px;
|
|
336
|
-
|
|
337
|
-
ul a, ul button {
|
|
338
|
-
--ilw-header-megamenu-section--anchor--text-indent: 40px;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
ul > span[action], li > span[action], ul > img, li > img, ul li:nth-child(n+21){
|
|
343
|
-
display: none
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.no-border{
|
|
347
|
-
border:none;
|
|
1
|
+
ilw-header-megamenu-section {
|
|
2
|
+
|
|
3
|
+
img {
|
|
4
|
+
display: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
span[slot="action-right"],
|
|
8
|
+
span[slot="action-left"] {
|
|
9
|
+
position: relative;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
span[slot="action-right"] img,
|
|
13
|
+
span[slot="action-left"] img {
|
|
14
|
+
display: inline;
|
|
15
|
+
margin: 36px;
|
|
16
|
+
object-fit: cover;
|
|
17
|
+
border-radius: 30px;
|
|
18
|
+
width: calc(100% - 72px);
|
|
19
|
+
height: auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
span[slot="action-right"]:has(p + button) img,
|
|
23
|
+
span[slot="action-left"]:has(p + button) img {
|
|
24
|
+
display: block;
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
margin: 36px;
|
|
29
|
+
height: calc(100% - 72px);
|
|
30
|
+
width: calc(100% - 72px);
|
|
31
|
+
object-fit: cover;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
span[slot="action-right"] p:first-of-type,
|
|
35
|
+
span[slot="action-left"] p:first-of-type {
|
|
36
|
+
display: block;
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 50%;
|
|
39
|
+
left: 50%;
|
|
40
|
+
transform: translate(-50%, -50%);
|
|
41
|
+
text-align: center;
|
|
42
|
+
font-size: 21px;
|
|
43
|
+
font-weight: bold;
|
|
44
|
+
color: var(--il-blue);
|
|
45
|
+
font-family: "Source Sans", sans-serif;
|
|
46
|
+
margin-top: -30px;
|
|
47
|
+
width: 50%;
|
|
48
|
+
z-index: 1;
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
span[slot="action-right"] button:first-of-type,
|
|
53
|
+
span[slot="action-left"] button:first-of-type {
|
|
54
|
+
display: block;
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 50%;
|
|
57
|
+
left: 50%;
|
|
58
|
+
transform: translate(-50%, -50%);
|
|
59
|
+
z-index: 1;
|
|
60
|
+
margin-top: 30px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
ul {
|
|
64
|
+
|
|
65
|
+
list-style: none;
|
|
66
|
+
margin: 30px 0;
|
|
67
|
+
padding-left: 0;
|
|
68
|
+
border-right: solid 2px var(--il-storm-85, #d5d3d3);
|
|
69
|
+
|
|
70
|
+
li {
|
|
71
|
+
list-style: none;
|
|
72
|
+
padding-left: 30px;
|
|
73
|
+
|
|
74
|
+
span {
|
|
75
|
+
display: inline-block;
|
|
76
|
+
text-indent: var(--ilw-header-megamenu-section--anchor--text-indent);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
ul {
|
|
80
|
+
display: inherit;
|
|
81
|
+
margin: 0;
|
|
82
|
+
border: none;
|
|
83
|
+
|
|
84
|
+
a {
|
|
85
|
+
font-weight: normal;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
ul:nth-of-type(4n) {
|
|
90
|
+
border-right: none !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
a {
|
|
95
|
+
--ilw-header-megamenu--link-border-left-highlight: 4px solid transparent;
|
|
96
|
+
--ilw-header-megamenu--link-border-left-highlight--hover: 4px solid var(--il-orange);
|
|
97
|
+
--ilw-header-megamenu--link-border-left-highlight--focus: 4px solid var(--il-blue);
|
|
98
|
+
--ilw-header-megamenu--link-color--focus: var(--il-blue);
|
|
99
|
+
--ilw-header-megamenu--link-border-bottom-highlight: 4px solid transparent;
|
|
100
|
+
;
|
|
101
|
+
--ilw-header-megamenu--link-border-bottom-highlight--focus: initial;
|
|
102
|
+
--ilw-header-megamenu--link-border-bottom-highlight--hover: 4px solid transparent;
|
|
103
|
+
;
|
|
104
|
+
|
|
105
|
+
all: initial;
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
text-indent: var(--ilw-header-megamenu-section--anchor--text-indent);
|
|
108
|
+
display: block;
|
|
109
|
+
position: relative;
|
|
110
|
+
padding: var(--ilw-header-megamenu-section--anchor--padding);
|
|
111
|
+
font: var(--ilw-header-megamenu--font);
|
|
112
|
+
font-weight: bold;
|
|
113
|
+
background: transparent;
|
|
114
|
+
color: var(--ilw-header-megamenu--link-color);
|
|
115
|
+
outline: 0;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
border-top: var(--ilw-header-megamenu-section--anchor--border);
|
|
118
|
+
border-bottom: var(--ilw-header-megamenu--link-border-bottom-highlight);
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
&:hover {
|
|
122
|
+
background: var(--ilw-header-megamenu--link-background--hover);
|
|
123
|
+
border-bottom: var(--ilw-header-megamenu--link-border-bottom-highlight--hover);
|
|
124
|
+
color: var(--ilw-header-megamenu--link-color--hover);
|
|
125
|
+
text-decoration: underline;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:focus {
|
|
129
|
+
background: var(--ilw-header-megamenu--link-background--sub--focus);
|
|
130
|
+
border-bottom: var(--ilw-header-megamenu--link-border-left-highlight--focus);
|
|
131
|
+
color: var(--ilw-header-megamenu--link-color--focus);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
ilw-header-megamenu-section {
|
|
142
|
+
ilw-header-megamenu-section {
|
|
143
|
+
--ilw-header-megamenu--items--top: 0;
|
|
144
|
+
--ilw-header-megamenu--items--left: 250px;
|
|
145
|
+
--ilw-header-megamenu--link-border-left-highlight: 4px solid transparent;
|
|
146
|
+
--ilw-header-megamenu--link-border-left-highlight--hover: 4px solid var(--il-orange);
|
|
147
|
+
--ilw-header-megamenu--link-border-left-highlight--focus: 4px solid var(--il-blue);
|
|
148
|
+
--ilw-header-megamenu--link-border-bottom-highlight: initial;
|
|
149
|
+
--ilw-header-megamenu--link-border-bottom-highlight--hover: initial;
|
|
150
|
+
--ilw-header-megamenu--link-border-bottom-highlight--focus: initial;
|
|
151
|
+
--ilw-header-megamenu--grid-template-columns: auto 55px;
|
|
152
|
+
--ilw-header-megamenu-section--transform: rotate(270deg);
|
|
153
|
+
--ilw-header-megamenu-section--transform--selected: rotate(90deg);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
ilw-header-megamenu[compact] ilw-header-megamenu-section {
|
|
158
|
+
display: block;
|
|
159
|
+
border-bottom: 1px solid var(--il-storm-lighter-3);
|
|
160
|
+
|
|
161
|
+
a {
|
|
162
|
+
&:focus {
|
|
163
|
+
background: var(--ilw-header-megamenu--link-background--sub--focus);
|
|
164
|
+
border-left: var(--ilw-header-megamenu--link-border-left-highlight--focus);
|
|
165
|
+
color: var(--ilw-header-megamenu--link-color--focus);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
span[slot="action-left"],
|
|
170
|
+
span[slot="action-right"] {
|
|
171
|
+
display: block;
|
|
172
|
+
min-height: 250px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
div {
|
|
176
|
+
display: block;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
ul {
|
|
180
|
+
display: inherit;
|
|
181
|
+
padding: 0;
|
|
182
|
+
margin: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
ul li {
|
|
186
|
+
--ilw-header-megamenu-section--anchor--text-indent: 20px;
|
|
187
|
+
border-top: 1px solid var(--il-storm-lighter-3);
|
|
188
|
+
background: var(--il-storm-lighter-4);
|
|
189
|
+
padding-left: 0;
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
a {
|
|
193
|
+
border-left: var(--ilw-header-megamenu--link-border-left-highlight);
|
|
194
|
+
border-bottom: none;
|
|
195
|
+
|
|
196
|
+
&:focus {
|
|
197
|
+
background: var(--ilw-header-megamenu--link-background--sub--focus);
|
|
198
|
+
border-left: var(--ilw-header-megamenu--link-border-left-highlight--focus);
|
|
199
|
+
border-bottom: none;
|
|
200
|
+
color: var(--ilw-header-megamenu--link-color--focus);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
ul li ul li a {
|
|
207
|
+
padding-left: 45px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
ilw-header-megamenu[compact] ilw-header-megamenu-section ilw-header-megamenu-section {
|
|
214
|
+
border-bottom: none;
|
|
215
|
+
--ilw-header-megamenu-section--transform: none;
|
|
216
|
+
--ilw-header-megamenu-section--transform--selected: rotate(180deg);
|
|
217
|
+
--ilw-header-megamenu--grid-template-columns: auto 51px;
|
|
218
|
+
|
|
219
|
+
ul a,
|
|
220
|
+
ul button {
|
|
221
|
+
--ilw-header-megamenu-section--anchor--text-indent: 40px;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
ul>img,
|
|
226
|
+
li>img,
|
|
227
|
+
ul li:nth-child(n+21) {
|
|
228
|
+
display: none
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.no-border {
|
|
232
|
+
border: none;
|
|
348
233
|
}
|