Created
December 26, 2019 12:02
-
-
Save nothingrealhappen/3b77eb8e9ed32c2a5a912b6713deaf5c to your computer and use it in GitHub Desktop.
CSS Multiple line ellipsis issue
This file contains hidden or 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
.u-text-limit { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
display: -webkit-box; | |
/* autoprefixer: ignore next */ | |
-webkit-box-orient: vertical; | |
} | |
.u-text-limit--one { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} | |
.u-text-limit--two { | |
@extend .u-text-limit; | |
-webkit-line-clamp: 2; | |
} | |
.u-text-limit--three { | |
@extend .u-text-limit; | |
-webkit-line-clamp: 3; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment