Skip to content

Commit 271c788

Browse files
committed
[Frontend] TOI in tables
Fixes #933 Fixes #1193 WIP
1 parent b7e8a1b commit 271c788

File tree

1 file changed

+12
-56
lines changed

1 file changed

+12
-56
lines changed

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

+12-56
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
z-index: 1;
7373

7474
.l-toi-buttons {
75-
@include trans-prop-nice($props: width, $dur: 250ms);
75+
@include trans-prop-nice($props: (width, padding), $dur: 250ms);
7676
border-radius: $controlCr;
7777
box-sizing: content-box;
7878
font-size: $toiH;
@@ -141,6 +141,8 @@
141141
}
142142
}
143143

144+
145+
// TOI is showing value as well
144146
.show-val .l-toi-holder {
145147
.l-toi {
146148
.l-toi-buttons {
@@ -196,18 +198,23 @@ table {
196198
z-index: 1;
197199
td, .td {
198200
.l-toi-holder {
199-
//@include test();
200-
//width: 100%;
201-
//z-index: 5;
202201
&:before,
203202
&:after {
204203
display: none;
205204
}
206205
.l-toi {
207-
background: $toiColorBlocker;
206+
background: rgba($toiColorBlocker, 0.9);
207+
border-radius: 20%;
208+
height: auto;
208209
padding: $toiPad;
209210
@include transform(translate(-50%, -50%));
210211
left: 50%; right: auto; top: 0;
212+
.l-toi-buttons {
213+
padding: 1px;
214+
&:hover {
215+
padding: $toiPad;
216+
}
217+
}
211218
}
212219
}
213220
}
@@ -216,57 +223,6 @@ table {
216223
}
217224
}
218225

219-
// Old approach
220-
/*.tabular,
221-
table {
222-
tbody, .tbody {
223-
tr, .tr {
224-
&.l-toi.pinned {
225-
border-top: 1px dashed $toiColorBg;
226-
td, .td {
227-
&:first-child {
228-
&:before,
229-
&:after {
230-
@include transform(translate(-50%, -50%));
231-
display: block;
232-
position: absolute;
233-
left: 50%;
234-
bottom: auto;
235-
top: 0;
236-
237-
}
238-
239-
&:before {
240-
@extend .icon-clock;
241-
color: $toiColorBg;
242-
cursor: pointer;
243-
z-index: 3;
244-
}
245-
246-
&:after {
247-
border-radius: 100%;
248-
content: '';
249-
background: $toiColorBlocker;
250-
height: $toiH + $interiorMargin;
251-
width: $toiH + $interiorMargin;
252-
z-index: 2;
253-
}
254-
}
255-
}
256-
257-
&:hover {
258-
td, .td {
259-
&:first-child:before {
260-
color: $toiColorBgAlert;
261-
content: $glyph-icon-x-in-circle !important;
262-
}
263-
}
264-
}
265-
}
266-
}
267-
}
268-
}*/
269-
270226
// TOI in plots
271227
.gl-plot {
272228
.gl-plot-wrapper-display-area-and-x-axis {

0 commit comments

Comments
 (0)