87 lines
2.4 KiB
SCSS
87 lines
2.4 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.
|
|
*****************************************************************************/
|
|
.split-layout {
|
|
$b: pullForward($colorBodyBg, $contrastRatioPercent);
|
|
$splitterD: 5px;
|
|
|
|
.splitter {
|
|
background-color: $b;
|
|
@include boxShdw($splitterShdw);
|
|
overflow: hidden;
|
|
position: absolute;
|
|
z-index: 1;
|
|
//@if $colorSplitterHover != 'none' {
|
|
&:hover {
|
|
background-color: $colorSplitterHover;
|
|
}
|
|
//}
|
|
}
|
|
&.horizontal {
|
|
// Slides vertically up and down, splitting the element horizontally
|
|
overflow: hidden; // Suppress overall scroll; each internal pane handles its own overflow
|
|
.pane {
|
|
left: 0;
|
|
right: 0;
|
|
&.top {
|
|
bottom: auto;
|
|
}
|
|
&.bottom {
|
|
top: auto;
|
|
}
|
|
}
|
|
>.splitter {
|
|
@include controlGrippy($colorSplitterInterior, horizontal);
|
|
cursor: row-resize;
|
|
left: 0; right: 0;
|
|
width: auto;
|
|
height: $splitterD;
|
|
}
|
|
}
|
|
&.vertical {
|
|
// Slides horizontally left to right, splitting the element vertically
|
|
.pane {
|
|
top: 0;
|
|
bottom: 0;
|
|
&.left {
|
|
right: auto;
|
|
}
|
|
&.right {
|
|
left: auto;
|
|
}
|
|
}
|
|
>.splitter {
|
|
@include controlGrippy($colorBodyBg, vertical);
|
|
bottom: 0;
|
|
cursor: col-resize;
|
|
width: $splitterD;
|
|
}
|
|
}
|
|
}
|
|
|
|
.browse-area .splitter {
|
|
top: $ueTopBarH + $interiorMarginLg;
|
|
}
|
|
|
|
.edit-area .splitter {
|
|
top: 0;
|
|
}
|