mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-11-14 13:25:28 -05:00
15 lines
800 B
Sass
15 lines
800 B
Sass
=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) |