$main-color: #9278ff; $max-width: 1440px; $min-width: 1280px; @mixin ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @mixin mul-ellipsis($num) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: $num; text-overflow: ellipsis; overflow: hidden; } .ellipsis { @include ellipsis(); } .mul-ellipsis2 { @include mul-ellipsis(2); } .mul-ellipsis3 { @include mul-ellipsis(3); }