|
29 | 29 |
|
30 | 30 | .l-toi-holder {
|
31 | 31 | $blockerFadeW: $toiBlockerFadeW;
|
32 |
| - $LROffset: $blockerFadeW + $toiPad; |
33 |
| - $p: 3px; |
34 | 32 | @include transform(translateX(-50%));
|
35 | 33 | color: $toiColorBg;
|
36 | 34 | position: absolute;
|
|
68 | 66 | align-items: center;
|
69 | 67 | box-sizing: content-box;
|
70 | 68 | height: $toiH;
|
71 |
| - right: $LROffset * -1; |
| 69 | + right: $toiPad * -2; |
72 | 70 | @include transform(translateY(-50%)); top: 50%;
|
73 |
| - padding: $toiPad $blockerFadeW $toiPad $LROffset; |
| 71 | + padding: $toiPad; |
74 | 72 | z-index: 1;
|
75 | 73 |
|
76 | 74 | .l-toi-buttons {
|
|
80 | 78 | font-size: $toiH;
|
81 | 79 | height: 100%;
|
82 | 80 | line-height: $toiH;
|
83 |
| - padding: $toiPad $toiPad; |
| 81 | + padding: $toiPad; |
84 | 82 | order: 2;
|
85 | 83 | overflow: hidden;
|
86 | 84 | white-space: nowrap;
|
|
91 | 89 | // Expand and display controls; clock icon changes to resync
|
92 | 90 | background-color: $toiColorBg;
|
93 | 91 | cursor: pointer;
|
94 |
| - margin-left: $interiorMarginSm; |
95 | 92 | width: 30px;
|
96 | 93 |
|
97 | 94 | .icon-button {
|
|
142 | 139 | .l-toi-val {
|
143 | 140 | display: none; // Hide by default; see .show-val below
|
144 | 141 | }
|
| 142 | +} |
145 | 143 |
|
146 |
| - &.show-val { |
147 |
| - .l-toi { |
148 |
| - .l-toi-val { |
149 |
| - $tbP: 1px; |
150 |
| - @include trans-prop-nice($props: opacity, $dur: 150ms); |
151 |
| - background-color: $toiColorBg; |
152 |
| - border-radius: $controlCr; |
153 |
| - box-sizing: content-box; |
154 |
| - color: $toiColorFg; |
155 |
| - display: inline-block; |
156 |
| - font-size: 0.7rem; |
157 |
| - font-weight: 400; |
158 |
| - height: $toiH; |
159 |
| - line-height: $toiH; |
160 |
| - order: 1; |
161 |
| - padding: $tbP $p; |
162 |
| - white-space: nowrap; |
| 144 | +.show-val .l-toi-holder { |
| 145 | + .l-toi { |
| 146 | + .l-toi-buttons { |
| 147 | + &:hover { |
| 148 | + margin-left: $interiorMarginSm; |
163 | 149 | }
|
164 | 150 | }
|
| 151 | + .l-toi-val { |
| 152 | + @include trans-prop-nice($props: opacity, $dur: 150ms); |
| 153 | + background-color: $toiColorBg; |
| 154 | + border-radius: $controlCr; |
| 155 | + box-sizing: content-box; |
| 156 | + color: $toiColorFg; |
| 157 | + display: inline-block; |
| 158 | + font-size: 0.7rem; |
| 159 | + font-weight: 400; |
| 160 | + height: $toiH; |
| 161 | + line-height: $toiH; |
| 162 | + order: 1; |
| 163 | + padding: 1px 3px; |
| 164 | + white-space: nowrap; |
| 165 | + } |
165 | 166 | }
|
166 | 167 |
|
167 | 168 | &.val-to-right {
|
168 | 169 | .l-toi {
|
169 | 170 | right: auto;
|
170 |
| - left: $LROffset * -1; |
171 |
| - padding: $toiPad $LROffset $toiPad $blockerFadeW; |
| 171 | + left: $toiPad * -2; |
172 | 172 |
|
173 | 173 | .l-toi-buttons {
|
174 | 174 | order: 1;
|
|
188 | 188 |
|
189 | 189 | // TOI in tables
|
190 | 190 | .tabular,
|
| 191 | +table { |
| 192 | + tbody, .tbody { |
| 193 | + tr, .tr { |
| 194 | + &.l-toi-tablerow.pinned { |
| 195 | + border-top: 1px dashed $toiColorBg; |
| 196 | + z-index: 1; |
| 197 | + td, .td { |
| 198 | + .l-toi-holder { |
| 199 | + //@include test(); |
| 200 | + //width: 100%; |
| 201 | + //z-index: 5; |
| 202 | + &:before, |
| 203 | + &:after { |
| 204 | + display: none; |
| 205 | + } |
| 206 | + .l-toi { |
| 207 | + background: $toiColorBlocker; |
| 208 | + padding: $toiPad; |
| 209 | + @include transform(translate(-50%, -50%)); |
| 210 | + left: 50%; right: auto; top: 0; |
| 211 | + } |
| 212 | + } |
| 213 | + } |
| 214 | + } |
| 215 | + } |
| 216 | + } |
| 217 | +} |
| 218 | + |
| 219 | +// Old approach |
| 220 | +/*.tabular, |
191 | 221 | table {
|
192 | 222 | tbody, .tbody {
|
193 | 223 | tr, .tr {
|
@@ -235,7 +265,7 @@ table {
|
235 | 265 | }
|
236 | 266 | }
|
237 | 267 | }
|
238 |
| -} |
| 268 | +}*/ |
239 | 269 |
|
240 | 270 | // TOI in plots
|
241 | 271 | .gl-plot {
|
|
0 commit comments