Skip to content

Commit

Permalink
[Frontend] Styling for TC's TOI element
Browse files Browse the repository at this point in the history
Fixes #933
Fixes #1193
TOI in TC done for now.
  • Loading branch information
charlesh88 committed Sep 15, 2016
1 parent 98e67f8 commit 35872e2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ $ueTimeConductorH: (25px, 16px, 20px); // Heights for Ticks, Data Visualization,
$ueTimeConductorRtH: (25px, 3px, 20px); // Heights for elements in Real-time mode
$timeCondInputTimeSysDefW: 165px; // Default width for datetime value inputs
$timeCondInputDeltaDefW: 60px; // Default width for delta value inputs, typically 00:00:00
$timeCondAxisLROffset: (5px, 5px); // Margin to left, right of tick axis and vis bar. For paging, use 15, 20px
$timeCondAxisLROffset: (6px, 6px); // Margin to left, right of tick axis and vis bar. For paging, use 15, 20px
$timeCondTOIIconD: 12px; // height and width of icon used for TOI indicator
$timeCondTOIValOffset: 0px;
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,16 @@
$linesVOffset: 2px;
@include transform(translateX(-50%));
top: 0px; bottom: 0px;
width: $r2H;
width: $timeCondTOIIconD;
left: auto; right: auto;
z-index: 1;
&:before,
&:after {
// Vertical lines
content: '';
background-color: $c;
left: 50%; height: 35%; width: 1px;
left: 50%;
height: (($r2H - $timeCondTOIIconD)/2) + $linesVOffset; width: 1px;
z-index: 0;
}

Expand All @@ -278,7 +279,7 @@
}

.l-toi {
$d: $r2H * 0.65;
$d: $timeCondTOIIconD; //$r2H * 0.65;
@include transform(translate(-50%, -50%));
color: $c;
font-size: $d;
Expand All @@ -294,15 +295,38 @@
}
}

.l-toi-val {
@include transform(translateY(-50%));
display: none; // Only show when TOI is active
font-size: 0.7rem;
position: absolute;
top: 50%;
white-space: nowrap;
right: $timeCondTOIIconD + $interiorMarginSm;
}

&.val-to-right {
.l-toi-val {
right: auto;
left: $timeCondTOIIconD + $interiorMarginSm;
}
}

&.s-status-active {
.l-toi-val {
display: block;
}
}

&:hover {
&:before,
&:after {
background-color: $cHov !important;
}
.l-toi {
.l-toi,
.l-toi-val {
color: $cHov !important;
}

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,13 @@
<div class="l-data-visualization-holder l-row-elem flex-elem">
<a class="l-page-button s-icon-button icon-pointer-left"></a>
<div class="l-data-visualization">

<!-- val-to-right should be applied when l-toi-holder left < 160px -->
<div class="l-toi-holder slidable horz"
ng-class="{ 's-status-active':true, 'val-to-right': false }"
style="left: 100%">
<div class="l-toi s-toi"></div>
<div class="l-toi-val">2016-09-15 21:31:30.000Z</div>
</div>
</div>
<a class="l-page-button align-right s-icon-button icon-pointer-right"></a>
Expand Down

0 comments on commit 35872e2

Please sign in to comment.