Skip to content

Commit

Permalink
XCORNER-7 add it as a mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
mgbelegu committed Mar 22, 2024
1 parent 2790c6c commit 4deb9cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 1 addition & 5 deletions assets/scss/components/_reviews.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ $swiper-arrow-right-purple: './../icons/arrow-right-purple.svg';
}

.c-review-carousel__summary {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
overflow: hidden;
text-overflow: ellipsis;
@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 4deb9cb

Please sign in to comment.