From de06e4a82a5513ab8a800ecec7db56227a829024 Mon Sep 17 00:00:00 2001 From: Svyatoslav Mikhaylov Date: Mon, 11 Nov 2019 16:05:53 +0300 Subject: [PATCH] Add text-overflow mixin --- src/v2/scss/utils/_text.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/v2/scss/utils/_text.scss b/src/v2/scss/utils/_text.scss index 73acecc5..100e9d48 100644 --- a/src/v2/scss/utils/_text.scss +++ b/src/v2/scss/utils/_text.scss @@ -9,3 +9,10 @@ .text-small { font-size: $font-size-sm; } + +@mixin text-overflow-ellipsis() { + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + max-width: 100%; +} \ No newline at end of file