Created
February 7, 2019 21:23
-
-
Save eddybrando/d12246a024e8de2c3dc32c8561e125cb to your computer and use it in GitHub Desktop.
Displays two lines of text and truncates the rest whilst appending an ellipsis
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
.multine-ellipsis { | |
/* autoprefixer: ignore next */ // scss-lint:disable Comment | |
-webkit-box-orient: vertical; | |
display: -webkit-box; | |
-webkit-line-clamp: 2; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: normal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment