Files
openmct/platform/commonUI/general/res/sass/mobile/_layout.scss
Shivam Dave ce75d19480 [Mobile] Desktop
Cleans up the _layout by making the different
pane sizes device specific. Also adds a new
sass class just for desktop versions.
2015-07-16 10:44:20 -07:00

168 lines
4.0 KiB
SCSS

/*****************************************************************************
* Open MCT Web, Copyright (c) 2014-2015, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT Web is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT Web includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
// NOTE: Added to adjust the browse folder left list view
.browse-wrapper,
.pane-special {
// @include transition-duration(.2s);
@include phone {
position: absolute;
left: 0; top: 0;
right: 0; left: 0;
white-space: nowrap;
height: 100%;
}
@include tablet {
position: absolute;
left: 0; top: 0;
right: 0; left: 0;
white-space: nowrap;
height: 100%;
}
}
$phoneMenuSize: 80%;
$tabletMenuSize: 60%;
$desktopMenuSize: 25%;
.desktop-browse {
@include desktop {
min-width: 150px;
max-width: 800px;
width: $desktopMenuSize;
}
}
.browse-hidetree {
.pane-special.left {
@include phone {
@include transition-duration(.2s);
display: none !important;
}
@include tablet {
@include transition-duration(.2s);
display: none !important;
}
}
.pane-special.right {
@include phone {
@include transition-duration(.2s);
width: auto !important;
left: 0px !important;
}
@include tablet {
@include transition-duration(.2s);
width: auto !important;
left: 0px !important;
}
}
}
.browse-showtree {
.pane-special.left {
@include phone {
@include transition-duration(.2s);
display: block !important;
width: $phoneMenuSize !important;
right: auto !important;
}
@include tablet {
@include transition-duration(.2s);
display: block !important;
width: $tabletMenuSize !important;
right: auto !important;
}
}
.pane-special.right {
@include phone {
@include transition-duration(.2s);
left: $phoneMenuSize !important;
width: auto !important;
}
@include tablet {
@include transition-duration(.2s);
left: $tabletMenuSize !important;
width: auto !important;
}
}
}
.mobile-splitter {
@include phone {
display: none;
}
@include tablet {
display: none;
}
}
.button-pos {
position: absolute;
@include transition-duration(.2s);
}
.object-header-mobile {
@include phone {
position: relative;
left: 30px;
}
@include tablet {
position: relative;
left: 30px;
}
}
.mobile-menu-icon {
top: $interiorMargin;
@include phone {
font-size: 125%;
}
@include tablet {
font-size: 175%;
}
@include desktop {
display: none;
}
}
.mobile-hide {
@include phone {
display: none;
}
@include tablet {
display: none;
}
}
.phone-hide {
@include phone {
display: none;
}
}