Skip to content

Commit

Permalink
Merge branch 'open933-frontend' into open933
Browse files Browse the repository at this point in the history
  • Loading branch information
akhenry committed Jul 11, 2016
2 parents 585da38 + 64ce8a2 commit 2056d87
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 25 deletions.
2 changes: 1 addition & 1 deletion platform/commonUI/browse/res/templates/browse-object.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
<!-- put time conductor in here? -->
<mct-representation mct-object="domainObject"
key="'time-conductor'"
class="abs holder flex-elem flex-fixed l-time-controller">
class="abs holder flex-elem flex-fixed l-time-conductor-holder">
</mct-representation>
</div>
2 changes: 1 addition & 1 deletion platform/commonUI/general/res/sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
@import "controls/lists";
@import "controls/menus";
@import "controls/messages";
@import "controls/time-controller";
@import "controls/time-conductor";
@import "mobile/controls/menus";

/********************************* FORMS */
Expand Down
12 changes: 9 additions & 3 deletions platform/commonUI/general/res/sass/controls/_menus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
margin-bottom: $interiorMargin * 2;
}
&.description {
color: $colorCreateMenuText;
color: pushBack($colorCreateMenuText, 20%);
font-size: 0.8em;
line-height: 1.5em;
}
Expand All @@ -211,15 +211,21 @@
}

&.mini {
width: 350px;
height: 250px;
width: 400px;
height: 300px;
.pane {
&.menu-items {
font-size: 0.8em;
}
&.menu-item-description {
padding: $interiorMargin * 3;
.desc-area {
&.icon {
font-size: 4em;
}
&.title {
font-size: 1em;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
$r2H: nth($ueTimeControlH,2);
$r3H: nth($ueTimeControlH,3);

// Glyphs Todo: replace with refactored CSS approach when that is merged into master
$glyphIconFixed: '\e604';
$glyphIconRealtime: '\43';
$glyphIconLatest: '\44';

border-top: 1px solid $colorInteriorBorder;
padding-top: $interiorMargin;
min-width: $minW;
font-size: 0.8rem;
position: relative;

>.l-row-elem {
Expand All @@ -30,29 +34,37 @@
}
}

.l-time-conductor-inputs-holder,
.l-time-conductor-ticks {
font-size: 0.8rem;
}

.l-time-conductor-inputs-holder {
$inputW: 200px;
$inputW: 180px;
$ticksBlockerFadeW: 25px;
$iconCalendarW: 16px;
$wBgColor: $colorBodyBg;
//$wBgColor: green;
$wBgW: $inputW + $interiorMargin + $iconCalendarW;

height: $r1H;
z-index: 1;
.l-time-range-input-w {
// Wraps a datetime text input field
position: absolute;
width: $inputW + $ticksBlockerFadeW;
width: $wBgW + $ticksBlockerFadeW;
&.start-date {
@include background-image(linear-gradient(90deg, $colorBodyBg $inputW + $interiorMargin, transparent 100%));
@include background-image(linear-gradient(90deg, $wBgColor $wBgW, transparent 100%));
}
&.end-date {
@include background-image(linear-gradient(270deg, $colorBodyBg $inputW + $interiorMargin, transparent 100%));
@include background-image(linear-gradient(270deg, $wBgColor $wBgW, transparent 100%));
right: 0;
text-align: right;
}
input[type="text"] {
width: $inputW;
}
.icon-calendar {
position: absolute;
margin-left: -16px;
margin-top: 4px;
}
}
Expand All @@ -61,8 +73,8 @@
.l-time-conductor-ticks {
$c: $colorTick;
height: $r1H;
margin-top: 0 !important;
mct-conductor-axis {
@include transform(translateY(3px));
display: block;
position: relative;
width: 100%;
Expand All @@ -72,10 +84,12 @@
position: relative;
width: 100%;
svg {
stroke: $c;
text-rendering: geometricPrecision;
color: transparent;
fill: $c !important; // Todo: figure out why this isn't working
width: 100%; height: 100%;
> g {
font-size: 0.8em;
font-size: 0.9em;
}
path {display: none;}
line {stroke: $c;}
Expand All @@ -86,11 +100,44 @@
background: rgba($colorTick, 0.3);
height: $r2H;
}
.l-time-domain-selector {
position: absolute;
right: 0px;
top: $interiorMargin;
}

.mode-selector .s-menu-btn {
&:before {
@extend .ui-symbol;
margin-right: $interiorMarginSm;
content: $glyphIconFixed;
}
}

// Realtime, latest modes
&.realtime-mode,
&.latest-mode {
.l-time-conductor-inputs-holder {
.l-time-range-input-w {
input:not(:hover) {
background: transparent;
box-shadow: none;
border-radius: 0;
}
.icon-calendar {
display: none;
}
&.end-date {
display: none;
}
}
}

.l-data-visualization {
background: rgba($colorTimeCondKey, 0.5) !important
}
.mode-selector .s-menu-btn {
@include btnSubtle($colorTimeCondKey, pullForward($colorTimeCondKey, $ltGamma));
}
}

&.realtime-mode .mode-selector .s-menu-btn:before { content: $glyphIconRealtime; }
&.latest-mode .mode-selector .s-menu-btn:before { content: $glyphIconLatest; }
}

.s-time-range-val {
Expand Down
5 changes: 4 additions & 1 deletion platform/commonUI/themes/espresso/res/sass/_constants.scss
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,7 @@ $colorAboutLink: #84b3ff;

// Loading
$colorLoadingFg: $colorAlt1;
$colorLoadingBg: rgba($colorBodyFg, 0.2);
$colorLoadingBg: rgba($colorBodyFg, 0.2);

// Time Conductor
$colorTimeCondKey: #1d7a96;
6 changes: 5 additions & 1 deletion platform/commonUI/themes/snow/res/sass/_constants.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $colorGridLines: rgba(#000, 0.05);
$colorInvokeMenu: #fff;
$colorObjHdrTxt: $colorBodyFg;
$colorObjHdrIc: pushBack($colorObjHdrTxt, 30%);
$colorTick: rgba(black, 0.2);
$colorTick: pullForward($colorBodyBg, 30%);

// Menu colors
$colorMenuBg: pushBack($colorBodyBg, 10%);
Expand Down Expand Up @@ -185,6 +185,7 @@ $scrollbarThumbColorOverlayHov: $scrollbarThumbColorHov;
// Splitter
$splitterD: 16px; // splitterD and $splitterHandleD should both be odd, or even
$splitterHandleD: 2px;
$splitterDSm: 16px; // Smaller splitter, used inside elements like a Timeline view
$colorSplitterBg: pullForward($colorBodyBg, 10%);
$splitterShdw: none;
$splitterEndCr: none;
Expand All @@ -207,3 +208,6 @@ $colorAboutLink: #84b3ff;
// Loading
$colorLoadingFg: $colorAlt1;
$colorLoadingBg: rgba($colorLoadingFg, 0.1);

// Time Conductor
$colorTimeCondKey: #0092b3;
6 changes: 3 additions & 3 deletions platform/features/conductor-v2/src/TimeConductorController.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ define(
},
'latest': {
glyph: '\u0044',
label: 'Latest',
name: 'Latest Available Data Mode',
description: 'Monitor real-time streaming data as it comes in. The Time Conductor and displays will only advance when data becomes available.'
label: 'LAD',
name: 'LAD Mode',
description: 'Latest Available Data mode monitors real-time streaming data as it comes in. The Time Conductor and displays will only advance when data becomes available.'
}
}
}
Expand Down

0 comments on commit 2056d87

Please sign in to comment.