Skip to content

Instantly share code, notes, and snippets.

@evanshajed
Forked from jmwhittaker/gist:847243
Created February 20, 2013 19:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanshajed/4998128 to your computer and use it in GitHub Desktop.
Save evanshajed/4998128 to your computer and use it in GitHub Desktop.
/* 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