Created
February 28, 2011 12:16
-
-
Save jmwhittaker/847243 to your computer and use it in GitHub Desktop.
Border-image CSS3 Mixin for Compass & SASS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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