Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Created April 21, 2017 10:51
Show Gist options
  • Save seven-phases-max/a31c62a25e31657f13d3bcfd33930025 to your computer and use it in GitHub Desktop.
Save seven-phases-max/a31c62a25e31657f13d3bcfd33930025 to your computer and use it in GitHub Desktop.
.FluidGutter(@property, @top, @right, @bottom, @left, @vertical, @horizontal, @all) when
(@property = margin),
(@property = padding) {
.MakeFluidGutter() when (% either of trbl is not 0 %) {
.MakeGutter(@property, @top @right @bottom @left);
}
.MakeFluidGutter() when (% trbl are 0 and all is not %) {
.MakeGutter(@property, @vertical @horizontal @vertical @horizontal);
}
.MakeFluidGutter() when (% trbl are 0 and vh are not %) {
.MakeGutter(@property, @all @all @all @all);
}
.MakeFluidGutter();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment