Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/ratchet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2015-02-11 08:43:30 +0300
committerXhmikosR <xhmikosr@gmail.com>2015-02-11 08:43:30 +0300
commit672b4f8f1794ef06c8dd40fc921822756d40adea (patch)
tree03dae3a698c56edbe4617fb5eb77a4a2a75c0375
parent49a3c0b11587f8bfcd303e51db805168f7be86c8 (diff)
parent909e7984f503aa80329d797d31518493a2faba74 (diff)
Merge pull request #749 from AlexisCaffa/master
.directional-gradient() corrected. Degrees are not hardcoded
-rw-r--r--sass/mixins.scss10
1 files changed, 5 insertions, 5 deletions
diff --git a/sass/mixins.scss b/sass/mixins.scss
index bd8659b..91b6e03 100644
--- a/sass/mixins.scss
+++ b/sass/mixins.scss
@@ -50,11 +50,11 @@
@mixin directional-gradient($color-from, $color-to, $deg: 45deg) {
background-color: $color-from; // Old browsers
background-image: -webkit-gradient(linear, left bottom, right top, color-stop(0%,$color-from), color-stop(100%,$color-to)); // Chrome, Safari4+
- background-image: -webkit-linear-gradient(45deg, $color-from 0%, $color-to 100%); // Chrome10+, Safari5.1+
- background-image: -moz-linear-gradient(45deg, $color-from 0%, $color-to 100%); // FF3.6+
- 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: linear-gradient(45deg, $color-from 0%, $color-to 100%); // W3C
+ background-image: -webkit-linear-gradient($deg, $color-from 0%, $color-to 100%); // Chrome10+, Safari5.1+
+ background-image: -moz-linear-gradient($deg, $color-from 0%, $color-to 100%); // FF3.6+
+ background-image: -ms-linear-gradient($deg, $color-from 0%, $color-to 100%); // IE10+
+ background-image: -o-linear-gradient($deg, $color-from 0%, $color-to 100%); // Opera 11.10+
+ background-image: linear-gradient($deg, $color-from 0%, $color-to 100%); // W3C
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#{$color-from}', endColorstr='#{$color-to}', GradientType=1 ); // IE6-9
}