Skip to content

Instantly share code, notes, and snippets.

@mturjak
Created January 17, 2014 17:43
Show Gist options
  • Select an option

  • Save mturjak/8477903 to your computer and use it in GitHub Desktop.

Select an option

Save mturjak/8477903 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.2.13)
// Compass (v0.12.2)
// ----
$carouselContent : "carousel-content-1" "buying_carousel_image_1.jpg";
@mixin do_carousel($carousel) {
$baseClass: nth($carousel, 1);
$image: nth($carousel, 2);
.#{$baseClass} {
test: $image;
}
}
@if (type-of(nth($carouselContent,1)) == list) {
@each $carousel in $carouselContent {
@include do_carousel($carousel);
}
} @else {
@include do_carousel($carouselContent);
}
.carousel-content-1 {
test: "buying_carousel_image_1.jpg";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment