toodego: add form description to link cell (#53747)

This commit is contained in:
Frédéric Péters 2021-06-14 09:49:37 +02:00
parent 8543107802
commit 4ab78c6c2c
2 changed files with 18 additions and 0 deletions

View File

@ -149,6 +149,23 @@ a.tile-link {
}
&:hover {
text-decoration: none;
.description p {
color: white;
}
}
.tile-head {
}
.tile-title {
display: flex;
flex-direction: column;
}
.description {
max-height: 2.4em;
overflow: hidden;
p {
margin: 0;
color: black;
}
}
}

View File

@ -8,6 +8,7 @@
<div class="tile-title">
<h2>{{title}}</h2>
<h3>{{ producer.label }}</h3>
{% if description %}<div class="description">{{ description|safe }}</div>{% endif %}
<span class="producer" style="background-image: {% asset_css_url logo producer_logo %}">{{ producer.label }}</span>
</div>
</div>