Browse Source

Update scsslint rule for some old IE versions

pull/613/merge^2
Daijiro Wachi 10 years ago
parent
commit
ac7d20ebe8
  1. 5
      .scss-lint.yml
  2. 4
      sass/mixins.scss

5
.scss-lint.yml

@ -92,15 +92,14 @@ linters:
enabled: false enabled: false
SpaceBetweenParens: SpaceBetweenParens:
enabled: true enabled: false
spaces: 0
StringQuotes: StringQuotes:
enabled: false enabled: false
style: double_quotes style: double_quotes
TrailingSemicolonAfterPropertyValue: TrailingSemicolonAfterPropertyValue:
enabled: true enabled: false
UnnecessaryMantissa: UnnecessaryMantissa:
enabled: true enabled: true

4
sass/mixins.scss

@ -45,7 +45,7 @@
background-image: -ms-linear-gradient(top, $color-from 0%, $color-to 100%); // IE10+ background-image: -ms-linear-gradient(top, $color-from 0%, $color-to 100%); // IE10+
background-image: -o-linear-gradient(top, $color-from 0%, $color-to 100%); // Opera 11.10+ background-image: -o-linear-gradient(top, $color-from 0%, $color-to 100%); // Opera 11.10+
background-image: linear-gradient(to bottom, $color-from 0%, $color-to 100%); // W3C background-image: linear-gradient(to bottom, $color-from 0%, $color-to 100%); // W3C
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#{$color-from}",endColorstr="#{$color-to}",GradientType=0); // IE6-9 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#{$color-from}",endColorstr="#{$color-to}",GradientType=0 ); // IE6-9
} }
@mixin directional-gradient($color-from, $color-to, $deg: 45deg) { @mixin directional-gradient($color-from, $color-to, $deg: 45deg) {
background-color: $color-from; // Old browsers background-color: $color-from; // Old browsers
@ -55,7 +55,7 @@
background-image: -ms-linear-gradient(45deg, $color-from 0%, $color-to 100%); // IE10+ background-image: -ms-linear-gradient(45deg, $color-from 0%, $color-to 100%); // IE10+
background-image: -o-linear-gradient(45deg, $color-from 0%, $color-to 100%); // Opera 11.10+ background-image: -o-linear-gradient(45deg, $color-from 0%, $color-to 100%); // Opera 11.10+
background-image: linear-gradient(45deg, $color-from 0%, $color-to 100%); // W3C background-image: linear-gradient(45deg, $color-from 0%, $color-to 100%); // W3C
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#{$color-from}", endColorstr="#{$color-to}", GradientType=1); // IE6-9 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#{$color-from}", endColorstr="#{$color-to}", GradientType=1 ); // IE6-9
} }

Loading…
Cancel
Save