Skip to content
Snippets Groups Projects
Commit e6574985 authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

ISTWCMS-5650: Add logic to hide nav when number matches num to display on lg breakpoint

parent 9e9b2c17
No related branches found
No related tags found
1 merge request!273Feature/istwcms 5650 m26lebla owl carousel replacement
......@@ -870,6 +870,11 @@ are the same height. */
}
.flickity-page-dots {
.uw-hide-ff-nav & {
@media(min-width: $screen-lg) {
visibility: hidden;
}
}
bottom: -3.125rem;
.dot {
......@@ -906,6 +911,11 @@ are the same height. */
width:100%;
justify-content: center;
margin-top: var(--size-8);
.uw-hide-ff-nav & {
@media(min-width: $screen-lg) {
visibility: hidden;
}
}
button {
background: var(--gray-2);
color: var(--uw-black);
......
<div id="uw-ff-{{ ffs.id }}" class="uw-ff {% if ffs.show %}uw-ff--with-bubbles uw-ff--with-bubbles__{{ ffs.bg_colour}}{% else%}uw-ff__{{ ffs.bg_colour}}{% endif %}" data-carousel="{{ ffs.num_per_carousel ? 'yes' :'no' }}" data-num-per-carousel="{{ ffs.num_per_carousel }}" data-id="{{ ffs.id }}">
<div id="uw-ff-{{ ffs.id }}" class="uw-ff {% if ffs.show %}uw-ff--with-bubbles uw-ff--with-bubbles__{{ ffs.bg_colour}}{% else%}uw-ff__{{ ffs.bg_colour}}{% endif %} {% if ffs.num_per_carousel == ffs.details|length %} uw-hide-ff-nav{% endif %} " data-carousel="{{ ffs.num_per_carousel ? 'yes' :'no' }}" data-num-per-carousel="{{ ffs.num_per_carousel }}" data-id="{{ ffs.id }}">
<div class="uw-ff--wrapper uw-ff--wrapper__text-{{ ffs.text_align }} {{ ffs.num_per_carousel ? 'uw-ff--carousel' : 'uw-ff--no-carousel' }} {{ ffs.theme }}">
{% if ffs.num_per_carousel >= 1%}
{% embed '@layouts/carousel/carousel.twig' %}
{% block content %}
{% for details in ffs.details %}
<div class="uw-ff--fact">
{% for detail in details %}
{% if detail.type == 'infographic' %}
{% include '@components/facts-and-figures/_infographics.twig' with {
'infographics': detail,
......@@ -57,12 +54,11 @@
{% endfor %}
</div>
{% endfor %}
{% endif %}
</div>
{% if ffs.num_per_carousel %}
<div class="uw-button--wrap">
<div class="uw-button--wrap">
<button tabindex="0" class="uw-button--previous"> < Prev</button>
<button tabindex="0" class="uw-button--next">Next ></button>
</div>
......
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