@openeuropa/bcl-theme-default 1.10.7 → 1.10.8

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 (57) hide show
  1. package/css/color-scheme.min.css +1 -1
  2. package/css/color-scheme.min.css.map +1 -1
  3. package/css/oe-bcl-ckeditor5.min.css +1 -1
  4. package/css/oe-bcl-ckeditor5.min.css.map +1 -1
  5. package/css/oe-bcl-default.css +160 -90
  6. package/css/oe-bcl-default.css.map +1 -1
  7. package/css/oe-bcl-default.min.css +1 -1
  8. package/css/oe-bcl-default.min.css.map +1 -1
  9. package/icons/bcl-default-icons.svg +1 -1
  10. package/icons/bootstrap-icons.svg +1 -1
  11. package/js/oe-bcl-default.bundle.js +18 -13
  12. package/js/oe-bcl-default.bundle.js.map +1 -1
  13. package/js/oe-bcl-default.bundle.min.js +1 -1
  14. package/js/oe-bcl-default.bundle.min.js.map +1 -1
  15. package/js/oe-bcl-default.esm.js +18 -13
  16. package/js/oe-bcl-default.esm.js.map +1 -1
  17. package/js/oe-bcl-default.esm.min.js +1 -1
  18. package/js/oe-bcl-default.esm.min.js.map +1 -1
  19. package/js/oe-bcl-default.umd.js +18 -13
  20. package/js/oe-bcl-default.umd.js.map +1 -1
  21. package/js/oe-bcl-default.umd.min.js +1 -1
  22. package/js/oe-bcl-default.umd.min.js.map +1 -1
  23. package/package.json +7 -7
  24. package/src/icons/icons.js +2 -0
  25. package/src/js/accordion-toggle/accordion-toggle.js +24 -9
  26. package/src/scss/_header.scss +24 -80
  27. package/src/scss/_mega-menu.scss +6 -6
  28. package/src/scss/_multiselect-2.scss +12 -0
  29. package/src/scss/_pagination-v2.scss +86 -0
  30. package/src/scss/base/_mixins.scss +9 -0
  31. package/src/scss/base/_utilities.scss +8 -0
  32. package/src/scss/base/_variables.scss +3 -0
  33. package/src/scss/oe-bcl-default.scss +1 -0
  34. package/templates/bcl-base-templates/listing-page.html.twig +17 -19
  35. package/templates/bcl-contact-form/contact-form.html.twig +3 -3
  36. package/templates/bcl-content-banner/content-banner.html.twig +3 -0
  37. package/templates/bcl-dropdown/dropdown.html.twig +12 -7
  38. package/templates/bcl-event/event.html.twig +5 -5
  39. package/templates/bcl-glossary/glossary-detail.html.twig +4 -5
  40. package/templates/bcl-glossary/glossary-listing.html.twig +5 -5
  41. package/templates/bcl-group/group-landing.html.twig +5 -5
  42. package/templates/bcl-group/group.html.twig +3 -3
  43. package/templates/bcl-landing-page/landing-page.html.twig +5 -8
  44. package/templates/bcl-language-list/language-list-modal.html.twig +58 -5
  45. package/templates/bcl-modal/modal.html.twig +16 -4
  46. package/templates/bcl-navigation/navigation.html.twig +8 -0
  47. package/templates/bcl-page/page.html.twig +5 -5
  48. package/templates/bcl-pagination-v2/pagination-item.html.twig +90 -0
  49. package/templates/bcl-pagination-v2/pagination.html.twig +213 -0
  50. package/templates/bcl-person/person.html.twig +5 -5
  51. package/templates/bcl-project/project.html.twig +7 -7
  52. package/templates/bcl-project-status/project-contributions.html.twig +1 -1
  53. package/templates/bcl-search/search.html.twig +3 -3
  54. package/templates/bcl-subscription/subscription.html.twig +5 -5
  55. package/templates/bcl-toast/toasts.html.twig +17 -8
  56. package/templates/bcl-user/user-terms.html.twig +3 -3
  57. package/templates/bcl-user/user.html.twig +3 -3
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-theme-default",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "1.10.7",
5
+ "version": "1.10.8",
6
6
  "description": "OE - BCL theme default",
7
7
  "scripts": {
8
8
  "align-templates": "lerna --scope \"@openeuropa/bcl-twig-templates\" run prepublish",
@@ -22,14 +22,14 @@
22
22
  "@ecl/resources-ec-logo": "3.7.1",
23
23
  "@ecl/resources-eu-logo": "3.7.1",
24
24
  "@ecl/resources-flag-icons": "3.7.1",
25
- "@openeuropa/bcl-bootstrap": "^1.10.7",
26
- "@openeuropa/bcl-builder": "^1.10.7",
27
- "@openeuropa/bcl-twig-templates": "^1.10.7",
25
+ "@openeuropa/bcl-bootstrap": "^1.10.8",
26
+ "@openeuropa/bcl-builder": "^1.10.8",
27
+ "@openeuropa/bcl-twig-templates": "^1.10.8",
28
28
  "@rollup/plugin-replace": "6.0.2",
29
29
  "copyfiles": "2.4.1",
30
- "cross-env": "7.0.3",
30
+ "cross-env": "10.1.0",
31
31
  "flag-icons": "6.9.2",
32
- "glob": "11.0.1",
32
+ "glob": "11.0.3",
33
33
  "npm-run-all": "4.1.5",
34
34
  "slim-select": "1.27.1",
35
35
  "slim-select-2": "github:tibi2303/slim-select#master"
@@ -51,5 +51,5 @@
51
51
  "design-system",
52
52
  "twig"
53
53
  ],
54
- "gitHead": "5f7e5c2fd90eceb81c0ffcf52dcf8e3921c3acae"
54
+ "gitHead": "9c2e64443ae179948cbf748c41d438af7a0f2421"
55
55
  }
@@ -56,6 +56,7 @@ module.exports = [
56
56
  "exclamation-lg.svg",
57
57
  "question-lg.svg",
58
58
  "info-lg.svg",
59
+ "x.svg",
59
60
  "x-lg.svg",
60
61
  "plus-lg.svg",
61
62
  "dash-lg.svg",
@@ -115,6 +116,7 @@ module.exports = [
115
116
  "trash.svg",
116
117
  "trash-fill.svg",
117
118
  "link.svg",
119
+ "list.svg",
118
120
 
119
121
  // Social.svg
120
122
  "skype.svg",
@@ -3,8 +3,6 @@ import EventHandler from "@openeuropa/bcl-bootstrap/js/src/dom/event-handler";
3
3
  import SelectorEngine from "@openeuropa/bcl-bootstrap/js/src/dom/selector-engine";
4
4
 
5
5
  class AccordionToggle {
6
- static isInitialized = false;
7
-
8
6
  constructor(buttonElement) {
9
7
  this.buttonElement = buttonElement;
10
8
  this.targetAccordionId = buttonElement.getAttribute("data-target");
@@ -36,16 +34,33 @@ class AccordionToggle {
36
34
  });
37
35
  }
38
36
 
39
- static init() {
40
- if (AccordionToggle.isInitialized) {
41
- return;
42
- }
37
+ static init(root = document.documentElement) {
38
+ const context = root instanceof Document ? root.documentElement : root;
39
+
40
+ const toggleButtons =
41
+ context instanceof Element
42
+ ? SelectorEngine.find('[data-action][data-target]', context)
43
+ : context && typeof context.querySelectorAll === "function"
44
+ ? Array.from(context.querySelectorAll('[data-action][data-target]'))
45
+ : SelectorEngine.find('[data-action][data-target]');
43
46
 
44
- const toggleButtons = SelectorEngine.find('[data-action][data-target]');
45
- toggleButtons.forEach(buttonElement => new AccordionToggle(buttonElement));
47
+ toggleButtons.forEach((buttonElement) => {
48
+ if (buttonElement.dataset.accordionToggleInitialized === "true") {
49
+ return;
50
+ }
46
51
 
47
- AccordionToggle.isInitialized = true;
52
+ new AccordionToggle(buttonElement);
53
+ buttonElement.dataset.accordionToggleInitialized = "true";
54
+ });
48
55
  }
49
56
  }
50
57
 
58
+ const initializeAccordionToggle = () => AccordionToggle.init();
59
+
60
+ if (document.readyState === "loading") {
61
+ document.addEventListener("DOMContentLoaded", initializeAccordionToggle);
62
+ } else {
63
+ initializeAccordionToggle();
64
+ }
65
+
51
66
  export default AccordionToggle;
@@ -4,25 +4,37 @@ $header-background-start: #039 !default;
4
4
  $header-background-end: #1b4ac3 !default;
5
5
  $header-link-active-background: #003776 !default;
6
6
 
7
- .bcl-header__project {
8
- background: linear-gradient(
9
- 90deg,
10
- $header-background-start 0%,
11
- $header-background-end 100%
12
- );
13
- }
14
-
15
7
  .bcl-header .nav-link {
16
8
  color: $eu-blue;
17
9
  display: flex;
18
10
  align-items: center;
19
11
  }
20
12
 
13
+ .bcl-navbar-toggler {
14
+ background: transparent;
15
+ border: none;
16
+ border-radius: var(--bs-border-radius-sm);
17
+ padding: map-get($spacers, "1-5") map-get($spacers, "2-5");
18
+ color: $link-color;
19
+ line-height: 1;
20
+ @extend .rounded-2;
21
+ .active-icon {
22
+ display: none;
23
+ }
24
+ &[aria-expanded="true"] {
25
+ background-color: $primary;
26
+ color: $white;
27
+ .active-icon {
28
+ display: block;
29
+ }
30
+ .default-icon {
31
+ display: none;
32
+ }
33
+ }
34
+ }
35
+
21
36
  .bcl-header--ec,
22
37
  .ec__header {
23
- .bcl-header__project {
24
- background: $header-background;
25
- }
26
38
  /* stylelint-disable-next-line no-descending-specificity */
27
39
  .nav-link {
28
40
  color: $ec-blue;
@@ -33,21 +45,7 @@ $header-link-active-background: #003776 !default;
33
45
  align-items: flex-end;
34
46
  }
35
47
 
36
- .bcl-header--neutral {
37
- .bcl-header__project {
38
- background: $gray-700;
39
- }
40
- }
41
-
42
- .bcl-header:not(.bcl-header--neutral) .bcl-header__project {
43
- padding-top: map-get($spacers, 3);
44
- }
45
-
46
48
  .bcl-header {
47
- .navbar-brand img {
48
- width: 100px;
49
- }
50
-
51
49
  .notification {
52
50
  position: relative;
53
51
  padding-right: 0;
@@ -64,16 +62,6 @@ $header-link-active-background: #003776 !default;
64
62
  }
65
63
  }
66
64
 
67
- .bcl-header__project .bcl-header__site-name {
68
- display: inline-block;
69
- margin-bottom: 0;
70
- font-size: 1.3rem;
71
- font-weight: 300;
72
- color: $white;
73
- vertical-align: middle;
74
- max-width: 80%;
75
- }
76
-
77
65
  .bcl-header__navbar.navbar {
78
66
  padding: 0;
79
67
  .dropdown-toggle,
@@ -87,12 +75,6 @@ $header-link-active-background: #003776 !default;
87
75
  }
88
76
  }
89
77
 
90
- @media only screen and (max-width: 400px) {
91
- .bcl-header--neutral .bcl-header__project-logo {
92
- display: none;
93
- }
94
- }
95
-
96
78
  @include media-breakpoint-up(md) {
97
79
  .bcl-header--ec,
98
80
  .ec__header {
@@ -124,23 +106,8 @@ $header-link-active-background: #003776 !default;
124
106
  }
125
107
  }
126
108
 
127
- .bcl-header__project {
128
- padding: map-get($spacers, 3) 0;
129
- }
130
-
131
109
  .bcl-header {
132
- .bcl-header__project {
133
- z-index: 1040; // Make sure project bar is above the mega menu
134
- position: relative;
135
- box-shadow: var(--bs-box-shadow);
136
- flex-shrink: 0;
137
- }
138
- }
139
-
140
- .bcl-header:not(:has(.bcl-header__project)) {
141
- > .navbar:first-child {
142
- box-shadow: var(--bs-box-shadow);
143
- }
110
+ box-shadow: var(--bs-box-shadow);
144
111
  }
145
112
 
146
113
  .bcl-header nav + nav {
@@ -225,12 +192,6 @@ $header-link-active-background: #003776 !default;
225
192
  }
226
193
 
227
194
  @include media-breakpoint-up(lg) {
228
- .bcl-header__project.light,
229
- .bcl-header--ec .bcl-header__project.light,
230
- .ec__header .bcl-header__project.light {
231
- background: $white;
232
- }
233
-
234
195
  .bcl-header__navbar {
235
196
  background: linear-gradient(
236
197
  90deg,
@@ -256,33 +217,16 @@ $header-link-active-background: #003776 !default;
256
217
  }
257
218
  }
258
219
 
259
- .bcl-header__site-name {
260
- margin-left: map-get($spacers, 4);
261
- font-weight: 500;
262
- }
263
-
264
- .bcl-header__project.light .bcl-header__site-name {
265
- color: $black;
266
- }
267
-
268
220
  .bcl-header .navbar-toggler {
269
221
  position: relative;
270
222
  right: 0;
271
223
  bottom: 0;
272
224
  }
273
225
 
274
- .bcl-header .navbar-brand img {
275
- width: auto;
276
- }
277
-
278
226
  .bcl-header__navbar .bcl-mega-menu {
279
227
  --bcl-mega-menu-zindex: 1050; // Make sure dropdown overlaps the search offcanvas
280
228
  }
281
229
 
282
- .bcl-header:not(.bcl-header--neutral) .bcl-header__project {
283
- padding-bottom: map-get($spacers, 3);
284
- }
285
-
286
230
  .bcl-header__navbar.collapse {
287
231
  display: block;
288
232
  }
@@ -361,15 +361,15 @@ ul.bcl-mega-menu__items {
361
361
  > .__header {
362
362
  // The title only shows in mobile.
363
363
  > .__label {
364
- @include media-breakpoint-up(lg) {
365
- display: none;
366
- }
367
364
  @include mm-item-padding(map-get($spacers, 3));
368
365
  margin: 0;
369
366
  color: $dark;
370
367
  background: $primary-bg-subtle;
371
368
  display: block;
372
369
  font-size: 20px;
370
+ @include media-breakpoint-up(lg) {
371
+ display: none;
372
+ }
373
373
  }
374
374
  }
375
375
  }
@@ -392,15 +392,15 @@ ul.bcl-mega-menu__items {
392
392
  }
393
393
  // The panel title only shows in mobile.
394
394
  > .panel-title {
395
- @include media-breakpoint-up(lg) {
396
- display: none;
397
- }
398
395
  @include mm-item-padding(map-get($spacers, 3));
399
396
  margin: 0;
400
397
  color: $dark;
401
398
  background: $primary-bg-subtle;
402
399
  display: block;
403
400
  font-size: 20px;
401
+ @include media-breakpoint-up(lg) {
402
+ display: none;
403
+ }
404
404
  }
405
405
  // Items get a bit more space to the sides in xl viewport.
406
406
  @include media-breakpoint-up(xl) {
@@ -550,3 +550,15 @@
550
550
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
551
551
  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");
552
552
  }
553
+
554
+ .ss-sr-only {
555
+ position: absolute;
556
+ width: 1px;
557
+ height: 1px;
558
+ margin: -1px;
559
+ padding: 0;
560
+ border: 0;
561
+ clip: rect(0, 0, 0, 0);
562
+ clip-path: inset(50%);
563
+ overflow: hidden;
564
+ }
@@ -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
+ }
@@ -11,3 +11,12 @@
11
11
  height: 0;
12
12
  }
13
13
  }
14
+
15
+ @mixin focused-item($width: 2px, $offset: 2px, $color: $primary) {
16
+ &:focus,
17
+ &:focus-visible {
18
+ box-shadow: none;
19
+ outline: $width solid $color;
20
+ outline-offset: $offset;
21
+ }
22
+ }
@@ -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;
@@ -87,3 +87,4 @@
87
87
  @import "@openeuropa/bcl-theme-default/src/scss/carousel";
88
88
  @import "@openeuropa/bcl-theme-default/src/scss/gallery";
89
89
  @import "@openeuropa/bcl-theme-default/src/scss/pagination";
90
+ @import "@openeuropa/bcl-theme-default/src/scss/pagination-v2";
@@ -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
- {% block content_top %}
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 ~ ' (' ~ listing.items.length ~ ')',
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
- {% endblock %}
53
+ {%- endblock -%}
58
54
 
59
- {% block content %}
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
- {% endblock %}
59
+ {%- endblock -%}
64
60
 
65
- {% block content_bottom %}
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
- {% endblock %}
67
+ {%- endblock -%}
71
68
 
72
- {% block sidebar %}
69
+ {%- block sidebar %}
70
+ {% set _sidebar = sidebar|default({}) %}
73
71
  {% include '@oe-bcl/bcl-base-templates/sidebar-search.html.twig' with _sidebar only %}
74
- {% endblock %}
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
- {% block content %}
3
+ {%- block content %}
4
4
  {% include '@oe-bcl/bcl-form/form.html.twig' with form only %}
5
- {% endblock %}
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 _link %}
79
- {% set _trigger = _trigger|merge({
80
- attributes: _trigger.attributes.setAttribute('role', 'button')
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 _trigger = _trigger|merge({
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
- {% block sidebar %}
3
+ {%- block sidebar %}
4
4
  {% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
5
- {% endblock %}
5
+ {%- endblock -%}
6
6
 
7
- {% block content %}
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
- {% endblock %}
24
+ {%- 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
- {% block content %}
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
- {% endfor %}
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
- {% block content_row %}
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
- {% endblock %}
11
+ {%- endblock -%}
12
12
 
13
- {% block content_top %}
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
- {% endblock %}
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
- {% block banner %}
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
- {% endblock %}
73
+ {%- endblock -%}
74
74
 
75
- {% block content %}
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
- {% endblock %}
101
+ {%- endblock -%}