Skip to content

Commit

Permalink
Merged in task/dspace-cris-2023_02_x/DSC-1653 (pull request DSpace#1650)
Browse files Browse the repository at this point in the history
Task/dspace cris 2023 02 x/DSC-1653

Approved-by: Francesco Molinaro
  • Loading branch information
alisaismailati authored and FrancescoMolinaro committed May 3, 2024
2 parents 5a2eb84 + 2b4d25e commit e53b885
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/styles/_global-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,21 @@ ul.dso-edit-menu-dropdown > li .nav-item.nav-link {
.text-gray-500 {
color: var(--bs-gray-500) !important;
}

/* Define a mixin for vertical ellipsis
To be used as a class e.g. ellipsis-y-1,... ellipsis-y-4,... ellipsis-y-10
*/
@mixin ellipsis-y($lines) {
display: -webkit-box;
-webkit-line-clamp: $lines; // number of lines
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}

// Generate classes for 1 to 10 lines
@for $i from 1 through 10 {
.ellipsis-y-#{$i} {
@include ellipsis-y($i);
}
}

0 comments on commit e53b885

Please sign in to comment.