Sha256: 7c997cf5d0f3002169060ce0d5c1aa6749b20e6270ca3dc0fd406fc23a6085e7
Contents?: true
Size: 1.99 KB
Versions: 3
Compression:
Stored size: 1.99 KB
Contents
// Originally based on the version in compass: http://github.com/chriseppstein/compass =gradient(!type, !coords, !color_start, !color_end, !color_stop = false) !gradient= "#{!coords}, from(#{!color_start}), to(#{!color_end})" @if !color_stop background: gradient(#{!type}, #{!gradient}, #{!color_stop}) background: -webkit-gradient(#{!type}, #{!gradient}) background: -webkit-gradient(#{!type}, #{!gradient}, #{!color_stop}) background: -moz-#{!type}-gradient(#{!gradient}, #{!color_stop}) @else background: gradient(#{!type}, #{!gradient}) background: -webkit-gradient(#{!type}, #{!gradient}) background: -moz-#{!type}-gradient(#{!gradient}) //* // This will yeild a radial gradient with an apparent specular highlight +radial-gradient("45 45, 10, 52 50, 30", Cyan, DodgerBlue) =radial-gradient(!coords, !color1, !color2, !color_stop = false) +gradient("radial", !coords, !color1, !color2, !color_stop) //* // This yields a linear gradient spanning from !start to !end coordinates +linear-gradient("left top", "left bottom", #fff, #ddd) =linear-gradient(!start, !end, !color1, !color2, !color_stop = false) !coords = !start + ", " + !end +gradient("linear", !coords, !color1, !color2, !color_stop) //* // This yields a gradient starting at the top with #fff, ending in #aaa +v-gradient(#fff, #aaa) // Same as above but with a #ccc at the halfway point +v-gradient(#fff, #aaa, color_stop(50%, #ccc)) // Same as the first example but with #ccc at the 30% from the top, and #bbb at 70% from the top +v-gradient(#fff, #aaa, color_stop(30%, #ccc, 70%, #bbb)) =v-gradient(!color1, !color2, !color_stop = false) +linear-gradient("left top", "left bottom", !color1, !color2, !color_stop) //* // This yields a horizontal linear gradient spanning from left to right // It can be used just like v-gradient above h-gradient(#fff, #ddd) =h-gradient(!color1, !color2, !color_stop = false) +linear-gradient("left top", "right top", !color1, !color2, !color_stop)
Version data entries
3 entries across 3 versions & 2 rubygems