Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion asset/css/communication-brick.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,24 @@
#brick-communication .has-no-type .tile_body {
padding-left: 0;
}

#brick-communication .carousel-inner .unfinish:before {
content: "\f141";
font-family: "Font Awesome 5 Free";
font-weight: 900;
font-size: 20px;
opacity: 0.3;
position: absolute;
clear: both;
top: 150px;
right:5%;
}

@media (min-width: 992px){
#brick-communication .carousel-inner .unfinish:before {
top: 140px;
}
}
@media (max-width: 767px) {
#brick-communication .tile_decoration {
display: block;
Expand All @@ -84,4 +102,8 @@
position: static;
margin-bottom: -2em;
}
}
#brick-communication .carousel-inner .unfinish:before{
top: 140px;
}
}

12 changes: 10 additions & 2 deletions view/tile.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
$('#carousel-popup-modal').modal('show');
});
$('.slide .item a').on('click', function(ev) { ev.stopPropagation(); } ); // Hyperlinks are still clickable

$('.carousel-inner .item').each( function(i, elt){
$(elt).css('display','block');
var eltHeight= $(elt).height();
$(elt).css('display','');
if (eltHeight>$('.carousel-inner').height()) {
$(elt).addClass('unfinish');
}
});
});
</script>
{% endblock %}
Expand All @@ -26,8 +35,7 @@
<div class="carousel slide text-center" id="{{ sCarouselId }}" data-ride="carousel" style="height: {{ brick.GetHeight }}em;">
<div class="carousel-inner text-center" role="listbox">
{% for message in messages %}
<div class="item{% if loop.index0 == 0 %} active{% endif %}{% if message.Get('icon') != 'none' %} has-type message-type-{{ message.Get('icon') }}{% else %} has-no-type {% endif %}{% if message.Get('title') != '' %} has-title{% endif %}">

<div class="item{% if loop.index0 == 0 %} active{% endif %}{% if message.Get('icon') != 'none' %} has-type message-type-{{ message.Get('icon') }}{% else %} has-no-type {% endif %}{% if message.Get('title') != '' %} has-title{% endif %}" data-communication-id="{{ message.Get('id') }}">
{% if message.Get('icon') != 'none' %}
<a><div class="message-banner tile_decoration"><span class="icon fas fa-{{ message.GetFontAwesomeIcon }} fa-2x"></span></div></a>
{% endif %}
Expand Down