Adding !important using a Compass Mixin

前端 未结 6 1855
孤城傲影
孤城傲影 2020-12-29 18:07

If I\'m using compass for CSS and use a function or mixin like:

   @include background-image(linear-gradient(#a3cce0, #fff)); 

is there any

6条回答
  •  时光取名叫无心
    2020-12-29 18:32

    You can include it inside the mixin like so:

    @include border-radius(5px !important);
    

    Compass will output the following:

    -webkit-border-radius: 5px !important;
    -moz-border-radius: 5px !important;
    -ms-border-radius: 5px !important;
    -o-border-radius: 5px !important;
    border-radius: 5px !important;
    

提交回复
热议问题