Skip to content

Instantly share code, notes, and snippets.

View akemrir's full-sized avatar

Karol Jakusz-Gostomski akemrir

View GitHub Profile
=box_gradient($color_stops, $type)// {{{
$firststop: firststop($color_stops)
$laststop: laststop($color_stops)
@if $type == "horizontal"
background: $firststop /* Old browsers */
background: -moz-linear-gradient(left, #{$color_stops}) /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, colorstops(#{$color_stops})) /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #{$color_stops}) /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, #{$color_stops}) /* Opera 11.10+ */