Created
October 8, 2014 14:48
-
-
Save uniqname/72a8dc590bc36fc6dbae to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
$positions: (top, right, bottom, left); | |
.stretch { | |
position: absolute; | |
@each $pos in $positions { | |
#{$pos}: 0; | |
} | |
} | |
@mixin stretch($top:0, $right:0, $bottom:0, $left:0) { | |
position: absolute; | |
top: $top; | |
right: $right; | |
bottom: $bottom; | |
left: $left; | |
} | |
// .foo { | |
// @include stretch(); | |
// } | |
// .bar { | |
// @include stretch(50%, 50%, 50%, 50%); | |
// } | |
// .baz { | |
// @include stretch($top:null); | |
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.stretch { | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment