The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › SASS Media Query With Variable Declaration
I don’t get why $color: blue runs. I figured the box should be red as long as the browser window is more than 100px wide.
Anyone?
http://codepen.io/AntonNiklasson/pen/sass_media_query_with_variable_declaration/
I found this: http://stackoverflow.com/questions/9122195/using-sass-variables-with-css3-media-queries
So media queries are client-side, and since SASS is server-side this won’t behave the way I wanted it. Too bad.