From 0df5a8cf47a1f4a1f14da3d49e3628561b6b4c6c Mon Sep 17 00:00:00 2001 From: Eric Meyer Date: Mon, 23 Nov 2009 11:55:38 -0700 Subject: [PATCH] added css3 background-size mixin --- .../stylesheets/compass/css3/_background_size.sass | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass diff --git a/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass b/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass new file mode 100644 index 00000000..4552ff9d --- /dev/null +++ b/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass @@ -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 \ No newline at end of file