Skip to content

Instantly share code, notes, and snippets.

@thedaviddias
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thedaviddias/de068a9cef2c1a8620e3 to your computer and use it in GitHub Desktop.
Save thedaviddias/de068a9cef2c1a8620e3 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
// sass 3.4.7
$program: test1;
@mixin program($programName) {
@each $p in $programName {
@if $p == $program {
@content;
}
}
}
$cta-box-type: null !default;
@include program(test1) {
$cta-box-type: cta-buy, cta-like;
}
@include program(test2) {
$cta-box-type: cta-like, cta-share;
}
@each $cta-type in $cta-box-type {
.banner--#{$cta-type} .banner {
background: white image-url("Modules/Cta/bg-#{$cta-type}-1.jpg") no-repeat bottom left;
background-size: 100% auto;
}
}
.banner-- .banner {
background: white url('/images/Modules/Cta/bg--1.jpg') no-repeat bottom left;
background-size: 100% auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment