material-design-lite icon indicating copy to clipboard operation
material-design-lite copied to clipboard

Clean up media queries

Open Garbee opened this issue 10 years ago • 0 comments

Media queries can be made much easier with mixins. David Walsh's post on this is a fantastic example of how to make the source more legible and easier to maintain. Since in each component we'd call @include tablet { // stuff for media query } instead of manually redoing the min/max width rules and calling in variables.

Ideally, we look to MD spec to provide our base set of breakpoints and use them wherever appropriate via mixins to keep the source cleaner overall. Then for any parts that deviate from the primary breakpoints, manually create those as-needed component-wise.

Marking as BC break, since we could easily end up defining mixins that currently exist in user-land. Then depending on import structure in their apps, we could cause issues. Very minor edge-case, but existence is very much possible.

Garbee avatar Oct 25 '15 10:10 Garbee