[Frontend] Fixed spacing of panes and mini-tabs
open #90 Splitter spacing now being handled in CSS, so modded calcs in MCTSplitPane to not add space; CSS calcs adjusted; comments removed;
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
// New look is a simple line.
|
||||
// Main width is used to provide a good click area, and is always transparent
|
||||
// :after will be a positioned and colored element that is the handle
|
||||
|
||||
//@include test(red);
|
||||
display: block;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
@@ -40,9 +42,14 @@
|
||||
@include border-radius($splitterEndCr);
|
||||
}
|
||||
}
|
||||
&:not(:active) {
|
||||
&:after {
|
||||
@include trans-prop-nice(background-color, 250ms);
|
||||
}
|
||||
}
|
||||
&:active {
|
||||
&:after {
|
||||
background: $colorSplitterActive;
|
||||
background-color: $colorSplitterActive;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -206,6 +206,7 @@
|
||||
.browse-mode {
|
||||
.split-layout {
|
||||
.split-pane-component.pane {
|
||||
//@include test(green);
|
||||
&.treeview.left {
|
||||
min-width: 150px;
|
||||
max-width: 800px;
|
||||
@@ -269,15 +270,15 @@
|
||||
}
|
||||
|
||||
.mini-tab.toggle-pane {
|
||||
//@include test(blue, 0.6);
|
||||
$paneOffset: -2 * $splitterD;
|
||||
//@include test(blue, 0.3);
|
||||
$paneExpandedOffset: $splitterD + $uePaneMiniTabW - $splitterHandleInset;
|
||||
$paneCollapsedOffset: $bodyMargin + $ueCollapsedPaneEdgeM;
|
||||
z-index: 5;
|
||||
@include desktop {
|
||||
&.toggle-tree.anchor-left {
|
||||
//@include test(green);
|
||||
left: 0; //$ox;
|
||||
@include transform(translateX($paneOffset));
|
||||
@include transform(translateX(-1 * $paneExpandedOffset));
|
||||
&:after { content: 'F'; }
|
||||
&.collapsed {
|
||||
@include transform(translateX(-1 * $paneCollapsedOffset));
|
||||
@@ -286,7 +287,7 @@
|
||||
&.toggle-inspect.anchor-right {
|
||||
$oCx: -1 * $paneCollapsedOffset;
|
||||
right: 0; //$ox;
|
||||
@include transform(translateX(-1 * $paneOffset));
|
||||
@include transform(translateX($paneExpandedOffset));
|
||||
&:after { content: '\e608'; }
|
||||
&.collapsed {
|
||||
@include transform(translateX($paneCollapsedOffset));
|
||||
|
||||
@@ -132,10 +132,10 @@ define(
|
||||
// Get actual size (to obey min-width etc.)
|
||||
firstSize = getSize(first[0]);
|
||||
first.css(anchor.dimension, firstSize + 'px');
|
||||
splitter.css(anchor.edge, (firstSize + splitterSize) + 'px');
|
||||
splitter.css(anchor.edge, firstSize + 'px');
|
||||
splitter.css(anchor.opposite, "auto");
|
||||
|
||||
last.css(anchor.edge, (firstSize + splitterSize * 2) + 'px');
|
||||
last.css(anchor.edge, (firstSize + splitterSize) + 'px');
|
||||
last.css(anchor.opposite, "0px");
|
||||
|
||||
position = firstSize + splitterSize;
|
||||
|
||||
Reference in New Issue
Block a user