[Mobile] More consistent

More consistent when moving from
landscape to portrait and
vice-versa on devices. However
still encountering issue with
the browser being resized.
This commit is contained in:
Dave
2015-07-10 10:56:48 -07:00
parent 30bed434fe
commit d3ae4b729f
5 changed files with 99 additions and 73 deletions

View File

@@ -22,25 +22,31 @@
// NOTE: Mixins for devices
@mixin phone {
@media screen and (max-width: $phoMaxW) {
@media #{$phoneWidth},
#{$phoneHeight} {
@content
}
}
@mixin tablet {
@media screen and (min-width: $tabMinW) and (max-width: $tabMaxW) {
@media #{$tabletWidth},
#{$tabletHeight} {
@content
}
}
@mixin phoneandtablet {
@media screen and (max-width: $tabMaxW) {
@content
}
}
//@mixin phoneandtablet {
// @media screen and (max-width: $tabMaxW) and (orientation: portrait),
// screen and (max-width: $tabMaxH) and (orientation: landscape) {
// @content
// }
//}
@mixin desktop {
@media screen and (min-width: $compMinW) {
@media screen and (min-width: $compMinW) and (orientation: portrait),
screen and (min-device-width: $compMinW) and (orientation: portrait),
screen and (min-width: $compMinH) and (orientation: landscape),
screen and (min-device-width: $compMinH) and (orientation: landscape) {
@content
}
}