aboutsummaryrefslogtreecommitdiff
path: root/source/stylesheets/library/_gradient.sass
blob: 31c498e0ac176c816151aa21e5c6f6ac29c83369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
=linear-gradient(!from_coord, !to_coord, !color_start, !color_end, !color_stop1 = 0, !color_stop1_pos = .3, !color_stop_2 = 0, !color_stop2_pos = .9)
  !gradient = "#{!from_coord}, #{!to_coord}, from(#{!color_start}), to(#{!color_end})"
  //@if !color_stop1 != 0
  //  !gradient += "color-stop(#{!color_stop1_pos}, #{!color_stop1})"
  background= "-webkit-gradient(linear, #{!gradient})"
  background= "-moz-linear-gradient(#{!gradient})"

=h-linear-gradient(!color1, !color2)
  +linear-gradient("left top", "left bottom", !color1, !color2)

=v-linear-gradient(!color1, !color2)
  +linear-gradient("left top", "right top", !color1, !color2)

//=h-three-color-gradient(!color1, !color2, !color3, !color3_pos = .5)
//  +linear-gradient("left top", "left bottom", !color1, !color2, !color3, !color3_pos)