mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 19:43:36 +02:00
add line-clamp mixin
This commit is contained in:
@@ -73,3 +73,16 @@
|
||||
line-height: $size;
|
||||
font-size: $font-size;
|
||||
}
|
||||
|
||||
@mixin line-clamp($lines) {
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: $lines;
|
||||
}
|
||||
|
||||
@for $i from 1 through 6 {
|
||||
.line-clamp-#{$i} {
|
||||
@include line-clamp($i);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user