Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added background-size mixin

  • Loading branch information...
commit 4588c5c9bdc941bb73a7010c2fdf75c7de99a766 1 parent 4ba1cff
Phil LaPier authored
View
5 app/assets/stylesheets/_bourbon.scss
@@ -1,12 +1,13 @@
// Custom Functions
+@import "functions/deprecated-webkit-gradient";
@import "functions/golden-ratio";
@import "functions/grid-width";
@import "functions/tint-shade";
-@import "functions/deprecated-webkit-gradient";
// CSS3 Mixins
@import "css3/animation";
@import "css3/background-image";
+@import "css3/background-size";
@import "css3/border-image";
@import "css3/border-radius";
@import "css3/box-shadow";
@@ -21,7 +22,7 @@
// Addons & other mixins
@import "addons/button";
-@import "addons/html5-input-types";
@import "addons/font-family";
+@import "addons/html5-input-types";
@import "addons/position";
@import "addons/timing-functions";
View
15 app/assets/stylesheets/css3/_background-size.scss
@@ -0,0 +1,15 @@
+@mixin background-size ($length-1,
+ $length-2: false, $length-3: false,
+ $length-4: false, $length-5: false,
+ $length-6: false, $length-7: false,
+ $length-8: false, $length-9: false)
+ {
+ $full: compact($length-1, $length-2, $length-3, $length-4,
+ $length-5, $length-6, $length-7, $length-8, $length-9);
+
+ -webkit-background-size: $full;
+ -moz-background-size: $full;
+ -ms-background-size: $full;
+ -o-background-size: $full;
+ background-size: $full;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.