Skip to content

Instantly share code, notes, and snippets.

@ericdfields
Last active December 21, 2015 09:29
Show Gist options
  • Save ericdfields/6285679 to your computer and use it in GitHub Desktop.
Save ericdfields/6285679 to your computer and use it in GitHub Desktop.
We had a mess of Sass media query mixins that needed to be streamlined into fewer, smarter media queries. Dozens of Sass partials makes this no small refactor project. I wanted to make the process of finding all the elements touched by the old media queries as painless as possible. Since I would have to spot check the entire app anyway, I came u…
// Old media query mixins looked like this:
=old-media-query
@media screen and (min-width: $value)
@content
// How could I optically find where they were being used? Replace it with this:
=old-media-query
@content
background: pink !important
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment