Skip to content

Instantly share code, notes, and snippets.

@pyronaur
Last active January 5, 2017 13:39
Show Gist options
  • Save pyronaur/95338cabae4883556a928b7d8b9554c8 to your computer and use it in GitHub Desktop.
Save pyronaur/95338cabae4883556a928b7d8b9554c8 to your computer and use it in GitHub Desktop.
Stylus Bug in phpStorm EAP 2017.1
// This Works
.the-thing
color: blue
@media screen and (min-width: 768px)
color: red
// This is broken
$breakpoint = "screen and (min-width: 768px)"
.the-thing
color: blue
@media $breakpoint
color: red
// I just realized this while making this example, this works:
breakpoint = "screen and (min-width: 768px)"
.the-thing
color: blue
@media breakpoint
color: red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment