Merge branch 'open933-frontend' into open933

This commit is contained in:
Henry 2016-07-11 14:27:30 -07:00
commit 2056d87453
7 changed files with 85 additions and 25 deletions

View File

@ -62,6 +62,6 @@
<!-- put time conductor in here? --> <!-- put time conductor in here? -->
<mct-representation mct-object="domainObject" <mct-representation mct-object="domainObject"
key="'time-conductor'" 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> </mct-representation>
</div> </div>

View File

@ -40,7 +40,7 @@
@import "controls/lists"; @import "controls/lists";
@import "controls/menus"; @import "controls/menus";
@import "controls/messages"; @import "controls/messages";
@import "controls/time-controller"; @import "controls/time-conductor";
@import "mobile/controls/menus"; @import "mobile/controls/menus";
/********************************* FORMS */ /********************************* FORMS */

View File

@ -202,7 +202,7 @@
margin-bottom: $interiorMargin * 2; margin-bottom: $interiorMargin * 2;
} }
&.description { &.description {
color: $colorCreateMenuText; color: pushBack($colorCreateMenuText, 20%);
font-size: 0.8em; font-size: 0.8em;
line-height: 1.5em; line-height: 1.5em;
} }
@ -211,15 +211,21 @@
} }
&.mini { &.mini {
width: 350px; width: 400px;
height: 250px; height: 300px;
.pane { .pane {
&.menu-items {
font-size: 0.8em;
}
&.menu-item-description { &.menu-item-description {
padding: $interiorMargin * 3; padding: $interiorMargin * 3;
.desc-area { .desc-area {
&.icon { &.icon {
font-size: 4em; font-size: 4em;
} }
&.title {
font-size: 1em;
}
} }
} }
} }

View File

@ -14,10 +14,14 @@
$r2H: nth($ueTimeControlH,2); $r2H: nth($ueTimeControlH,2);
$r3H: nth($ueTimeControlH,3); $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; border-top: 1px solid $colorInteriorBorder;
padding-top: $interiorMargin; padding-top: $interiorMargin;
min-width: $minW; min-width: $minW;
font-size: 0.8rem;
position: relative; position: relative;
>.l-row-elem { >.l-row-elem {
@ -30,20 +34,30 @@
} }
} }
.l-time-conductor-inputs-holder,
.l-time-conductor-ticks {
font-size: 0.8rem;
}
.l-time-conductor-inputs-holder { .l-time-conductor-inputs-holder {
$inputW: 200px; $inputW: 180px;
$ticksBlockerFadeW: 25px; $ticksBlockerFadeW: 25px;
$iconCalendarW: 16px;
$wBgColor: $colorBodyBg;
//$wBgColor: green;
$wBgW: $inputW + $interiorMargin + $iconCalendarW;
height: $r1H; height: $r1H;
z-index: 1; z-index: 1;
.l-time-range-input-w { .l-time-range-input-w {
// Wraps a datetime text input field // Wraps a datetime text input field
position: absolute; position: absolute;
width: $inputW + $ticksBlockerFadeW; width: $wBgW + $ticksBlockerFadeW;
&.start-date { &.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 { &.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; right: 0;
text-align: right; text-align: right;
} }
@ -51,8 +65,6 @@
width: $inputW; width: $inputW;
} }
.icon-calendar { .icon-calendar {
position: absolute;
margin-left: -16px;
margin-top: 4px; margin-top: 4px;
} }
} }
@ -61,8 +73,8 @@
.l-time-conductor-ticks { .l-time-conductor-ticks {
$c: $colorTick; $c: $colorTick;
height: $r1H; height: $r1H;
margin-top: 0 !important;
mct-conductor-axis { mct-conductor-axis {
@include transform(translateY(3px));
display: block; display: block;
position: relative; position: relative;
width: 100%; width: 100%;
@ -72,10 +84,12 @@
position: relative; position: relative;
width: 100%; width: 100%;
svg { svg {
stroke: $c; text-rendering: geometricPrecision;
color: transparent;
fill: $c !important; // Todo: figure out why this isn't working
width: 100%; height: 100%; width: 100%; height: 100%;
> g { > g {
font-size: 0.8em; font-size: 0.9em;
} }
path {display: none;} path {display: none;}
line {stroke: $c;} line {stroke: $c;}
@ -86,11 +100,44 @@
background: rgba($colorTick, 0.3); background: rgba($colorTick, 0.3);
height: $r2H; height: $r2H;
} }
.l-time-domain-selector {
position: absolute; .mode-selector .s-menu-btn {
right: 0px; &:before {
top: $interiorMargin; @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 { .s-time-range-val {

View File

@ -207,4 +207,7 @@ $colorAboutLink: #84b3ff;
// Loading // Loading
$colorLoadingFg: $colorAlt1; $colorLoadingFg: $colorAlt1;
$colorLoadingBg: rgba($colorBodyFg, 0.2); $colorLoadingBg: rgba($colorBodyFg, 0.2);
// Time Conductor
$colorTimeCondKey: #1d7a96;

View File

@ -52,7 +52,7 @@ $colorGridLines: rgba(#000, 0.05);
$colorInvokeMenu: #fff; $colorInvokeMenu: #fff;
$colorObjHdrTxt: $colorBodyFg; $colorObjHdrTxt: $colorBodyFg;
$colorObjHdrIc: pushBack($colorObjHdrTxt, 30%); $colorObjHdrIc: pushBack($colorObjHdrTxt, 30%);
$colorTick: rgba(black, 0.2); $colorTick: pullForward($colorBodyBg, 30%);
// Menu colors // Menu colors
$colorMenuBg: pushBack($colorBodyBg, 10%); $colorMenuBg: pushBack($colorBodyBg, 10%);
@ -185,6 +185,7 @@ $scrollbarThumbColorOverlayHov: $scrollbarThumbColorHov;
// Splitter // Splitter
$splitterD: 16px; // splitterD and $splitterHandleD should both be odd, or even $splitterD: 16px; // splitterD and $splitterHandleD should both be odd, or even
$splitterHandleD: 2px; $splitterHandleD: 2px;
$splitterDSm: 16px; // Smaller splitter, used inside elements like a Timeline view
$colorSplitterBg: pullForward($colorBodyBg, 10%); $colorSplitterBg: pullForward($colorBodyBg, 10%);
$splitterShdw: none; $splitterShdw: none;
$splitterEndCr: none; $splitterEndCr: none;
@ -207,3 +208,6 @@ $colorAboutLink: #84b3ff;
// Loading // Loading
$colorLoadingFg: $colorAlt1; $colorLoadingFg: $colorAlt1;
$colorLoadingBg: rgba($colorLoadingFg, 0.1); $colorLoadingBg: rgba($colorLoadingFg, 0.1);
// Time Conductor
$colorTimeCondKey: #0092b3;

View File

@ -77,9 +77,9 @@ define(
}, },
'latest': { 'latest': {
glyph: '\u0044', glyph: '\u0044',
label: 'Latest', label: 'LAD',
name: 'Latest Available Data Mode', name: 'LAD Mode',
description: 'Monitor real-time streaming data as it comes in. The Time Conductor and displays will only advance when data becomes available.' 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.'
} }
} }
} }