Skip to content

Commit c0a96b3

Browse files
committed
[Frontend] Styling for TOI element in TC
Fixes #933 Fixes #1193 WIP, tweaking TOI in TC
1 parent 27e6caf commit c0a96b3

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

platform/commonUI/general/res/sass/plots/_plots-main.scss

+3-12
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@
9090

9191
.l-toi-holder {
9292
//@include test(green);
93-
$cBg: #666 ;
93+
$cBg: $toiColorBg;
9494
$cBgPinnedOpacity: 0.3;
95-
$cBgPinned: rgba($colorKey, 0.4);
96-
//@include transform(translateX(-50%));
95+
$cBgPinned: $toiColorBgPinned;
9796
pointer-events: none;
9897
position: absolute;
9998
top: 0;
@@ -103,42 +102,34 @@
103102
width: 20%; // Needs to be an even number to avoid sub-pixel antialiasing of the vertical line
104103
&:before {
105104
// Vertical line
106-
//background-color: $cBg;
107105
border-left: 1px dashed $cBg;
108106
content:'';
109107
display: block;
110108
left: 50%;
111-
//@include transform(translateX(-50%));
112109
position: absolute;
113110
top: 0; bottom: 0;
114111
width: 1px;
115112
}
116113
.l-toi-val {
117-
//@include test(green);
118114
background-color: $cBg;
119-
color: #fff;
115+
color: $toiColorFg;
120116
box-sizing: border-box;
121-
//display: inline-block;
122117
padding: $interiorMarginSm $interiorMarginSm;
123118
position: absolute;
124119
text-align: center;
125-
//white-space: nowrap;
126120
width: 100%;
127121
bottom: -2px;
128122
border-radius: $controlCr;
129123
.val {
130124
@include reverseEllipsis();
131-
//display: inline-block;
132125
}
133126
.t-unpin-button {
134-
//display: inline-block;
135127
margin-left: $interiorMarginSm;
136128
pointer-events: auto;
137129
}
138130
}
139131

140132
&.pinned {
141-
//opacity: 0.4;
142133
&:before {
143134
border-left-color: $cBgPinned;
144135
border-left-style: solid;

platform/commonUI/themes/espresso/res/sass/_constants.scss

+8
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ $colorInspectorPropVal: pullForward($colorInspectorFg, 15%);
103103
$colorInspectorSectionHeaderBg: $colorFormSectionHeader;
104104
$colorInspectorSectionHeaderFg: pullForward($colorInspectorBg, 40%);
105105

106+
// Time of Interest
107+
$toiColorBg: #666;
108+
$toiColorBgHov: #999;
109+
$toiColorFg: #fff;
110+
$toiColorBgPinned: rgba($colorKey, 0.4);
111+
$toiColorFgPinned: #fff;
112+
113+
106114
// Status colors, mainly used for messaging and item ancillary symbols
107115
$colorStatusFg: #ccc;
108116
$colorStatusDefault: #ccc;

platform/commonUI/themes/snow/res/sass/_constants.scss

+7
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ $colorInspectorPropVal: pullForward($colorInspectorFg, 15%);
103103
$colorInspectorSectionHeaderBg: pullForward($colorInspectorBg, 5%);
104104
$colorInspectorSectionHeaderFg: pullForward($colorInspectorBg, 40%);
105105

106+
// Time of Interest
107+
$toiColorBg: #666;
108+
$toiColorBgHov: #999;
109+
$toiColorFg: #fff;
110+
$toiColorBgPinned: rgba($colorKey, 0.4);
111+
$toiColorFgPinned: #fff;
112+
106113
// Status colors, mainly used for messaging and item ancillary symbols
107114
$colorStatusFg: #fff;
108115
$colorStatusDefault: #ccc;

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@
254254
}
255255

256256
.l-toi-holder {
257-
$c: $colorClickIcon;
258-
$cHov: $colorClickIconHov;
257+
$c: $toiColorBg;
258+
$cHov: $toiColorBgHov;
259259
$linesVOffset: 2px;
260260
@include transform(translateX(-50%));
261261
top: 0px; bottom: 0px;
@@ -283,7 +283,7 @@
283283
}
284284

285285
.l-toi {
286-
$d: $timeCondTOIIconD; //$r2H * 0.65;
286+
$d: $timeCondTOIIconD;
287287
@include transform(translate(-50%, -50%));
288288
color: $c;
289289
font-size: $d;

0 commit comments

Comments
 (0)