Skip to content

Instantly share code, notes, and snippets.

@ryanseddon
Created October 10, 2013 10:50
Show Gist options
  • Select an option

  • Save ryanseddon/6916541 to your computer and use it in GitHub Desktop.

Select an option

Save ryanseddon/6916541 to your computer and use it in GitHub Desktop.
How can I do this? Stylus as far as I know doesn't like @supports how can I put the parsed css block into the @css literal. I want it to output like the desired-output.css file.
@css {
@supports (flex-flow: row wrap) {
.foo
display: block
> span
display: inline-block
margin-right: 0.3ch;
foo.bar
> span
&:nth-child(1)
text-transform: lowercase
}
}
@supports (flex-flow: row wrap) {
.foo {
display: block;
}
.foo > span {
display: inline-block
margin-right: 0.3ch;
}
foo.bar > span:nth-child(1) {
text-transform: lowercase
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment