Adding `! Important` in mixin

I want to add !important to mixin. I tried both methods and they return an error:

 @include linear-gradient(hsl(68%, 94%, 90%), hsl(68%, 90%, 80%)); !important @include linear-gradient(hsl(68%, 94%, 90%), hsl(68%, 90%, 80%)) !important; 

Is there any way to do this right?

+4
source share
2 answers

You can not use! important in mixin.

this will result in a SASS syntax error.

See this question for more information.

0
source

! important cannot be used in mixin. See the following links.

Adding! important with compass mixin

https://github.com/cloudhead/less.js/issues/547

):

+3
source

All Articles