-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Mobile/Tablet in general would be cool (Feature Request) #32
Comments
the problem I've found here is with the default approach that people are choosing. Some of them want mobile-first and some mobile-last – there might be even a case when you have to use both at the same time. If you look at example below: // mobile-last
@include tablet { ... } // => @media screen and (max-width: 1024px) { ... }
@include mobile { ... } // => @media screen and (max-width: 768px) { ... } // mobile-first
@include tablet { ... } // => @media screen and (min-width: 768px) { ... }
@include desktop { ... } // => @media screen and (min-width: 1024px) { ... } you will see that What I recommend is creating an alias method using $breakpoint-tablet: 1024px;
@mixin tablet {
@include max-screen($breakpoint-tablet) {
@content;
}
} On the other hand, I could assume that I can pick the "default" approach (and control it using global variable) but I don't like this solution because it's hard to stay agile. Do you have any suggestions? :) |
Oh, you already closed that Topic :) |
Have you tried to use https://github.com/paranoida/sass-mediaqueries/blob/master/_media-queries.scss#L121 From MDN:
https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries#aspect-ratio |
I can say specifics for ipad and iphones, but I would love to just target "tablet" or "mobiles".
The text was updated successfully, but these errors were encountered: