Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable erasing old CSS properties #300

Open
Vargentum opened this issue Feb 20, 2015 · 1 comment
Open

Disable erasing old CSS properties #300

Vargentum opened this issue Feb 20, 2015 · 1 comment

Comments

@Vargentum
Copy link

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

@rossPatton
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants