Skip to content

Commit f912b9e

Browse files
committed
[Frontend] Styling for TC's TOI element
Fixes #933 WIP, TC v2 changes
1 parent 2df1e2b commit f912b9e

File tree

3 files changed

+84
-5
lines changed

3 files changed

+84
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
$ueTimeConductorH: (25px, 3px, 20px);
1+
$ueTimeConductorH: (25px, 16px, 20px); // Heights for Ticks, Data Visualization, Controls elements
2+
$ueTimeConductorRtH: (25px, 3px, 20px); // Heights for elements in Real-time mode
23
$timeCondInputTimeSysDefW: 165px; // Default width for datetime value inputs
34
$timeCondInputDeltaDefW: 60px; // Default width for delta value inputs, typically 00:00:00

platform/features/conductor-v2/conductor/res/sass/_time-conductor-base.scss

+76-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
// Clock hands
5555
div[class*="hand"] {
5656
$handW: 2px;
57-
$handH: $d * 0.4; //8px;
57+
$handH: $d * 0.4;
5858
@include transform(translate(-50%, -50%));
5959
@include animation-iteration-count(infinite);
6060
@include animation-timing-function(linear);
@@ -95,6 +95,7 @@
9595
$rangeValOffset: $sliderKnobW + $interiorMargin;
9696
$r1H: nth($ueTimeConductorH, 1);
9797
$r2H: nth($ueTimeConductorH, 2);
98+
$r2HRt: nth($ueTimeConductorRtH, 2);
9899
$r3H: nth($ueTimeConductorH, 3);
99100
position: relative;
100101

@@ -175,7 +176,7 @@
175176
}
176177

177178
.l-time-conductor-inputs-and-ticks {
178-
$c: $colorTimeCondTicks; //$colorTick;
179+
$c: $colorTimeCondTicks;
179180
height: $r1H;
180181
mct-conductor-axis {
181182
display: block;
@@ -213,6 +214,73 @@
213214
height: $r2H;
214215
}
215216

217+
// Time of Interest control
218+
.l-toi-holder,
219+
.l-toi-holder:after,
220+
.l-toi-holder:before,
221+
.l-toi {
222+
display: block;
223+
position: absolute;
224+
}
225+
226+
.l-toi-holder {
227+
$c: $colorClickIcon;
228+
$cHov: $colorClickIconHov;
229+
$linesVOffset: 2px;
230+
@include transform(translateX(-50%));
231+
@include test(green);
232+
top: 0px; bottom: 0px;
233+
width: $r2H;
234+
left: auto; right: auto;
235+
z-index: 1;
236+
&:before,
237+
&:after {
238+
// Vertical lines
239+
content: '';
240+
background-color: $c;
241+
left: 50%; height: 35%; width: 1px;
242+
z-index: 0;
243+
}
244+
245+
&:before {
246+
@include transform(translate(-50%, $linesVOffset * -1));
247+
top: 0px; bottom: auto;
248+
}
249+
250+
&:after {
251+
@include transform(translate(-50%, $linesVOffset));
252+
top: auto; bottom: 0px;
253+
}
254+
255+
.l-toi {
256+
$d: $r2H * 0.65;
257+
@include transform(translate(-50%, -50%));
258+
color: $c;
259+
font-size: $d;
260+
line-height: $d;
261+
text-align: center;
262+
left: 50%;
263+
top: 50%;
264+
height: $d; width: $d;
265+
z-index: 1;
266+
&:before {
267+
@extend .ui-symbol;
268+
content: $glyph-icon-clock;
269+
}
270+
}
271+
272+
&:hover {
273+
&:before,
274+
&:after {
275+
background-color: $cHov !important;
276+
}
277+
.l-toi {
278+
color: $cHov !important;
279+
}
280+
281+
}
282+
}
283+
216284
.l-time-conductor-controls {
217285
align-items: center;
218286
margin-top: $interiorMargin;
@@ -275,8 +343,13 @@
275343
}
276344
}
277345

346+
.l-toi-holder {
347+
display: none;
348+
}
349+
278350
.l-data-visualization {
279-
background: $colorTimeCondDataVisRtBg !important
351+
background: $colorTimeCondDataVisRtBg !important;
352+
height: $r2HRt;
280353
}
281354

282355
.mode-selector .s-menu-button {

platform/features/conductor-v2/conductor/res/templates/time-conductor.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@
7979
</div>
8080

8181
<!-- Holds data availability, time of interest -->
82-
<div class="l-data-visualization l-row-elem flex-elem"></div>
82+
<div class="l-data-visualization l-row-elem flex-elem">
83+
<div class="l-toi-holder slidable horz"
84+
style="left: 100%">
85+
<div class="l-toi s-toi"></div>
86+
</div>
87+
</div>
8388

8489
<!-- Holds time system and session selectors, and zoom control -->
8590
<div class="l-time-conductor-controls l-row-elem l-flex-row flex-elem">

0 commit comments

Comments
 (0)