Sass Mixin Error for IE specific filters like -ms-filter

前端 未结 3 1740
青春惊慌失措
青春惊慌失措 2020-12-31 05:11

I\'m trying to make a button mixin like this:

=default_button(!lighter, !darker) 
  :border= 1px !lighter solid
  :background-color #e3e3e3
  :background= -w         


        
3条回答
  •  一整个雨季
    2020-12-31 05:30

    Update your syntax to use : instead of = for the property definitions:

    =mixin($variable) 
      property: value
      property: $variable
    

    Check out the SASS Reference, though the examples are in SCSS rather than SASS indented style. Full index of the SASS documentation.

提交回复
热议问题