In raw CSS:
.foo {
background: -webkit-linear-gradient(red, green) left repeat;
background: linear-gradient(red, green) left repeat;
-webkit-transition: all 0.8s;
-moz-transition: all 0.8s;
transition: all 0.8s;
color: green;
}
The equivalent in scss & bourbon
.foo {
@include background(linear-gradient(red, green) left repeat);
@include transition(all 0.8s);
color: green;
}
I find the mixture between native attributes (color:
) and pre-processed functions (@include ...
) to be odd. I'd rather they extend the native language:
.foo {
background: bb-linear-gradient(red, green) left repeat;
bb-transition: all 0.8s;
color: green;
}
Or probably better:
.foo {
bb-background: linear-gradient(red, green) left repeat;
bb-transition: all 0.8s;
color: green;
}
Or even: