Fix instance accordion line height

pull/5665/head
Chocobozzz 2023-02-27 15:59:16 +01:00
parent 1d74f89739
commit 2987c34e45
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
}
.instance-short-description {
@include ellipsis-multiline(1rem, 3);
@include ellipsis-multiline(1rem, 3, inherit);
margin: 25px 0;
}

View File

@ -24,7 +24,7 @@
text-overflow: ellipsis;
}
@mixin ellipsis-multiline($font-size: 16px, $number-of-lines: 2) {
@mixin ellipsis-multiline($font-size: 16px, $number-of-lines: 2, $line-height: $font-size) {
display: block;
/* Fallback for non-webkit */
display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */
@ -32,7 +32,7 @@
-webkit-box-orient: vertical;
/* Fallback for non-webkit */
font-size: $font-size;
line-height: $font-size;
line-height: $line-height;
overflow: hidden;
text-overflow: ellipsis;
max-height: $font-size * $number-of-lines;