Category description in sub-category boxes is truncated after height 6em, customizable with CSS

This commit is contained in:
Neil Lalonde 2017-03-20 15:43:49 -04:00
parent e96d875bee
commit 9c03456e75
2 changed files with 6 additions and 1 deletions

View File

@ -15,7 +15,7 @@
</div>
<div class='description'>
{{{c.description_excerpt}}}
{{{text-overflow class="overflow" text=c.description_excerpt}}}
</div>
</a>
</div>

View File

@ -234,6 +234,11 @@
text-align: center;
font-size: 1.05em;
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 40%));
.overflow {
max-height: 6em;
overflow: hidden;
text-overflow: ellipsis;
}
}
h3 {