From: Jérémy Fabre Date: Wed, 26 Oct 2016 14:22:06 +0000 (+0200) Subject: Truncate the event category in the event card and move the button to the bottom right X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7112d62fa927d523b81b912397b5f166d5aa106c;p=mezzo.git Truncate the event category in the event card and move the button to the bottom right --- diff --git a/app/static/src/sass/modules/boxes/_article-box.scss b/app/static/src/sass/modules/boxes/_article-box.scss index 0e2edf8a..67aab6e7 100644 --- a/app/static/src/sass/modules/boxes/_article-box.scss +++ b/app/static/src/sass/modules/boxes/_article-box.scss @@ -95,10 +95,10 @@ $module: ".article-box"; &__btn { position: absolute; - top: 0; + bottom: 0; right: 0; - @include margin-top(.5); + @include margin-bottom(.5); @include margin-right(.5); } diff --git a/app/templates/agenda/includes/event_card.html b/app/templates/agenda/includes/event_card.html index f3ca82ac..0d13c695 100644 --- a/app/templates/agenda/includes/event_card.html +++ b/app/templates/agenda/includes/event_card.html @@ -44,7 +44,7 @@ {% endif %} {% if event.category %}
- {{ event.category|truncatechars:20 }} + {{ event.category|truncatechars:15 }}
{% endif %}