[Frontend] Styling for Time Conductor v2

Fixes #993
In-progress; mode menu names and
descriptors modified, markup cleaned up
This commit is contained in:
Charles Hacskaylo 2016-07-08 17:11:43 -07:00
parent cf83040c4b
commit 0a0bc55f5f
4 changed files with 13 additions and 32 deletions

View File

@ -42,17 +42,14 @@
&.start-date { &.start-date {
@include background-image(linear-gradient(90deg, $colorBodyBg $inputW + $interiorMargin, transparent 100%)); @include background-image(linear-gradient(90deg, $colorBodyBg $inputW + $interiorMargin, transparent 100%));
} }
&.end-date { &.end-date {
@include background-image(linear-gradient(270deg, $colorBodyBg $inputW + $interiorMargin, transparent 100%)); @include background-image(linear-gradient(270deg, $colorBodyBg $inputW + $interiorMargin, transparent 100%));
right: 0; right: 0;
text-align: right; text-align: right;
} }
input[type="text"] { input[type="text"] {
width: $inputW; width: $inputW;
} }
.icon-calendar { .icon-calendar {
position: absolute; position: absolute;
margin-left: -16px; margin-left: -16px;
@ -70,7 +67,6 @@
position: relative; position: relative;
width: 100%; width: 100%;
} }
.l-axis-holder { .l-axis-holder {
height: $r1H; height: $r1H;
position: relative; position: relative;
@ -78,36 +74,23 @@
svg { svg {
stroke: $c; stroke: $c;
width: 100%; height: 100%; width: 100%; height: 100%;
> g {
font-size: 0.8em;
}
path {display: none;} path {display: none;}
line {stroke: $c;} line {stroke: $c;}
} }
} }
} }
.l-data-visualization { .l-data-visualization {
background: rgba($colorTick, 0.3); background: rgba($colorTick, 0.3);
height: $r2H; height: $r2H;
} }
.l-time-domain-selector { .l-time-domain-selector {
position: absolute; position: absolute;
right: 0px; right: 0px;
top: $interiorMargin; top: $interiorMargin;
} }
/* .super-menu.mode-selector-menu {
height: 200px; width: 400px;
.menu-item-description {
.desc-area.icon {
@include test();
$h: 50px;
//font-size: 3em;
//height: $h;
//line-height: $h;
}
}
}*/
} }
.s-time-range-val { .s-time-range-val {

View File

@ -26,14 +26,14 @@
<a <a
ng-mouseover="representation.activeMetadata = { ng-mouseover="representation.activeMetadata = {
glyph: '\ue604', glyph: '\ue604',
name: 'Fixed Time-Span', name: 'Fixed Timespan Mode',
description: 'Display data that falls between two fixed dates' description: 'Query and explore data that falls between two fixed dates.'
}" }"
ng-mouseleave="representation.activeMetadata = undefined"> ng-mouseleave="representation.activeMetadata = undefined">
<span class="ui-symbol icon type-icon"> <span class="ui-symbol icon type-icon">
&#xe604; &#xe604;
</span> </span>
Fixed Time-span Fixed Timespan Mode
</a> </a>
</li> </li>
<li ng-click="representation.mode='realtime'"> <li ng-click="representation.mode='realtime'">
@ -41,27 +41,27 @@
ng-mouseover="representation.activeMetadata = { ng-mouseover="representation.activeMetadata = {
glyph: '\u0043', glyph: '\u0043',
name: 'Real-time Mode', name: 'Real-time Mode',
description: 'Monitor real-time streaming data as it comes in to the application. The Time Conductor will automatically advance itself based on a UTC clock.' description: 'Monitor real-time streaming data as it comes in. The Time Conductor will automatically advance itself based on a UTC clock.'
}" }"
ng-mouseleave="representation.activeMetadata = undefined"> ng-mouseleave="representation.activeMetadata = undefined">
<span class="ui-symbol icon type-icon"> <span class="ui-symbol icon type-icon">
&#x43; &#x43;
</span> </span>
Real-time Real-time Mode
</a> </a>
</li> </li>
<li ng-click="representation.mode='latest'"> <li ng-click="representation.mode='latest'">
<a <a
ng-mouseover="representation.activeMetadata = { ng-mouseover="representation.activeMetadata = {
glyph: '\u0044', glyph: '\u0044',
name: 'Latest Available Data', name: 'Latest Available Data Mode',
description: 'Monitor real-time streaming data as it comes in to the application. In contrast to real-time mode the time conductor will only advance when data becomes available.' description: 'Monitor real-time streaming data as it comes in. The Time Conductor will only advance when data becomes available.'
}" }"
ng-mouseleave="representation.activeMetadata = undefined"> ng-mouseleave="representation.activeMetadata = undefined">
<span class="ui-symbol icon type-icon"> <span class="ui-symbol icon type-icon">
&#x44; &#x44;
</span> </span>
Latest Available Data Latest Available Data Mode
</a> </a>
</li> </li>
</ul> </ul>

View File

@ -38,7 +38,7 @@
<span ng-controller="ClickAwayController as modeController"> <span ng-controller="ClickAwayController as modeController">
<div class="s-menu-btn" <div class="s-menu-btn"
ng-click="modeController.toggle()"> ng-click="modeController.toggle()">
<span class="title-label">Fixed Time Span</span> <span class="title-label">Historical Data Mode</span>
</div> </div>
<div class="menu super-menu mini mode-selector-menu" <div class="menu super-menu mini mode-selector-menu"
ng-show="modeController.isActive()"> ng-show="modeController.isActive()">

View File

@ -1,9 +1,7 @@
<!-- Parent holder for time conductor. follow-mode | fixed-mode --> <!-- Parent holder for time conductor. follow-mode | fixed-mode -->
<div class="l-time-conductor follow-mode" <div class="l-time-conductor follow-mode"
ng-controller="TimeConductorController as tcController" class="l-flex-col"> ng-controller="TimeConductorController as tcController" class="l-flex-col">
<!-- Holds date selectors and ticks --> <!-- Holds inputs and ticks -->
<!-- Holds ticks -->
<div class="l-time-conductor-ticks l-row-elem l-flex-row flex-elem no-margin"> <div class="l-time-conductor-ticks l-row-elem l-flex-row flex-elem no-margin">
<form class="abs l-time-conductor-inputs-holder" <form class="abs l-time-conductor-inputs-holder"
ng-submit="tcController.updateBoundsFromForm(formModel)"> ng-submit="tcController.updateBoundsFromForm(formModel)">