@openeuropa/bcl-theme-default 1.10.7 → 1.10.9
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/css/color-scheme.min.css +1 -1
- package/css/color-scheme.min.css.map +1 -1
- package/css/oe-bcl-ckeditor5.min.css +1 -1
- package/css/oe-bcl-ckeditor5.min.css.map +1 -1
- package/css/oe-bcl-default.css +315 -174
- package/css/oe-bcl-default.css.map +1 -1
- package/css/oe-bcl-default.min.css +1 -1
- package/css/oe-bcl-default.min.css.map +1 -1
- package/icons/bcl-default-icons.svg +1 -1
- package/icons/bootstrap-icons.svg +1 -1
- package/js/oe-bcl-default.bundle.js +86 -14
- package/js/oe-bcl-default.bundle.js.map +1 -1
- package/js/oe-bcl-default.bundle.min.js +1 -1
- package/js/oe-bcl-default.bundle.min.js.map +1 -1
- package/js/oe-bcl-default.esm.js +85 -14
- package/js/oe-bcl-default.esm.js.map +1 -1
- package/js/oe-bcl-default.esm.min.js +1 -1
- package/js/oe-bcl-default.esm.min.js.map +1 -1
- package/js/oe-bcl-default.umd.js +86 -14
- package/js/oe-bcl-default.umd.js.map +1 -1
- package/js/oe-bcl-default.umd.min.js +1 -1
- package/js/oe-bcl-default.umd.min.js.map +1 -1
- package/package.json +7 -7
- package/src/icons/icons.js +2 -0
- package/src/js/accordion-toggle/accordion-toggle.js +24 -9
- package/src/js/header/header.js +91 -0
- package/src/js/index.esm.js +2 -0
- package/src/js/index.umd.js +2 -0
- package/src/scss/_header.scss +27 -82
- package/src/scss/_input.scss +72 -31
- package/src/scss/_mega-menu.scss +50 -61
- package/src/scss/_multiselect-2.scss +33 -11
- package/src/scss/_pagination-v2.scss +86 -0
- package/src/scss/_pagination.scss +1 -0
- package/src/scss/_search-form.scss +4 -0
- package/src/scss/base/_mixins.scss +21 -0
- package/src/scss/base/_utilities.scss +8 -0
- package/src/scss/base/_variables.scss +3 -0
- package/src/scss/oe-bcl-default.scss +1 -0
- package/templates/bcl-base-templates/listing-page.html.twig +17 -19
- package/templates/bcl-contact-form/contact-form.html.twig +3 -3
- package/templates/bcl-content-banner/content-banner.html.twig +3 -0
- package/templates/bcl-dropdown/dropdown.html.twig +12 -7
- package/templates/bcl-event/event.html.twig +5 -5
- package/templates/bcl-file/file.html.twig +1 -1
- package/templates/bcl-glossary/glossary-detail.html.twig +4 -5
- package/templates/bcl-glossary/glossary-listing.html.twig +5 -5
- package/templates/bcl-group/group-landing.html.twig +5 -5
- package/templates/bcl-group/group.html.twig +3 -3
- package/templates/bcl-header/header.html.twig +43 -50
- package/templates/bcl-landing-page/landing-page.html.twig +5 -8
- package/templates/bcl-language-list/language-list-modal.html.twig +58 -5
- package/templates/bcl-links-block/links-block.html.twig +1 -1
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +10 -7
- package/templates/bcl-modal/modal.html.twig +20 -7
- package/templates/bcl-navigation/navigation.html.twig +8 -0
- package/templates/bcl-page/page.html.twig +5 -5
- package/templates/bcl-pagination-v2/pagination-item.html.twig +90 -0
- package/templates/bcl-pagination-v2/pagination.html.twig +213 -0
- package/templates/bcl-person/person.html.twig +5 -5
- package/templates/bcl-project/project.html.twig +7 -7
- package/templates/bcl-project-status/project-contributions.html.twig +1 -1
- package/templates/bcl-search/search.html.twig +3 -3
- package/templates/bcl-subscription/subscription.html.twig +5 -5
- package/templates/{bcl-toast → bcl-toasts}/toasts.html.twig +17 -8
- package/templates/bcl-user/user-terms.html.twig +3 -3
- package/templates/bcl-user/user.html.twig +3 -3
package/src/scss/_mega-menu.scss
CHANGED
|
@@ -275,34 +275,6 @@ ul.bcl-mega-menu__items {
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
|
|
279
|
-
// The see-all link is at the bottom of the list.
|
|
280
|
-
&:has(> a.see-all-button) {
|
|
281
|
-
position: sticky;
|
|
282
|
-
inset-block-start: 100%;
|
|
283
|
-
}
|
|
284
|
-
> a.see-all-button {
|
|
285
|
-
border-top: none;
|
|
286
|
-
&:after {
|
|
287
|
-
background: $neutral-border-color;
|
|
288
|
-
content: "";
|
|
289
|
-
block-size: 1px;
|
|
290
|
-
inset-inline-start: 0;
|
|
291
|
-
position: absolute;
|
|
292
|
-
inset-block-start: 0;
|
|
293
|
-
// Replicate horizontal padding of parent element.
|
|
294
|
-
inset-inline: $mm-gutter-x;
|
|
295
|
-
}
|
|
296
|
-
> svg {
|
|
297
|
-
inline-size: 0.8rem;
|
|
298
|
-
}
|
|
299
|
-
> span {
|
|
300
|
-
text-overflow: ellipsis;
|
|
301
|
-
overflow: hidden;
|
|
302
|
-
display: block;
|
|
303
|
-
white-space: nowrap;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
278
|
}
|
|
307
279
|
}
|
|
308
280
|
|
|
@@ -314,6 +286,21 @@ ul.bcl-mega-menu__items {
|
|
|
314
286
|
// Avoid a space between the parent menu and the submenu.
|
|
315
287
|
@include padding-right(0);
|
|
316
288
|
}
|
|
289
|
+
@include media-breakpoint-down(lg) {
|
|
290
|
+
> .bcl-mega-menu__items {
|
|
291
|
+
&:has(.bcl-mega-menu__submenu:not([hidden])) {
|
|
292
|
+
> .__leaf,
|
|
293
|
+
> .__parent {
|
|
294
|
+
display: none;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
> .__parent {
|
|
298
|
+
&:has(.bcl-mega-menu__submenu:not([hidden])) {
|
|
299
|
+
display: block;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
317
304
|
}
|
|
318
305
|
|
|
319
306
|
// Nested submenu.
|
|
@@ -361,51 +348,53 @@ ul.bcl-mega-menu__items {
|
|
|
361
348
|
> .__header {
|
|
362
349
|
// The title only shows in mobile.
|
|
363
350
|
> .__label {
|
|
364
|
-
@include media-breakpoint-up(lg) {
|
|
365
|
-
display: none;
|
|
366
|
-
}
|
|
367
351
|
@include mm-item-padding(map-get($spacers, 3));
|
|
368
352
|
margin: 0;
|
|
369
353
|
color: $dark;
|
|
370
354
|
background: $primary-bg-subtle;
|
|
371
355
|
display: block;
|
|
372
356
|
font-size: 20px;
|
|
357
|
+
@include media-breakpoint-up(lg) {
|
|
358
|
+
display: none;
|
|
359
|
+
}
|
|
373
360
|
}
|
|
374
361
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
@include media-breakpoint-up(lg) {
|
|
382
|
-
background: $primary-bg-subtle;
|
|
383
|
-
}
|
|
384
|
-
// Hide other parts of the mega menu in mobile, when a sub-submenu is open.
|
|
385
|
-
@include media-breakpoint-down(lg) {
|
|
386
|
-
.bcl-mega-menu__container:has(&.active) {
|
|
387
|
-
.bcl-mega-menu__info,
|
|
388
|
-
.bcl-mega-menu__first-submenu {
|
|
389
|
-
display: none;
|
|
390
|
-
}
|
|
362
|
+
@include media-breakpoint-up(lg) {
|
|
363
|
+
> .bcl-mega-menu__items {
|
|
364
|
+
flex: 1 1 0;
|
|
365
|
+
overflow-y: auto;
|
|
366
|
+
> li > :is(span, a, button) {
|
|
367
|
+
@include mm-item-padding($px: map-get($spacers, "4-25"));
|
|
391
368
|
}
|
|
392
369
|
}
|
|
393
|
-
|
|
394
|
-
|
|
370
|
+
}
|
|
371
|
+
> .__see_all {
|
|
372
|
+
border-top: 1px solid $neutral-border-color;
|
|
373
|
+
@include media-breakpoint-up(lg) {
|
|
374
|
+
border-top: 1px solid $primary-border-subtle;
|
|
375
|
+
margin: 0 map-get($spacers, "4-25");
|
|
376
|
+
}
|
|
377
|
+
> .see-all-button {
|
|
378
|
+
@include mm-item-padding();
|
|
379
|
+
// Use flex for icon spacing.
|
|
380
|
+
display: flex;
|
|
381
|
+
align-items: center;
|
|
382
|
+
color: $link-color;
|
|
395
383
|
@include media-breakpoint-up(lg) {
|
|
396
|
-
|
|
384
|
+
padding: $mm-gutter-y map-get($spacers, "4-25");
|
|
385
|
+
margin: 0 -1.75rem;
|
|
397
386
|
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
387
|
+
&:hover {
|
|
388
|
+
background: $primary-bg-subtle;
|
|
389
|
+
}
|
|
390
|
+
> svg {
|
|
391
|
+
flex-shrink: 0;
|
|
392
|
+
}
|
|
393
|
+
> span {
|
|
394
|
+
text-overflow: ellipsis;
|
|
395
|
+
overflow: hidden;
|
|
396
|
+
display: block;
|
|
397
|
+
white-space: nowrap;
|
|
409
398
|
}
|
|
410
399
|
}
|
|
411
400
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
--ss-font-color: #4d4d4d;
|
|
12
12
|
--ss-font-placeholder-color: #212529;
|
|
13
13
|
--ss-disabled-color: #dcdee2;
|
|
14
|
-
--ss-border-color: #
|
|
14
|
+
--ss-border-color: #6c757d;
|
|
15
15
|
--ss-highlight-color: #fffb8c;
|
|
16
16
|
--ss-success-color: #00b755;
|
|
17
17
|
--ss-error-color: #dc3545;
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
overflow: hidden;
|
|
78
78
|
min-height: 38px;
|
|
79
79
|
|
|
80
|
-
&:focus {
|
|
81
|
-
|
|
80
|
+
&:focus-visible {
|
|
81
|
+
@include form-focus-ring();
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&.form-select {
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
&:focus {
|
|
333
|
-
|
|
333
|
+
@include form-focus-ring();
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
|
|
@@ -534,19 +534,41 @@
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
.ss-main.multi-select.is-invalid,
|
|
538
|
-
.was-validated .multi-select:invalid + .ss-main.multi-select {
|
|
537
|
+
.form-select.ss-main.multi-select.is-invalid,
|
|
538
|
+
.was-validated .multi-select:invalid + .form-select.ss-main.multi-select {
|
|
539
539
|
border-color: $danger;
|
|
540
|
-
background-position: right
|
|
540
|
+
background-position: right 2.5rem center;
|
|
541
541
|
background-repeat: no-repeat;
|
|
542
|
+
padding-right: 0.5rem;
|
|
542
543
|
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
|
543
|
-
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='
|
|
544
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23a51f2c' d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4m.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2'/%3E%3C/svg%3E");
|
|
545
|
+
&:focus-visible {
|
|
546
|
+
border-color: $gray-600;
|
|
547
|
+
outline-color: $danger;
|
|
548
|
+
}
|
|
544
549
|
}
|
|
545
|
-
.ss-main.multi-select.is-valid,
|
|
546
|
-
.was-validated .multi-select:valid + .ss-main.multi-select {
|
|
550
|
+
.form-select.ss-main.multi-select.is-valid,
|
|
551
|
+
.was-validated .multi-select:valid + .form-select.ss-main.multi-select {
|
|
547
552
|
border-color: $success;
|
|
548
|
-
background-position: right
|
|
553
|
+
background-position: right 2.5rem center;
|
|
549
554
|
background-repeat: no-repeat;
|
|
555
|
+
padding-right: 0.5rem;
|
|
550
556
|
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
|
551
557
|
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM12.0303 4.96967C11.7374 4.67678 11.2626 4.67678 10.9697 4.96967C10.9626 4.97674 10.9559 4.98424 10.9498 4.9921L7.4774 9.41674L5.38388 7.32322C5.09098 7.03033 4.61611 7.03033 4.32322 7.32322C4.03032 7.61612 4.03032 8.09099 4.32322 8.38388L6.96966 11.0303C7.26256 11.3232 7.73743 11.3232 8.03032 11.0303C8.03685 11.0238 8.043 11.0169 8.04876 11.0097L12.041 6.01947C12.3232 5.72582 12.3196 5.25897 12.0303 4.96967Z' fill='%2328A745'/%3E%3C/svg%3E%0A");
|
|
558
|
+
&:focus-visible {
|
|
559
|
+
border-color: $gray-600;
|
|
560
|
+
outline-color: $success;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.ss-sr-only {
|
|
565
|
+
position: absolute;
|
|
566
|
+
width: 1px;
|
|
567
|
+
height: 1px;
|
|
568
|
+
margin: -1px;
|
|
569
|
+
padding: 0;
|
|
570
|
+
border: 0;
|
|
571
|
+
clip: rect(0, 0, 0, 0);
|
|
572
|
+
clip-path: inset(50%);
|
|
573
|
+
overflow: hidden;
|
|
552
574
|
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// Pagination V2 overrides scoped to `.pagination-v2`.
|
|
2
|
+
.pagination-v2 {
|
|
3
|
+
// Keep the navigation landmark borderless to match Bootstrap defaults.
|
|
4
|
+
&.pager .pagination {
|
|
5
|
+
--bs-border-color: transparent;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.pagination {
|
|
9
|
+
// Minimal tweaks so buttons keep the square footprint used in the design
|
|
10
|
+
// while relying on Bootstrap’s native colour tokens.
|
|
11
|
+
--bs-pagination-border-color: transparent;
|
|
12
|
+
--bs-pagination-disabled-border-color: transparent;
|
|
13
|
+
--bs-pagination-item-size: 2.75rem;
|
|
14
|
+
|
|
15
|
+
--bs-pagination-hover-bg: #{$primary};
|
|
16
|
+
--bs-pagination-hover-color: #{$white};
|
|
17
|
+
|
|
18
|
+
@extend .pt-4;
|
|
19
|
+
border-top: 1px solid $pagination-border-color;
|
|
20
|
+
|
|
21
|
+
.page-item {
|
|
22
|
+
.page-link {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
min-width: var(--bs-pagination-item-size);
|
|
27
|
+
min-height: var(--bs-pagination-item-size);
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
|
|
30
|
+
// When the current page renders as a `div`, keep the hover state neutral.
|
|
31
|
+
&:is(div):hover {
|
|
32
|
+
background-color: transparent;
|
|
33
|
+
border-color: transparent;
|
|
34
|
+
color: $primary;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&.active {
|
|
38
|
+
.page-link {
|
|
39
|
+
cursor: default;
|
|
40
|
+
--bs-pagination-active-bg: #{$primary};
|
|
41
|
+
--bs-pagination-active-color: #{$white};
|
|
42
|
+
|
|
43
|
+
&:active,
|
|
44
|
+
&:hover {
|
|
45
|
+
--bs-pagination-active-bg: #{$primary};
|
|
46
|
+
color: var(--bs-pagination-active-color);
|
|
47
|
+
background-color: var(--bs-pagination-active-bg);
|
|
48
|
+
@include media-breakpoint-down(md) {
|
|
49
|
+
--bs-pagination-active-bg: $white;
|
|
50
|
+
--bs-pagination-active-color: $dark;
|
|
51
|
+
--bs-pagination-active-border-color: transparent;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
@include media-breakpoint-down(md) {
|
|
55
|
+
--bs-pagination-active-bg: $white;
|
|
56
|
+
--bs-pagination-active-color: $dark;
|
|
57
|
+
--bs-pagination-active-border-color: transparent;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// Glossary variant.
|
|
63
|
+
&.pagination--glossary {
|
|
64
|
+
.page-item {
|
|
65
|
+
margin-right: inherit;
|
|
66
|
+
.page-link {
|
|
67
|
+
@extend .fw-normal;
|
|
68
|
+
border: 1px solid $gray-400;
|
|
69
|
+
padding: map-get($spacers, "1-5") map-get($spacers, "2-5");
|
|
70
|
+
@include focused-item();
|
|
71
|
+
&:hover {
|
|
72
|
+
@extend .text-decoration-none;
|
|
73
|
+
@extend .bg-light;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Outline the group when any pager control is focused for keyboard users. */
|
|
81
|
+
.pager__items:focus-within {
|
|
82
|
+
outline: 2px solid currentColor;
|
|
83
|
+
outline-offset: 2px;
|
|
84
|
+
border-radius: 6px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -39,6 +39,10 @@ $search-spacers: (
|
|
|
39
39
|
padding-right: map-get($search-spacers, "submit-spacer-right");
|
|
40
40
|
border-top-left-radius: 0;
|
|
41
41
|
border-bottom-left-radius: 0;
|
|
42
|
+
&:focus-visible {
|
|
43
|
+
outline-offset: 2px;
|
|
44
|
+
outline-color: $primary;
|
|
45
|
+
}
|
|
42
46
|
}
|
|
43
47
|
.bcl-search-form__group {
|
|
44
48
|
display: flex;
|
|
@@ -11,3 +11,24 @@
|
|
|
11
11
|
height: 0;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
@mixin form-focus-ring(
|
|
16
|
+
$outline-offset: 2px,
|
|
17
|
+
$outline-width: 2px,
|
|
18
|
+
$radius: 4px,
|
|
19
|
+
$outline-color: $primary
|
|
20
|
+
) {
|
|
21
|
+
outline: $outline-width solid $outline-color;
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
border-radius: $radius;
|
|
24
|
+
outline-offset: $outline-offset;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin focused-item($width: 2px, $offset: 2px, $color: $primary) {
|
|
28
|
+
&:focus,
|
|
29
|
+
&:focus-visible {
|
|
30
|
+
box-shadow: none;
|
|
31
|
+
outline: $width solid $color;
|
|
32
|
+
outline-offset: $offset;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -154,6 +154,14 @@ svg {
|
|
|
154
154
|
border-color: $gray-300;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
.border-top-subtle {
|
|
158
|
+
border-top: 1px solid $primary-border-subtle;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.border-bottom-subtle {
|
|
162
|
+
border-bottom: 1px solid $primary-border-subtle;
|
|
163
|
+
}
|
|
164
|
+
|
|
157
165
|
.grid-3-9 {
|
|
158
166
|
grid-template-columns: 25% 75%;
|
|
159
167
|
}
|
|
@@ -98,6 +98,9 @@ $card-start-col-large-size: 255px;
|
|
|
98
98
|
$card-start-col-size: 160px;
|
|
99
99
|
$card-start-col-small-size: 120px;
|
|
100
100
|
|
|
101
|
+
// Pagination
|
|
102
|
+
$pagination-border-color: $gray-400;
|
|
103
|
+
|
|
101
104
|
// Z-index
|
|
102
105
|
// Based on the webtools cookie banner consent, with z-index 100
|
|
103
106
|
$zindex-dropdown: 40;
|
|
@@ -8,20 +8,16 @@
|
|
|
8
8
|
- pagination (object) (default: {})
|
|
9
9
|
- sidebar (object) (default: '')
|
|
10
10
|
#}
|
|
11
|
+
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
|
|
11
12
|
|
|
12
|
-
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
|
|
13
|
-
|
|
14
|
-
{% set _title = title|default('') %}
|
|
15
|
-
{% set _title_tag = title_tag|default('h2') %}
|
|
16
|
-
{% set _title_link = title_link|default({}) %}
|
|
17
|
-
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
18
13
|
{% set _listing = listing|default({}) %}
|
|
19
|
-
{% set _pagination = pagination|default({}) %}
|
|
20
|
-
{% set _sidebar = sidebar|default({}) %}
|
|
21
|
-
|
|
22
|
-
{% set _title_attributes = _title_attributes ?: create_attribute() %}
|
|
23
14
|
|
|
24
|
-
{
|
|
15
|
+
{%- block content_top %}
|
|
16
|
+
{% set _title = title|default('') %}
|
|
17
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
18
|
+
{% set _title_link = title_link|default({}) %}
|
|
19
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
20
|
+
{% set _title_attributes = _title_attributes ?: create_attribute() %}
|
|
25
21
|
{% if filter_button %}
|
|
26
22
|
{% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
|
|
27
23
|
{% endif %}
|
|
@@ -29,7 +25,7 @@
|
|
|
29
25
|
<div class="col-md-6 col-lg-8 align-self-center">
|
|
30
26
|
{% if _title is not empty %}
|
|
31
27
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
32
|
-
title: _title ~ ' (' ~
|
|
28
|
+
title: _title ~ ' (' ~ (_listing.items|length) ~ ')',
|
|
33
29
|
title_tag: _title_tag,
|
|
34
30
|
title_link: _title_link,
|
|
35
31
|
attributes: _title_attributes.addClass(['mb-0', 'text-capitalize']),
|
|
@@ -54,21 +50,23 @@
|
|
|
54
50
|
</div>
|
|
55
51
|
</div>
|
|
56
52
|
<hr class="d-none d-md-block mb-4-75"/>
|
|
57
|
-
{
|
|
53
|
+
{%- endblock -%}
|
|
58
54
|
|
|
59
|
-
{
|
|
55
|
+
{%- block content %}
|
|
60
56
|
{% if _listing is not empty %}
|
|
61
57
|
{% include '@oe-bcl/bcl-listing/listing.html.twig' with _listing only %}
|
|
62
58
|
{% endif %}
|
|
63
|
-
{
|
|
59
|
+
{%- endblock -%}
|
|
64
60
|
|
|
65
|
-
{
|
|
61
|
+
{%- block content_bottom %}
|
|
62
|
+
{% set _pagination = pagination|default({}) %}
|
|
66
63
|
{% if _pagination is not empty %}
|
|
67
64
|
<hr class="d-none d-md-block mt-4-5">
|
|
68
65
|
{% include '@oe-bcl/bcl-pagination/pagination.html.twig' with _pagination only %}
|
|
69
66
|
{% endif %}
|
|
70
|
-
{
|
|
67
|
+
{%- endblock -%}
|
|
71
68
|
|
|
72
|
-
{
|
|
69
|
+
{%- block sidebar %}
|
|
70
|
+
{% set _sidebar = sidebar|default({}) %}
|
|
73
71
|
{% include '@oe-bcl/bcl-base-templates/sidebar-search.html.twig' with _sidebar only %}
|
|
74
|
-
{
|
|
72
|
+
{%- endblock -%}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block content %}
|
|
4
4
|
{% include '@oe-bcl/bcl-form/form.html.twig' with form only %}
|
|
5
|
-
{
|
|
5
|
+
{%- endblock -%}
|
|
@@ -92,6 +92,9 @@
|
|
|
92
92
|
{% if _date is not empty %}
|
|
93
93
|
{% set _left_col_classes = 'bcl-card-start-col' %}
|
|
94
94
|
{% set _right_col_classes = 'col-12 col-md col-xxl-9' %}
|
|
95
|
+
{% if _image is empty %}
|
|
96
|
+
{% set _body_classes = 'pt-4 pt-md-0 px-0 px-md-1-5 pb-0' %}
|
|
97
|
+
{% endif %}
|
|
95
98
|
{% endif %}
|
|
96
99
|
{% if _image is empty and _date is empty %}
|
|
97
100
|
{% set _right_col_classes = 'col-lg-10 col-xl-9 col-xxl-8' %}
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
{% set _alignment = alignment|default('') %}
|
|
43
43
|
{% set _dark = dark ?? false %}
|
|
44
44
|
{% set _remove_wrapper = remove_wrapper ?? false %}
|
|
45
|
+
{% set _inside_navigation = inside_navigation ?? false %}
|
|
45
46
|
{% set _items = items|default([]) %}
|
|
46
47
|
|
|
47
48
|
{% set _class = 'dropdown' %}
|
|
@@ -75,14 +76,18 @@
|
|
|
75
76
|
.setAttribute('id', _id)
|
|
76
77
|
}) %}
|
|
77
78
|
|
|
78
|
-
{% if
|
|
79
|
-
{%
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
{% if not _inside_navigation %}
|
|
80
|
+
{% if _link %}
|
|
81
|
+
{% set _trigger = _trigger|merge({
|
|
82
|
+
attributes: _trigger.attributes.setAttribute('role', 'button')
|
|
83
|
+
}) %}
|
|
84
|
+
{% else %}
|
|
85
|
+
{% set _trigger = _trigger|merge({
|
|
86
|
+
attributes: _trigger.attributes.setAttribute('autocomplete', 'off')
|
|
87
|
+
}) %}
|
|
88
|
+
{% endif %}
|
|
82
89
|
{% else %}
|
|
83
|
-
{% set
|
|
84
|
-
attributes: _trigger.attributes.setAttribute('autocomplete', 'off')
|
|
85
|
-
}) %}
|
|
90
|
+
{% set attributes = attributes.setAttribute('aria-hidden', 'true').setAttribute('role', 'presentation') %}
|
|
86
91
|
{% endif %}
|
|
87
92
|
|
|
88
93
|
{% if not _remove_wrapper %}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block sidebar %}
|
|
4
4
|
{% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
|
|
5
|
-
{
|
|
5
|
+
{%- endblock -%}
|
|
6
6
|
|
|
7
|
-
{
|
|
7
|
+
{%- block content %}
|
|
8
8
|
{% include '@oe-bcl/bcl-description-list/description-list.html.twig' with details_list only %}
|
|
9
9
|
|
|
10
10
|
<h2 id="item-1" class="my-4">Description</h2>
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
<h2 id="item-2" class="my-4">Related documents</h2>
|
|
22
22
|
{% include '@oe-bcl/bcl-file/file.html.twig' with files[0] only %}
|
|
23
23
|
{% include '@oe-bcl/bcl-file/file.html.twig' with files[1] only %}
|
|
24
|
-
{
|
|
24
|
+
{%- endblock -%}
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
{% endif %}
|
|
140
140
|
</div>
|
|
141
141
|
{% set download_attributes = create_attribute()
|
|
142
|
-
.setAttribute('download',
|
|
142
|
+
.setAttribute('download', true)
|
|
143
143
|
.setAttribute('target', '_blank')
|
|
144
144
|
.addClass(['standalone', 'align-self-center', 'd-inline-block', 'mt-1', 'mt-md-0', 'flex-shrink-0']) %}
|
|
145
145
|
{% set _download = _download|merge({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block content %}
|
|
4
4
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
5
5
|
title: 'Description',
|
|
6
6
|
title_tag: 'h2',
|
|
@@ -38,6 +38,5 @@
|
|
|
38
38
|
<div {{ file_classes ? 'class="' ~ file_classes ~ '"' }}>
|
|
39
39
|
{% include '@oe-bcl/bcl-file/file.html.twig' with file only %}
|
|
40
40
|
</div>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
{% endblock %}
|
|
41
|
+
{% endfor %}
|
|
42
|
+
{%- endblock -%}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/listing-page.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/listing-page.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block content_row %}
|
|
4
4
|
{% include '@oe-bcl/bcl-pagination/pagination.html.twig' with glossary only %}
|
|
5
5
|
<div class="col-12">
|
|
6
6
|
<div class="d-md-flex justify-content-end mb-md-4-75 align-items-center border-bottom-md border-top-md border-gray-300 py-3">
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
{% include '@oe-bcl/bcl-select/select.html.twig' with itemsPerPage only %}
|
|
9
9
|
</div>
|
|
10
10
|
</div>
|
|
11
|
-
{
|
|
11
|
+
{%- endblock -%}
|
|
12
12
|
|
|
13
|
-
{
|
|
13
|
+
{%- block content_top %}
|
|
14
14
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
15
15
|
title: 'Starting with "A" (48)',
|
|
16
16
|
title_tag: 'h2',
|
|
17
17
|
} only %}
|
|
18
18
|
|
|
19
|
-
{
|
|
19
|
+
{%- endblock -%}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig"
|
|
1
|
+
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block banner %}
|
|
4
4
|
<div class="container">
|
|
5
5
|
{% if banner is not empty %}
|
|
6
6
|
<div class="mt-4 mt-md-5">
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
</div>
|
|
71
71
|
{% endif %}
|
|
72
72
|
</div>
|
|
73
|
-
{
|
|
73
|
+
{%- endblock -%}
|
|
74
74
|
|
|
75
|
-
{
|
|
75
|
+
{%- block content %}
|
|
76
76
|
{% if recent is not empty and members is not empty %}
|
|
77
77
|
<div class="row mt-3">
|
|
78
78
|
<div class="col-md-8">
|
|
@@ -98,4 +98,4 @@
|
|
|
98
98
|
{% include '@oe-bcl/bcl-listing/listing.html.twig' with contributions.listing only %}
|
|
99
99
|
{% endif %}
|
|
100
100
|
{% endif %}
|
|
101
|
-
{
|
|
101
|
+
{%- endblock -%}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig"
|
|
1
|
+
{% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig" -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block banner %}
|
|
4
4
|
<div class="container mt-4 mt-md-5">
|
|
5
5
|
<div class="col-xxl-11">
|
|
6
6
|
<div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
{% endif %}
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
|
-
{
|
|
27
|
+
{%- endblock -%}
|