Skip to content

Better handling of media queries #1

Description

@rawksteady

Right now I'm wrapping everything in @each loops and @media queries, even if that current breakpoint is 0. Ideally I'd want a @mixin (I think) which doesn't print a media query if a certain given breakpoint is 0. One way could be doing @if statements within the @mixin (or even the current @each loops) itself but I can't shake the feeling that there is a much neater way of doing it. Very much open to suggestions!

→ flexer.scss:175

So essentially this:

@media (min-width: 0) {
    .sm\:d-f { display: flex; }
}
@media (min-width: 500px) {
    .md:\d-f { display: flex; }
}
...

Becomes this:

.sm\:d-f { display: flex; }
@media (min-width: 500px) {
    .md\:d-f { display: flex; }
}
...

Not that it's needed right now since this is a quick n' dirty testing/prototyping tool but it never hurts to make things solid and add sparkles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions