@openeuropa/bcl-blockquote 0.18.0 → 0.19.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.
@@ -12,7 +12,22 @@
12
12
  {% set _attribution = attribution|default('') %}
13
13
  {% set _cite = cite|default('') %}
14
14
  {% set _alignment = alignment|default('left') %}
15
- {% set _classes = ['text-' ~ _alignment] %}
15
+ {% set _classes = [
16
+ 'text-' ~ _alignment,
17
+ "bg-lighter",
18
+ "p-2",
19
+ "px-2-5",
20
+ "border-4",
21
+ "border-secondary"
22
+ ] %}
23
+
24
+ {% if _alignment == "center" %}
25
+ {% set _classes = _classes|merge(["border-top"]) %}
26
+ {% elseif _alignment == "end" %}
27
+ {% set _classes = _classes|merge(["border-end"]) %}
28
+ {% else %}
29
+ {% set _classes = _classes|merge(["border-start"]) %}
30
+ {% endif %}
16
31
 
17
32
  {% if attributes is empty %}
18
33
  {% set attributes = create_attribute() %}
@@ -23,11 +38,11 @@
23
38
  <figure
24
39
  {{ attributes }}
25
40
  >
26
- <blockquote class="blockquote">
41
+ <blockquote class="blockquote mb-2">
27
42
  <p>{{- _quote -}}</p>
28
43
  </blockquote>
29
44
  {% if _attribution is not empty %}
30
- <figcaption class="blockquote-footer">
45
+ <figcaption class="blockquote-footer m-0">
31
46
  {{- _attribution -}}
32
47
  {% if _cite is not empty %}
33
48
  <cite title="{{ _cite }}">{{- _cite -}}</cite>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-blockquote",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.18.0",
5
+ "version": "0.19.0",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -21,5 +21,5 @@
21
21
  "design-system",
22
22
  "twig"
23
23
  ],
24
- "gitHead": "a82834df6dff563a956a79bf2899c92742dd5820"
24
+ "gitHead": "8bfce06400c8829a46578797f0126b4e9c02e725"
25
25
  }