If I’m using compass for CSS and use a function or mixin like:
@include background-image(linear-gradient(#a3cce0, #fff));
is there any easy way to have compass add !important to every line it generates?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
UPDATE: new versions of sass support this syntax now:
Just do this (as noted in @naoufal answer).
— old answer —
You can not use !important with compass mixings, but the culprit is not compass, you should blame sass for this.