nib icon indicating copy to clipboard operation
nib copied to clipboard

Disable erasing old CSS properties

Open Vargentum opened this issue 10 years ago • 1 comments

Can I disable erasing display: -webkit-box from output css? I'm using it for pure CSS multiline ellipsis. http://codepen.io/anon/pen/NPYzgw

Vargentum avatar Feb 20 '15 09:02 Vargentum

I use stylus with autoprefixer, which handles this. Try that?

To be more helpful, because I might have rushed that comment, here is what I use for my line-clamp mixin, with nib and autoprefixer, and it works fine:

line-clamp( $lines, $your-line-height )
    /* autoprefixer: off */
    -webkit-box-orient vertical
    display -webkit-box
    overflow hidden
    text-overflow ellipsis
    -webkit-line-clamp $lines
    max-height $lines * $your-line-height + 2

rossPatton avatar Mar 26 '15 17:03 rossPatton