Skip to content
Browse files

Added background-scale.

  • Loading branch information...
1 parent f040064 commit 8ca930d49470e1bf6b0b08f7b75a827712a58fbb Tom Krush committed Jun 19, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 _mixins.scss
View
5 _mixins.scss
@@ -5,6 +5,11 @@
#{$property}: $value;
}
+/* Support (No IE 8) */
+@mixin background-scale($original_width, $original_height, $new_width) {
+ background-size: $new_width, ($original_height / $original_width) * $new_width;
+}
+
@mixin position($top: false, $left: false, $bottom: false, $right: false, $zindex: false) {
position: absolute;
@if type_of($top) == number {

0 comments on commit 8ca930d

Please sign in to comment.
Something went wrong with that request. Please try again.