Files
openmct/platform/commonUI/general/res/sass/helpers/_splitter.scss
Charles Hacskaylo f820cd47b6 [Bug] CSS and markup mods
CSS markup and mods to fix issues related to bug WTD-618;
fix is complete and verified in Chrome
2015-01-02 14:11:29 -08:00

72 lines
1.4 KiB
SCSS

.split-layout {
$b: lighten($colorBodyBg, 5%);
$splitterD: 5px;
// TEMP VAlS - this will need to be redone when we implement a draggable splitter
$splitL: 85%;
$splitT: 70%;
.splitter {
background-color: $b;
@include box-shadow(rgba(black, 0.4) 0 0 3px);
overflow: hidden;
position: absolute;
z-index: 1;
}
&.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;
height: $splitT;
}
&.bottom {
top: auto;
height: 100% - $splitT;
}
}
>.splitter {
@include controlGrippy($b, horizontal);
cursor: row-resize;
left: 0; right: 0;
width: auto;
height: $splitterD;
margin-top: ($splitterD + 2) * -1;
top: $splitT;
}
}
&.vertical {
// Slides horizontally left to right, splitting the element vertically
.pane {
top: 0;
bottom: 0;
&.left {
right: auto;
width: $splitL - 1%;
}
&.right {
left: auto;
width: 100% - $splitL;
}
}
>.splitter {
@include controlGrippy($b, vertical);
bottom: 0;
cursor: col-resize;
width: $splitterD;
margin-left: ($splitterD + 2) * -1;
left: $splitL;
}
}
}
.browse-area .splitter {
top: $ueBrowseViewBarH + $interiorMargin;
}
.edit-area .splitter {
top: 0;
}