Last active
August 29, 2015 14:10
-
-
Save thedaviddias/de068a9cef2c1a8620e3 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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