Created
July 2, 2014 08:30
-
-
Save theprojectsomething/0d92a633ee81b4d9eb19 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.3.9) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
$a: 'body[data-type]'; | |
$b: 'body[data-type]', | |
'body[data-type=none]'; | |
@mixin parent ($vars) { | |
@if(type-of($vars)!=list){ | |
$vars: ($vars); | |
} | |
@each $var in $vars { | |
#{unquote($var)} & { | |
@content; | |
} | |
} | |
} | |
div { | |
@include parent ($a) { | |
float: left; | |
} | |
@include parent ($b) { | |
float: left; | |
} | |
} |
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
body[data-type] div { | |
float: left; | |
} | |
body[data-type] div { | |
float: left; | |
} | |
body[data-type=none] div { | |
float: left; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment