@illinois-toolkit/ilw-header-megamenu 0.0.1
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 +21 -0
- package/README.md +261 -0
- package/builder/ilw-header-megamenu.json +12 -0
- package/builder/versions/ilw-header-megamenu.1.0-alpha.json +70 -0
- package/dist/MegaMenu.d.ts +27 -0
- package/dist/MegaMenu.d.ts.map +1 -0
- package/dist/MegaMenuSection.d.ts +32 -0
- package/dist/MegaMenuSection.d.ts.map +1 -0
- package/dist/cdn/ilw-header-megamenu.css +1 -0
- package/dist/cdn/ilw-header-megamenu.js +772 -0
- package/dist/ilw-header-megamenu.css +1 -0
- package/dist/ilw-header-megamenu.d.ts +1 -0
- package/dist/ilw-header-megamenu.d.ts.map +1 -0
- package/dist/ilw-header-megamenu.js +248 -0
- package/package.json +49 -0
- package/src/MegaMenu.css +80 -0
- package/src/MegaMenu.styles.css +37 -0
- package/src/MegaMenu.ts +145 -0
- package/src/MegaMenuSection.css +348 -0
- package/src/MegaMenuSection.styles.css +163 -0
- package/src/MegaMenuSection.ts +285 -0
- package/src/ilw-header-megamenu.ts +2 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Web at Illinois
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# ilw-header-megamenu
|
|
2
|
+
|
|
3
|
+
Links: **[ilw-header-megamenu in Builder](https://builder3.toolkit.illinois.edu/component/ilw-header-megamenu/index.html)** |
|
|
4
|
+
[Illinois Web Theme](https://webtheme.illinois.edu/) |
|
|
5
|
+
[Toolkit Development](https://github.com/web-illinois/toolkit-management)
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
An Illinois Mega Menu utilizes the standard design of the header menu, including the ability to have a link and toggle dropdown or just a static label with toggle dropdown. The difference will be the dropdown takes up the full-width of the container maxing out at 1270px, slightly exceeding the length of the main nav bar items. Each dropdown section has a maximum of 4 columns, evenly spaced with a diving bar between each.
|
|
10
|
+
|
|
11
|
+
The mega menu is not suited for more than 1 layer of nested lists, if you require more, use the original ilw-header-menu with nested ilw-header-menu-sections instead (flyout menu).
|
|
12
|
+
|
|
13
|
+
---------
|
|
14
|
+
|
|
15
|
+
The ilw-header-megamenu should contain an unordered list. Each list item can contain one of three items:
|
|
16
|
+
|
|
17
|
+
- a simple link or button (`<a>` or `<button>`)
|
|
18
|
+
- an <ilw-header-megamenu-section> that contains a span and at least one unordered list of links. The span should contain `slot="label"`.
|
|
19
|
+
- an <ilw-header-megamenu-section linked="true"> that contains an anchor and at least one unordered list of links. The anchor should contain `slot="link"`.
|
|
20
|
+
|
|
21
|
+
Within each `ilw-header-megamenu-section` or `ilw-header-megamenu-section linked="true"` you can choose:
|
|
22
|
+
- a basic unordered list of less than 20 links and no nesting. Each list item will be divided into groups of 5 or less. Adding more than 20 items will result in missing links.
|
|
23
|
+
|
|
24
|
+
OR a `<div>` containing:
|
|
25
|
+
- four seperated lists of links with nesting. Each new list will become it's own column. You can have as many list items as you want using this method. Note that items spanning more than four columns can result in wrapped columns.
|
|
26
|
+
Optional secondary items - each secondary item will be placed on the far right column, unless align-left class is added.
|
|
27
|
+
- a decorative image
|
|
28
|
+
- a `<span>` containing a paragraph element and a call to action (`<a>` or `<button>`). The span should contain `slot="action"`.
|
|
29
|
+
|
|
30
|
+
The intention is to only use one secondary item, a decorative image or call-to-action, per dropdown. Repeating the same call-to-action in other dropdowns is not advised. You can use multiple lists.
|
|
31
|
+
|
|
32
|
+
## Attributes
|
|
33
|
+
|
|
34
|
+
`width`: the numeric pixel width where it will change to the hamburger menu. This is defaulted to 990, but may be changed if you have a ridiculous menu.
|
|
35
|
+
`compact`: a boolean value that will force the menu to be a hamburger menu. Before using this option, see Accessibility Notes and Use for more information.
|
|
36
|
+
|
|
37
|
+
## Classes
|
|
38
|
+
`align-left`: aligns your secondary item to the far left column
|
|
39
|
+
`span-2`: allows your secondary item to span 2 columns
|
|
40
|
+
`span-3`: allows your secondary item to span 3 columns
|
|
41
|
+
|
|
42
|
+
## Code Examples
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<ilw-header-megamenu slot="navigation">
|
|
46
|
+
<ul>
|
|
47
|
+
<li>
|
|
48
|
+
<ilw-header-megamenu-section linked="true">
|
|
49
|
+
<a slot="link" href="/">Basic top links, no groups or nesting</a>
|
|
50
|
+
|
|
51
|
+
<ul>
|
|
52
|
+
<li><a href="/">Undergrad Admissions</a></li>
|
|
53
|
+
<li><a href="/">Graduate Admissions</a></li>
|
|
54
|
+
<li><a href="/">International Admissions</a></li>
|
|
55
|
+
<li><a href="/">Degrees</a></li>
|
|
56
|
+
<li><a href="/">Certificates</a></li>
|
|
57
|
+
<li><a href="/">Online Programs</a></li>
|
|
58
|
+
<li><a href="/">Research Focus Areas</a></li>
|
|
59
|
+
<li><a href="/">Find a mentor</a></li>
|
|
60
|
+
<li><a href="/">Degrees</a></li>
|
|
61
|
+
<li><a href="/">Certificates</a></li>
|
|
62
|
+
<li><a href="/">Online Programs</a></li>
|
|
63
|
+
<li><a href="/">Undergrad Admissions</a></li>
|
|
64
|
+
<li><a href="/">Graduate Admissions</a></li>
|
|
65
|
+
</ul>
|
|
66
|
+
|
|
67
|
+
</ilw-header-megamenu-section>
|
|
68
|
+
</li>
|
|
69
|
+
<li>
|
|
70
|
+
<ilw-header-megamenu-section>
|
|
71
|
+
<span slot="label">Four columns, destinct groups with some nesting and a vanilla image</span>
|
|
72
|
+
<div>
|
|
73
|
+
<!-- column 1 -->
|
|
74
|
+
<ul>
|
|
75
|
+
<li><a href="/">Undergrad Admissions</a>
|
|
76
|
+
<ul>
|
|
77
|
+
<li><a href="/">Apply</a></li>
|
|
78
|
+
<li><a href="/">Majors</a></li>
|
|
79
|
+
<li><a href="/">Cost and Aid</a></li>
|
|
80
|
+
</ul>
|
|
81
|
+
</li>
|
|
82
|
+
<li><a href="/">Graduate Admissions</a>
|
|
83
|
+
<ul>
|
|
84
|
+
<li><a href="/">Apply</a></li>
|
|
85
|
+
<li><a href="/">Majors</a></li>
|
|
86
|
+
<li><a href="/">Cost and Aid</a></li>
|
|
87
|
+
</ul>
|
|
88
|
+
</li>
|
|
89
|
+
<li><a href="/">International Admissions</a></li>
|
|
90
|
+
</ul>
|
|
91
|
+
<!-- column 1 -->
|
|
92
|
+
<!-- column 2 -->
|
|
93
|
+
<ul>
|
|
94
|
+
<li><a href="/">Degrees</a></li>
|
|
95
|
+
<li><a href="/">Certificates</a></li>
|
|
96
|
+
<li><a href="/">Online Programs</a></li>
|
|
97
|
+
</ul>
|
|
98
|
+
<!-- column 2 -->
|
|
99
|
+
<!-- column 3 -->
|
|
100
|
+
<ul>
|
|
101
|
+
<li><a href="/">Undergrad Admissions</a></li>
|
|
102
|
+
<li><a href="/">Graduate Admissions</a></li>
|
|
103
|
+
<li><a href="/">International Admissions</a>
|
|
104
|
+
<ul>
|
|
105
|
+
<li><a href="/">Degrees</a></li>
|
|
106
|
+
<li><a href="/">Certificates</a></li>
|
|
107
|
+
<li><a href="/">Online Programs</a></li>
|
|
108
|
+
<li><a href="/">Research Focus Areas</a></li>
|
|
109
|
+
</ul>
|
|
110
|
+
</li>
|
|
111
|
+
<li><a href="/">Find a mentor</a></li>
|
|
112
|
+
<li><a href="/">Student Handbook</a></li>
|
|
113
|
+
</ul>
|
|
114
|
+
<!-- column 3 -->
|
|
115
|
+
<!-- column 4 -->
|
|
116
|
+
<ul>
|
|
117
|
+
<li><a href="/">Undergrad Admissions</a></li>
|
|
118
|
+
<li><a href="/">Graduate Admissions</a></li>
|
|
119
|
+
<li><a href="/">International Admissions</a>
|
|
120
|
+
<ul>
|
|
121
|
+
<li><a href="/">Degrees</a></li>
|
|
122
|
+
<li><a href="/">Certificates</a></li>
|
|
123
|
+
<li><a href="/">Online Programs</a></li>
|
|
124
|
+
<li><a href="/">Research Focus Areas</a></li>
|
|
125
|
+
</ul>
|
|
126
|
+
</li>
|
|
127
|
+
</ul>
|
|
128
|
+
<!-- column 4 -->
|
|
129
|
+
</div>
|
|
130
|
+
</ilw-header-megamenu-section>
|
|
131
|
+
</li>
|
|
132
|
+
<li>
|
|
133
|
+
<ilw-header-megamenu-section>
|
|
134
|
+
<span slot="label">Links, with decorative image aligned left</span>
|
|
135
|
+
<div>
|
|
136
|
+
<ul>
|
|
137
|
+
<li><a href="/">Undergrad Admissions</a></li>
|
|
138
|
+
<li><a href="/">Graduate Admissions</a></li>
|
|
139
|
+
<li><a href="/">International Admissions</a></li>
|
|
140
|
+
<li><a href="/">Degrees</a></li>
|
|
141
|
+
<li><a href="/">Certificates</a></li>
|
|
142
|
+
</ul>
|
|
143
|
+
<ul>
|
|
144
|
+
<li><a href="/">Undergrad Admissions</a></li>
|
|
145
|
+
<li><a href="/">Graduate Admissions</a></li>
|
|
146
|
+
<li><a href="/">International Admissions</a></li>
|
|
147
|
+
<li><a href="/">Degrees</a></li>
|
|
148
|
+
<li><a href="/">Certificates</a></li>
|
|
149
|
+
</ul>
|
|
150
|
+
<ul>
|
|
151
|
+
<li><a href="/">Undergrad Admissions</a></li>
|
|
152
|
+
<li><a href="/">Graduate Admissions</a></li>
|
|
153
|
+
<li><a href="/">International Admissions</a>
|
|
154
|
+
<ul>
|
|
155
|
+
<li><a href="/">Degrees</a></li>
|
|
156
|
+
<li><a href="/">Certificates</a></li>
|
|
157
|
+
<li><a href="/">Online Programs</a></li>
|
|
158
|
+
<li><a href="/">Research Focus Areas</a></li>
|
|
159
|
+
</ul>
|
|
160
|
+
</li>
|
|
161
|
+
<li><a href="/">Find a mentor</a></li>
|
|
162
|
+
<li><a href="/">Student Handbook</a></li>
|
|
163
|
+
</ul>
|
|
164
|
+
<img class="align-left" src="https://fastly.picsum.photos/id/1025/500/400.jpg?hmac=MPFZjsU2UG1Mr3SjMkYP2F9jnhQWyatt6soxbOj0TN4" alt="">
|
|
165
|
+
</div>
|
|
166
|
+
</ilw-header-megamenu-section>
|
|
167
|
+
</li>
|
|
168
|
+
<li>
|
|
169
|
+
<ilw-header-megamenu-section>
|
|
170
|
+
<span slot="label">Links with image call to action</span>
|
|
171
|
+
<div>
|
|
172
|
+
<ul>
|
|
173
|
+
<li><a href="/">Undergrad Admissions</a></li>
|
|
174
|
+
<li><a href="/">Graduate Admissions</a></li>
|
|
175
|
+
<li><a href="/">International Admissions</a>
|
|
176
|
+
<ul>
|
|
177
|
+
<li><a href="/">Degrees</a></li>
|
|
178
|
+
<li><a href="/">Certificates</a></li>
|
|
179
|
+
<li><a href="/">Online Programs</a></li>
|
|
180
|
+
<li><a href="/">Research Focus Areas</a></li>
|
|
181
|
+
</ul>
|
|
182
|
+
</li>
|
|
183
|
+
<li><a href="/">Find a mentor</a></li>
|
|
184
|
+
<li><a href="/">Student Handbook</a></li>
|
|
185
|
+
</ul>
|
|
186
|
+
<span slot="action" class="span-3">
|
|
187
|
+
<p> Prospective students </p>
|
|
188
|
+
<button class="ilw-button ilw-theme-orange-2">Link 2</button>
|
|
189
|
+
<img src="https://picsum.photos/id/37/300/300" alt="">
|
|
190
|
+
</span>
|
|
191
|
+
|
|
192
|
+
</div>
|
|
193
|
+
</ilw-header-megamenu-section>
|
|
194
|
+
</li>
|
|
195
|
+
<li>
|
|
196
|
+
<ilw-header-megamenu-section>
|
|
197
|
+
<span slot="label">Links with plain call to action</span>
|
|
198
|
+
<div>
|
|
199
|
+
<ul>
|
|
200
|
+
<li><a href="/">Undergrad Admissions</a></li>
|
|
201
|
+
<li><a href="/">Graduate Admissions</a></li>
|
|
202
|
+
<li><a href="/">International Admissions</a></li>
|
|
203
|
+
<li><a href="/">Degrees</a></li>
|
|
204
|
+
<li><a href="/">Certificates</a></li>
|
|
205
|
+
<li><a href="/">Undergrad Admissions</a></li>
|
|
206
|
+
<li><a href="/">Graduate Admissions</a></li>
|
|
207
|
+
<li><a href="/">International Admissions</a></li>
|
|
208
|
+
<li><a href="/">Degrees</a></li>
|
|
209
|
+
<li><a href="/">Certificates</a></li>
|
|
210
|
+
</ul>
|
|
211
|
+
<ul>
|
|
212
|
+
<li><a href="/">Undergrad Admissions</a></li>
|
|
213
|
+
<li><a href="/">Graduate Admissions</a></li>
|
|
214
|
+
<li><a href="/">International Admissions</a>
|
|
215
|
+
<ul>
|
|
216
|
+
<li><a href="/">Degrees</a></li>
|
|
217
|
+
<li><a href="/">Certificates</a></li>
|
|
218
|
+
<li><a href="/">Online Programs</a></li>
|
|
219
|
+
<li><a href="/">Research Focus Areas</a></li>
|
|
220
|
+
</ul>
|
|
221
|
+
</li>
|
|
222
|
+
<li><a href="/">Find a mentor</a></li>
|
|
223
|
+
<li><a href="/">Student Handbook</a></li>
|
|
224
|
+
</ul>
|
|
225
|
+
<span slot="action" class="span-2 align-left">
|
|
226
|
+
<p> Prospective students </p>
|
|
227
|
+
<button class="ilw-button ilw-theme-orange-2">Link 2</button>
|
|
228
|
+
</span>
|
|
229
|
+
|
|
230
|
+
</div>
|
|
231
|
+
</ilw-header-megamenu-section>
|
|
232
|
+
</li>
|
|
233
|
+
</ul>
|
|
234
|
+
</ilw-header-megamenu>
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
## Usability
|
|
238
|
+
When creating menus, do not include all your links inside the menu. Just focus on the high-level links, and rely on breadcrumbs and side menus for internal links. Having a large menu system reduces usability.
|
|
239
|
+
|
|
240
|
+
While it is tempting to hide your menu with the hamburger menu option, only do this if you have no other option. Hamburger menus harm usability because it hides the top-level categories and reduces the ability for users to browse to find what they want, especially for new users.
|
|
241
|
+
|
|
242
|
+
## Accessibility Notes and Use
|
|
243
|
+
|
|
244
|
+
Note from Keith:
|
|
245
|
+
- Navigation / Menus are unique in that most screen reader users will only expect linked items to exist inside of this element role. This means that any headings or static text should be avoided since they will likely be missed by this audience.
|
|
246
|
+
|
|
247
|
+
### Keyboard navigation
|
|
248
|
+
- While all dropdowns are closed: Use `Tab/Shift + Tab` or `left/right arrow keys` move the user across the top level navigation bar.
|
|
249
|
+
- Open a dropdown: Focus on the toggle button and press `enter` or `space`.
|
|
250
|
+
- Navigate an open dropdown: `Tab/Shift + Tab` or `down/up arrow keys` will go down/up the list.
|
|
251
|
+
- Close an open dropdown: Click anywhere else on the screen, press `escape` to close and return focus to the corresponding toggle button or hitting the `Left/right arrow keys` will close the dropdown and go to the next item in the top level navigation bar.
|
|
252
|
+
- Focus stays on the same menu item when the browser changes sizes to switch between mega and hamburger menu
|
|
253
|
+
|
|
254
|
+
### ARIA
|
|
255
|
+
- Each toggle button will get the attributes: `aria-haspopup="true"`, `aria-expanded="true"`, `aria-controls="parent-name-menu"` and `aria-label="Toggle parent-name submenu`. The SVG will get `aria-hidden="true"`
|
|
256
|
+
- Each section will get a unique id and label, example: `id="parent-name-menu"` and `aria-label="About submenu"`
|
|
257
|
+
- For call to action items, the paragraph will get: `id="parent-name-action-text"` and the clickable element will receive `aria-describedby="parent-name-action-text"`.
|
|
258
|
+
|
|
259
|
+
## External References
|
|
260
|
+
|
|
261
|
+
See [ilw-header-menu documentation](https://github.com/web-illinois/ilw-header-menu)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Header Mega Menu",
|
|
3
|
+
"tag": "ilw-header-megamenu",
|
|
4
|
+
"github": "https://github.com/web-illinois/ilw-header-megamenu/",
|
|
5
|
+
"type": "web component",
|
|
6
|
+
"element-name": "ilw-header-megamenu",
|
|
7
|
+
"description": "Mega Menu for the top of the page.",
|
|
8
|
+
"purpose": "Build a mega menu navigation",
|
|
9
|
+
"toolkit-version": "",
|
|
10
|
+
"production-version": "",
|
|
11
|
+
"development-version": "latest"
|
|
12
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Header Mega Menu",
|
|
3
|
+
"tag": "ilw-header-megamenu",
|
|
4
|
+
"github": "https://github.com/web-illinois/ilw-header-megamenu/",
|
|
5
|
+
"type": "web component",
|
|
6
|
+
"element-name": "ilw-header-megamenu",
|
|
7
|
+
"description": "Mega Menu for the top of the page.",
|
|
8
|
+
"builder-version": "latest",
|
|
9
|
+
"version": "1.0.1-alpha",
|
|
10
|
+
"date": "11/06/2025",
|
|
11
|
+
"css": "https://dev.toolkit.illinois.edu/ilw-header-megamenu/latest/ilw-header-megamenu.css",
|
|
12
|
+
"js": "https://dev.toolkit.illinois.edu/ilw-header-megamenu/latest/ilw-header-megamenu.js",
|
|
13
|
+
"production": false,
|
|
14
|
+
"notes": "",
|
|
15
|
+
"parent-style": "",
|
|
16
|
+
"samples": [
|
|
17
|
+
{
|
|
18
|
+
"name": "Default",
|
|
19
|
+
"description": "Default Links",
|
|
20
|
+
"text": "<ul> <li> <ilw-header-megamenu-section linked='true'> <a slot='link' href='/'>About</a> <ul> <li><a href='/'>Directory</a></li> <li><a href='/'>Departments</a></li> <li><a href='/'>News</a></li> <li><a href='/'>Events</a></li> <li><a href='/'>Careers</a></li> <li><a href='/'>Contact</a></li> <li><a href='/'>Visit</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Admissions</span> <div> <ul> <li><a href='/'>Undergrad Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> </ul> <ul> <li><a href='/'>Graduate Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> </ul> <ul> <li><a href='/'>International Admissions</a></li> </ul> </div> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Academics</span> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Honors Programs</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Academic Calendar</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Research</span> <ul> <li><a href='/'>Research Centers</a></li> <li><a href='/'>History</a></li> <li><a href='/'>Resources</a> </ul> </span> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Community</span> <ul> <li><a href='/'>Visit</a></li> <li><a href='/'>Student Life</a></li> <li><a href='/'>Public Events</a></li> <li><a href='/'>First-Gen Services</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Alumni</span> <ul> <li><a href='/'>Get Involved</a></li> <li><a href='/'>Awards</a></li> <li><a href='/'>Give</a></li> <li><a href='/'>Events</a></li> </ul> </ilw-header-megamenu-section> </li> </ul>"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "All Variations",
|
|
24
|
+
"description": "Includes every variation of the mega menu settings",
|
|
25
|
+
"text": "<ul> <li> <ilw-header-megamenu-section linked='true'> <a slot='link' href='/'>Basic top links, no groups or nesting</a> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Four columns, destinct groups with some nesting and a vanilla image</span> <div> <!-- column 1 --> <ul> <li><a href='/'>Undergrad Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> <li><a href='/'>Graduate Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> <li><a href='/'>International Admissions</a></li> </ul> <!-- column 1 --> <!-- column 2 --> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> </ul> <!-- column 2 --> <!-- column 3 --> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <!-- column 3 --> <!-- column 4 --> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> </ul> <!-- column 4 --> </div> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Links, with decorative image aligned left</span> <div> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <img class='align-left' src='https://fastly.picsum.photos/id/1025/500/400.jpg?hmac=MPFZjsU2UG1Mr3SjMkYP2F9jnhQWyatt6soxbOj0TN4'> </div> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Links with image call to action</span> <div> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <span slot='action' class='span-3'> <p> Prospective students </p> <button class='ilw-button ilw-theme-orange-2'>Link 2</button> <img src='https://picsum.photos/id/37/300/300'> </span> </div> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Links with plain call to action</span> <div> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <span slot='action' class='span-2 align-left'> <p> Prospective students </p> <button class='ilw-button ilw-theme-orange-2'>Link 2</button> </span> </div> </ilw-header-megamenu-section> </li> </ul>"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"attributes-fixed": [],
|
|
29
|
+
"attributes-text": [],
|
|
30
|
+
"attributes": [
|
|
31
|
+
{
|
|
32
|
+
"name": "compact",
|
|
33
|
+
"description": "Whether or not it is compact",
|
|
34
|
+
"deprecated": false,
|
|
35
|
+
"values": [
|
|
36
|
+
"",
|
|
37
|
+
"true"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "width",
|
|
42
|
+
"description": "The width it switches to compact, in pixels. Must be a number. Default is 990.",
|
|
43
|
+
"deprecated": false,
|
|
44
|
+
"values": [
|
|
45
|
+
"",
|
|
46
|
+
"990"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"classes-fixed": [],
|
|
51
|
+
"classes": [
|
|
52
|
+
{
|
|
53
|
+
"name": "align-left",
|
|
54
|
+
"description": "forces a secondary item to go to the left-most column of the menu dropdown",
|
|
55
|
+
"deprecated": false
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "span-2",
|
|
59
|
+
"description": "Allows a secondary item to fill up two columns at a time",
|
|
60
|
+
"deprecated": false
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "span-3",
|
|
64
|
+
"description": "Allows a secondary item to fill up three columns at a time",
|
|
65
|
+
"deprecated": false
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"css-variables": [
|
|
69
|
+
]
|
|
70
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LitElement, CSSResultGroup } from 'lit';
|
|
2
|
+
import { default as MegaMenuSection } from './MegaMenuSection';
|
|
3
|
+
export default class MegaMenu extends LitElement {
|
|
4
|
+
compact: boolean;
|
|
5
|
+
width: number;
|
|
6
|
+
static get styles(): CSSResultGroup;
|
|
7
|
+
constructor();
|
|
8
|
+
connectedCallback(): void;
|
|
9
|
+
disconnectedCallback(): void;
|
|
10
|
+
handleWindowClick(evt: MouseEvent): void;
|
|
11
|
+
handleWindowKeydown(evt: KeyboardEvent): void;
|
|
12
|
+
handleNavigationSectionToggleClick(evt: CustomEvent): void;
|
|
13
|
+
gotoPreviousSection(): void;
|
|
14
|
+
gotoNextSection(): void;
|
|
15
|
+
handleWindowResize(): void;
|
|
16
|
+
setCompactTrue(): void;
|
|
17
|
+
setCompactFalse(): void;
|
|
18
|
+
getSections(): NodeListOf<MegaMenuSection>;
|
|
19
|
+
closeAllExceptOneSections(target: EventTarget | null): void;
|
|
20
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
21
|
+
}
|
|
22
|
+
declare global {
|
|
23
|
+
interface HTMLElementTagNameMap {
|
|
24
|
+
"ilw-header-megamenu": MegaMenu;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=MegaMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MegaMenu.d.ts","sourceRoot":"","sources":["../src/MegaMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,cAAc,EAAE,MAAM,KAAK,CAAC;AAGlE,OAAO,gBAAgB,CAAC;AAExB,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAGhD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,UAAU;IAM5C,OAAO,UAAS;IAKhB,KAAK,SAAO;IAEZ,MAAM,KAAK,MAAM,IAAK,cAAc,CAEnC;;IASD,iBAAiB;IAOjB,oBAAoB;IAMpB,iBAAiB,CAAC,GAAG,EAAE,UAAU;IAIjC,mBAAmB,CAAC,GAAG,EAAE,aAAa;IActC,kCAAkC,CAAC,GAAG,EAAE,WAAW;IAInD,mBAAmB;IAkBnB,eAAe;IAkBf,kBAAkB;IAUlB,cAAc;IAKd,eAAe;IAKf,WAAW;IAIX,yBAAyB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAIpD,MAAM;CAOT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,qBAAqB,EAAE,QAAQ,CAAC;KACnC;CACJ"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export default class MegaMenuSection extends LitElement {
|
|
3
|
+
current: boolean;
|
|
4
|
+
compact: boolean;
|
|
5
|
+
right: boolean;
|
|
6
|
+
expanded: boolean;
|
|
7
|
+
mouseover: boolean;
|
|
8
|
+
linked: boolean;
|
|
9
|
+
static get styles(): import('lit').CSSResult;
|
|
10
|
+
constructor();
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
handleToggleClick(evt: Event): void;
|
|
13
|
+
handleWindowKeydown(evt: KeyboardEvent): void;
|
|
14
|
+
isEmbedded(): boolean | null;
|
|
15
|
+
isOnAnchorInLinked(): boolean | null;
|
|
16
|
+
isOnButtonInLinked(): boolean | null;
|
|
17
|
+
setFocus(useButton?: Boolean): void;
|
|
18
|
+
moveToNextItem(): void;
|
|
19
|
+
moveToPreviousItem(): void;
|
|
20
|
+
renderArrow(): import('lit-html').TemplateResult<1>;
|
|
21
|
+
toggleMouseOver(): void;
|
|
22
|
+
handleNavigationSectionToggleClick(evt: CustomEvent): void;
|
|
23
|
+
getSections(): NodeListOf<MegaMenuSection>;
|
|
24
|
+
closeAllExceptOneSections(target: EventTarget | null): void;
|
|
25
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
26
|
+
}
|
|
27
|
+
declare global {
|
|
28
|
+
interface HTMLElementTagNameMap {
|
|
29
|
+
"ilw-header-megamenu-section": MegaMenuSection;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=MegaMenuSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MegaMenuSection.d.ts","sourceRoot":"","sources":["../src/MegaMenuSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,KAAK,CAAC;AAGlD,OAAO,uBAAuB,CAAC;AAI/B,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IAKnD,OAAO,UAAS;IAKhB,OAAO,UAAS;IAKhB,KAAK,UAAS;IAKd,QAAQ,UAAS;IAKjB,SAAS,UAAS;IAMlB,MAAM,UAAS;IAEf,MAAM,KAAK,MAAM,4BAEhB;;IAOD,iBAAiB;IAIjB,iBAAiB,CAAC,GAAG,EAAE,KAAK;IAK5B,mBAAmB,CAAC,GAAG,EAAE,aAAa;IA0CtC,UAAU;IAIV,kBAAkB;IAIlB,kBAAkB;IAIlB,QAAQ,CAAC,SAAS,GAAE,OAAe;IAiBnC,cAAc;IAyBd,kBAAkB;IAqBlB,WAAW;IAMT,eAAe;IAIf,kCAAkC,CAAC,GAAG,EAAE,WAAW;IAKrD,WAAW;IAIX,yBAAyB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAKpD,MAAM;CA+ET;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,6BAA6B,EAAE,eAAe,CAAC;KAClD;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ilw-header-megamenu[compact]{--ilw-header-megamenu--background: #e8e9eb;--ilw-header-megamenu--flex-direction: column;--ilw-header-megamenu--items--position: relative;--ilw-header-megamenu--items--border: none;--ilw-header-megamenu--items--box-shadow: none;--ilw-header-megamenu--items--width: 100%;--ilw-header-megamenu--font: 600 18px / 28px var(--il-font-sans);--ilw-header-megamenu--grid-template-columns: auto 52px;--ilw-header-megamenu--link-border-left-highlight: 4px solid transparent;--ilw-header-megamenu--link-border-left-highlight--hover: 4px solid var(--il-orange);--ilw-header-megamenu--link-border-left-highlight--focus: 4px solid var(--il-blue);--ilw-header-megamenu--link-border-bottom-highlight: none;--ilw-header-megamenu--link-border-bottom-highlight--hover: none;--ilw-header-megamenu--link-border-bottom-highlight--focus: none;--ilw-header-megamenu--items--position: initial;--ilw-header-megamenu-section--grid-template-columns--header: auto 22px;--ilw-header-megamenu--grid-template-columns: auto 51px}ilw-header-megamenu{all:initial;display:block;background:var(--ilw-header-megamenu--background)}ilw-header-megamenu>ul{all:initial;display:flex;flex-direction:var(--ilw-header-megamenu--flex-direction)}ilw-header-megamenu>ul>li{all:initial;display:block;background:var(--ilw-header-megamenu--background)}ilw-header-megamenu>ul>li>a{all:initial;box-sizing:border-box;height:100%;display:flex;align-items:center;position:relative;padding:6px 20px;font:var(--ilw-header-megamenu--font);background:var(--ilw-header-megamenu--link-background);color:var(--ilw-header-megamenu--link-color);outline:0;cursor:pointer;border-width:0 0 3px 0;border-style:solid;border-color:transparent;border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight);border-left:var(--ilw-header-megamenu--link-border-left-highlight)}ilw-header-megamenu>ul>li>a[aria-current=true],ilw-header-megamenu>ul>li>a[aria-current=page]{border-color:var(--il-blue)}ilw-header-megamenu>ul>li>a:hover{background:var(--ilw-header-megamenu--link-background--hover);border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight--hover);border-left:var(--ilw-header-megamenu--link-border-left-highlight--hover);color:var(--ilw-header-megamenu--link-color--hover);text-decoration:underline}ilw-header-megamenu>ul>li>a:focus{background:var(--ilw-header-megamenu--link-background--focus);border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight--focus);border-left:var(--ilw-header-megamenu--link-border-left-highlight--focus)}ilw-header-megamenu[compact]>ul>li>a{border-bottom:1px solid var(--il-storm-lighter-3)}ilw-header-megamenu-section[linked] a[slot=link]{all:initial;box-sizing:border-box;height:100%;display:flex;align-items:center;text-indent:var(--ilw-header-megamenu-section--anchor--text-indent);position:relative;font:var(--ilw-header-megamenu--font);background:var(--ilw-header-megamenu--link-background);color:var(--ilw-header-megamenu--link-color);outline:0;cursor:pointer;padding:9px 2px 6px 20px;border-width:0 0 3px 0;border-style:solid;border-color:transparent;border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight)}ilw-header-megamenu-section[linked] a[slot=link]:hover{background:var(--ilw-header-megamenu--link-background--hover);border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight--hover);color:var(--ilw-header-megamenu--link-color--hover);text-decoration:underline}ilw-header-megamenu-section[linked] a[slot=link]:focus{background:var(--ilw-header-megamenu--link-background--focus);border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight--focus)}ilw-header-megamenu-section[linked][aria-current=page] a[slot=link]{border-color:var(--il-blue)}ilw-header-megamenu-section[linked][aria-current=page] a[slot=link]:hover{border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight--hover)}ilw-header-megamenu-section[linked][aria-current=page] a[slot=link]:focus{border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight--focus)}ilw-header-megamenu-section img{margin:30px;object-fit:cover;width:90%;height:auto;border-radius:30px;grid-column:4;justify-self:right}ilw-header-megamenu-section img.span-2,ilw-header-megamenu-section span[slot=action].span-2{grid-column:3 / span 2}ilw-header-megamenu-section img.span-3,ilw-header-megamenu-section span[slot=action].span-3{grid-column:2 / span 3}ilw-header-megamenu-section img.align-left,ilw-header-megamenu-section span[slot=action].align-left{grid-column:1;justify-self:left}ilw-header-megamenu-section img.span-2.align-left,ilw-header-megamenu-section span[slot=action].span-2.align-left{grid-column:1 / span 2;justify-self:left}ilw-header-megamenu-section img.span-3.align-left,ilw-header-megamenu-section span[slot=action].span-3.align-left{grid-column:1 / span 3;justify-self:left}ilw-header-megamenu-section span[slot=action]{margin:auto;position:relative;width:100%;height:100%;display:flex;justify-content:center;flex-direction:column}ilw-header-megamenu-section span[slot=action] *{display:none}ilw-header-megamenu-section span[slot=action] button:first-of-type{display:block;position:relative;z-index:1;margin:0 auto}ilw-header-megamenu-section span[slot=action] p:first-of-type{display:block;text-align:center;font-size:21px;font-weight:700;color:var(--il-blue);font-family:Source Sans,sans-serif;position:relative;z-index:1}ilw-header-megamenu-section span[slot=action] img:first-of-type{display:block;position:absolute;top:0;left:0;width:100%;height:85%;object-fit:cover;z-index:0;margin:30px 0}ilw-header-megamenu-section span[slot=action].span-2 img:first-of-type,ilw-header-megamenu-section span[slot=action].span-3 img:first-of-type{width:90%;margin:30px}ilw-header-megamenu-section ul{list-style:none;margin:30px 0;padding-left:0;display:grid;grid-template-columns:repeat(4,minmax(0,320px));grid-template-rows:repeat(5,34px);grid-auto-flow:column;max-width:100vw}ilw-header-megamenu-section ul li{list-style:none;padding-left:30px}ilw-header-megamenu-section ul li span{display:inline-block;text-indent:var(--ilw-header-megamenu-section--anchor--text-indent)}ilw-header-megamenu-section ul li ul{display:inherit}ilw-header-megamenu-section ul li ul a{font-weight:400}ilw-header-megamenu-section ul li a{--ilw-header-megamenu--link-border-left-highlight: 4px solid transparent;--ilw-header-megamenu--link-border-left-highlight--hover: 4px solid var(--il-orange);--ilw-header-megamenu--link-border-left-highlight--focus: 4px solid var(--il-blue);--ilw-header-megamenu--link-border-bottom-highlight: initial;--ilw-header-megamenu--link-border-bottom-highlight--focus: initial;--ilw-header-megamenu--link-border-bottom-highlight--hover: initial;all:initial;box-sizing:border-box;text-indent:var(--ilw-header-megamenu-section--anchor--text-indent);display:block;position:relative;padding:var(--ilw-header-megamenu-section--anchor--padding);font:var(--ilw-header-megamenu--font);font-weight:700;background:transparent;color:var(--il-blue);outline:0;cursor:pointer;border-top:var(--ilw-header-megamenu-section--anchor--border);border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight)}ilw-header-megamenu-section ul li a:hover{background:var(--ilw-header-megamenu--link-background--hover);border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight--hover);color:var(--ilw-header-megamenu--link-color--hover);text-decoration:underline}ilw-header-megamenu-section ul li a:focus{background:var(--ilw-header-megamenu--link-background--sub--focus);border-bottom:var(--ilw-header-megamenu--link-border-left-highlight--focus)}ilw-header-megamenu-section div ul:nth-child(n+5),ilw-header-megamenu-section div img:nth-child(n+5),ilw-header-megamenu-section div span:nth-child(n+5),ilw-header-megamenu-section>ul>li>ul{display:none}ilw-header-megamenu-section div{display:grid;grid-template-columns:repeat(4,minmax(0,320px));max-width:100vw;grid-auto-flow:column}ilw-header-megamenu-section div ul{border-left:solid 2px var(--il-storm-85, #d5d3d3)}ilw-header-megamenu-section div ul:first-child{border:none}ilw-header-megamenu-section div ul{display:block}ilw-header-megamenu-section div ul li{border-right:none}ilw-header-megamenu-section div ul li ul{margin-top:0;margin-bottom:0;border:none}ilw-header-megamenu-section div ul li ul li{border-right:none}ilw-header-megamenu-section ilw-header-megamenu-section{--ilw-header-megamenu--items--top: 0;--ilw-header-megamenu--items--left: 250px;--ilw-header-megamenu--link-border-left-highlight: 4px solid transparent;--ilw-header-megamenu--link-border-left-highlight--hover: 4px solid var(--il-orange);--ilw-header-megamenu--link-border-left-highlight--focus: 4px solid var(--il-blue);--ilw-header-megamenu--link-border-bottom-highlight: initial;--ilw-header-megamenu--link-border-bottom-highlight--hover: initial;--ilw-header-megamenu--link-border-bottom-highlight--focus: initial;--ilw-header-megamenu--grid-template-columns: auto 55px;--ilw-header-megamenu-section--transform: rotate(270deg);--ilw-header-megamenu-section--transform--selected: rotate(90deg)}ilw-header-megamenu[compact] ilw-header-megamenu-section{display:block;border-bottom:1px solid var(--il-storm-lighter-3)}ilw-header-megamenu[compact] ilw-header-megamenu-section a:focus{background:var(--ilw-header-megamenu--link-background--sub--focus);border-left:var(--ilw-header-megamenu--link-border-left-highlight--focus)}ilw-header-megamenu[compact] ilw-header-megamenu-section span[slot=action]{grid-column:auto;height:auto}ilw-header-megamenu[compact] ilw-header-megamenu-section span[slot=action] button{margin-bottom:20px}ilw-header-megamenu[compact] ilw-header-megamenu-section span[slot=action].span-3 img,ilw-header-megamenu[compact] ilw-header-megamenu-section span[slot=action].span-2 img,ilw-header-megamenu[compact] ilw-header-megamenu-section span[slot=action] img{margin:auto 0;width:100%;height:100%}ilw-header-megamenu[compact] ilw-header-megamenu-section img{display:none}ilw-header-megamenu[compact] ilw-header-megamenu-section div{display:block}ilw-header-megamenu[compact] ilw-header-megamenu-section ul{display:inherit;padding:0;margin:0}ilw-header-megamenu[compact] ilw-header-megamenu-section ul li{--ilw-header-megamenu-section--anchor--text-indent: 20px;border-top:1px solid var(--il-storm-lighter-3);background:var(--il-storm-lighter-4);padding-left:0}ilw-header-megamenu[compact] ilw-header-megamenu-section ul li a:focus{background:var(--ilw-header-megamenu--link-background--sub--focus);border-left:var(--ilw-header-megamenu--link-border-left-highlight--focus);border-bottom:none}ilw-header-megamenu[compact] ilw-header-megamenu-section ul li ul li a{padding-left:45px}ilw-header-megamenu[compact] ilw-header-megamenu-section ilw-header-megamenu-section{border-bottom:none;--ilw-header-megamenu-section--transform: none;--ilw-header-megamenu-section--transform--selected: rotate(180deg);--ilw-header-megamenu--grid-template-columns: auto 51px}ilw-header-megamenu[compact] ilw-header-megamenu-section ilw-header-megamenu-section ul a,ilw-header-megamenu[compact] ilw-header-megamenu-section ilw-header-megamenu-section ul button{--ilw-header-megamenu-section--anchor--text-indent: 40px}ul>span[action],li>span[action],ul>img,li>img,ul li:nth-child(n+21){display:none}.no-border{border:none}
|