mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Merge pull request #4343 from DSpace/backport-4341-to-dspace-8_x
[Port dspace-8_x] Use ellipsis for truncatable parts
This commit is contained in:
@@ -4,24 +4,11 @@
|
|||||||
height: $lines * $height;
|
height: $lines * $height;
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
max-height: $lines * $height;
|
text-overflow: ellipsis;
|
||||||
position: relative;
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: $lines;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
line-height: $line-height;
|
|
||||||
overflow-wrap: break-word;
|
|
||||||
&:after {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
padding-right: 15px;
|
|
||||||
top: ($lines - 1) * $height;
|
|
||||||
right: 0;
|
|
||||||
width: 30%;
|
|
||||||
min-width: 75px;
|
|
||||||
max-width: 150px;
|
|
||||||
height: $height;
|
|
||||||
background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba($bg, 1) 70%);
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user