@openeuropa/bcl-theme-default 1.3.0 → 1.5.0
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/bcl-builder.config.js +11 -0
- 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 +68 -6
- 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/package.json +7 -6
- package/src/scss/_banners.scss +2 -2
- package/src/scss/_inpage-navigation.scss +65 -4
- package/src/scss/_timeline.scss +1 -1
- package/src/scss/base/_variables.scss +0 -3
- package/src/scss/color-scheme-variables.scss +11 -0
- package/src/scss/color-scheme.scss +15 -0
- package/src/scss/color_scheme/_alert.scss +18 -0
- package/src/scss/color_scheme/_background.scss +22 -0
- package/src/scss/color_scheme/_badges.scss +69 -0
- package/src/scss/color_scheme/_buttons.scss +31 -0
- package/src/scss/color_scheme/_link.scss +6 -0
- package/src/scss/color_scheme/_list_group.scss +15 -0
- package/src/scss/color_scheme/_text.scss +29 -0
- package/src/scss/color_scheme/_utilities.scss +41 -0
- package/src/scss/color_scheme/generator.scss +25 -0
- package/templates/bcl-fact-figures/fact-figures.html.twig +1 -1
- package/templates/bcl-file/file-translations.html.twig +10 -7
- package/templates/bcl-file/file.html.twig +6 -5
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +30 -9
- package/templates/bcl-links-block/links-block.html.twig +14 -14
- package/templates/bcl-pagination/pagination.html.twig +13 -10
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
- icon_path (string) (default: '')
|
|
31
31
|
- attributes (drupal attrs)
|
|
32
|
+
- list_attributes (drupal attrs)
|
|
32
33
|
#}
|
|
33
34
|
|
|
34
35
|
{% set _size = size|default('') %}
|
|
@@ -102,19 +103,23 @@
|
|
|
102
103
|
|
|
103
104
|
{% set _internal_items = _internal_items|merge([_next, _last]) %}
|
|
104
105
|
|
|
105
|
-
{% if
|
|
106
|
-
{% set
|
|
106
|
+
{% if list_attributes is empty %}
|
|
107
|
+
{% set list_attributes = create_attribute() %}
|
|
107
108
|
{% endif %}
|
|
108
109
|
|
|
109
|
-
{% set
|
|
110
|
+
{% set list_attributes = list_attributes.addClass('pagination') %}
|
|
110
111
|
{% if _size is not empty %}
|
|
111
|
-
{% set
|
|
112
|
+
{% set list_attributes = list_attributes.addClass('pagination-' ~ _size) %}
|
|
112
113
|
{% endif %}
|
|
113
114
|
{% if _variant is not empty %}
|
|
114
|
-
{% set
|
|
115
|
+
{% set list_attributes = list_attributes.addClass('pagination--' ~ _variant) %}
|
|
115
116
|
{% endif %}
|
|
116
117
|
{% if _alignment is not empty %}
|
|
117
|
-
{% set
|
|
118
|
+
{% set list_attributes = list_attributes.addClass('justify-content-' ~ _alignment) %}
|
|
119
|
+
{% endif %}
|
|
120
|
+
|
|
121
|
+
{% if attributes is empty %}
|
|
122
|
+
{% set attributes = create_attribute() %}
|
|
118
123
|
{% endif %}
|
|
119
124
|
|
|
120
125
|
{% set attributes = attributes.setAttribute('role', 'navigation') %}
|
|
@@ -127,10 +132,8 @@
|
|
|
127
132
|
{% set attributes = attributes.setAttribute('aria-label', aria_label) %}
|
|
128
133
|
{% endif %}
|
|
129
134
|
|
|
130
|
-
<nav
|
|
131
|
-
{{
|
|
132
|
-
>
|
|
133
|
-
<ul class="{{ _classes|join(' ') }}">
|
|
135
|
+
<nav{{ attributes }}>
|
|
136
|
+
<ul{{ list_attributes }}>
|
|
134
137
|
{% if _internal_items is not empty and _internal_items is iterable %}
|
|
135
138
|
{% for _item in _internal_items %}
|
|
136
139
|
{% if _item is not empty %}
|