Skip to content

Instantly share code, notes, and snippets.

@drewminns
Created January 15, 2014 15:49
Show Gist options
  • Save drewminns/8438630 to your computer and use it in GitHub Desktop.
Save drewminns/8438630 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
@mixin size($width, $height) {
$widthpx: ();
$heightpx: ();
@each $i in $width {
$widthpx: append($widthpx, $i + px);
}
@each $i in $height {
$heightpx: append($heightpx, $i + px);
}
width: $widthpx;
height: $heightpx;
}
.somestyle {
@include size(10, 4);
}
.somestyle {
width: 10px;
height: 4px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment