From 46d5a1431fc92d46378616c20bb6726e7642e5f4 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 13 Jul 2015 09:24:01 -0700 Subject: [PATCH] [Mobile] Added Constants Rixed mis-initialized desktop constant --- platform/commonUI/general/res/css/items.css | 2 +- platform/commonUI/general/res/css/theme-espresso.css | 4 ++-- platform/commonUI/general/res/sass/mobile/_constants.scss | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/commonUI/general/res/css/items.css b/platform/commonUI/general/res/css/items.css index 9295201d2b..3df0f33fc2 100644 --- a/platform/commonUI/general/res/css/items.css +++ b/platform/commonUI/general/res/css/items.css @@ -357,7 +357,7 @@ .items-holder .item.grid-item { width: 100%; height: 100px; } } -@media screen and (min-device-width: 801px) and (min-device-height: 1025px) and (orientation: portrait), screen and (min-device-width: 801px) and (min-device-height: 1025px) and (orientation: landscape) { +@media screen and (min-device-width: 801px) and (min-device-height: 1025px) and (orientation: portrait), screen and (min-device-width: 1025px) and (min-device-height: 801px) and (orientation: landscape) { /* line 24, ../sass/mobile/_item.scss */ .items-holder .item.grid-item { width: 200px; diff --git a/platform/commonUI/general/res/css/theme-espresso.css b/platform/commonUI/general/res/css/theme-espresso.css index 702fb0bae7..e79fdfb828 100644 --- a/platform/commonUI/general/res/css/theme-espresso.css +++ b/platform/commonUI/general/res/css/theme-espresso.css @@ -816,7 +816,7 @@ mct-container { /* line 81, ../sass/mobile/_layout.scss */ .mobile-menu-icon { top: 5px; } - @media screen and (min-device-width: 801px) and (min-device-height: 1025px) and (orientation: portrait), screen and (min-device-width: 801px) and (min-device-height: 1025px) and (orientation: landscape) { + @media screen and (min-device-width: 801px) and (min-device-height: 1025px) and (orientation: portrait), screen and (min-device-width: 1025px) and (min-device-height: 801px) and (orientation: landscape) { /* line 81, ../sass/mobile/_layout.scss */ .mobile-menu-icon { display: none; } } @@ -829,7 +829,7 @@ mct-container { /* line 88, ../sass/mobile/_layout.scss */ .browse-manage { width: 400px; } } -@media screen and (min-device-width: 801px) and (min-device-height: 1025px) and (orientation: portrait), screen and (min-device-width: 801px) and (min-device-height: 1025px) and (orientation: landscape) { +@media screen and (min-device-width: 801px) and (min-device-height: 1025px) and (orientation: portrait), screen and (min-device-width: 1025px) and (min-device-height: 801px) and (orientation: landscape) { /* line 88, ../sass/mobile/_layout.scss */ .browse-manage { min-width: 150px; diff --git a/platform/commonUI/general/res/sass/mobile/_constants.scss b/platform/commonUI/general/res/sass/mobile/_constants.scss index 2d968b0c82..5e8f9a7f35 100644 --- a/platform/commonUI/general/res/sass/mobile/_constants.scss +++ b/platform/commonUI/general/res/sass/mobile/_constants.scss @@ -54,7 +54,7 @@ $desktopDevicePortrait: "(min-device-width: #{$compMinW}) and (min-device-height $desktopDeviceLandscape: "(min-device-width: #{$compMinH}) and (min-device-height: #{$compMinW})"; $compWidth: "screen and #{$desktopDevicePortrait} and (orientation: portrait)"; -$compHeight: "screen and #{$desktopDevicePortrait} and (orientation: landscape)"; +$compHeight: "screen and #{$desktopDeviceLandscape} and (orientation: landscape)"; $leftPhone: $phoMaxW/2; $leftTab: $tabMaxW/2;