-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Harvey
committed
May 4, 2016
1 parent
6724092
commit 562f09c
Showing
2 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
/*################################*\ | ||
xmeter | __tool.fallback.linear-gradient.less | ||
\*################################*/ | ||
|
||
|
||
// Applies a single linear gradient background on an element. | ||
// This is an unusual property in that a single css value list is comprised | ||
// of comma-separated values (unlike normal css value lists which are space-separated). | ||
// Thus when you call the mixin, you must append a dummy semicolon at the end of your argument. | ||
// If you do not, Less will interpret the commas as argument separators. | ||
// | ||
// See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient) for more info. | ||
// See [WPD](http://docs.webplatform.org/wiki/css/functions/linear-gradient) for more info. | ||
// | ||
// ^params | ||
// : @arg - a list of comma-separated components (each as a component of one gradient value). | ||
// Must be terminated with a semicolon (;). | ||
// ^author | ||
// : Chris Harvey | ||
// ^updated | ||
// : 2014-07-08 | ||
.linear-gradient(@arg) { | ||
background-image: -webkit-linear-gradient(@arg); | ||
background-image: -moz-linear-gradient(@arg); | ||
background-image: -ms-linear-gradient(@arg); | ||
background-image: -o-linear-gradient(@arg); | ||
background-image: linear-gradient(@arg); | ||
background-image: -webkit-gradient(@arg); // "Old Webkit" | ||
} |