Skip to content
Snippets Groups Projects
Commit 2a7f975e authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5801: adding things for captions in FF

parent 9ac4ddda
No related branches found
No related tags found
1 merge request!39ISTWCMS-5801: adding gaps from gesso
......@@ -633,6 +633,13 @@ are the same height. */
font-size: var(--font-size-00);
line-height: var(--font-lineheight-2);
}
em, i {
font-style: normal;
}
strong, b {
font-weight: bold;
}
}
}
......
......@@ -16,6 +16,12 @@
<div class="uw-ff--text uw-ff--text__{{ detail.type }}">
<img src="{{ detail.icon }}" />
</div>
{% elseif detail.type == 'caption' %}
{% if detail.caption %}
<span class="uw-ff--text uw-ff--text__caption">
{{ detail.caption }}
</span>
{% endif %}
{% else %}
<span class="uw-ff--text uw-ff--text__{{ detail.type }}">{{ detail.text }}</span>
{% endif %}
......@@ -38,6 +44,12 @@
<div class="uw-ff--text uw-ff--text__{{ detail.type }}">
<img src="{{ detail.icon }}" />
</div>
{% elseif detail.type == 'caption' %}
{% if detail.caption %}
<span class="uw-ff--text uw-ff--text__caption">
{{ detail.caption }}
</span>
{% endif %}
{% else %}
<span class="uw-ff--text uw-ff--text__{{ detail.type }}">{{ detail.text }}</span>
{% endif %}
......
......@@ -19,6 +19,9 @@ ffs:
-
text: 'Small #1'
type: 'small'
-
caption: '<p>This <strong>would be</strong> caption</p>'
type: 'caption'
-
- type: 'infographics'
infographics:
......@@ -71,3 +74,6 @@ ffs:
-
text: 'Small #1'
type: 'small'
-
caption: '<p>This would be caption</p>'
type: 'caption'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment