20
20
* at runtime from the About dialog for additional information.
21
21
*****************************************************************************/
22
22
23
-
24
- /*
25
- Plots
26
- -toi-holder:before vertical line
27
- -toi: glyphs
28
-
29
- Tables
30
- tr: border color
31
- td:before: glyphs
32
-
33
- TC
34
- -toi-holder:before, after: vertical lines
35
- -toi: glyphs
36
-
37
- */
38
23
.l-toi-holder ,
39
24
.l-toi-holder :after ,
40
25
.l-toi-holder :before ,
44
29
position : absolute ;
45
30
}
46
31
47
-
48
32
.l-toi-holder {
49
33
$p : 3px ;
50
34
@include transform (translateX (-50% ));
51
35
color : $toiColorBg ;
52
36
position : absolute ;
53
37
top : 0 ;
54
38
bottom : 0 ;
55
- width : $toiW ; // Needs to be an even number to avoid sub-pixel antialiasing of the vertical line
39
+ width : $toiW ;
56
40
& :not (.pinned ) {
57
41
opacity : 0 ;
58
42
pointer-events : none ;
59
43
}
44
+
60
45
& .pinned {
61
46
opacity : 1 ;
62
47
}
48
+
63
49
& :before ,
64
50
& :after {
65
51
// Vertical lines. TC uses both; plot only uses :before
73
59
bottom : 0 ;
74
60
width : 2px ;
75
61
}
62
+
76
63
.l-toi {
77
- // Holds clock icon an unpin button
64
+ // Holds clock icon and unpin button
78
65
font-size : $toiW ;
79
66
height : $toiW ;
80
67
width : $toiW ;
83
70
@extend .icon-clock ;
84
71
& :hover {
85
72
& :before {
73
+ color : $toiColorBgAlert ;
86
74
content : $glyph-icon-x-in-circle ;
87
75
}
88
76
}
89
77
}
90
78
}
91
79
92
80
.l-toi-val {
93
- $tbP : 1px ;
94
- background-color : $toiColorBg ; // rgba($toiColorBg, 0.8);
95
- border-radius : $controlCr ;
96
- box-sizing : content-box ;
97
- display : inline-block ;
98
- color : $toiColorFg ;
99
- font-size : 0.7rem ;
100
- height : $toiW ;
101
- right : $toiW + $interiorMarginSm ;
102
- top : 50% ;
103
- @include transform (translateY (-50% ));
104
- line-height : $toiW ;
105
- padding : $tbP $p ;
106
- white-space : nowrap ;
81
+ display : none ; // Hide by default; see .show-val below
107
82
}
108
83
109
- & .val-to-right {
84
+ & .show-val {
110
85
.l-toi-val {
111
- right : auto ;
112
- left : $toiW + $interiorMarginSm ;
86
+ $tbP : 1px ;
87
+ background-color : $toiColorBg ;
88
+ border-radius : $controlCr ;
89
+ box-sizing : content-box ;
90
+ color : $toiColorFg ;
91
+ display : inline-block ;
92
+ font-size : 0.7rem ;
93
+ font-weight : 400 ;
94
+ height : $toiW ;
95
+ right : $toiW + $interiorMarginSm ;
96
+ top : 50% ;
97
+ @include transform (translateY (-50% ));
98
+ line-height : $toiW ;
99
+ padding : $tbP $p ;
100
+ white-space : nowrap ;
101
+ }
102
+
103
+ & .val-to-right {
104
+ .l-toi-val {
105
+ right : auto ;
106
+ left : $toiW + $interiorMarginSm ;
107
+ }
113
108
}
114
109
}
115
110
}
@@ -120,38 +115,42 @@ table {
120
115
tbody , .tbody {
121
116
tr , .tr {
122
117
& .l-toi.pinned {
123
- td {
124
- border-top : 1px dashed $toiColorBg ;
125
- & :first-child :before {
126
- @extend .ui-symbol ;
127
- @include transform (translate (-50% , -50% ));
128
- content : $glyph-icon-clock ;
129
- display : block ;
130
- position : absolute ;
131
- text-shadow : 0 1px 15px black ;
132
- left : 50% ;
133
- top : 0 ;
134
- z-index : 2 ;
135
- color : $toiColorBg ;
136
- }
137
- }
118
+ border-top : 1px dashed $toiColorBg ;
119
+ td , .td {
120
+ & :first-child {
121
+ & :before ,
122
+ & :after {
123
+ @include transform (translate (-50% , -50% ));
124
+ display : block ;
125
+ position : absolute ;
126
+ left : 50% ;
127
+ bottom : auto ;
128
+ top : 0 ;
138
129
139
- & .highlight-bottom-edge {
140
- td {
141
- border-bottom : 1px dashed $toiColorBg ;
142
- // border-top: 1px solid transparent;
143
- & :first-child :before {
144
- @include transform (translate (-50% , 50% ));
145
- top : auto ;
146
- bottom : 0 ;
130
+ }
131
+ & :before {
132
+ @extend .icon-clock ;
133
+ color : $toiColorBg ;
134
+ cursor : pointer ;
135
+ z-index : 3 ;
136
+ }
137
+ & :after {
138
+ border-radius : 100% ;
139
+ content : ' ' ;
140
+ background : $toiColorBlocker ;
141
+ height : $toiW + $interiorMargin ;
142
+ width : $toiW + $interiorMargin ;
143
+ z-index : 2 ;
147
144
}
148
145
}
149
146
}
150
147
151
148
& :hover {
152
- td :first-child :before {
153
- content : $glyph-icon-x-in-circle ;
154
- cursor : pointer ;
149
+ td , .td {
150
+ & :first-child :before {
151
+ color : $toiColorBgAlert ;
152
+ content : $glyph-icon-x-in-circle !important ;
153
+ }
155
154
}
156
155
}
157
156
}
@@ -164,6 +163,7 @@ table {
164
163
.gl-plot-wrapper-display-area-and-x-axis {
165
164
.l-toi-holder {
166
165
bottom : nth ($plotDisplayArea , 3 ) - $interiorMargin ;
166
+ z-index : 3 ;
167
167
& :after {
168
168
display : none ;
169
169
}
@@ -172,8 +172,6 @@ table {
172
172
@include transform (translateY (100% ));
173
173
bottom : 0 ;
174
174
}
175
-
176
- z-index : 3 ;
177
175
}
178
176
}
179
177
}
0 commit comments