From bcaa485de345c86f7ac3fcb480ba12c444935316 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Tue, 6 Nov 2018 10:19:08 +0100 Subject: [PATCH] added dot dot dot scss mixin (#31) --- CHANGELOG.md | 1 + scss/tools/_dot-dot-dot.scss | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 scss/tools/_dot-dot-dot.scss diff --git a/CHANGELOG.md b/CHANGELOG.md index f6a03e0..99d5f8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## unreleased - FEATURE: Added truncate component. #32 + - FEATURE: Added dot dot dot scss mixin. #31 ## 1.4.1 diff --git a/scss/tools/_dot-dot-dot.scss b/scss/tools/_dot-dot-dot.scss new file mode 100644 index 0000000..911eb36 --- /dev/null +++ b/scss/tools/_dot-dot-dot.scss @@ -0,0 +1,5 @@ +@mixin dotDotDot() { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +}