Skip to content

Instantly share code, notes, and snippets.

@garystorey
Created September 30, 2014 21:07
Show Gist options
  • Select an option

  • Save garystorey/d23cb7b5366f84e23a1f to your computer and use it in GitHub Desktop.

Select an option

Save garystorey/d23cb7b5366f84e23a1f to your computer and use it in GitHub Desktop.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
//helpers
$helpers: (
fll: (
float: left
),
flr: (
float: right
)
);
@each $name, $ruleset in $helpers{
.h-#{$name} {
@each $prop, $value in $ruleset {
#{$prop}: $value;
}
}
}
// $colors: red pink blue;
// @each $button-color in $colors {
// .button-#{$button-color} {
// color: $button-color;
// }
// }
//Output
.h-fll {
float: left;
}
.h-flr {
float: right;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment