added css3 background-size mixin

This commit is contained in:
Eric Meyer 2009-11-23 11:55:38 -07:00
parent e890332344
commit 0df5a8cf47

View File

@ -0,0 +1,14 @@
// Background Size
// Set the size of background images using px, width and height, or percentages
// - percentages are relative to the background-origin (default = padding-box)
// - mixin defaults to "100% auto"
// override constants to change defaults
!default_background_size ||= 100% "auto"
=background-size(!size = !default_background_size)
background-size= !size
-webkit-background-size= !size
-o-background-size= !size
-khtml-background-size= !size
-moz-background-size= !size