June 11, 2014 06:43 pm GMT
Original Link: http://viget.com/extend/sharing-data-between-sass-and-javascript-with-json
Sharing Data Between Sass and JavaScript with JSON
Imagine you have a set of breakpoints you have defined for your design that adjust the layout. Now you need to mimic those breakpoints in JavaScript, because you are choosing to load some dynamic content at that breakpoint. Now you're maintaining that breakpoint at two different places in your code. Inefficient and error prone.
This idea by Nate Hunzaker allows you to define those breakpoints in a JSON file that can be used by Sass as well as JavaScript. And …
Sharing Data Between Sass and JavaScript with JSON is a post from CSS-Tricks
Original Link: http://viget.com/extend/sharing-data-between-sass-and-javascript-with-json
Share this article:
Tweet
View Full Article