Skip to content

Instantly share code, notes, and snippets.

@stevemckinney
Created November 3, 2012 10:24
Show Gist options
  • Save stevemckinney/4006895 to your computer and use it in GitHub Desktop.
Save stevemckinney/4006895 to your computer and use it in GitHub Desktop.
Width/height Sass mixin
@mixin wh($width: false, $height: false) {
$width: unquote($width);
@if $height != none {
$height: unquote($height); }
@if $height != false {
width: #{$width};
height: #{$height}; }
@else {
width: #{$width};
height: #{$width}; } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment