Skip to content

Commit

Permalink
Added background-scale.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Krush committed Jun 19, 2012
1 parent f040064 commit 8ca930d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8ca930d

Please sign in to comment.