Skip to content

Commit

Permalink
Merge pull request #130 from xfiveco/XCORNER-7-truncate-reviews
Browse files Browse the repository at this point in the history
Xcorner 7 truncate reviews
  • Loading branch information
mgbelegu authored Mar 22, 2024
2 parents 569aa19 + 4deb9cb commit ec40587
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/scss/components/_reviews.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ $swiper-arrow-right-purple: './../icons/arrow-right-purple.svg';
}

.c-review-carousel__summary {
@include truncate(4);
color: $color-black;
font-family: $font-regular;
font-size: rem-calc(16px);
Expand Down
1 change: 1 addition & 0 deletions assets/scss/tools/_tools.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
@import 'rem-calculations';
@import 'lists';
@import 'container';
@import 'truncate';
7 changes: 7 additions & 0 deletions assets/scss/tools/_truncate.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@mixin truncate($lines: 1) {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: $lines;
}

0 comments on commit ec40587

Please sign in to comment.