mirror of https://github.com/vizality/vizality
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
340 B
12 lines
340 B
/**
|
|
* Adds an ellipsis to overflow text exceeding a certain number of lines.
|
|
* Only works in webkit browsers.
|
|
* @param {number} $how-many-lines Max amount of lines a text can be.
|
|
*/
|
|
@mixin max-lines($how-many-lines) {
|
|
display: -webkit-box;
|
|
overflow: hidden;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: $how-many-lines;
|
|
}
|