Skip to content

Commit

Permalink
refactor(less variables): change card description line number per device
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Sourtzis committed Mar 17, 2022
1 parent 5911a0d commit 6946fda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion theme/themes/eea/extras/publicationCard.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-line-clamp: @cardDescriptionTextLineClampMobile;
-webkit-box-orient: vertical;
}
}
Expand All @@ -58,6 +58,10 @@

.description {
height: @tabletCardDescriptionHeight;

.text {
-webkit-line-clamp: @cardDescriptionTextLineClampTablet;
}
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions theme/themes/eea/extras/publicationCard.variables
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
@cardDescriptionPadding: 20px;
@cardDescriptionWidth: 100%;

@cardDescriptionTextLineClampMobile: 3;
@cardDescriptionTextLineClampTablet: 2;

@cardDescriptionTagFontSize: 12px;
@cardDescriptionTagFontWeight: 400;
@cardDescriptionTextFontSize: 16px;
Expand Down

0 comments on commit 6946fda

Please sign in to comment.