datat.fi/_sass/basically-basic/mixins/_text-truncate.scss

11 lines
333 B
SCSS
Raw Normal View History

2017-03-16 20:34:29 +02:00
/* ==========================================================================
Text Truncate Mixin
Requires inline-block or block for proper styling
========================================================================== */
2017-03-07 23:12:17 +02:00
@mixin text-truncate() {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2017-03-16 20:34:29 +02:00
}