Category description in sub-category boxes is truncated after height 6em, customizable with CSS
This commit is contained in:
parent
e96d875bee
commit
9c03456e75
|
@ -15,7 +15,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='description'>
|
<div class='description'>
|
||||||
{{{c.description_excerpt}}}
|
{{{text-overflow class="overflow" text=c.description_excerpt}}}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -234,6 +234,11 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 1.05em;
|
font-size: 1.05em;
|
||||||
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 40%));
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 40%));
|
||||||
|
.overflow {
|
||||||
|
max-height: 6em;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
|
|
Loading…
Reference in New Issue