aboutsummaryrefslogtreecommitdiffstats
path: root/components/multiline-ellipsis/_multiline_ellipsis.scss
diff options
context:
space:
mode:
authorIsrael Lavi <israel.lavi@intl.att.com>2018-08-07 11:36:58 +0300
committerIsrael Lavi <il0695@att.com>2018-08-07 11:48:04 +0300
commit75dc1476d6d592c6c2c54f8d08d3047c90c8f9dc (patch)
treeb1412c3c7616b07852c941fd21fc9836f2d43e86 /components/multiline-ellipsis/_multiline_ellipsis.scss
parent57a7853903df631a2031b5b57ce4d131364006f6 (diff)
Initial commit
Change-Id: I061d81a33aebadb83ba0e085e8e34339fed5ed53 Issue-ID: SDC-1609 Signed-off-by: Israel Lavi <il0695@att.com>
Diffstat (limited to 'components/multiline-ellipsis/_multiline_ellipsis.scss')
-rw-r--r--components/multiline-ellipsis/_multiline_ellipsis.scss25
1 files changed, 25 insertions, 0 deletions
diff --git a/components/multiline-ellipsis/_multiline_ellipsis.scss b/components/multiline-ellipsis/_multiline_ellipsis.scss
new file mode 100644
index 0000000..846e44f
--- /dev/null
+++ b/components/multiline-ellipsis/_multiline_ellipsis.scss
@@ -0,0 +1,25 @@
+.multiline-ellipsis-container {
+ position: relative;
+ display: block;
+ overflow: hidden;
+ white-space: normal;
+ //max-height: @num_lines * @line_height;
+
+ .multiline-ellipsis-content {
+ word-break: break-all;
+ position: relative;
+ //max-height: (@num_lines + 1) * @line_height;
+
+ .multiline-ellipsis-dots {
+ display: block;
+ position: absolute;
+ right: 0;
+ //top: calc(#{@num_lines * 2} - 100%);
+
+ &::before {
+ display: block;
+ content: '...';
+ }
+ }
+ }
+}