From 17ea0293ae471b12d66280515750238d7843d1da Mon Sep 17 00:00:00 2001
From: Phil LaPier Linear Gradient background-image mixin. The function takes the same arguments as the radial-gradient mixin.
Optional variables can be passed to control the deprecated -webkit-gradient()
function (iOS 4):
+
+$deprecated-pos1
, $deprecated-pos2
, $deprecated-radius1
, $deprecated-radius2
Takes up to 10 gradients. Position and shape are required. See also the background-image mixin.
+Takes up to 10 gradients. See also the background-image mixin.
This mixin will output a fallback background-color: #first-color;
declaration. A $fallback
argument can be passed to change the fallback color.
Optional variables can be passed to control the deprecated -webkit-gradient()
function (iOS 4):
+
+$deprecated-pos1
, $deprecated-pos2
, $deprecated-radius1
, $deprecated-radius2
@include linear-gradient(#1e5799, #3dc3d1, $deprecated-pos1: left center, $deprecated-pos2: left top);
+
+
+
+
Takes up to 10 gradients. Position and shape are required. See also the background-image mixin.
+Takes up to 10 gradients. See also the background-image mixin.
This mixin will output a fallback background-color: #first-color;
declaration. A $fallback
argument can be passed to change the fallback color.
@include radial-gradient(50% 50%, circle cover, #1e5799, #3dc3d1);
+@include radial-gradient(#1e5799, #3dc3d1);
@include radial-gradient(50% 50%, circle cover, #eee 10%, #1e5799 30%, #efefef);
@include radial-gradient(50% 50%, circle cover, #eee 10%, #1e5799 30%, #efefef, $fallback: red);
+
+Optional variables can be passed to control the deprecated -webkit-gradient()
function (iOS 4):
+
+$deprecated-pos1
, $deprecated-pos2
, $deprecated-radius1
, $deprecated-radius2
+
+@include radial-gradient(#1e5799, #3dc3d1,
+ $deprecated-pos1: left center, $deprecated-pos2: left top,
+ $deprecated-radius1: 50, $deprecated-radius2: 360);
+
+
+
+
Demo
@@ -325,12 +347,11 @@ Transform & Transform-origin View source
Shorthand mixin: Supports multiple parentheses-delimited values for each variable.
-@include transition (all, 2.0s, ease-in-out);
-@include transition ((opacity, width), (1.0s, 2.0s), ease-in, (0, 2s));
+@include transition (all 2.0s ease-in-out);
+@include transition (opacity 1.0s ease-in 0s, width 2.0s ease-in 2s);
-
@@ -432,6 +453,16 @@ Linear Gradient @include linear-gradient(#1e5799, #3dc3d1, $deprecated-pos1: left center, $deprecated-pos2: left top);
+
+
+
+
Demo
@@ -463,12 +494,24 @@ Modular Scale View source
Outputs a radial-gradient. Use in conjunction with the background-image mixin. The function takes the same arguments as the radial-gradient mixin.
-@include background-image( radial-gradient(50% 50%, circle cover, #1e5799, #3dc3d1) );
+@include backgorund-image( radial-gradient(#1e5799, #3dc3d1) );
+@include background-image( radial-gradient(50% 50%, circle cover, #1e5799, #3dc3d1) );
@include background-image( radial-gradient(50% 50%, circle cover, #eee 10%, #1e5799 30%, #efefef) );
+
+Optional variables can be passed to control the deprecated -webkit-gradient()
function (iOS 4):
+
+$deprecated-pos1
, $deprecated-pos2
, $deprecated-radius1
, $deprecated-radius2
+
+@include radial-gradient(#1e5799, #3dc3d1,
+ $deprecated-pos1: left center, $deprecated-pos2: left top,
+ $deprecated-radius1: 50, $deprecated-radius2: 360);
+
+
+
Demo