Skip to content

Instantly share code, notes, and snippets.

@renatocarvalho
Forked from jmwhittaker/gist:847243
Created April 14, 2012 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renatocarvalho/2384612 to your computer and use it in GitHub Desktop.
Save renatocarvalho/2384612 to your computer and use it in GitHub Desktop.
Border-image CSS3 Mixin for Compass & SASS
/* Mixin for Compass - border-image
$border-image([$image-url], [$offsets], [$repeats])
Example:
@include border-image(url(../my_image.png), 10, stretch)
@include border-image(url(../my_image.png), 10 5 10 5, stretch repeat)
---------------------------------------- */
@mixin border-image($url, $offsets, $repeats) {
@include experimental("border-image", $url $offsets $repeats, -moz, not -webkit, -o, -ms, -khtml, official);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment