Skip to content

Commit 07a4e26

Browse files
committed
[Frontend] TOI finalizing
Fixes #933 Fixes #1193 HTML template cleaned up; checked in snow theme, theme colors tweaked; padding finalized; now uses val-to-left instead of -to-right;
1 parent 271c788 commit 07a4e26

File tree

4 files changed

+23
-36
lines changed

4 files changed

+23
-36
lines changed

platform/features/conductor-v2/conductor/res/sass/_time-of-interest.scss

+15-14
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
align-items: center;
6767
box-sizing: content-box;
6868
height: $toiH;
69-
right: $toiPad * -2;
69+
left: $toiPad * -2;
7070
@include transform(translateY(-50%)); top: 50%;
7171
padding: $toiPad;
7272
z-index: 1;
@@ -79,7 +79,6 @@
7979
height: 100%;
8080
line-height: $toiH;
8181
padding: $toiPad;
82-
order: 2;
8382
overflow: hidden;
8483
white-space: nowrap;
8584
justify-content: space-between;
@@ -100,13 +99,13 @@
10099
}
101100

102101
.t-button-resync {
103-
order: 2;
102+
order: 1;
104103
&:before {
105104
content: $glyph-icon-resync;
106105
}
107106
}
108107
.t-button-unpin {
109-
order: 1;
108+
order: 2;
110109
&:hover {
111110
color: $toiColorBgAlert;
112111
}
@@ -146,8 +145,9 @@
146145
.show-val .l-toi-holder {
147146
.l-toi {
148147
.l-toi-buttons {
148+
order: 1;
149149
&:hover {
150-
margin-left: $interiorMarginSm;
150+
margin-right: $interiorMarginSm;
151151
}
152152
}
153153
.l-toi-val {
@@ -161,28 +161,28 @@
161161
font-weight: 400;
162162
height: $toiH;
163163
line-height: $toiH;
164-
order: 1;
164+
order: 2;
165165
padding: 1px 3px;
166166
white-space: nowrap;
167167
}
168168
}
169169

170-
&.val-to-right {
170+
&.val-to-left {
171171
.l-toi {
172-
right: auto;
173-
left: $toiPad * -2;
172+
left: auto;
173+
right: $toiPad * -2;
174174

175175
.l-toi-buttons {
176-
order: 1;
176+
order: 2;
177177
&:hover {
178-
.t-button-resync { order: 1; }
179-
.t-button-unpin { order: 2; }
180-
margin-right: $interiorMarginSm;
178+
.t-button-resync { order: 2; }
179+
.t-button-unpin { order: 1; }
180+
margin-left: $interiorMarginSm;
181181
}
182182
}
183183

184184
.l-toi-val {
185-
order: 2;
185+
order: 1;
186186
}
187187
}
188188
}
@@ -198,6 +198,7 @@ table {
198198
z-index: 1;
199199
td, .td {
200200
.l-toi-holder {
201+
left: 50% !important;
201202
&:before,
202203
&:after {
203204
display: none;

platform/features/conductor-v2/conductor/res/sass/time-conductor-espresso.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ $colorTimeCondDataVisRtBg: pushBack($colorTimeCondKeyBg, 10%);
3939

4040
// Time of Interest
4141
$toiColorBg: #6b93c6;
42-
$toiColorBlocker: $colorBodyBg; // Color of blocker element beneath the TOI icon
43-
$toiColorFg: #000;
42+
$toiColorBlocker: $colorBodyBg; // Color of blocker element beneath the TOI icons
43+
$toiColorFg: #000; // Used by value display
4444
$toiColorCtrlFg: #fff;
45-
$toiColorBgAlert: #cf2a12;
45+
$toiColorBgAlert: #cf2a12; // Used by unpin button on hover
4646
$colorTimeCondTOIBg: darken($toiColorBg, 20%);
4747
$colorTimeCondTOIBgHov: $toiColorBg;
4848

platform/features/conductor-v2/conductor/res/sass/time-conductor-snow.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ $colorTimeCondDataVisRtBg: pushBack($colorTimeCondKeyBg, 30%);
3939

4040
// Time of Interest
4141
$toiColorBg: #6b93c6;
42-
$toiColorBlocker: $colorBodyBg; // Color of blocker element beneath the TOI icon
43-
$toiColorFg: #fff;
42+
$toiColorBlocker: $colorBodyBg; // Color of blocker element beneath the TOI icons
43+
$toiColorFg: #fff; // Used by value display
4444
$toiColorCtrlFg: #fff;
45-
$toiColorBgAlert: #a7292a; // $colorFormInvalid;
45+
$toiColorBgAlert: #ff9540; // Used by unpin button on hover
4646
$colorTimeCondTOIBg: darken($toiColorBg, 20%);
4747
$colorTimeCondTOIBgHov: $toiColorBg;
4848

Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
1-
<!--
21
<div class="l-toi-holder"
3-
ng-class="{ 'pinned': toi.pinned, 'val-to-right': toi.left < 80 }"
2+
ng-class="{ 'pinned': toi.pinned, 'val-to-left': toi.left > 80 }"
43
ng-style="{'left': toi.left + '%'}">
5-
<div class="l-toi">
6-
<a class="t-button-unpin icon-button" title="Unset Time of Interest"
7-
ng-click="toi.dismiss()"></a>
8-
<a class="t-button-resync icon-button" title="Re-sync Time of Interest"
9-
ng-click="toi.resync()"></a>
10-
</div>
11-
<span class="l-toi-val">{{toi.toiText}}</span>
12-
</div>
13-
-->
14-
15-
<div class="l-toi-holder"
16-
ng-class="{ 'pinned': true, 'val-to-right': true }"
17-
ng-style="{'left': 50 + '%'}">
184
<div class="l-flex-row l-toi">
195
<span class="flex-elem l-flex-row l-toi-buttons">
206
<a class="flex-elem t-button-resync icon-button" title="Re-sync Time of Interest"
217
ng-click="toi.resync()"></a>
228
<a class="flex-elem t-button-unpin icon-button" title="Unset Time of Interest"
239
ng-click="toi.dismiss()"></a>
2410
</span>
25-
<span class="flex-elem l-toi-val">{{toi.toiText}}2016-09-16 21:30:30</span>
11+
<span class="flex-elem l-toi-val">{{toi.toiText}}</span>
2612
</div>
2713
</div>

0 commit comments

Comments
 (0)