@gemeentenijmegen/components-css 0.0.1-alpha.9 → 0.0.1-alpha.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/accordion/index.scss +9 -0
  2. package/action-card/index.scss +37 -0
  3. package/breadcrumb/index.scss +130 -0
  4. package/card/index.scss +152 -0
  5. package/dist/header.css +174 -0
  6. package/dist/index.min.css +148 -2
  7. package/footer/index.scss +116 -0
  8. package/header/_mixin.scss +31 -0
  9. package/header/index.scss +169 -0
  10. package/hero/index.scss +108 -0
  11. package/image/index.scss +17 -0
  12. package/image-text-block/index.scss +48 -0
  13. package/index.scss +23 -0
  14. package/link/index.scss +10 -9
  15. package/link-list/_mixin.scss +8 -1
  16. package/link-list/index.scss +17 -4
  17. package/listbox/index.scss +81 -0
  18. package/mega-menu/index.scss +62 -0
  19. package/menu.scss +5 -0
  20. package/metadata/index.scss +31 -0
  21. package/mobile-menu/_mixin.scss +11 -0
  22. package/mobile-menu/index.scss +177 -0
  23. package/package.json +9 -4
  24. package/pagination/_mixin.scss +41 -0
  25. package/pagination/index.scss +191 -0
  26. package/rollup.config.mjs +26 -0
  27. package/search/index.scss +141 -0
  28. package/search-results/index.scss +56 -0
  29. package/skip-link/index.scss +41 -0
  30. package/spacing/getSpacing.mjs +116 -0
  31. package/spacing/semantic-spacing-matrix.json +156 -0
  32. package/spacing/spacing-matrix.json +1056 -0
  33. package/spacing/src/_mixin.scss +1968 -0
  34. package/spacing/src/_nested.scss +47 -0
  35. package/spacing/src/index.scss +36 -0
  36. package/spacing/src/semantic/_mixin.scss +311 -0
  37. package/spacing/src/semantic/index.scss +17 -0
  38. package/steplist/index.scss +114 -0
  39. package/table/_mixin.scss +97 -0
  40. package/table/index.scss +33 -0
  41. package/table-of-contents/index.scss +21 -0
  42. package/toolbar-button/_mixin.scss +21 -0
  43. package/toolbar-button/index.js +29 -0
  44. package/toolbar-button/index.scss +51 -0
@@ -0,0 +1,47 @@
1
+ // fixes nested issues
2
+ /* stylelint-disable */
3
+ /* prettier-ignore */
4
+
5
+ .nijmegen-table-of-contents {
6
+ .utrecht-heading-4 {
7
+ margin-block-end: 0;
8
+ }
9
+ }
10
+
11
+ .utrecht-page-body--grijs-100 {
12
+ background-color: var(--nijmegen-color-grijs-100);
13
+ }
14
+
15
+ .utrecht-paragraph {
16
+ max-inline-size: 65ch;
17
+ }
18
+
19
+ .utrecht-page-body__content {
20
+ .nijmegen-html {
21
+ p,
22
+ ul,
23
+ ol {
24
+ max-inline-size: 65ch;
25
+ }
26
+
27
+ h2,
28
+ h3,
29
+ h4,
30
+ h5 {
31
+ max-inline-size: 70%;
32
+ @media (width <992px) {
33
+ max-inline-size: 100%;
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+ .nijmegen-topic-block {
40
+ background-color: var(--nijmegen-color-wit);
41
+ box-sizing: border-box;
42
+ height: 100%;
43
+ padding-block-end: 2rem;
44
+ padding-block-start: 2rem;
45
+ padding-inline-end: 1.5rem;
46
+ padding-inline-start: 1.5rem;
47
+ }
@@ -0,0 +1,36 @@
1
+ @import "./mixin";
2
+
3
+ .nijmegen-spacing .utrecht-page-body__content {
4
+ --utrecht-space-around: 1;
5
+ @include spacing-utrecht-heading-1;
6
+ @include spacing-utrecht-heading-2;
7
+ @include spacing-utrecht-heading-3;
8
+ @include spacing-utrecht-heading-4;
9
+ @include spacing-utrecht-heading-5;
10
+ @include spacing-utrecht-heading-6;
11
+ @include spacing-utrecht-accordion;
12
+ @include spacing-utrecht-alert;
13
+ @include spacing-nijmegen-breadcrumb;
14
+ @include spacing-utrecht-button;
15
+ @include spacing-utrecht-action-group;
16
+ @include spacing-utrecht-img;
17
+ @include spacing-nijmegen-hero;
18
+ @include spacing-utrecht-link;
19
+ @include spacing-utrecht-ordered-list;
20
+ @include spacing-nijmegen-pagination;
21
+ @include spacing-utrecht-paragraph;
22
+ @include spacing-utrecht-separator;
23
+ @include spacing-nijmegen-skip-link;
24
+ @include spacing-nijmegen-table;
25
+ @include spacing-utrecht-unordered-list;
26
+ @include spacing-nijmegen-card;
27
+ @include spacing-nijmegen-header;
28
+ @include spacing-nijmegen-link-list;
29
+ @include spacing-nijmegen-metadata;
30
+ @include spacing-nijmegen-search;
31
+ @include spacing-nijmegen-table-of-contents;
32
+ @include spacing-utrecht-page-body;
33
+ @include spacing-nijmegen-html;
34
+ @include spacing-nijmegen-step-list;
35
+ }
36
+ @import "./nested";
@@ -0,0 +1,311 @@
1
+ @mixin spacing-h1 {
2
+ h1:first-child {
3
+ --h1-margin-block-start: 0;
4
+ }
5
+ h1:has(+ h2) {
6
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
7
+ }
8
+ h1:has(+ button) {
9
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
10
+ }
11
+ h1:has(+ p) {
12
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
13
+ }
14
+ h1:has(+ ul) {
15
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
16
+ }
17
+ h1:has(+ .nijmegen-html-linklist) {
18
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
19
+ }
20
+ h1:has(+ a) {
21
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
22
+ }
23
+ }
24
+ @mixin spacing-h2 {
25
+ h2:first-child {
26
+ --h2-margin-block-start: 0;
27
+ }
28
+ h2:has(+ h3) {
29
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
30
+ }
31
+ h2:has(+ button) {
32
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
33
+ }
34
+ h2:has(+ p) {
35
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
36
+ }
37
+ h2:has(+ ul) {
38
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
39
+ }
40
+ h2:has(+ .nijmegen-html-linklist) {
41
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
42
+ }
43
+ h2:has(+ a) {
44
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
45
+ }
46
+ }
47
+ @mixin spacing-h3 {
48
+ h3:first-child {
49
+ --h3-margin-block-start: 0;
50
+ }
51
+ h3:has(+ h4) {
52
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
53
+ }
54
+ h3:has(+ button) {
55
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
56
+ }
57
+ h3:has(+ p) {
58
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
59
+ }
60
+ h3:has(+ ul) {
61
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
62
+ }
63
+ h3:has(+ .nijmegen-html-linklist) {
64
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
65
+ }
66
+ h3:has(+ a) {
67
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
68
+ }
69
+ }
70
+ @mixin spacing-h4 {
71
+ h4:first-child {
72
+ --h4-margin-block-start: 0;
73
+ }
74
+ h4:has(+ h5) {
75
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
76
+ }
77
+ h4:has(+ button) {
78
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
79
+ }
80
+ h4:has(+ p) {
81
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
82
+ }
83
+ h4:has(+ ul) {
84
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
85
+ }
86
+ h4:has(+ .nijmegen-html-linklist) {
87
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
88
+ }
89
+ h4:has(+ a) {
90
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
91
+ }
92
+ }
93
+ @mixin spacing-h5 {
94
+ h5:first-child {
95
+ --h5-margin-block-start: 0;
96
+ }
97
+ h5:has(+ h6) {
98
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
99
+ }
100
+ h5:has(+ button) {
101
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
102
+ }
103
+ h5:has(+ p) {
104
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
105
+ }
106
+ h5:has(+ ul) {
107
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
108
+ }
109
+ h5:has(+ .nijmegen-html-linklist) {
110
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
111
+ }
112
+ h5:has(+ a) {
113
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
114
+ }
115
+ }
116
+ @mixin spacing-h6 {
117
+ h6:first-child {
118
+ --h6-margin-block-start: 0;
119
+ }
120
+ h6:has(+ button) {
121
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
122
+ }
123
+ h6:has(+ p) {
124
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
125
+ }
126
+ h6:has(+ ul) {
127
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
128
+ }
129
+ h6:has(+ .nijmegen-html-linklist) {
130
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
131
+ }
132
+ h6:has(+ a) {
133
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
134
+ }
135
+ }
136
+ @mixin spacing-button {
137
+ button:first-child {
138
+ --button-margin-block-start: 0;
139
+ }
140
+ button:has(+ h2) {
141
+ margin-block-end: var(--utrecht-rich-text-stranger-margin-block-end);
142
+ }
143
+ button:has(+ h3) {
144
+ margin-block-end: var(--utrecht-rich-text-stranger-margin-block-end);
145
+ }
146
+ button:has(+ h4) {
147
+ margin-block-end: var(--utrecht-rich-text-stranger-margin-block-end);
148
+ }
149
+ button:has(+ h5) {
150
+ margin-block-end: var(--utrecht-rich-text-stranger-margin-block-end);
151
+ }
152
+ button:has(+ h6) {
153
+ margin-block-end: var(--utrecht-rich-text-stranger-margin-block-end);
154
+ }
155
+ button:has(+ button) {
156
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
157
+ margin-inline-end: var(--utrecht-rich-text-friend-margin-block-end);
158
+ }
159
+ button:has(+ p) {
160
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
161
+ }
162
+ button:has(+ ul) {
163
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
164
+ }
165
+ button:has(+ .nijmegen-html-linklist) {
166
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
167
+ }
168
+ button:has(+ a) {
169
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
170
+ }
171
+ }
172
+ @mixin spacing-p {
173
+ p:first-child {
174
+ --p-margin-block-start: 0;
175
+ }
176
+ p:has(+ h2) {
177
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
178
+ }
179
+ p:has(+ h3) {
180
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
181
+ }
182
+ p:has(+ h4) {
183
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
184
+ }
185
+ p:has(+ h5) {
186
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
187
+ }
188
+ p:has(+ h6) {
189
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
190
+ }
191
+ p:has(+ button) {
192
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
193
+ }
194
+ p:has(+ p) {
195
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
196
+ }
197
+ p:has(+ ul) {
198
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
199
+ }
200
+ p:has(+ .nijmegen-html-linklist) {
201
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
202
+ }
203
+ p:has(+ a) {
204
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
205
+ }
206
+ }
207
+ @mixin spacing-ul {
208
+ ul:first-child {
209
+ --ul-margin-block-start: 0;
210
+ }
211
+ ul:has(+ h2) {
212
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
213
+ }
214
+ ul:has(+ h3) {
215
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
216
+ }
217
+ ul:has(+ h4) {
218
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
219
+ }
220
+ ul:has(+ h5) {
221
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
222
+ }
223
+ ul:has(+ h6) {
224
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
225
+ }
226
+ ul:has(+ button) {
227
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
228
+ }
229
+ ul:has(+ p) {
230
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
231
+ }
232
+ ul:has(+ ul) {
233
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
234
+ }
235
+ ul:has(+ .nijmegen-html-linklist) {
236
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
237
+ }
238
+ ul:has(+ a) {
239
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
240
+ }
241
+ }
242
+ @mixin spacing-nijmegen-html-linklist {
243
+ nijmegen-html-linklist:first-child {
244
+ --nijmegen-html-linklist-margin-block-start: 0;
245
+ }
246
+ .nijmegen-html-linklist:has(+ h2) {
247
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
248
+ }
249
+ .nijmegen-html-linklist:has(+ h3) {
250
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
251
+ }
252
+ .nijmegen-html-linklist:has(+ h4) {
253
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
254
+ }
255
+ .nijmegen-html-linklist:has(+ h5) {
256
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
257
+ }
258
+ .nijmegen-html-linklist:has(+ h6) {
259
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
260
+ }
261
+ .nijmegen-html-linklist:has(+ button) {
262
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
263
+ }
264
+ .nijmegen-html-linklist:has(+ p) {
265
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
266
+ }
267
+ .nijmegen-html-linklist:has(+ ul) {
268
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
269
+ }
270
+ .nijmegen-html-linklist:has(+ .nijmegen-html-linklist) {
271
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
272
+ }
273
+ .nijmegen-html-linklist:has(+ a) {
274
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
275
+ }
276
+ }
277
+ @mixin spacing-a {
278
+ a:first-child {
279
+ --a-margin-block-start: 0;
280
+ }
281
+ a:has(+ h2) {
282
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
283
+ }
284
+ a:has(+ h3) {
285
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
286
+ }
287
+ a:has(+ h4) {
288
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
289
+ }
290
+ a:has(+ h5) {
291
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
292
+ }
293
+ a:has(+ h6) {
294
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
295
+ }
296
+ a:has(+ button) {
297
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
298
+ }
299
+ a:has(+ p) {
300
+ margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
301
+ }
302
+ a:has(+ ul) {
303
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
304
+ }
305
+ a:has(+ .nijmegen-html-linklist) {
306
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
307
+ }
308
+ a:has(+ a) {
309
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
310
+ }
311
+ }
@@ -0,0 +1,17 @@
1
+ @import "./mixin";
2
+
3
+ .nijmegen-html {
4
+ --utrecht-space-around: 1;
5
+ @include spacing-h1;
6
+ @include spacing-h2;
7
+ @include spacing-h3;
8
+ @include spacing-h4;
9
+ @include spacing-h5;
10
+ @include spacing-h6;
11
+ @include spacing-button;
12
+ @include spacing-p;
13
+ @include spacing-ul;
14
+ @include spacing-.nijmegen-html-linklist;
15
+ @include spacing-a;
16
+ }
17
+ @import "./nested";
@@ -0,0 +1,114 @@
1
+ @import "~@utrecht/unordered-list-css/src/mixin";
2
+
3
+ .nijmegen-step-list {
4
+ @include utrecht-unordered-list;
5
+
6
+ list-style: none;
7
+ margin-block-end: var(--nijmegen-step-list-margin-block-end);
8
+ padding-inline-start: 0;
9
+ }
10
+
11
+ .nijmegen-step-list__item {
12
+ position: relative;
13
+
14
+ &::after {
15
+ background-color: var(--nijmegen-step-list-connector-border-color);
16
+ content: "";
17
+ height: 100%; /* stylelint-disable-line property-disallowed-list */
18
+ inset-block-start: 0;
19
+ inset-inline-start: var(--nijmegen-step-list-connector-padding-inline-start);
20
+ position: absolute;
21
+ width: var(--nijmegen-step-list-connector-width, 2px); /* stylelint-disable-line property-disallowed-list */
22
+ z-index: -1;
23
+ }
24
+
25
+ &:not(:first-child) {
26
+ padding-block-start: var(--nijmegen-step-list-step-padding-block-start);
27
+ }
28
+
29
+ &:last-child {
30
+ &::after {
31
+ /* stylelint-disable-next-line property-disallowed-list */
32
+ height: var(--nijmegen-step-list-step-padding-block-start);
33
+ }
34
+ }
35
+ }
36
+
37
+ ol.nijmegen-step-list {
38
+ counter-reset: nijmegen-counter;
39
+
40
+ .nijmegen-step-list__item {
41
+ counter-increment: nijmegen-counter;
42
+
43
+ &::before {
44
+ align-items: center;
45
+ background-color: var(--nijmegen-step-list-connector-border-color, #282828);
46
+ border-radius: var(--nijmegen-step-list-step-marker-border-radius);
47
+ color: var(--nijmegen-step-list-step-marker-color, white);
48
+ content: counter(nijmegen-counter);
49
+ display: flex;
50
+ font-family: var(--nijmegen-step-list-step-marker-font-family);
51
+ font-size: var(--nijmegen-step-list-step-marker-font-size);
52
+ font-weight: var(--nijmegen-step-list-step-marker-font-weight);
53
+ height: var(--nijmegen-step-list-step-marker-size); /* stylelint-disable-line property-disallowed-list */
54
+ justify-content: space-around;
55
+ line-height: var(--nijmegen-step-list-step-marker-line-height);
56
+ position: absolute;
57
+ width: var(--nijmegen-step-list-step-marker-size); /* stylelint-disable-line property-disallowed-list */
58
+ }
59
+ }
60
+ }
61
+
62
+ ul.nijmegen-step-list {
63
+ .nijmegen-step-list__item {
64
+ &::before {
65
+ background-color: var(--nijmegen-step-list-step-marker-color);
66
+ border: 2px solid #282828;
67
+ border-color: var(--nijmegen-step-list-connector-border-color);
68
+ border-radius: var(--nijmegen-step-list-step-marker-border-radius);
69
+ border-width: var(--nijmegen-step-list-connector-width, 2px);
70
+ content: "";
71
+ /* stylelint-disable-next-line property-disallowed-list */
72
+ height: var(--nijmegen-step-list-step-marker-nested-size, 16px);
73
+ inset-block-start: 49px;
74
+ inset-inline-start: 10px;
75
+ position: absolute;
76
+ /* stylelint-disable-next-line property-disallowed-list */
77
+ width: var(--nijmegen-step-list-step-marker-nested-size, 16px);
78
+ }
79
+
80
+ &:first-child {
81
+ &::before {
82
+ inset-block-start: 10px;
83
+ }
84
+
85
+ &::after {
86
+ height: calc(100% - 10px); /* stylelint-disable-line property-disallowed-list */
87
+ inset-block-start: 10px;
88
+ }
89
+ }
90
+
91
+ &:last-child {
92
+ &::after {
93
+ height: 50px; /* stylelint-disable-line property-disallowed-list */
94
+ }
95
+ }
96
+ }
97
+ }
98
+
99
+ .nijmegen-step-list__header {
100
+ padding-block-start: var(--nijmegen-step-list-step-heading-padding-block-start, 4px);
101
+ padding-inline-start: 56px;
102
+ }
103
+
104
+ .nijmegen-step-list__body {
105
+ display: flex;
106
+ flex-direction: column;
107
+ gap: var(--nijmegen-step-list-step-body-content-row-gap);
108
+ padding-inline-start: 56px;
109
+
110
+ > * {
111
+ align-self: flex-start;
112
+ margin: 0 !important; /* stylelint-disable-line property-disallowed-list */
113
+ }
114
+ }
@@ -0,0 +1,97 @@
1
+ @mixin table-cell {
2
+ text-align: start;
3
+ vertical-align: top;
4
+ }
5
+
6
+ @mixin nijmegen-table {
7
+ border-collapse: collapse;
8
+ border-spacing: 0;
9
+ font-family: var(--nijmegen-table-font-family);
10
+ font-size: var(--nijmegen-table-font-size, 1.125rem);
11
+ line-height: var(--nijmegen-table-line-height, 150%);
12
+ margin-block-end: var(--nijmegen-table-margin-block-end);
13
+ }
14
+
15
+ @mixin nijmegen-table__caption {
16
+ color: var(--nijmegen-table-caption-color);
17
+ font-family: var(--nijmegen-table-caption-font-family);
18
+ font-size: var(--nijmegen-table-caption-font-size);
19
+ font-weight: var(--nijmegen-table-caption-font-weight);
20
+ line-height: var(--nijmegen-table-caption-line-height);
21
+ margin-block-end: var(--nijmegen-table-caption-margin-block-end);
22
+ text-align: start;
23
+ }
24
+
25
+ @mixin nijmegen-table__header {
26
+ background-color: var(--nijmegen-table-header-background-color);
27
+ border-block-end-color: var(--nijmegen-table-header-border-block-end-color);
28
+ border-block-end-width: var(--nijmegen-table-header-border-block-end-width);
29
+ break-inside: avoid;
30
+ color: var(--nijmegen-table-header-color);
31
+ font-weight: var(--nijmegen-table-header-cell-font-weight);
32
+
33
+ @media (width <576px) {
34
+ display: none;
35
+ }
36
+ }
37
+
38
+ @mixin nijmegen-table__row {
39
+ border-block-end-color: var(--nijmegen-table-row-border-block-end-color);
40
+ border-block-end-style: solid;
41
+ border-block-end-width: var(--nijmegen-table-row-large-vw-border-block-end-width);
42
+
43
+ @media (width <576px) {
44
+ border-block-end-width: var(--nijmegen-table-row-border-block-end-width);
45
+ }
46
+ }
47
+
48
+ @mixin nijmegen-table__header-cell {
49
+ @include table-cell;
50
+
51
+ padding-block-end: var(--nijmegen-table-header-cell-large-vw-padding-block-end);
52
+ padding-block-start: var(--nijmegen-table-header-cell-large-vw-padding-block-start);
53
+ padding-inline-end: var(--nijmegen-table-header-cell-large-vw-padding-inline-end);
54
+ padding-inline-start: var(--nijmegen-table-header-cell-large-vw-padding-inline-start);
55
+
56
+ @media (width >=576px) {
57
+ &.nijmegen-table__header-cell-end {
58
+ text-align: end;
59
+ }
60
+ }
61
+ }
62
+
63
+ @mixin nijmegen-table__data-cell {
64
+ @include table-cell;
65
+
66
+ padding-block-end: var(--nijmegen-table-data-cell-large-vw-padding-block-end);
67
+ padding-block-start: var(--nijmegen-table-data-cell-large-vw-padding-block-start);
68
+ padding-inline-end: var(--nijmegen-table-data-cell-large-vw-padding-inline-end);
69
+ padding-inline-start: var(--nijmegen-table-data-cell-large-vw-padding-inline-start);
70
+
71
+ @media (width >=576px) {
72
+ &.nijmegen-table__data-cell-end {
73
+ text-align: end;
74
+ }
75
+ }
76
+
77
+ @media (width <576px) {
78
+ @include nijmegen-table__data-cell-responsive;
79
+ }
80
+ }
81
+
82
+ @mixin nijmegen-table__data-cell-responsive {
83
+ display: block;
84
+ padding-block-end: var(--nijmegen-table-data-cell-padding-block-end);
85
+ padding-block-start: var(--nijmegen-table-header-cell-padding-block-start);
86
+ padding-inline-end: var(--nijmegen-table-data-cell-padding-inline-end);
87
+ padding-inline-start: var(--nijmegen-table-data-cell-padding-inline-start);
88
+
89
+ &::before {
90
+ content: attr(data-label);
91
+ display: block;
92
+ font-weight: var(--nijmegen-table-header-cell-font-weight, 600);
93
+ padding-block-end: calc(
94
+ var(--nijmegen-table-data-cell-padding-block-start) + var(--nijmegen-table-header-cell-padding-block-end)
95
+ );
96
+ }
97
+ }
@@ -0,0 +1,33 @@
1
+ @import "./mixin";
2
+
3
+ .nijmegen-table {
4
+ @include nijmegen-table;
5
+
6
+ &.nijmegen-table-full-width {
7
+ width: 100%; /* stylelint-disable-line property-disallowed-list */
8
+ }
9
+
10
+ @media (width <576px) {
11
+ width: 100%; /* stylelint-disable-line property-disallowed-list */
12
+ }
13
+ }
14
+
15
+ .nijmegen-table__caption {
16
+ @include nijmegen-table__caption;
17
+ }
18
+
19
+ .nijmegen-table__header {
20
+ @include nijmegen-table__header;
21
+ }
22
+
23
+ .nijmegen-table__row {
24
+ @include nijmegen-table__row;
25
+ }
26
+
27
+ .nijmegen-table__header-cell {
28
+ @include nijmegen-table__header-cell;
29
+ }
30
+
31
+ .nijmegen-table__data-cell {
32
+ @include nijmegen-table__data-cell;
33
+ }
@@ -0,0 +1,21 @@
1
+ .nijmegen-table-of-contents {
2
+ background-color: var(--nijmegen-table-of-contents-background-color);
3
+ border-color: var(--nijmegen-table-of-contents-border-color);
4
+ border-inline-start-style: solid;
5
+ border-inline-start-width: var(--nijmegen-table-of-contents-border-inline-start-width);
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: var(--nijmegen-table-of-contents-row-gap);
9
+ margin-block-end: var(--nijmegen-table-of-contents-margin-block-end);
10
+ padding-block-end: var(--nijmegen-table-of-contents-padding-block-end);
11
+ padding-block-start: var(--nijmegen-table-of-contents-padding-block-start);
12
+ padding-inline-end: var(--nijmegen-table-of-contents-padding-inline-end);
13
+ padding-inline-start: var(--nijmegen-table-of-contents-padding-inline-start);
14
+
15
+ @media (width >=576px) {
16
+ padding-block-end: var(--nijmegen-table-of-contents-large-vw-padding-block-end);
17
+ padding-block-start: var(--nijmegen-table-of-contents-large-vw-padding-block-start);
18
+ padding-inline-end: var(--nijmegen-table-of-contents-large-vw-padding-inline-end);
19
+ padding-inline-start: var(--nijmegen-table-of-contents-large-vw-padding-inline-start);
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ @mixin toolbar-button-icon {
2
+ &::before {
3
+ background-color: var(--_utrecht-button-appearance-color);
4
+ content: "";
5
+ display: inline-block;
6
+ flex-shrink: 0;
7
+ /* stylelint-disable-next-line property-disallowed-list */
8
+ height: var(--nijmegen-toobar-button-menu-icon-height, 1.5rem);
9
+ mask-position: center;
10
+ mask-repeat: no-repeat;
11
+ mask-size: 100%;
12
+ width: var(--nijmegen-toobar-button-menu-icon-width, 1.5rem); /* stylelint-disable-line property-disallowed-list */
13
+ }
14
+
15
+ &[aria-expanded="true"]::before {
16
+ mask-image: var(
17
+ --nijmegen-toolbar-button-close-icon-image,
18
+ url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>')
19
+ );
20
+ }
21
+ }