You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
438 B
19 lines
438 B
7 years ago
|
/**
|
||
|
* From: https://github.com/suitcss/utils-text/blob/master/lib/text.css
|
||
|
*
|
||
|
* Text truncation
|
||
|
*
|
||
|
* Prevent text from wrapping onto multiple lines, and truncate with an
|
||
|
* ellipsis.
|
||
|
*
|
||
|
* 1. Ensure that the node has a maximum width after which truncation can
|
||
|
* occur.
|
||
|
*/
|
||
|
|
||
|
@define-mixin truncate {
|
||
|
overflow: hidden !important;
|
||
|
max-width: 100%; /* 1 */
|
||
|
text-overflow: ellipsis !important;
|
||
|
white-space: nowrap !important;
|
||
|
}
|