Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ----
- // Sass (v3.4.9)
- // Compass (v1.0.1)
- // ----
- $border-names: a, b, c;
- $border-widths: 1px, 1px, 2px;
- $border-styles: solid, dashed, solid;
- $border-colors: red, green, blue;
- $borders: zip($border-widths, $border-styles, $border-colors);
- @function border-for($name) {
- @return nth($borders, index($border-names, $name))
- }
- @each $name in $border-names {
- .border-#{$name} {
- border: border-for($name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement