Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review and integrate open90: Expand/collapse Treeview and Inspection #233

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
821a1a4
[Production] Updated symbols font to v25
charlesh88 Oct 14, 2015
be79c10
[Frontend] Added new glyph
charlesh88 Oct 20, 2015
b98c1cd
[Frontend] Manual re-do of collapse/expand panes
charlesh88 Oct 22, 2015
4f27104
[Frontend] Manual re-do of collapse/expand panes
charlesh88 Oct 22, 2015
536d561
[Frontend] Manual re-do of collapse/expand panes
charlesh88 Oct 23, 2015
bf17b77
Merge remote-tracking branch 'github/prod-uisymbols' into open90
charlesh88 Oct 23, 2015
3687cc5
[Frontend] Manual re-do of collapse/expand panes
charlesh88 Oct 23, 2015
57f11a9
[Frontend] Manual re-do of collapse/expand panes
charlesh88 Oct 23, 2015
827e1af
[Frontend] Manual re-do of collapse/expand panes
charlesh88 Oct 23, 2015
a283a2a
[Frontend] Manual re-do of collapse/expand panes
charlesh88 Oct 23, 2015
0c4d422
[Frontend] Manual re-do of collapse/expand panes
charlesh88 Oct 23, 2015
2452b25
[Frontend] Manual integration of Inspector
charlesh88 Oct 23, 2015
1d3870d
[Frontend] Manual integration of Inspector
charlesh88 Oct 23, 2015
a7ea4c3
[Frontend] Inspector styling, in progress
charlesh88 Oct 23, 2015
efd2098
[Frontend] Inspector styling, in progress
charlesh88 Oct 23, 2015
17b3378
[Frontend] Expand/collapse styling
charlesh88 Oct 23, 2015
aa3cf70
[Frontend] Expand/collapse styling
charlesh88 Oct 24, 2015
94649b1
[Frontend] Splitter re-styling
charlesh88 Oct 24, 2015
85809ae
[Frontend] Fixed mini-tab positioning algorithm
charlesh88 Oct 25, 2015
99c977c
[Frontend] Fixed mini-tab positioning algorithm
charlesh88 Oct 25, 2015
8ee4fc9
[Frontend] Fixed spacing of panes and mini-tabs
charlesh88 Oct 25, 2015
fd582d4
Frontend] More refining of collapsing treeview
charlesh88 Oct 26, 2015
7d42292
Frontend] More refining of collapsing treeview
charlesh88 Oct 26, 2015
f655346
Frontend] More refining of collapsing treeview
charlesh88 Oct 26, 2015
77a1a90
Frontend] Normalizing styles for items and l-icon-link
charlesh88 Oct 26, 2015
498f854
Frontend] Treeview expand/collapse anim timing tweaks
charlesh88 Oct 26, 2015
daed6a5
Frontend] Tweaked sizes of mini-tabs and pane collapsed edge margin
charlesh88 Oct 26, 2015
0a19ab4
Merging in latest github/master
charlesh88 Oct 28, 2015
fc704b8
[Frontend] Fixed and finessed mobile expand collapse
charlesh88 Oct 28, 2015
134d853
[Frontend] type-icon evolving to universal t-item-icon
charlesh88 Oct 28, 2015
56e8cd8
[Frontend] Refinements to t-item-icon
charlesh88 Oct 29, 2015
bb0e27c
[Frontend] Restored erroneously checked in bundles.json;
charlesh88 Oct 29, 2015
11ca39b
[Frontend] t-item-icon
charlesh88 Oct 29, 2015
59b24d9
[Frontend] Tweaks to splitter-related SASS
charlesh88 Oct 29, 2015
660e9f0
[Frontend] Fixed color of menu-item divider items;
charlesh88 Oct 29, 2015
f51230b
[Frontend] Fixed erroneous classes wrapping Create button;
charlesh88 Oct 29, 2015
a0c6ddf
[Frontend] Removed unused mini-tab-icon class
charlesh88 Oct 29, 2015
1b0ce71
[Frontend] Bring in new collapse left and right pane symbols
charlesh88 Oct 29, 2015
8c4fdf5
[Frontend] Expand/collapse finessing
charlesh88 Oct 29, 2015
ddebbf1
[Frontend] Expand/collapse finessing
charlesh88 Oct 29, 2015
1dbd721
[Frontend] Significant mods to main layout strategy
charlesh88 Oct 30, 2015
675c5be
[Frontend] Tweaks to splitter edge shdw
charlesh88 Oct 30, 2015
b5b6546
[Frontend] Significant change to look and behavior of mini-tabs
charlesh88 Oct 30, 2015
c913f17
[Frontend] Safety merge of master; minor fixes
charlesh88 Oct 31, 2015
fe8d9f6
[Frontend] Mobile and margin tweaks
charlesh88 Oct 31, 2015
64c6ef6
[Frontend] Tweaks in Inspector
charlesh88 Oct 31, 2015
141a54c
[Frontend] Tweaks in Inspector
charlesh88 Oct 31, 2015
f7588d5
[Frontend] Added crosshair symbol for inspect
charlesh88 Nov 2, 2015
648cdcc
Updated crosshair symbol for inspect
charlesh88 Nov 2, 2015
fe12cde
[Frontend] Added icon to Inspector header
charlesh88 Nov 2, 2015
c8848b5
[Frontend] Tweaked spacing in Inspector header
charlesh88 Nov 2, 2015
09be193
Resolved CSS conflicts
charlesh88 Nov 3, 2015
9037787
Fixed missing window reference causing test to fail
charlesh88 Nov 4, 2015
2c7c7b9
Fixed JS var placement causing mvn to fail
charlesh88 Nov 4, 2015
63798ff
[Merge] Merge master-m-open90 back into open90
charlesh88 Nov 4, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Frontend] Expand/collapse styling
open #90
Significant styling on new mini-tabs;
Main layout margins adjusted;
  • Loading branch information
charlesh88 committed Oct 24, 2015
commit aa3cf70b229ab8980bc8746831f0a3c73b2c55c2
6 changes: 5 additions & 1 deletion platform/commonUI/browse/res/templates/browse.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,17 @@
<mct-splitter class="splitter-treeview mobile-hide"></mct-splitter>

<div class='split-pane-component items pane right'>
<a class="mini-tab anchor-left toggle-pane toggle-tree" ng-click="modelPaneTree.toggle()" ng-class="{ collapsed : !modelPaneTree.visible() }"></a>
<a class="mini-tab anchor-left toggle-pane toggle-tree"
title="Click to {{ modelPaneTree.visible()? 'hide' : 'show' }} the tree pane"
ng-click="modelPaneTree.toggle()"
ng-class="{ collapsed : !modelPaneTree.visible() }"></a>
<div class='holder abs l-mobile' id='content-area'
ng-controller="PaneController as modelPaneInspect"
ng-class="modelPaneInspect.visible() ? 'pane-inspect-showing' : 'pane-inspect-hidden'">
<mct-split-pane class='l-object-and-inspector contents abs' anchor='right'>
<div class='split-pane-component t-object pane left'>
<a class="mini-tab anchor-right mobile-hide toggle-pane toggle-inspect"
title="Click to {{ modelPaneInspect.visible()? 'hide' : 'show' }} the Inspection pane"
ng-click="modelPaneInspect.toggle()"
ng-class="{ collapsed : !modelPaneInspect.visible() }"></a>
<mct-representation mct-object="navigatedObject"
Expand Down
4 changes: 3 additions & 1 deletion platform/commonUI/general/res/sass/_constants.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ $ueAppLogoW: 105px;
$ueEditToolBarH: 25px;
$ueBrowseLeftPaneTreeW: 25%;
$ueBrowseRightPaneInspectW: 20%;
$ueCollapsedPaneEdgeM: 10px;
$uePaneMiniTabH: $ueTopBarH;
$uePaneMiniTabW: $ueCollapsedPaneEdgeM + $interiorMargin;
$ueEditLeftPaneW: 75%;
$treeSearchInputBarH: 25px;
$ueTimeControlH: (33px, 20px, 20px);
$ueCollapsedEdgeMargin: 15px;
// Overlay
$ovrTopBarH: 60px;
$ovrFooterH: 30px;
Expand Down
102 changes: 61 additions & 41 deletions platform/commonUI/general/res/sass/controls/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,92 +103,112 @@ $pad: $interiorMargin * $baseRatio;

.mini-tab {
// Meant to be used as pane hide/show control elements in concert with mct-splitter
@extend .ui-symbol;
//@extend .ui-symbol;
@include desktop {
@include trans-prop-nice(left, 150ms);
//@include test(green);
$iconD: 12px;
$arwD: 7px;
$iconH: $uePaneMiniTabH;
$iconW: $uePaneMiniTabW;
$iconInnerLR: 0;
$arwD: 9px;
$arwOffsetX: 0px;
$arwAnimOffsetX: 2px;
$arwToLeftAnimX: -1 * $arwAnimOffsetX;
$arwToRightAnimX: $arwAnimOffsetX;
$arwToLeftX: ($arwOffsetX + $arwD) * -1;
$arwToRightX: $iconD + $arwOffsetX;
$c: pullForward($colorBodyBg, 15%);
color: $c;
$arwAnimOffsetX: 2px + $iconInnerLR;
$cBg: pullForward($colorBodyBg, 15%);
$cFg: $cBg;


@include border-radius($basicCr);
//@include boxShdw($shdwBtns);
@include box-sizing(border-box);
@include trans-prop-nice((color, background-color), 100ms);
color: $cFg;
cursor: pointer;
font-family: symbolsfont;
font-size: $arwD;
display: block;
position: absolute;
font-size: $iconD;
line-height: $iconD;
height: $iconD; width: $iconD;
line-height: $iconH;
height: $iconH; width: $iconW;

&:hover {
color: pullForward($c, 20%);
&:after {
color: $colorKey;
//background-color: $cBg;
color: $colorKey; //pullForward($cFg, $ltGamma);
}

&.collapsed {
// State when the pane this element controls has been collapsed
@include btnSubtle($colorBtnBg, $colorKey, $colorBtnFg, $colorBtnIcon);
&:before { opacity: 0; }
&:after { opacity: 1; }
&:hover {
&:before { opacity: 1; }
&:after { opacity: 0; }
}

}

&:before,
&:after {
@include trans-prop-nice(color, 200ms);
@include trans-prop-nice((left, right, opacity), 250ms);
display: block;
height: 100%;
position: absolute;
}

&:before {
// Always the arrow icon
@include trans-prop-nice(left, 150ms);
//@include test(green);
font-size: $arwD;
height: 100%; width: $arwD;
//font-size: $arwD;
width: $arwD;
}
&:after {
// Always vertical bar element
// Always icon; content is set in _layout.scss
width: 100%;
height: 100%;
text-align: center;
opacity: 0;
}

&.anchor-left {
// < []
$xpos: $arwToLeftX;
// |<
text-align: right;
&:before {
content:'\3c';
left: $xpos;
right: $iconInnerLR;
}
&:hover:before { left: $xpos + $arwToLeftAnimX; }
//&:after {
// right: auto; left: $iconInnerLR;
//}
&:hover:before { right: $arwAnimOffsetX; }
&.collapsed {
$xpos: $arwToRightX;
@include border-left-radius(0);
text-align: left;
&:before {
content:'\3e';
left: $xpos;
left: $iconInnerLR;
}
&:hover:before { left: $xpos + $arwToRightAnimX; }
&:hover:before { left: $arwAnimOffsetX; }
}
}
&.anchor-right {
// [] >
$xpos: $arwToRightX;
// >|
&:before {
text-align: left;
content:'\3e';
left: $xpos;
left: $iconInnerLR;
}
&:hover:before { left: $xpos + $arwToRightAnimX; }
//&:after {
// right: $iconInnerLR; left: auto;
//}
&:hover:before { left: $arwAnimOffsetX; }
&.collapsed {
$xpos: $arwToLeftX;
@include border-right-radius(0);
&:before {
text-align: right;
content:'\3c';
left: $xpos;
right: $iconInnerLR;
}
&:hover:before { left: $xpos + $arwToLeftAnimX; }
&:hover:before { right: $arwAnimOffsetX; }
}
}

&.collapsed {
// State when the pane this element controls has been collapsed
}
}
}

Expand Down
38 changes: 17 additions & 21 deletions platform/commonUI/general/res/sass/user-environ/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@
width: $ueBrowseLeftPaneTreeW;
}
&.t-inspect.right {
min-width: 100px;
max-width: 800px;
padding-left: 15px; // Allow room for mini-tab element
min-width: 200px;
max-width: 600px;
padding-left: $ueCollapsedPaneEdgeM; // Allow room for mini-tab element
width: $ueBrowseRightPaneInspectW;
}
}
Expand Down Expand Up @@ -264,29 +264,26 @@
}

.mini-tab.toggle-pane {
$h: $ueTopBarH;
$paneOffset: $interiorMarginLg * -3;
$paneOffset: -1 * ($uePaneMiniTabW + $interiorMargin + $splitterW);
$paneCollapsedOffset: $bodyMargin + $ueCollapsedPaneEdgeM;
z-index: 2;
@include desktop {
top: 5px;
&.toggle-tree.anchor-left {
//@include test(green);
left: $paneOffset;
&:after {
content: 'F';
}
left: 0; //$ox;
@include transform(translateX($paneOffset));
&:after { content: 'F'; }
&.collapsed {
left: (-1 * $bodyMargin) - $ueCollapsedEdgeMargin;
@include transform(translateX(-1 * $paneCollapsedOffset));
}
}
&.toggle-inspect.anchor-right {
$xpos: $paneOffset + $interiorMargin;
right: $xpos;
&:after {
content: '\e608';
}
$oCx: -1 * $paneCollapsedOffset;
right: 0; //$ox;
@include transform(translateX(-1 * $paneOffset));
&:after { content: '\e608'; }
&.collapsed {
right: -1 * $interiorMargin - $ueCollapsedEdgeMargin;
@include transform(translateX($paneCollapsedOffset));
}
}
}
Expand Down Expand Up @@ -316,8 +313,7 @@
&.vertical {
// Slides left and right
> .pane {
// @include test();
margin-left: $interiorMargin;
//margin-left: $interiorMargin; // This spacing is now handled by MCTSplitPane.js
> .holder {
left: 0;
right: 0;
Expand Down Expand Up @@ -402,7 +398,7 @@
}
// Sets the right representation when the tree is hidden.
.pane.right.items {
left: $ueCollapsedEdgeMargin !important;
left: $ueCollapsedPaneEdgeM !important;
}
}

Expand Down Expand Up @@ -431,7 +427,7 @@
opacity: 0;
}
.pane.left {
right: $ueCollapsedEdgeMargin !important;
right: $ueCollapsedPaneEdgeM !important;
}
}
}
Expand Down
Loading