diff options
| author | Luke McDonald <[email protected]> | 2013-08-20 22:13:03 -0500 |
|---|---|---|
| committer | Luke McDonald <[email protected]> | 2013-08-20 22:13:03 -0500 |
| commit | e965ef0df3ca57473276103955e2b0727134f299 (patch) | |
| tree | ffbb84d910e9ab385cea3184fe64eceaf085ef14 | |
| parent | 924e9e74506464203ef077a3019e46af8a9a2f71 (diff) | |
| download | bootstrap-e965ef0df3ca57473276103955e2b0727134f299.tar.xz bootstrap-e965ef0df3ca57473276103955e2b0727134f299.zip | |
Apply @color argument to striped gradient
The @color argument is currently not being used for the striped gradient.
| -rw-r--r-- | less/mixins.less | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/less/mixins.less b/less/mixins.less index 3f230205b..5a3b3ee36 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -276,11 +276,11 @@ background-image: radial-gradient(circle, @inner-color, @outer-color); background-repeat: no-repeat; } - .striped(@color: #555; @angle: 45deg) { - background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent)); - background-image: -webkit-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); - background-image: -moz-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + .striped(@color: rgba(255,255,255,.15); @angle: 45deg) { + background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, @color), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, @color), color-stop(.75, @color), color-stop(.75, transparent), to(transparent)); + background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent); + background-image: -moz-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent); + background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent); } } |
