[Mobile] Added Constants
Re-edited constants to set min ones for the desktop screen, that is based on the device size.
This commit is contained in:
@@ -50,7 +50,11 @@ $tabletHeight: "screen and #{$tabWidLanCheck} and #{$tabHeiLanCheck} and (orient
|
||||
$compMinW: 801px;
|
||||
$compMinH: 1025px;
|
||||
|
||||
$deskTopDevice: "(min-device-width: #{$compMinW}) and (min-device-height: #{$compMinH})";
|
||||
$desktopDevicePortrait: "(min-device-width: #{$compMinW}) and (min-device-height: #{$compMinH})";
|
||||
$desktopDeviceLandscape: "(min-device-width: #{$compMinH}) and (min-device-height: #{$compMinW})";
|
||||
|
||||
$compWidth: "screen and #{$desktopDevicePortrait} and (orientation: portrait)";
|
||||
$compHeight: "screen and #{$desktopDevicePortrait} and (orientation: landscape)";
|
||||
|
||||
$leftPhone: $phoMaxW/2;
|
||||
$leftTab: $tabMaxW/2;
|
||||
|
||||
@@ -43,10 +43,8 @@
|
||||
//}
|
||||
|
||||
@mixin desktop {
|
||||
@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) {
|
||||
@media #{$compWidth},
|
||||
#{$compHeight} {
|
||||
@content
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user