Skip to content

Commit

Permalink
[Frontend] Styling for Time Conductor v2
Browse files Browse the repository at this point in the history
Fixes #993
In-progress; Create menu refactoring and new
mini Create menu
  • Loading branch information
charlesh88 committed Jul 8, 2016
1 parent 32f7bc8 commit cf83040
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 37 deletions.
8 changes: 4 additions & 4 deletions platform/commonUI/edit/res/templates/create/create-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@

</ul>
</div>
<div class="pane right menu-item-description">
<div class="desc-area ui-symbol icon type-icon">
<div class="pane right menu-item-description l-flex-col">
<div class="desc-area flex-elem holder ui-symbol icon type-icon">
{{representation.activeMetadata.glyph}}
</div>
<div class="desc-area title">
<div class="desc-area flex-elem holder title">
{{representation.activeMetadata.name}}
</div>
<div class="desc-area description">
<div class="desc-area flex-elem holder description">
{{representation.activeMetadata.description}}
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions platform/commonUI/general/res/sass/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
}

.menu .type-icon,
.tree-item .type-icon,
.super-menu.menu .type-icon {
.tree-item .type-icon {
position: absolute;
}

Expand Down
67 changes: 40 additions & 27 deletions platform/commonUI/general/res/sass/controls/_menus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
}
.pane {
box-sizing: border-box;
&.left {
&.menu-items {
border-right: 1px solid pullForward($colorMenuBg, 10%);
left: 0;
padding-right: $interiorMargin;
Expand All @@ -183,38 +183,47 @@
}
}
}
&.right {
&.menu-item-description {
left: auto;
right: 0;
padding: $interiorMargin * 5;
width: $prw;
.desc-area {
&.icon {
color: $colorCreateMenuLgIcon;
font-size: 8em;
margin-bottom: $interiorMargin * 3;
position: relative;
text-align: center;
}
&.title {
color: $colorCreateMenuText;
font-size: 1.2em;
margin-bottom: $interiorMargin * 2;
}
&.description {
color: $colorCreateMenuText;
font-size: 0.8em;
line-height: 1.5em;
}
}
}
}
.menu-item-description {
.desc-area {
&.icon {
$h: 150px;
color: $colorCreateMenuLgIcon;
position: relative;
font-size: 8em;
left: 0;
height: $h;
line-height: $h;
margin-bottom: $interiorMargin * 5;
text-align: center;
}
&.title {
color: $colorCreateMenuText;
font-size: 1.2em;
margin-bottom: 0.5em;
}
&.description {
color: $colorCreateMenuText;
font-size: 0.8em;
line-height: 1.5em;
}
}
}

&.mini {
width: 350px;
height: 250px;
.pane {
&.menu-item-description {
padding: $interiorMargin * 3;
.desc-area {
&.icon {
font-size: 4em;
}
}
}
}
}
}
.context-menu {
font-size: 0.80rem;
Expand Down Expand Up @@ -251,3 +260,7 @@
right: 0;
width: auto;
}

.menus-up .menu {
bottom: $btnStdH; top: auto;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
this source code distribution or the Licensing information page available
at runtime from the About dialog for additional information.
-->
<style>
<!--<style>
.super-menu.mode-selector-menu {
width: 400px;
}
.super-menu.mode-selector-menu {
height: 200px;
bottom: 0px;
}
.super-menu.mode-selector-menu .menu-item-description .desc-area.icon {
height: 20%;
Expand All @@ -35,13 +34,13 @@
.super-menu .mode-selector-menu .menu-item-description .desc-area.description {
height: 60%;
}
</style>
</style>-->
<span ng-controller="ClickAwayController as modeController">
<div class="s-menu-btn"
ng-click="modeController.toggle()">
<span class="title-label">Fixed Time Span</span>
</div>
<div class="menu super-menu mode-selector-menu"
<div class="menu super-menu mini mode-selector-menu"
ng-show="modeController.isActive()">
<mct-representation mct-object="domainObject"
key="'mode-menu'">
Expand Down

0 comments on commit cf83040

Please sign in to comment.