Last active
December 21, 2015 09:29
-
-
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…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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