Created
July 29, 2015 20:47
-
-
Save Undistraction/6e9d96de026d087dda19 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
<img srcset="/assets/paperclip/full/video.png 610w,/assets/paperclip/full/video.png 300w"> |
This file contains hidden or 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.14) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin when-inside($context_list...) { | |
$strings: ''; | |
@each $context in $context_list { | |
$strings: $strings + "#{$context} &," | |
} | |
#{$strings}{ | |
@content | |
} | |
} | |
.Test2 { | |
//.public.pages-controller.about-page | |
@include when-inside('.public.pages-controller.home-page', '.public.pages-controller.about-page') { | |
color: red; | |
} | |
} |
This file contains hidden or 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
.public.pages-controller.home-page .Test2, .public.pages-controller.about-page .Test2 { | |
color: red; | |
} |
This file contains hidden or 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
<img srcset="/assets/paperclip/full/video.png 610w,/assets/paperclip/full/video.png 300w"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment