Created
October 29, 2020 14:21
-
-
Save zogreptile/74b892c279f9e81a8ffb8e7214a1ae20 to your computer and use it in GitHub Desktop.
CSS Multiline text cut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin multiline-text-cut($lines) { | |
display: -webkit-box; // stylelint-disable-line value-no-vendor-prefix | |
overflow: hidden; | |
-webkit-line-clamp: $lines; // stylelint-disable-line property-no-vendor-prefix | |
/* autoprefixer: ignore next */ | |
-webkit-box-orient: vertical; // stylelint-disable-line property-no-vendor-prefix | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment