From: Jérémy Fabre Date: Tue, 14 Feb 2017 13:40:07 +0000 (+0100) Subject: Remove the height on the person cards X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=53cc18d30890a5df82ba9e09428d8a899b13cfb5;p=mezzo.git Remove the height on the person cards --- diff --git a/app/static/src/sass/modules/boxes/_article-box.scss b/app/static/src/sass/modules/boxes/_article-box.scss index 2a8276c3..3b43198f 100644 --- a/app/static/src/sass/modules/boxes/_article-box.scss +++ b/app/static/src/sass/modules/boxes/_article-box.scss @@ -292,13 +292,11 @@ $module: ".article-box"; #{$module}__content { - height: 350px; - @include mq($until: xs) { height: auto; } - &:after { + /*&:after { @include mq($until: xs) { display: none; @@ -314,7 +312,7 @@ $module: ".article-box"; background-color: rgba($color-background, 0); @include filter-gradient(rgba($color-background, 1), rgba($color-background, 1), vertical); @include background-image(linear-gradient(top, rgba($color-background, 0) 0%, rgba($color-background, 1) 50%)); - } + }*/ } diff --git a/app/templates/network/inc/person/person_card_square.html b/app/templates/network/inc/person/person_card_square.html index ec146f8d..f2fe6e69 100644 --- a/app/templates/network/inc/person/person_card_square.html +++ b/app/templates/network/inc/person/person_card_square.html @@ -18,9 +18,9 @@

{{ person.first_name }} {{ person.last_name }}

{% if person.description %} -
{{ person.description|richtext_filters|safe|truncatechars_html:255 }}
+
{{ person.description|richtext_filters|safe|truncatechars_html:200 }}
{% elif person.bio %} -
{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}
+
{{ person.bio|richtext_filters|safe|truncatechars_html:200 }}
{% endif %}