fixins
Version:
A collection of functions and mixins for use with precss and postcss-functions
19 lines (16 loc) • 341 B
JavaScript
;
module.exports = ellipsis;
/**
* ### `fx-ellipsis`
*
* Truncate text with an ellipsis `...`.
* Works best on elements with a determined height
* (not `auto` or `100%`)
*/
function ellipsis(mixin) {
return {
overflow: 'hidden',
'text-overflow': 'ellipsis',
'white-space': 'nowrap'
};
}