mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 22:17:49 +00:00
[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:
parent
eec955317a
commit
404d02ec23
@ -357,7 +357,7 @@
|
||||
.items-holder .item.grid-item {
|
||||
width: 100%;
|
||||
height: 100px; } }
|
||||
@media screen and (min-width: 801px) and (orientation: portrait), screen and (min-device-width: 801px) and (orientation: portrait), screen and (min-width: 1025px) and (orientation: landscape), screen and (min-device-width: 1025px) and (orientation: landscape) {
|
||||
@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) {
|
||||
/* line 24, ../sass/mobile/_item.scss */
|
||||
.items-holder .item.grid-item {
|
||||
width: 200px;
|
||||
|
@ -816,7 +816,7 @@ mct-container {
|
||||
/* line 81, ../sass/mobile/_layout.scss */
|
||||
.mobile-menu-icon {
|
||||
top: 5px; }
|
||||
@media screen and (min-width: 801px) and (orientation: portrait), screen and (min-device-width: 801px) and (orientation: portrait), screen and (min-width: 1025px) and (orientation: landscape), screen and (min-device-width: 1025px) and (orientation: landscape) {
|
||||
@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) {
|
||||
/* 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-width: 801px) and (orientation: portrait), screen and (min-device-width: 801px) and (orientation: portrait), screen and (min-width: 1025px) and (orientation: landscape), screen and (min-device-width: 1025px) and (orientation: landscape) {
|
||||
@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) {
|
||||
/* line 88, ../sass/mobile/_layout.scss */
|
||||
.browse-manage {
|
||||
min-width: 150px;
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user