]> git.parisson.com Git - mezzo.git/commitdiff
Remove the height on the person cards
authorJérémy Fabre <Jeremy@iMac-de-Jeremy-2.fritz.box>
Tue, 14 Feb 2017 13:40:07 +0000 (14:40 +0100)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy-2.fritz.box>
Tue, 14 Feb 2017 13:40:07 +0000 (14:40 +0100)
app/static/src/sass/modules/boxes/_article-box.scss
app/templates/network/inc/person/person_card_square.html

index 2a8276c3ae3d12108f581ebf81136014b487e71c..3b43198f65d8e184a8c5262b7bf8011da6c0192c 100644 (file)
@@ -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%));
-            }
+            }*/
 
         }
 
index ec146f8d60984cf8e0c4998be11c1b58e936f7cf..f2fe6e69995b2bc96649f54ba584220a8a63f2eb 100644 (file)
@@ -18,9 +18,9 @@
         <a href="{{ person.get_absolute_url }}" title="{{ person.first_name }}&nbsp;{{ person.last_name }}"><h3 class="article-box__title">{{ person.first_name }}&nbsp;{{ person.last_name }}</h3></a>
 
         {% if person.description %}
-            <div class="article-box__desc">{{ person.description|richtext_filters|safe|truncatechars_html:255 }}</div>
+            <div class="article-box__desc">{{ person.description|richtext_filters|safe|truncatechars_html:200 }}</div>
         {% elif person.bio %}
-            <div class="article-box__desc">{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}</div>
+            <div class="article-box__desc">{{ person.bio|richtext_filters|safe|truncatechars_html:200 }}</div>
         {% endif %}
 
     </div>