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.
|
// 省略号 |
|
@mixin ellipsis($row:1) { |
|
overflow: hidden; |
|
text-overflow: ellipsis; |
|
|
|
@if $row>1 { |
|
display: -webkit-box; |
|
-webkit-line-clamp: $row; |
|
-webkit-box-orient: vertical; |
|
word-break: break-all; |
|
white-space: pre-wrap; |
|
} |
|
|
|
@else { |
|
white-space: nowrap; |
|
} |
|
}
|
|
|