@utrecht/web-component-library-stencil 1.0.0-alpha.167 → 1.0.0-alpha.170
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/utrecht-sidenav.cjs.entry.js +2 -2
- package/dist/collection/navigatie sidenav/bem.css +84 -143
- package/dist/collection/navigatie sidenav/stencil.js +10 -4
- package/dist/custom-elements/index.js +2 -2
- package/dist/esm/utrecht-sidenav.entry.js +2 -2
- package/dist/utrecht/p-9fe8bec6.entry.js +1 -0
- package/dist/utrecht/utrecht.esm.js +1 -1
- package/package.json +2 -2
- package/dist/collection/navigatie sidenav/bem.js +0 -44
- package/dist/utrecht/p-d21678d5.entry.js +0 -1
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-8cef21e1.js');
|
|
6
6
|
const clsx_m = require('./clsx.m-b00fa5e1.js');
|
|
7
7
|
|
|
8
|
-
const bemCss = ".utrecht-
|
|
8
|
+
const bemCss = ".utrecht-sidenav{--utrecht-sidenav-connection-color:var(--utrecht-sidenav-item-marker-color);--utrecht-sidenav-connection-inline-size:2px;--utrecht-sidenav-marker-current-color:var(--utrecht-sidenav-link-hover-color);--utrecht-sidenav-marker-offset:26px;--utrecht-sidenav-connection-block-size:38px;border-block-end:1px solid var(--utrecht-color-grey-80);border-block-start:1px solid var(--utrecht-color-grey-80);margin-block-end:0;margin-block-start:0;padding-block-end:0;padding-block-start:0;width:13rem}.utrecht-sidenav__list{margin-block-end:0;margin-block-start:0.2rem;padding-block-end:0;padding-block-start:0;padding-inline-start:0}.utrecht-sidenav__list--child{margin-block-start:0;padding-inline-end:0;padding-inline-start:1.4rem}.utrecht-sidenav__item{list-style:none;margin-inline-start:0;position:relative}.utrecht-sidenav__item--current{color:var(--utrecht-sidenav-item-hover-color, var(--utrecht-link-hover-color, red))}.utrecht-sidenav__item--last{border-block-end:none}.utrecht-sidenav__item-separator:not(.utrecht-sidenav__item--last .utrecht-sidenav__item-separator,.utrecht-sidenav__item--has-children .utrecht-sidenav__item-separator:first-of-type){border-block-end:1px solid var(--utrecht-color-grey-80);display:block;margin-inline-start:var(--utrecht-space-inline-md)}.utrecht-sidenav__link{color:var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));display:block;margin-inline-start:0;padding-block-end:var(--utrecht-space-block-xs);padding-block-start:var(--utrecht-space-block-xs);padding-inline-end:var(--utrecht-space-inline-3xs);padding-inline-start:var(--utrecht-space-inline-lg);text-decoration:none}.utrecht-sidenav__link:hover{color:var(--utrecht-sidenav-link-hover-color, var(--utrecht-link-hover-color, red));text-decoration:underline}.utrecht-sidenav__link--focus-visible,.utrecht-sidenav__link:focus{box-shadow:0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);outline-color:var(--utrecht-focus-outline-color, transparent);outline-offset:0;outline-style:var(--utrecht-focus-outline-style, solid);outline-width:var(--utrecht-focus-outline-width, 0)}.utrecht-sidenav__link--has-children{padding-block-end:0}.utrecht-sidenav__connection,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link:not(.utrecht-sidenav__link--sibling):not(.utrecht-sidenav__link--child)::after{background:var(--utrecht-sidenav-connection-color);bottom:0;content:\"\";display:block;height:calc(var(--utrecht-sidenav-connection-block-size) + 2px);left:3px;min-height:var(--utrecht-sidenav-connection-block-size);overflow:hidden;position:absolute;top:-22px;width:var(--utrecht-sidenav-connection-inline-size);z-index:5}.utrecht-sidenav__connection--first,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__item:first-child .utrecht-sidenav__link::after{display:none}.utrecht-sidenav__marker,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link::before{background-color:var(--utrecht-sidenav-item-marker-color);border-radius:100%;box-shadow:0 0 2px 2px #fff;content:\"\";height:8px;left:var(--utrecht-sidenav-marker-offset);overflow:hidden;position:absolute;top:20px;transform:translateY(-50%) translateX(calc(-1 * var(--utrecht-sidenav-marker-offset)));width:8px;z-index:10}.utrecht-sidenav__marker--child,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child::before{background-color:transparent;border:2px solid var(--utrecht-sidenav-link-color);height:4px;left:1.2rem;top:16px;transform:translateY(-50%) translateX(-19.5px);width:4px}.utrecht-sidenav__marker--current,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--current::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--current-child::before{background-color:var(--utrecht-sidenav-marker-current-color)}.utrecht-sidenav__link--child,.utrecht-sidenav__link--current-child{color:var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));margin-block-end:0;margin-block-start:0;padding-block-end:var(--utrecht-space-block-2xs);padding-block-start:var(--utrecht-space-block-2xs);padding-inline-end:var(--utrecht-space-inline-3xs);padding-inline-start:var(--utrecht-space-inline-lg);text-decoration:none}.utrecht-sidenav__link--current,.utrecht-sidenav__link--current-child{font-weight:var(--utrecht-typography-weight-scale-bold-font-weight)}.utrecht-sidenav__marker--hover,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link:hover::before{background-color:var(--utrecht-sidenav-link-hover-color)}.utrecht-sidenav__marker--child.utrecht-sidenav__marker--hover,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__marker--child.utrecht-sidenav__link:hover::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__marker--hover.utrecht-sidenav__link--child::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child.utrecht-sidenav__link:hover::before{background-color:var(--utrecht-sidenav-link-hover-color);border:2px solid var(--utrecht-sidenav-link-hover-color)}.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child::after{display:none}.utrecht-sidenav__link:focus:not(:focus-visible){box-shadow:none;outline-style:none}";
|
|
9
9
|
|
|
10
10
|
let Sidenav = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -13,7 +13,7 @@ let Sidenav = class {
|
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
15
|
const items = JSON.parse(this.json);
|
|
16
|
-
return (index.h("nav", { class: "utrecht-sidenav" }, index.h("ul", { class: "utrecht-sidenav__list" }, items.map(({ href, title, current, focus, children, sibling, haschildren }) => (index.h("li", { key: href, class: clsx_m.clsx('utrecht-sidenav__item', sibling && 'utrecht-sidenav__item--sibling', haschildren && 'utrecht-sidenav__item--has-children') }, index.h("a", { class: clsx_m.clsx('utrecht-sidenav__link', current && 'utrecht-sidenav__link--current', focus && 'utrecht-sidenav__link--focus', sibling && 'utrecht-sidenav__link--sibling', haschildren && 'utrecht-sidenav__link--has-children'), href: href },
|
|
16
|
+
return (index.h("nav", { class: "utrecht-sidenav" }, index.h("ul", { class: "utrecht-sidenav__list" }, items.map(({ href, title, current, focus, children, sibling, haschildren }, index$1, array) => (index.h("li", { key: href, class: clsx_m.clsx('utrecht-sidenav__item', index$1 + 1 === array.length && 'utrecht-sidenav__item--last', sibling && 'utrecht-sidenav__item--sibling', haschildren && 'utrecht-sidenav__item--has-children') }, index.h("a", { class: clsx_m.clsx('utrecht-sidenav__link', current && 'utrecht-sidenav__link--current', focus && 'utrecht-sidenav__link--focus', sibling && 'utrecht-sidenav__link--sibling', haschildren && 'utrecht-sidenav__link--has-children'), href: href }, index.h("div", { class: clsx_m.clsx('utrecht-sidenav__marker', current && 'utrecht-sidenav__marker--current') }), !(sibling || index$1 === 0) ? index.h("div", { class: "utrecht-sidenav__connection" }) : null, title), index.h("div", { class: "utrecht-sidenav__item-separator" }), children ? (index.h("ul", { class: "utrecht-sidenav__list utrecht-sidenav__list--child" }, children.map(({ href, title, current, focus }) => (index.h("li", { key: href, class: "utrecht-sidenav__item utrecht-sidenav__item--child" }, index.h("a", { class: clsx_m.clsx('utrecht-sidenav__link', 'utrecht-sidenav__link--child', current && 'utrecht-sidenav__link--current', current && 'utrecht-sidenav__link--current-child', focus && 'utrecht-sidenav__link--focus'), href: href }, index.h("div", { class: clsx_m.clsx('utrecht-sidenav__marker', 'utrecht-sidenav__marker--child', current && 'utrecht-sidenav__marker--current', current && 'utrecht-sidenav__marker--current-child') }), title)))))) : (''), children && index.h("div", { class: "utrecht-sidenav__item-separator" })))))));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
Sidenav.style = bemCss;
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
* Copyright (c) 2021 Robbert Broersma
|
|
10
10
|
*/
|
|
11
11
|
/* stylelint-disable-next-line block-no-empty */
|
|
12
|
-
.utrecht-navhtml {
|
|
13
|
-
font-family: var(--utrecht-font-family-sans-serif);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
12
|
.utrecht-sidenav {
|
|
13
|
+
--utrecht-sidenav-connection-color: var(--utrecht-sidenav-item-marker-color);
|
|
14
|
+
--utrecht-sidenav-connection-inline-size: 2px;
|
|
15
|
+
--utrecht-sidenav-marker-current-color: var(--utrecht-sidenav-link-hover-color);
|
|
16
|
+
--utrecht-sidenav-marker-offset: 26px;
|
|
17
|
+
--utrecht-sidenav-connection-block-size: 38px;
|
|
17
18
|
border-block-end: 1px solid var(--utrecht-color-grey-80);
|
|
18
19
|
border-block-start: 1px solid var(--utrecht-color-grey-80);
|
|
19
20
|
margin-block-end: 0;
|
|
@@ -31,212 +32,152 @@
|
|
|
31
32
|
padding-inline-start: 0;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
.utrecht-sidenav__list
|
|
35
|
-
margin-block-
|
|
36
|
-
padding-
|
|
37
|
-
padding-
|
|
38
|
-
padding-inline-start: 1.2rem;
|
|
35
|
+
.utrecht-sidenav__list--child {
|
|
36
|
+
margin-block-start: 0;
|
|
37
|
+
padding-inline-end: 0;
|
|
38
|
+
padding-inline-start: 1.4rem;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.utrecht-sidenav__item
|
|
42
|
-
.utrecht-sidenav__sibling__item {
|
|
41
|
+
.utrecht-sidenav__item {
|
|
43
42
|
list-style: none;
|
|
44
43
|
margin-inline-start: 0;
|
|
45
44
|
position: relative;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
.utrecht-sidenav__item
|
|
47
|
+
.utrecht-sidenav__item--current {
|
|
48
|
+
color: var(--utrecht-sidenav-item-hover-color, var(--utrecht-link-hover-color, red));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.utrecht-sidenav__item--last {
|
|
49
52
|
border-block-end: none;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
/* draw the li item box bottom line */
|
|
53
|
-
.utrecht-sidenav__item
|
|
56
|
+
.utrecht-sidenav__item-separator:not(.utrecht-sidenav__item--last .utrecht-sidenav__item-separator,
|
|
57
|
+
.utrecht-sidenav__item--has-children .utrecht-sidenav__item-separator:first-of-type) {
|
|
58
|
+
/* .utrecht-sidenav__item--has-children span */
|
|
54
59
|
border-block-end: 1px solid var(--utrecht-color-grey-80);
|
|
55
60
|
display: block;
|
|
56
|
-
margin-inline-start: var(--utrecht-space-inline-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* Remove bottom padding form first item in list with children */
|
|
60
|
-
.utrecht-sidenav__item .utrecht-sidenav__link--has-children {
|
|
61
|
-
padding-block-end: 0;
|
|
61
|
+
margin-inline-start: var(--utrecht-space-inline-md);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.utrecht-
|
|
65
|
-
list-style: none;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.utrecht-sidenav__link,
|
|
69
|
-
.utrecht-sidenav__link--sibling {
|
|
64
|
+
.utrecht-sidenav__link {
|
|
70
65
|
color: var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));
|
|
71
66
|
display: block;
|
|
72
67
|
margin-inline-start: 0;
|
|
73
68
|
padding-block-end: var(--utrecht-space-block-xs);
|
|
74
69
|
padding-block-start: var(--utrecht-space-block-xs);
|
|
75
70
|
padding-inline-end: var(--utrecht-space-inline-3xs);
|
|
76
|
-
padding-inline-start: var(--utrecht-space-inline-
|
|
77
|
-
text-decoration: none;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.utrecht-sidenav__link--child,
|
|
81
|
-
.utrecht-sidenav__link--child--current {
|
|
82
|
-
color: var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));
|
|
83
|
-
display: block;
|
|
84
|
-
margin-block-end: 0;
|
|
85
|
-
margin-block-start: 0;
|
|
86
|
-
padding-block-end: var(--utrecht-space-block-2xs);
|
|
87
|
-
padding-block-start: var(--utrecht-space-block-2xs);
|
|
88
|
-
padding-inline-end: var(--utrecht-space-inline-3xs);
|
|
89
|
-
padding-inline-start: var(--utrecht-space-inline-xl);
|
|
71
|
+
padding-inline-start: var(--utrecht-space-inline-lg);
|
|
90
72
|
text-decoration: none;
|
|
91
73
|
}
|
|
92
74
|
|
|
93
|
-
.utrecht-sidenav__link
|
|
94
|
-
.utrecht-sidenav__link--sibling::before {
|
|
95
|
-
background-color: var(--utrecht-sidenav-item-marker-color);
|
|
96
|
-
left: 26px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/* Little fix to move the dot to the right */
|
|
100
|
-
.utrecht-sidenav__link--current::before {
|
|
101
|
-
background-color: var(--utrecht-sidenav-link-hover-color);
|
|
102
|
-
left: 27px;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/* Dot for link with siblings */
|
|
106
|
-
.utrecht-sidenav__link::before,
|
|
107
|
-
.utrecht-sidenav__link--sibling::before,
|
|
108
|
-
.utrecht-sidenav__item:last-child .utrecht-sidenav__link--current::before {
|
|
109
|
-
border-radius: 100%;
|
|
110
|
-
box-shadow: 0 0 2px 2px #fff;
|
|
111
|
-
/* Make var */
|
|
112
|
-
content: "";
|
|
113
|
-
height: 8px;
|
|
114
|
-
overflow: hidden;
|
|
115
|
-
position: absolute;
|
|
116
|
-
top: 20px;
|
|
117
|
-
/* Hard value? */
|
|
118
|
-
transform: translateY(-50%) translateX(-2.5ch);
|
|
119
|
-
width: 8px;
|
|
120
|
-
z-index: 10;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/* Hover layout for mousover on sidenav__link */
|
|
124
|
-
.utrecht-sidenav__link:hover::before,
|
|
125
|
-
.utrecht-sidenav__link--sibling:hover::before {
|
|
126
|
-
background-color: var(--utrecht-sidenav-link-hover-color);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.utrecht-sidenav__item a:hover {
|
|
75
|
+
.utrecht-sidenav__link:hover {
|
|
130
76
|
color: var(--utrecht-sidenav-link-hover-color, var(--utrecht-link-hover-color, red));
|
|
131
77
|
text-decoration: underline;
|
|
132
78
|
}
|
|
133
79
|
|
|
134
|
-
.utrecht-
|
|
135
|
-
|
|
80
|
+
.utrecht-sidenav__link--focus-visible, .utrecht-sidenav__link:focus {
|
|
81
|
+
box-shadow: 0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);
|
|
82
|
+
outline-color: var(--utrecht-focus-outline-color, transparent);
|
|
83
|
+
outline-offset: 0;
|
|
84
|
+
outline-style: var(--utrecht-focus-outline-style, solid);
|
|
85
|
+
outline-width: var(--utrecht-focus-outline-width, 0);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Remove bottom padding form first item in list with children */
|
|
89
|
+
.utrecht-sidenav__link--has-children {
|
|
90
|
+
padding-block-end: 0;
|
|
136
91
|
}
|
|
137
92
|
|
|
138
93
|
/* Draw metro connection lines on sidenav link items */
|
|
139
|
-
.utrecht-sidenav__link::after
|
|
140
|
-
|
|
141
|
-
background: var(--utrecht-sidenav-item-marker-color);
|
|
142
|
-
/* min-height: 100%;
|
|
143
|
-
height: calc(100% + 2px); */
|
|
94
|
+
.utrecht-sidenav__connection, .utrecht-sidenav--pseudo-elements .utrecht-sidenav__link:not(.utrecht-sidenav__link--sibling):not(.utrecht-sidenav__link--child)::after {
|
|
95
|
+
background: var(--utrecht-sidenav-connection-color);
|
|
144
96
|
bottom: 0;
|
|
145
97
|
content: "";
|
|
146
98
|
display: block;
|
|
99
|
+
height: calc(var(--utrecht-sidenav-connection-block-size) + 2px);
|
|
147
100
|
left: 3px;
|
|
101
|
+
min-height: var(--utrecht-sidenav-connection-block-size);
|
|
148
102
|
overflow: hidden;
|
|
149
103
|
position: absolute;
|
|
150
104
|
top: -22px;
|
|
151
|
-
width:
|
|
105
|
+
width: var(--utrecht-sidenav-connection-inline-size);
|
|
152
106
|
z-index: 5;
|
|
153
107
|
}
|
|
154
108
|
|
|
155
|
-
|
|
156
|
-
.utrecht-sidenav__item:last-child .utrecht-sidenav__link::after,
|
|
157
|
-
.utrecht-sidenav__link--current::after,
|
|
158
|
-
.utrecht-sidenav__item--has-children a::after {
|
|
159
|
-
height: 40px;
|
|
160
|
-
min-height: 38px;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/* Remove first metro line in listing */
|
|
164
|
-
.utrecht-sidenav__item:first-child .utrecht-sidenav__link::after {
|
|
165
|
-
content: "";
|
|
109
|
+
.utrecht-sidenav__connection--first, .utrecht-sidenav--pseudo-elements .utrecht-sidenav__item:first-child .utrecht-sidenav__link::after {
|
|
166
110
|
display: none;
|
|
167
111
|
}
|
|
168
112
|
|
|
169
|
-
/*
|
|
170
|
-
|
|
171
|
-
.utrecht-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
list-style: none;
|
|
187
|
-
position: relative;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/* No last border on child item */
|
|
191
|
-
.utrecht-sidenav__item--child:last-child {
|
|
192
|
-
border: none;
|
|
113
|
+
/* Dot for link with siblings */
|
|
114
|
+
/* Little fix to move the dot to the right */
|
|
115
|
+
.utrecht-sidenav__marker, .utrecht-sidenav--pseudo-elements .utrecht-sidenav__link::before {
|
|
116
|
+
background-color: var(--utrecht-sidenav-item-marker-color);
|
|
117
|
+
border-radius: 100%;
|
|
118
|
+
box-shadow: 0 0 2px 2px #fff;
|
|
119
|
+
/* Make var */
|
|
120
|
+
content: "";
|
|
121
|
+
height: 8px;
|
|
122
|
+
left: var(--utrecht-sidenav-marker-offset);
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: 20px;
|
|
126
|
+
/* Hard value? */
|
|
127
|
+
transform: translateY(-50%) translateX(calc(-1 * var(--utrecht-sidenav-marker-offset)));
|
|
128
|
+
width: 8px;
|
|
129
|
+
z-index: 10;
|
|
193
130
|
}
|
|
194
131
|
|
|
195
132
|
/* Add dot bullets on child links */
|
|
196
|
-
.utrecht-sidenav__link--child::before
|
|
197
|
-
.utrecht-sidenav__link--child--current::before {
|
|
133
|
+
.utrecht-sidenav__marker--child, .utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child::before {
|
|
198
134
|
background-color: transparent;
|
|
199
135
|
border: 2px solid var(--utrecht-sidenav-link-color);
|
|
200
|
-
border-radius: 100%;
|
|
201
|
-
content: "";
|
|
202
136
|
height: 4px;
|
|
203
137
|
left: 1.2rem;
|
|
204
|
-
overflow: hidden;
|
|
205
|
-
position: absolute;
|
|
206
138
|
top: 16px;
|
|
207
139
|
transform: translateY(-50%) translateX(-19.5px);
|
|
208
140
|
width: 4px;
|
|
209
|
-
z-index: 10;
|
|
210
141
|
}
|
|
211
142
|
|
|
212
|
-
/*
|
|
213
|
-
.utrecht-sidenav__link--
|
|
143
|
+
/* selector must override .utrecht-sidenav__marker--child */
|
|
144
|
+
.utrecht-sidenav__marker--current, .utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--current::before,
|
|
145
|
+
.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--current-child::before {
|
|
146
|
+
background-color: var(--utrecht-sidenav-marker-current-color);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.utrecht-sidenav__link--child,
|
|
150
|
+
.utrecht-sidenav__link--current-child {
|
|
151
|
+
color: var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));
|
|
152
|
+
margin-block-end: 0;
|
|
153
|
+
margin-block-start: 0;
|
|
154
|
+
padding-block-end: var(--utrecht-space-block-2xs);
|
|
155
|
+
padding-block-start: var(--utrecht-space-block-2xs);
|
|
156
|
+
padding-inline-end: var(--utrecht-space-inline-3xs);
|
|
157
|
+
padding-inline-start: var(--utrecht-space-inline-lg);
|
|
158
|
+
text-decoration: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.utrecht-sidenav__link--current,
|
|
162
|
+
.utrecht-sidenav__link--current-child {
|
|
163
|
+
font-weight: var(--utrecht-typography-weight-scale-bold-font-weight);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* Hover layout for mousover on sidenav__link */
|
|
167
|
+
.utrecht-sidenav__marker--hover, .utrecht-sidenav--pseudo-elements .utrecht-sidenav__link:hover::before {
|
|
214
168
|
background-color: var(--utrecht-sidenav-link-hover-color);
|
|
215
169
|
}
|
|
216
170
|
|
|
217
171
|
/* Hover layout for mousover on child__link */
|
|
218
|
-
.utrecht-sidenav__link--child:hover::before {
|
|
172
|
+
.utrecht-sidenav__marker--child.utrecht-sidenav__marker--hover, .utrecht-sidenav--pseudo-elements .utrecht-sidenav__marker--child.utrecht-sidenav__link:hover::before, .utrecht-sidenav--pseudo-elements .utrecht-sidenav__marker--hover.utrecht-sidenav__link--child::before, .utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child.utrecht-sidenav__link:hover::before {
|
|
219
173
|
background-color: var(--utrecht-sidenav-link-hover-color);
|
|
220
174
|
border: 2px solid var(--utrecht-sidenav-link-hover-color);
|
|
221
175
|
}
|
|
222
176
|
|
|
223
|
-
|
|
224
|
-
.utrecht-sidenav__item--child:first-child .utrecht-sidenav__link--child--current::after,
|
|
225
|
-
.utrecht-sidenav__link--child::after,
|
|
226
|
-
.utrecht-sidenav__item .utrecht-sidenav__item--child .utrecht-sidenav__link--child::after,
|
|
227
|
-
.utrecht-sidenav__item .utrecht-sidenav__link--sibling::after,
|
|
228
|
-
.utrecht-sidenav__item--sibling:last-child .utrecht-sidenav__link--sibling::after {
|
|
177
|
+
.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child::after {
|
|
229
178
|
display: none;
|
|
230
179
|
}
|
|
231
180
|
|
|
232
|
-
.utrecht-sidenav__link--focus-visible, .utrecht-sidenav__link:focus {
|
|
233
|
-
box-shadow: 0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);
|
|
234
|
-
outline-color: var(--utrecht-focus-outline-color, transparent);
|
|
235
|
-
outline-offset: 0;
|
|
236
|
-
outline-style: var(--utrecht-focus-outline-style, solid);
|
|
237
|
-
outline-width: var(--utrecht-focus-outline-width, 0);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
181
|
.utrecht-sidenav__link:focus:not(:focus-visible) {
|
|
241
182
|
/* undo focus ring */
|
|
242
183
|
box-shadow: none;
|
|
@@ -4,11 +4,17 @@ export class Sidenav {
|
|
|
4
4
|
render() {
|
|
5
5
|
const items = JSON.parse(this.json);
|
|
6
6
|
return (h("nav", { class: "utrecht-sidenav" },
|
|
7
|
-
h("ul", { class: "utrecht-sidenav__list" }, items.map(({ href, title, current, focus, children, sibling, haschildren }) => (h("li", { key: href, class: clsx('utrecht-sidenav__item', sibling && 'utrecht-sidenav__item--sibling', haschildren && 'utrecht-sidenav__item--has-children') },
|
|
8
|
-
h("a", { class: clsx('utrecht-sidenav__link', current && 'utrecht-sidenav__link--current', focus && 'utrecht-sidenav__link--focus', sibling && 'utrecht-sidenav__link--sibling', haschildren && 'utrecht-sidenav__link--has-children'), href: href },
|
|
9
|
-
|
|
7
|
+
h("ul", { class: "utrecht-sidenav__list" }, items.map(({ href, title, current, focus, children, sibling, haschildren }, index, array) => (h("li", { key: href, class: clsx('utrecht-sidenav__item', index + 1 === array.length && 'utrecht-sidenav__item--last', sibling && 'utrecht-sidenav__item--sibling', haschildren && 'utrecht-sidenav__item--has-children') },
|
|
8
|
+
h("a", { class: clsx('utrecht-sidenav__link', current && 'utrecht-sidenav__link--current', focus && 'utrecht-sidenav__link--focus', sibling && 'utrecht-sidenav__link--sibling', haschildren && 'utrecht-sidenav__link--has-children'), href: href },
|
|
9
|
+
h("div", { class: clsx('utrecht-sidenav__marker', current && 'utrecht-sidenav__marker--current') }),
|
|
10
|
+
!(sibling || index === 0) ? h("div", { class: "utrecht-sidenav__connection" }) : null,
|
|
11
|
+
title),
|
|
12
|
+
h("div", { class: "utrecht-sidenav__item-separator" }),
|
|
10
13
|
children ? (h("ul", { class: "utrecht-sidenav__list utrecht-sidenav__list--child" }, children.map(({ href, title, current, focus }) => (h("li", { key: href, class: "utrecht-sidenav__item utrecht-sidenav__item--child" },
|
|
11
|
-
h("a", { class: clsx('utrecht-sidenav__link utrecht-sidenav__link--child', current && 'utrecht-sidenav__link--current utrecht-sidenav__link--child
|
|
14
|
+
h("a", { class: clsx('utrecht-sidenav__link', 'utrecht-sidenav__link--child', current && 'utrecht-sidenav__link--current', current && 'utrecht-sidenav__link--current-child', focus && 'utrecht-sidenav__link--focus'), href: href },
|
|
15
|
+
h("div", { class: clsx('utrecht-sidenav__marker', 'utrecht-sidenav__marker--child', current && 'utrecht-sidenav__marker--current', current && 'utrecht-sidenav__marker--current-child') }),
|
|
16
|
+
title)))))) : (''),
|
|
17
|
+
children && h("div", { class: "utrecht-sidenav__item-separator" })))))));
|
|
12
18
|
}
|
|
13
19
|
static get is() { return "utrecht-sidenav"; }
|
|
14
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1073,7 +1073,7 @@ let Separator = class extends HTMLElement {
|
|
|
1073
1073
|
static get style() { return stencilCss$1; }
|
|
1074
1074
|
};
|
|
1075
1075
|
|
|
1076
|
-
const bemCss = ".utrecht-
|
|
1076
|
+
const bemCss = ".utrecht-sidenav{--utrecht-sidenav-connection-color:var(--utrecht-sidenav-item-marker-color);--utrecht-sidenav-connection-inline-size:2px;--utrecht-sidenav-marker-current-color:var(--utrecht-sidenav-link-hover-color);--utrecht-sidenav-marker-offset:26px;--utrecht-sidenav-connection-block-size:38px;border-block-end:1px solid var(--utrecht-color-grey-80);border-block-start:1px solid var(--utrecht-color-grey-80);margin-block-end:0;margin-block-start:0;padding-block-end:0;padding-block-start:0;width:13rem}.utrecht-sidenav__list{margin-block-end:0;margin-block-start:0.2rem;padding-block-end:0;padding-block-start:0;padding-inline-start:0}.utrecht-sidenav__list--child{margin-block-start:0;padding-inline-end:0;padding-inline-start:1.4rem}.utrecht-sidenav__item{list-style:none;margin-inline-start:0;position:relative}.utrecht-sidenav__item--current{color:var(--utrecht-sidenav-item-hover-color, var(--utrecht-link-hover-color, red))}.utrecht-sidenav__item--last{border-block-end:none}.utrecht-sidenav__item-separator:not(.utrecht-sidenav__item--last .utrecht-sidenav__item-separator,.utrecht-sidenav__item--has-children .utrecht-sidenav__item-separator:first-of-type){border-block-end:1px solid var(--utrecht-color-grey-80);display:block;margin-inline-start:var(--utrecht-space-inline-md)}.utrecht-sidenav__link{color:var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));display:block;margin-inline-start:0;padding-block-end:var(--utrecht-space-block-xs);padding-block-start:var(--utrecht-space-block-xs);padding-inline-end:var(--utrecht-space-inline-3xs);padding-inline-start:var(--utrecht-space-inline-lg);text-decoration:none}.utrecht-sidenav__link:hover{color:var(--utrecht-sidenav-link-hover-color, var(--utrecht-link-hover-color, red));text-decoration:underline}.utrecht-sidenav__link--focus-visible,.utrecht-sidenav__link:focus{box-shadow:0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);outline-color:var(--utrecht-focus-outline-color, transparent);outline-offset:0;outline-style:var(--utrecht-focus-outline-style, solid);outline-width:var(--utrecht-focus-outline-width, 0)}.utrecht-sidenav__link--has-children{padding-block-end:0}.utrecht-sidenav__connection,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link:not(.utrecht-sidenav__link--sibling):not(.utrecht-sidenav__link--child)::after{background:var(--utrecht-sidenav-connection-color);bottom:0;content:\"\";display:block;height:calc(var(--utrecht-sidenav-connection-block-size) + 2px);left:3px;min-height:var(--utrecht-sidenav-connection-block-size);overflow:hidden;position:absolute;top:-22px;width:var(--utrecht-sidenav-connection-inline-size);z-index:5}.utrecht-sidenav__connection--first,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__item:first-child .utrecht-sidenav__link::after{display:none}.utrecht-sidenav__marker,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link::before{background-color:var(--utrecht-sidenav-item-marker-color);border-radius:100%;box-shadow:0 0 2px 2px #fff;content:\"\";height:8px;left:var(--utrecht-sidenav-marker-offset);overflow:hidden;position:absolute;top:20px;transform:translateY(-50%) translateX(calc(-1 * var(--utrecht-sidenav-marker-offset)));width:8px;z-index:10}.utrecht-sidenav__marker--child,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child::before{background-color:transparent;border:2px solid var(--utrecht-sidenav-link-color);height:4px;left:1.2rem;top:16px;transform:translateY(-50%) translateX(-19.5px);width:4px}.utrecht-sidenav__marker--current,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--current::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--current-child::before{background-color:var(--utrecht-sidenav-marker-current-color)}.utrecht-sidenav__link--child,.utrecht-sidenav__link--current-child{color:var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));margin-block-end:0;margin-block-start:0;padding-block-end:var(--utrecht-space-block-2xs);padding-block-start:var(--utrecht-space-block-2xs);padding-inline-end:var(--utrecht-space-inline-3xs);padding-inline-start:var(--utrecht-space-inline-lg);text-decoration:none}.utrecht-sidenav__link--current,.utrecht-sidenav__link--current-child{font-weight:var(--utrecht-typography-weight-scale-bold-font-weight)}.utrecht-sidenav__marker--hover,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link:hover::before{background-color:var(--utrecht-sidenav-link-hover-color)}.utrecht-sidenav__marker--child.utrecht-sidenav__marker--hover,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__marker--child.utrecht-sidenav__link:hover::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__marker--hover.utrecht-sidenav__link--child::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child.utrecht-sidenav__link:hover::before{background-color:var(--utrecht-sidenav-link-hover-color);border:2px solid var(--utrecht-sidenav-link-hover-color)}.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child::after{display:none}.utrecht-sidenav__link:focus:not(:focus-visible){box-shadow:none;outline-style:none}";
|
|
1077
1077
|
|
|
1078
1078
|
let Sidenav = class extends HTMLElement {
|
|
1079
1079
|
constructor() {
|
|
@@ -1083,7 +1083,7 @@ let Sidenav = class extends HTMLElement {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
render() {
|
|
1085
1085
|
const items = JSON.parse(this.json);
|
|
1086
|
-
return (h("nav", { class: "utrecht-sidenav" }, h("ul", { class: "utrecht-sidenav__list" }, items.map(({ href, title, current, focus, children, sibling, haschildren }) => (h("li", { key: href, class: clsx('utrecht-sidenav__item', sibling && 'utrecht-sidenav__item--sibling', haschildren && 'utrecht-sidenav__item--has-children') }, h("a", { class: clsx('utrecht-sidenav__link', current && 'utrecht-sidenav__link--current', focus && 'utrecht-sidenav__link--focus', sibling && 'utrecht-sidenav__link--sibling', haschildren && 'utrecht-sidenav__link--has-children'), href: href },
|
|
1086
|
+
return (h("nav", { class: "utrecht-sidenav" }, h("ul", { class: "utrecht-sidenav__list" }, items.map(({ href, title, current, focus, children, sibling, haschildren }, index, array) => (h("li", { key: href, class: clsx('utrecht-sidenav__item', index + 1 === array.length && 'utrecht-sidenav__item--last', sibling && 'utrecht-sidenav__item--sibling', haschildren && 'utrecht-sidenav__item--has-children') }, h("a", { class: clsx('utrecht-sidenav__link', current && 'utrecht-sidenav__link--current', focus && 'utrecht-sidenav__link--focus', sibling && 'utrecht-sidenav__link--sibling', haschildren && 'utrecht-sidenav__link--has-children'), href: href }, h("div", { class: clsx('utrecht-sidenav__marker', current && 'utrecht-sidenav__marker--current') }), !(sibling || index === 0) ? h("div", { class: "utrecht-sidenav__connection" }) : null, title), h("div", { class: "utrecht-sidenav__item-separator" }), children ? (h("ul", { class: "utrecht-sidenav__list utrecht-sidenav__list--child" }, children.map(({ href, title, current, focus }) => (h("li", { key: href, class: "utrecht-sidenav__item utrecht-sidenav__item--child" }, h("a", { class: clsx('utrecht-sidenav__link', 'utrecht-sidenav__link--child', current && 'utrecht-sidenav__link--current', current && 'utrecht-sidenav__link--current-child', focus && 'utrecht-sidenav__link--focus'), href: href }, h("div", { class: clsx('utrecht-sidenav__marker', 'utrecht-sidenav__marker--child', current && 'utrecht-sidenav__marker--current', current && 'utrecht-sidenav__marker--current-child') }), title)))))) : (''), children && h("div", { class: "utrecht-sidenav__item-separator" })))))));
|
|
1087
1087
|
}
|
|
1088
1088
|
static get style() { return bemCss; }
|
|
1089
1089
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-dbad55a3.js';
|
|
2
2
|
import { c as clsx } from './clsx.m-071989db.js';
|
|
3
3
|
|
|
4
|
-
const bemCss = ".utrecht-
|
|
4
|
+
const bemCss = ".utrecht-sidenav{--utrecht-sidenav-connection-color:var(--utrecht-sidenav-item-marker-color);--utrecht-sidenav-connection-inline-size:2px;--utrecht-sidenav-marker-current-color:var(--utrecht-sidenav-link-hover-color);--utrecht-sidenav-marker-offset:26px;--utrecht-sidenav-connection-block-size:38px;border-block-end:1px solid var(--utrecht-color-grey-80);border-block-start:1px solid var(--utrecht-color-grey-80);margin-block-end:0;margin-block-start:0;padding-block-end:0;padding-block-start:0;width:13rem}.utrecht-sidenav__list{margin-block-end:0;margin-block-start:0.2rem;padding-block-end:0;padding-block-start:0;padding-inline-start:0}.utrecht-sidenav__list--child{margin-block-start:0;padding-inline-end:0;padding-inline-start:1.4rem}.utrecht-sidenav__item{list-style:none;margin-inline-start:0;position:relative}.utrecht-sidenav__item--current{color:var(--utrecht-sidenav-item-hover-color, var(--utrecht-link-hover-color, red))}.utrecht-sidenav__item--last{border-block-end:none}.utrecht-sidenav__item-separator:not(.utrecht-sidenav__item--last .utrecht-sidenav__item-separator,.utrecht-sidenav__item--has-children .utrecht-sidenav__item-separator:first-of-type){border-block-end:1px solid var(--utrecht-color-grey-80);display:block;margin-inline-start:var(--utrecht-space-inline-md)}.utrecht-sidenav__link{color:var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));display:block;margin-inline-start:0;padding-block-end:var(--utrecht-space-block-xs);padding-block-start:var(--utrecht-space-block-xs);padding-inline-end:var(--utrecht-space-inline-3xs);padding-inline-start:var(--utrecht-space-inline-lg);text-decoration:none}.utrecht-sidenav__link:hover{color:var(--utrecht-sidenav-link-hover-color, var(--utrecht-link-hover-color, red));text-decoration:underline}.utrecht-sidenav__link--focus-visible,.utrecht-sidenav__link:focus{box-shadow:0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);outline-color:var(--utrecht-focus-outline-color, transparent);outline-offset:0;outline-style:var(--utrecht-focus-outline-style, solid);outline-width:var(--utrecht-focus-outline-width, 0)}.utrecht-sidenav__link--has-children{padding-block-end:0}.utrecht-sidenav__connection,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link:not(.utrecht-sidenav__link--sibling):not(.utrecht-sidenav__link--child)::after{background:var(--utrecht-sidenav-connection-color);bottom:0;content:\"\";display:block;height:calc(var(--utrecht-sidenav-connection-block-size) + 2px);left:3px;min-height:var(--utrecht-sidenav-connection-block-size);overflow:hidden;position:absolute;top:-22px;width:var(--utrecht-sidenav-connection-inline-size);z-index:5}.utrecht-sidenav__connection--first,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__item:first-child .utrecht-sidenav__link::after{display:none}.utrecht-sidenav__marker,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link::before{background-color:var(--utrecht-sidenav-item-marker-color);border-radius:100%;box-shadow:0 0 2px 2px #fff;content:\"\";height:8px;left:var(--utrecht-sidenav-marker-offset);overflow:hidden;position:absolute;top:20px;transform:translateY(-50%) translateX(calc(-1 * var(--utrecht-sidenav-marker-offset)));width:8px;z-index:10}.utrecht-sidenav__marker--child,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child::before{background-color:transparent;border:2px solid var(--utrecht-sidenav-link-color);height:4px;left:1.2rem;top:16px;transform:translateY(-50%) translateX(-19.5px);width:4px}.utrecht-sidenav__marker--current,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--current::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--current-child::before{background-color:var(--utrecht-sidenav-marker-current-color)}.utrecht-sidenav__link--child,.utrecht-sidenav__link--current-child{color:var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));margin-block-end:0;margin-block-start:0;padding-block-end:var(--utrecht-space-block-2xs);padding-block-start:var(--utrecht-space-block-2xs);padding-inline-end:var(--utrecht-space-inline-3xs);padding-inline-start:var(--utrecht-space-inline-lg);text-decoration:none}.utrecht-sidenav__link--current,.utrecht-sidenav__link--current-child{font-weight:var(--utrecht-typography-weight-scale-bold-font-weight)}.utrecht-sidenav__marker--hover,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link:hover::before{background-color:var(--utrecht-sidenav-link-hover-color)}.utrecht-sidenav__marker--child.utrecht-sidenav__marker--hover,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__marker--child.utrecht-sidenav__link:hover::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__marker--hover.utrecht-sidenav__link--child::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child.utrecht-sidenav__link:hover::before{background-color:var(--utrecht-sidenav-link-hover-color);border:2px solid var(--utrecht-sidenav-link-hover-color)}.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child::after{display:none}.utrecht-sidenav__link:focus:not(:focus-visible){box-shadow:none;outline-style:none}";
|
|
5
5
|
|
|
6
6
|
let Sidenav = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -9,7 +9,7 @@ let Sidenav = class {
|
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
const items = JSON.parse(this.json);
|
|
12
|
-
return (h("nav", { class: "utrecht-sidenav" }, h("ul", { class: "utrecht-sidenav__list" }, items.map(({ href, title, current, focus, children, sibling, haschildren }) => (h("li", { key: href, class: clsx('utrecht-sidenav__item', sibling && 'utrecht-sidenav__item--sibling', haschildren && 'utrecht-sidenav__item--has-children') }, h("a", { class: clsx('utrecht-sidenav__link', current && 'utrecht-sidenav__link--current', focus && 'utrecht-sidenav__link--focus', sibling && 'utrecht-sidenav__link--sibling', haschildren && 'utrecht-sidenav__link--has-children'), href: href },
|
|
12
|
+
return (h("nav", { class: "utrecht-sidenav" }, h("ul", { class: "utrecht-sidenav__list" }, items.map(({ href, title, current, focus, children, sibling, haschildren }, index, array) => (h("li", { key: href, class: clsx('utrecht-sidenav__item', index + 1 === array.length && 'utrecht-sidenav__item--last', sibling && 'utrecht-sidenav__item--sibling', haschildren && 'utrecht-sidenav__item--has-children') }, h("a", { class: clsx('utrecht-sidenav__link', current && 'utrecht-sidenav__link--current', focus && 'utrecht-sidenav__link--focus', sibling && 'utrecht-sidenav__link--sibling', haschildren && 'utrecht-sidenav__link--has-children'), href: href }, h("div", { class: clsx('utrecht-sidenav__marker', current && 'utrecht-sidenav__marker--current') }), !(sibling || index === 0) ? h("div", { class: "utrecht-sidenav__connection" }) : null, title), h("div", { class: "utrecht-sidenav__item-separator" }), children ? (h("ul", { class: "utrecht-sidenav__list utrecht-sidenav__list--child" }, children.map(({ href, title, current, focus }) => (h("li", { key: href, class: "utrecht-sidenav__item utrecht-sidenav__item--child" }, h("a", { class: clsx('utrecht-sidenav__link', 'utrecht-sidenav__link--child', current && 'utrecht-sidenav__link--current', current && 'utrecht-sidenav__link--current-child', focus && 'utrecht-sidenav__link--focus'), href: href }, h("div", { class: clsx('utrecht-sidenav__marker', 'utrecht-sidenav__marker--child', current && 'utrecht-sidenav__marker--current', current && 'utrecht-sidenav__marker--current-child') }), title)))))) : (''), children && h("div", { class: "utrecht-sidenav__item-separator" })))))));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
Sidenav.style = bemCss;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-a41d30a7.js";import{c as r}from"./p-4070c1e5.js";let n=class{constructor(t){e(this,t)}render(){const e=JSON.parse(this.json);return t("nav",{class:"utrecht-sidenav"},t("ul",{class:"utrecht-sidenav__list"},e.map((({href:e,title:n,current:i,focus:c,children:a,sibling:s,haschildren:o},d,l)=>t("li",{key:e,class:r("utrecht-sidenav__item",d+1===l.length&&"utrecht-sidenav__item--last",s&&"utrecht-sidenav__item--sibling",o&&"utrecht-sidenav__item--has-children")},t("a",{class:r("utrecht-sidenav__link",i&&"utrecht-sidenav__link--current",c&&"utrecht-sidenav__link--focus",s&&"utrecht-sidenav__link--sibling",o&&"utrecht-sidenav__link--has-children"),href:e},t("div",{class:r("utrecht-sidenav__marker",i&&"utrecht-sidenav__marker--current")}),s||0===d?null:t("div",{class:"utrecht-sidenav__connection"}),n),t("div",{class:"utrecht-sidenav__item-separator"}),a?t("ul",{class:"utrecht-sidenav__list utrecht-sidenav__list--child"},a.map((({href:e,title:n,current:i,focus:c})=>t("li",{key:e,class:"utrecht-sidenav__item utrecht-sidenav__item--child"},t("a",{class:r("utrecht-sidenav__link","utrecht-sidenav__link--child",i&&"utrecht-sidenav__link--current",i&&"utrecht-sidenav__link--current-child",c&&"utrecht-sidenav__link--focus"),href:e},t("div",{class:r("utrecht-sidenav__marker","utrecht-sidenav__marker--child",i&&"utrecht-sidenav__marker--current",i&&"utrecht-sidenav__marker--current-child")}),n))))):"",a&&t("div",{class:"utrecht-sidenav__item-separator"}))))))}};n.style='.utrecht-sidenav{--utrecht-sidenav-connection-color:var(--utrecht-sidenav-item-marker-color);--utrecht-sidenav-connection-inline-size:2px;--utrecht-sidenav-marker-current-color:var(--utrecht-sidenav-link-hover-color);--utrecht-sidenav-marker-offset:26px;--utrecht-sidenav-connection-block-size:38px;border-block-end:1px solid var(--utrecht-color-grey-80);border-block-start:1px solid var(--utrecht-color-grey-80);margin-block-end:0;margin-block-start:0;padding-block-end:0;padding-block-start:0;width:13rem}.utrecht-sidenav__list{margin-block-end:0;margin-block-start:0.2rem;padding-block-end:0;padding-block-start:0;padding-inline-start:0}.utrecht-sidenav__list--child{margin-block-start:0;padding-inline-end:0;padding-inline-start:1.4rem}.utrecht-sidenav__item{list-style:none;margin-inline-start:0;position:relative}.utrecht-sidenav__item--current{color:var(--utrecht-sidenav-item-hover-color, var(--utrecht-link-hover-color, red))}.utrecht-sidenav__item--last{border-block-end:none}.utrecht-sidenav__item-separator:not(.utrecht-sidenav__item--last .utrecht-sidenav__item-separator,.utrecht-sidenav__item--has-children .utrecht-sidenav__item-separator:first-of-type){border-block-end:1px solid var(--utrecht-color-grey-80);display:block;margin-inline-start:var(--utrecht-space-inline-md)}.utrecht-sidenav__link{color:var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));display:block;margin-inline-start:0;padding-block-end:var(--utrecht-space-block-xs);padding-block-start:var(--utrecht-space-block-xs);padding-inline-end:var(--utrecht-space-inline-3xs);padding-inline-start:var(--utrecht-space-inline-lg);text-decoration:none}.utrecht-sidenav__link:hover{color:var(--utrecht-sidenav-link-hover-color, var(--utrecht-link-hover-color, red));text-decoration:underline}.utrecht-sidenav__link--focus-visible,.utrecht-sidenav__link:focus{box-shadow:0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);outline-color:var(--utrecht-focus-outline-color, transparent);outline-offset:0;outline-style:var(--utrecht-focus-outline-style, solid);outline-width:var(--utrecht-focus-outline-width, 0)}.utrecht-sidenav__link--has-children{padding-block-end:0}.utrecht-sidenav__connection,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link:not(.utrecht-sidenav__link--sibling):not(.utrecht-sidenav__link--child)::after{background:var(--utrecht-sidenav-connection-color);bottom:0;content:"";display:block;height:calc(var(--utrecht-sidenav-connection-block-size) + 2px);left:3px;min-height:var(--utrecht-sidenav-connection-block-size);overflow:hidden;position:absolute;top:-22px;width:var(--utrecht-sidenav-connection-inline-size);z-index:5}.utrecht-sidenav__connection--first,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__item:first-child .utrecht-sidenav__link::after{display:none}.utrecht-sidenav__marker,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link::before{background-color:var(--utrecht-sidenav-item-marker-color);border-radius:100%;box-shadow:0 0 2px 2px #fff;content:"";height:8px;left:var(--utrecht-sidenav-marker-offset);overflow:hidden;position:absolute;top:20px;transform:translateY(-50%) translateX(calc(-1 * var(--utrecht-sidenav-marker-offset)));width:8px;z-index:10}.utrecht-sidenav__marker--child,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child::before{background-color:transparent;border:2px solid var(--utrecht-sidenav-link-color);height:4px;left:1.2rem;top:16px;transform:translateY(-50%) translateX(-19.5px);width:4px}.utrecht-sidenav__marker--current,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--current::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--current-child::before{background-color:var(--utrecht-sidenav-marker-current-color)}.utrecht-sidenav__link--child,.utrecht-sidenav__link--current-child{color:var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));margin-block-end:0;margin-block-start:0;padding-block-end:var(--utrecht-space-block-2xs);padding-block-start:var(--utrecht-space-block-2xs);padding-inline-end:var(--utrecht-space-inline-3xs);padding-inline-start:var(--utrecht-space-inline-lg);text-decoration:none}.utrecht-sidenav__link--current,.utrecht-sidenav__link--current-child{font-weight:var(--utrecht-typography-weight-scale-bold-font-weight)}.utrecht-sidenav__marker--hover,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link:hover::before{background-color:var(--utrecht-sidenav-link-hover-color)}.utrecht-sidenav__marker--child.utrecht-sidenav__marker--hover,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__marker--child.utrecht-sidenav__link:hover::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__marker--hover.utrecht-sidenav__link--child::before,.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child.utrecht-sidenav__link:hover::before{background-color:var(--utrecht-sidenav-link-hover-color);border:2px solid var(--utrecht-sidenav-link-hover-color)}.utrecht-sidenav--pseudo-elements .utrecht-sidenav__link--child::after{display:none}.utrecht-sidenav__link:focus:not(:focus-visible){box-shadow:none;outline-style:none}';export{n as utrecht_sidenav}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-a41d30a7.js";(()=>{const t=import.meta.url,c={};return""!==t&&(c.resourcesUrl=new URL(".",t).href),e(c)})().then((e=>t([["p-2d408c6c",[[1,"utrecht-contact-card-template"]]],["p-88e09f6e",[[1,"utrecht-digid-button",{type:[1]}]]],["p-06d4e8da",[[1,"utrecht-logo-button",{type:[1]}]]],["p-21b832ea",[[1,"utrecht-custom-checkbox",{disabled:[516],checked:[516],indeterminate:[516],invalid:[516],required:[516]}]]],["p-ccd0835e",[[1,"utrecht-article"]]],["p-f9337bd7",[[1,"utrecht-backdrop",{viewport:[4]}]]],["p-21a49ba3",[[1,"utrecht-badge-counter",{value:[2],max:[2],locale:[1]}]]],["p-3d96735e",[[1,"utrecht-badge-data"]]],["p-39735f2a",[[1,"utrecht-badge-status",{status:[1]}]]],["p-cd97d878",[[1,"utrecht-breadcrumb",{json:[1],variant:[1]}]]],["p-2038f779",[[1,"utrecht-checkbox",{disabled:[516],readOnly:[516,"readonly"],checked:[4],value:[1]}]]],["p-9bde6988",[[1,"utrecht-document"]]],["p-2ff6bfbb",[[1,"utrecht-eherkenning-logo"]]],["p-49a2e309",[[1,"utrecht-eidas-logo"]]],["p-401d2b63",[[1,"utrecht-form-field-checkbox",{label:[4],disabled:[516],checked:[516],invalid:[516],required:[516],value:[32]}]]],["p-c948bdeb",[[1,"utrecht-form-field-description",{status:[513]}]]],["p-c7f7af31",[[1,"utrecht-form-field-textarea",{disabled:[516],invalid:[516],readOnly:[516,"readonly"],placeholder:[1],required:[516],value:[1]}]]],["p-84481a4b",[[1,"utrecht-form-field-textbox",{autoComplete:[513,"autocomplete"],disabled:[516],invalid:[516],min:[1],max:[1],pattern:[1],placeholder:[1],readOnly:[516,"readonly"],required:[516],type:[513],value:[1]}]]],["p-f2792d17",[[1,"utrecht-form-toggle",{disabled:[516],checked:[516]}]]],["p-19bb7aea",[[1,"utrecht-heading",{level:[2]}]]],["p-6922d6e5",[[1,"utrecht-heading-1"]]],["p-e1ab41a2",[[1,"utrecht-heading-4"]]],["p-e094341c",[[1,"utrecht-heading-5"]]],["p-bedc995b",[[1,"utrecht-heading-6"]]],["p-c7b74ae3",[[4,"utrecht-html-content"]]],["p-2be490d7",[[1,"utrecht-icon-afval"]]],["p-e8f6c846",[[1,"utrecht-icon-arrow"]]],["p-ea6f5e30",[[1,"utrecht-icon-cross"]]],["p-99d68ed5",[[1,"utrecht-icon-error"]]],["p-180ccec7",[[1,"utrecht-icon-facebook"]]],["p-6aec0d5e",[[1,"utrecht-icon-filter"]]],["p-7468ce00",[[1,"utrecht-icon-information"]]],["p-12d3555b",[[1,"utrecht-icon-instagram"]]],["p-5eec66c0",[[1,"utrecht-icon-linkedin"]]],["p-d21af965",[[1,"utrecht-icon-list"]]],["p-d24e72f1",[[1,"utrecht-icon-loupe"]]],["p-9a7712ee",[[1,"utrecht-icon-melding"]]],["p-0e908b3b",[[1,"utrecht-icon-paspoort"]]],["p-72670926",[[1,"utrecht-icon-rijbewijs"]]],["p-60321853",[[1,"utrecht-icon-toeslag"]]],["p-c314b6c1",[[1,"utrecht-icon-trouwen"]]],["p-45db7b13",[[1,"utrecht-icon-twitter"]]],["p-5f114e24",[[1,"utrecht-icon-verhuizen"]]],["p-b3aa468d",[[1,"utrecht-icon-warning"]]],["p-f1f0a2c6",[[1,"utrecht-icon-whatsapp"]]],["p-8856bd84",[[1,"utrecht-icon-zoomin"]]],["p-673512bf",[[1,"utrecht-icon-zoomout"]]],["p-a62dbf0b",[[1,"utrecht-logo"]]],["p-e8d0b7bf",[[1,"utrecht-page"]]],["p-1b369d6f",[[1,"utrecht-page-content"]]],["p-616d4fab",[[1,"utrecht-page-footer"]]],["p-f47ed55e",[[1,"utrecht-page-header"]]],["p-c22f500b",[[1,"utrecht-pagination",{links:[1],next:[1],prev:[1],currentIndex:[2,"current-index"]}]]],["p-6a07112a",[[1,"utrecht-separator"]]],["p-
|
|
1
|
+
import{p as e,b as t}from"./p-a41d30a7.js";(()=>{const t=import.meta.url,c={};return""!==t&&(c.resourcesUrl=new URL(".",t).href),e(c)})().then((e=>t([["p-2d408c6c",[[1,"utrecht-contact-card-template"]]],["p-88e09f6e",[[1,"utrecht-digid-button",{type:[1]}]]],["p-06d4e8da",[[1,"utrecht-logo-button",{type:[1]}]]],["p-21b832ea",[[1,"utrecht-custom-checkbox",{disabled:[516],checked:[516],indeterminate:[516],invalid:[516],required:[516]}]]],["p-ccd0835e",[[1,"utrecht-article"]]],["p-f9337bd7",[[1,"utrecht-backdrop",{viewport:[4]}]]],["p-21a49ba3",[[1,"utrecht-badge-counter",{value:[2],max:[2],locale:[1]}]]],["p-3d96735e",[[1,"utrecht-badge-data"]]],["p-39735f2a",[[1,"utrecht-badge-status",{status:[1]}]]],["p-cd97d878",[[1,"utrecht-breadcrumb",{json:[1],variant:[1]}]]],["p-2038f779",[[1,"utrecht-checkbox",{disabled:[516],readOnly:[516,"readonly"],checked:[4],value:[1]}]]],["p-9bde6988",[[1,"utrecht-document"]]],["p-2ff6bfbb",[[1,"utrecht-eherkenning-logo"]]],["p-49a2e309",[[1,"utrecht-eidas-logo"]]],["p-401d2b63",[[1,"utrecht-form-field-checkbox",{label:[4],disabled:[516],checked:[516],invalid:[516],required:[516],value:[32]}]]],["p-c948bdeb",[[1,"utrecht-form-field-description",{status:[513]}]]],["p-c7f7af31",[[1,"utrecht-form-field-textarea",{disabled:[516],invalid:[516],readOnly:[516,"readonly"],placeholder:[1],required:[516],value:[1]}]]],["p-84481a4b",[[1,"utrecht-form-field-textbox",{autoComplete:[513,"autocomplete"],disabled:[516],invalid:[516],min:[1],max:[1],pattern:[1],placeholder:[1],readOnly:[516,"readonly"],required:[516],type:[513],value:[1]}]]],["p-f2792d17",[[1,"utrecht-form-toggle",{disabled:[516],checked:[516]}]]],["p-19bb7aea",[[1,"utrecht-heading",{level:[2]}]]],["p-6922d6e5",[[1,"utrecht-heading-1"]]],["p-e1ab41a2",[[1,"utrecht-heading-4"]]],["p-e094341c",[[1,"utrecht-heading-5"]]],["p-bedc995b",[[1,"utrecht-heading-6"]]],["p-c7b74ae3",[[4,"utrecht-html-content"]]],["p-2be490d7",[[1,"utrecht-icon-afval"]]],["p-e8f6c846",[[1,"utrecht-icon-arrow"]]],["p-ea6f5e30",[[1,"utrecht-icon-cross"]]],["p-99d68ed5",[[1,"utrecht-icon-error"]]],["p-180ccec7",[[1,"utrecht-icon-facebook"]]],["p-6aec0d5e",[[1,"utrecht-icon-filter"]]],["p-7468ce00",[[1,"utrecht-icon-information"]]],["p-12d3555b",[[1,"utrecht-icon-instagram"]]],["p-5eec66c0",[[1,"utrecht-icon-linkedin"]]],["p-d21af965",[[1,"utrecht-icon-list"]]],["p-d24e72f1",[[1,"utrecht-icon-loupe"]]],["p-9a7712ee",[[1,"utrecht-icon-melding"]]],["p-0e908b3b",[[1,"utrecht-icon-paspoort"]]],["p-72670926",[[1,"utrecht-icon-rijbewijs"]]],["p-60321853",[[1,"utrecht-icon-toeslag"]]],["p-c314b6c1",[[1,"utrecht-icon-trouwen"]]],["p-45db7b13",[[1,"utrecht-icon-twitter"]]],["p-5f114e24",[[1,"utrecht-icon-verhuizen"]]],["p-b3aa468d",[[1,"utrecht-icon-warning"]]],["p-f1f0a2c6",[[1,"utrecht-icon-whatsapp"]]],["p-8856bd84",[[1,"utrecht-icon-zoomin"]]],["p-673512bf",[[1,"utrecht-icon-zoomout"]]],["p-a62dbf0b",[[1,"utrecht-logo"]]],["p-e8d0b7bf",[[1,"utrecht-page"]]],["p-1b369d6f",[[1,"utrecht-page-content"]]],["p-616d4fab",[[1,"utrecht-page-footer"]]],["p-f47ed55e",[[1,"utrecht-page-header"]]],["p-c22f500b",[[1,"utrecht-pagination",{links:[1],next:[1],prev:[1],currentIndex:[2,"current-index"]}]]],["p-6a07112a",[[1,"utrecht-separator"]]],["p-9fe8bec6",[[1,"utrecht-sidenav",{json:[1]}]]],["p-19697551",[[1,"utrecht-textbox",{autoComplete:[513,"autocomplete"],disabled:[516],invalid:[516],min:[1],max:[1],pattern:[1],placeholder:[1],readOnly:[516,"readonly"],required:[516],type:[513],value:[1]}]]],["p-3672cbd0",[[1,"utrecht-icon-checkmark"]]],["p-6f46ab84",[[1,"utrecht-heading-2"],[1,"utrecht-heading-3"],[1,"utrecht-paragraph",{lead:[4]}]]],["p-fb80f09f",[[1,"utrecht-button",{busy:[4],disabled:[4],type:[1]}],[1,"utrecht-digid-logo"]]]],e)));
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.0-alpha.
|
|
2
|
+
"version": "1.0.0-alpha.170",
|
|
3
3
|
"author": "Community for NL Design System",
|
|
4
4
|
"description": "Stencil component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"watch:stencil": "chokidar --follow-symlinks --initial --command \"npm run build:stencil\" \"../../components/**/*.(js|jsx|ts|tsx)\"",
|
|
56
56
|
"generate": "stencil generate"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "b4437bcb88fae53e7740a6e2146eaab53eba9d9a"
|
|
59
59
|
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license EUPL-1.2
|
|
3
|
-
* Copyright (c) 2021 Gemeente Utrecht
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import clsx from 'clsx';
|
|
7
|
-
|
|
8
|
-
export const SideNav = ({ items }) => `<nav class="utrecht-sidenav">
|
|
9
|
-
<ul class="utrecht-sidenav__list">${items
|
|
10
|
-
.map(
|
|
11
|
-
({ href, title, current, focus, children, sibling, haschildren }) => `<li class="${clsx(
|
|
12
|
-
'utrecht-sidenav__item',
|
|
13
|
-
sibling && 'utrecht-sidenav__item--sibling',
|
|
14
|
-
haschildren && 'utrecht-sidenav__item--has-children',
|
|
15
|
-
)}">
|
|
16
|
-
<a class="${clsx(
|
|
17
|
-
'utrecht-sidenav__link',
|
|
18
|
-
current && 'utrecht-sidenav__link--current',
|
|
19
|
-
focus && 'utrecht-sidenav__link--focus',
|
|
20
|
-
sibling && 'utrecht-sidenav__link--sibling',
|
|
21
|
-
haschildren && 'utrecht-sidenav__link--has-children',
|
|
22
|
-
)}" href="${href}">${title}</a><span></span>
|
|
23
|
-
${
|
|
24
|
-
children
|
|
25
|
-
? `<ul class="utrecht-sidenav__list utrecht-sidenav__list--child">${children
|
|
26
|
-
.map(
|
|
27
|
-
({ href, title, current, focus, focusVisible }) =>
|
|
28
|
-
`<li class="utrecht-sidenav__item utrecht-sidenav__item--child"><a class="${clsx(
|
|
29
|
-
'utrecht-sidenav__link utrecht-sidenav__link--child',
|
|
30
|
-
current && 'utrecht-sidenav__link--current utrecht-sidenav__link--child--current',
|
|
31
|
-
focus && 'utrecht-sidenav__link--focus',
|
|
32
|
-
focusVisible && 'utrecht-sidenav__link--focus-visible',
|
|
33
|
-
)}" href="${href}">${title}</a></li>`,
|
|
34
|
-
)
|
|
35
|
-
.join('')}
|
|
36
|
-
</ul><span></span>`
|
|
37
|
-
: ''
|
|
38
|
-
}
|
|
39
|
-
</li>`,
|
|
40
|
-
)
|
|
41
|
-
.join('')}
|
|
42
|
-
</ul>
|
|
43
|
-
</nav>
|
|
44
|
-
`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-a41d30a7.js";import{c as i}from"./p-4070c1e5.js";let r=class{constructor(t){e(this,t)}render(){const e=JSON.parse(this.json);return t("nav",{class:"utrecht-sidenav"},t("ul",{class:"utrecht-sidenav__list"},e.map((({href:e,title:r,current:n,focus:a,children:c,sibling:l,haschildren:s})=>t("li",{key:e,class:i("utrecht-sidenav__item",l&&"utrecht-sidenav__item--sibling",s&&"utrecht-sidenav__item--has-children")},t("a",{class:i("utrecht-sidenav__link",n&&"utrecht-sidenav__link--current",a&&"utrecht-sidenav__link--focus",l&&"utrecht-sidenav__link--sibling",s&&"utrecht-sidenav__link--has-children"),href:e},r),t("span",null),c?t("ul",{class:"utrecht-sidenav__list utrecht-sidenav__list--child"},c.map((({href:e,title:r,current:n,focus:a})=>t("li",{key:e,class:"utrecht-sidenav__item utrecht-sidenav__item--child"},t("a",{class:i("utrecht-sidenav__link utrecht-sidenav__link--child",n&&"utrecht-sidenav__link--current utrecht-sidenav__link--child--current",a&&"utrecht-sidenav__link--focus"),href:e},r))))):"")))))}};r.style='.utrecht-navhtml{font-family:var(--utrecht-font-family-sans-serif)}.utrecht-sidenav{border-block-end:1px solid var(--utrecht-color-grey-80);border-block-start:1px solid var(--utrecht-color-grey-80);margin-block-end:0;margin-block-start:0;padding-block-end:0;padding-block-start:0;width:13rem}.utrecht-sidenav__list{margin-block-end:0;margin-block-start:0.2rem;padding-block-end:0;padding-block-start:0;padding-inline-start:0}.utrecht-sidenav__list ul{margin-block-end:0;padding-block-end:0;padding-block-start:0;padding-inline-start:1.2rem}.utrecht-sidenav__item,.utrecht-sidenav__sibling__item{list-style:none;margin-inline-start:0;position:relative}.utrecht-sidenav__item:last-child{border-block-end:none}.utrecht-sidenav__item span:not(.utrecht-sidenav__item:last-child span,.utrecht-sidenav__item--has-children span:first-of-type){border-block-end:1px solid var(--utrecht-color-grey-80);display:block;margin-inline-start:var(--utrecht-space-inline-lg)}.utrecht-sidenav__item .utrecht-sidenav__link--has-children{padding-block-end:0}.utrecht-sidenav__child__item{list-style:none}.utrecht-sidenav__link,.utrecht-sidenav__link--sibling{color:var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));display:block;margin-inline-start:0;padding-block-end:var(--utrecht-space-block-xs);padding-block-start:var(--utrecht-space-block-xs);padding-inline-end:var(--utrecht-space-inline-3xs);padding-inline-start:var(--utrecht-space-inline-xl);text-decoration:none}.utrecht-sidenav__link--child,.utrecht-sidenav__link--child--current{color:var(--utrecht-sidenav-link-color, var(--utrecht-link-color, blue));display:block;margin-block-end:0;margin-block-start:0;padding-block-end:var(--utrecht-space-block-2xs);padding-block-start:var(--utrecht-space-block-2xs);padding-inline-end:var(--utrecht-space-inline-3xs);padding-inline-start:var(--utrecht-space-inline-xl);text-decoration:none}.utrecht-sidenav__link::before,.utrecht-sidenav__link--sibling::before{background-color:var(--utrecht-sidenav-item-marker-color);left:26px}.utrecht-sidenav__link--current::before{background-color:var(--utrecht-sidenav-link-hover-color);left:27px}.utrecht-sidenav__link::before,.utrecht-sidenav__link--sibling::before,.utrecht-sidenav__item:last-child .utrecht-sidenav__link--current::before{border-radius:100%;box-shadow:0 0 2px 2px #fff;content:"";height:8px;overflow:hidden;position:absolute;top:20px;transform:translateY(-50%) translateX(-2.5ch);width:8px;z-index:10}.utrecht-sidenav__link:hover::before,.utrecht-sidenav__link--sibling:hover::before{background-color:var(--utrecht-sidenav-link-hover-color)}.utrecht-sidenav__item a:hover{color:var(--utrecht-sidenav-link-hover-color, var(--utrecht-link-hover-color, red));text-decoration:underline}.utrecht-sidenav__item--current{color:var(--utrecht-sidenav-item-hover-color, var(--utrecht-link-hover-color, red))}.utrecht-sidenav__link::after,.utrecht-sidenav__item:last-child .utrecht-sidenav__link::after{background:var(--utrecht-sidenav-item-marker-color);bottom:0;content:"";display:block;left:3px;overflow:hidden;position:absolute;top:-22px;width:3px;z-index:5}.utrecht-sidenav__item:last-child .utrecht-sidenav__link::after,.utrecht-sidenav__link--current::after,.utrecht-sidenav__item--has-children a::after{height:40px;min-height:38px}.utrecht-sidenav__item:first-child .utrecht-sidenav__link::after{content:"";display:none}.utrecht-sidenav__link--current,.utrecht-sidenav__link--child--current{font-weight:var(--utrecht-typography-weight-scale-bold-font-weight)}.utrecht-sidenav__list--child{margin-block-end:0;margin-block-start:0;padding-block-end:0;padding-block-start:0;padding-inline-end:0;padding-inline-start:1.4rem}.utrecht-sidenav__item--child{border:none;list-style:none;position:relative}.utrecht-sidenav__item--child:last-child{border:none}.utrecht-sidenav__link--child::before,.utrecht-sidenav__link--child--current::before{background-color:transparent;border:2px solid var(--utrecht-sidenav-link-color);border-radius:100%;content:"";height:4px;left:1.2rem;overflow:hidden;position:absolute;top:16px;transform:translateY(-50%) translateX(-19.5px);width:4px;z-index:10}.utrecht-sidenav__link--child--current::before{background-color:var(--utrecht-sidenav-link-hover-color)}.utrecht-sidenav__link--child:hover::before{background-color:var(--utrecht-sidenav-link-hover-color);border:2px solid var(--utrecht-sidenav-link-hover-color)}.utrecht-sidenav__item--child:first-child .utrecht-sidenav__link--child--current::after,.utrecht-sidenav__link--child::after,.utrecht-sidenav__item .utrecht-sidenav__item--child .utrecht-sidenav__link--child::after,.utrecht-sidenav__item .utrecht-sidenav__link--sibling::after,.utrecht-sidenav__item--sibling:last-child .utrecht-sidenav__link--sibling::after{display:none}.utrecht-sidenav__link--focus-visible,.utrecht-sidenav__link:focus{box-shadow:0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);outline-color:var(--utrecht-focus-outline-color, transparent);outline-offset:0;outline-style:var(--utrecht-focus-outline-style, solid);outline-width:var(--utrecht-focus-outline-width, 0)}.utrecht-sidenav__link:focus:not(:focus-visible){box-shadow:none;outline-style:none}';export{r as utrecht_sidenav}
|