mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 12:33:07 +00:00
26 lines
826 B
SCSS
26 lines
826 B
SCSS
@import '../../node_modules/bootstrap/scss/functions.scss';
|
|
@import '../../node_modules/bootstrap/scss/mixins.scss';
|
|
@import '../../node_modules/bootstrap/scss/variables.scss';
|
|
|
|
@mixin clamp($lines) {
|
|
max-height: $lines * $line-height-base * $font-size-base;
|
|
position: relative;
|
|
overflow: hidden;
|
|
line-height: $line-height-base;
|
|
overflow-wrap: break-word;
|
|
|
|
&:after {
|
|
content: "...";
|
|
color: $link-color;
|
|
text-align: right;
|
|
position: absolute;
|
|
padding-right: 15px;
|
|
top: ($lines - 1) * $line-height-base * $font-size-base;
|
|
right: 0;
|
|
width: 30%;
|
|
min-width: 75px;
|
|
max-width: 150px;
|
|
height: $line-height-base * $font-size-base;
|
|
background: linear-gradient(to right, rgba(255, 255, 255, 0), $body-bg 50%);
|
|
}
|
|
} |