Skip to content

Possible error in medium-screen mixin #18

@p-i-

Description

@p-i-

@media screen and (max-width: 768px) {

You have:

@mixin mediaMd {
  @media screen and (max-width: 768px) {

Which creates a branching overlap (a 500px width device reports as Sm and Md)

Did you want:

@mixin mediaMd {
  @media screen and (min-width: 501px) and (max-width: 768px) {

?

IIUC this would also entail changing:

@include mediaMd {
so that Sm and Md screens trigger that code-block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions