|
190 | 190 | .l-axis-holder {
|
191 | 191 | height: $r1H;
|
192 | 192 | position: absolute;
|
193 |
| - left: nth($timeCondAxisLROffset,1); |
194 |
| - right: nth($timeCondAxisLROffset,2); |
| 193 | + left: nth($timeCondAxisLROffset, 1); |
| 194 | + right: nth($timeCondAxisLROffset, 2); |
195 | 195 | svg {
|
196 | 196 | text-rendering: geometricPrecision;
|
197 | 197 | width: 100%;
|
|
220 | 220 | .l-page-button,
|
221 | 221 | .l-data-visualization {
|
222 | 222 | position: absolute;
|
223 |
| - top: 0; bottom: 0; |
| 223 | + top: 0; |
| 224 | + bottom: 0; |
224 | 225 | }
|
225 | 226 |
|
226 | 227 | .l-page-button {
|
227 | 228 | @if nth($timeCondAxisLROffset, 1) + nth($timeCondAxisLROffset, 2) > 30 {
|
228 | 229 | left: 0;
|
229 |
| - width: nth($timeCondAxisLROffset,1); |
| 230 | + width: nth($timeCondAxisLROffset, 1); |
230 | 231 | &.align-right {
|
231 |
| - left: auto; right: 0; |
232 |
| - width: nth($timeCondAxisLROffset,2); |
| 232 | + left: auto; |
| 233 | + right: 0; |
| 234 | + width: nth($timeCondAxisLROffset, 2); |
233 | 235 | }
|
234 | 236 | } @else {
|
235 | 237 | // Hide these if the offsets aren't enough
|
|
241 | 243 | background: $colorTimeCondDataVisBg;
|
242 | 244 | left: nth($timeCondAxisLROffset, 1);
|
243 | 245 | right: nth($timeCondAxisLROffset, 2);
|
| 246 | + &:hover { |
| 247 | + // Hide the cursor, because the TOI element essentially "becomes" the cursor |
| 248 | + // when the user is hovering over the visualization area. |
| 249 | + cursor: none; |
| 250 | + .l-toi-holder { |
| 251 | + opacity: 1; |
| 252 | + } |
| 253 | + .l-toi-holder.pinned { |
| 254 | + opacity: 0.4; |
| 255 | + .l-toi-val { |
| 256 | + pointer-events: none; |
| 257 | + opacity: 0; |
| 258 | + } |
| 259 | + } |
| 260 | + } |
244 | 261 | }
|
245 | 262 | }
|
246 | 263 |
|
|
254 | 271 | }
|
255 | 272 |
|
256 | 273 | .l-toi-holder {
|
257 |
| - $c: $toiColorBg; |
| 274 | + $c: $colorTimeCondTOIBg; |
258 | 275 | $cHov: $toiColorBgHov;
|
| 276 | + $cPinned: rgba($toiColorBgPinned, 0.8); |
| 277 | + $cPinnedHov: $toiColorBgPinned; |
259 | 278 | $linesVOffset: 2px;
|
260 | 279 | @include transform(translateX(-50%));
|
261 |
| - top: 0px; bottom: 0px; |
| 280 | + @include trans-prop-nice($props: opacity, $dur: 200ms); |
| 281 | + color: $c; |
| 282 | + opacity: 0; // Hide by default, only show when user hovers over .l-data-visualization |
| 283 | + top: 0px; |
| 284 | + bottom: 0px; |
262 | 285 | width: $timeCondTOIIconD;
|
263 |
| - left: auto; right: auto; |
| 286 | + left: auto; |
| 287 | + right: auto; |
264 | 288 | z-index: 1;
|
265 | 289 | &:before,
|
266 | 290 | &:after {
|
267 | 291 | // Vertical lines
|
268 | 292 | content: '';
|
269 | 293 | background-color: $c;
|
270 | 294 | left: 50%;
|
271 |
| - height: (($r2H - $timeCondTOIIconD)/2) + $linesVOffset; width: 1px; |
| 295 | + height: (($r2H - $timeCondTOIIconD)/2) + $linesVOffset; |
| 296 | + width: 1px; |
272 | 297 | z-index: 0;
|
273 | 298 | }
|
274 | 299 |
|
275 | 300 | &:before {
|
276 | 301 | @include transform(translate(-50%, $linesVOffset * -1));
|
277 |
| - top: 0px; bottom: auto; |
| 302 | + top: 0px; |
| 303 | + bottom: auto; |
278 | 304 | }
|
279 | 305 |
|
280 | 306 | &:after {
|
281 | 307 | @include transform(translate(-50%, $linesVOffset));
|
282 |
| - top: auto; bottom: 0px; |
| 308 | + top: auto; |
| 309 | + bottom: 0px; |
283 | 310 | }
|
284 | 311 |
|
285 | 312 | .l-toi {
|
286 | 313 | $d: $timeCondTOIIconD;
|
287 | 314 | @include transform(translate(-50%, -50%));
|
288 |
| - color: $c; |
289 | 315 | font-size: $d;
|
290 | 316 | line-height: $d;
|
291 | 317 | text-align: center;
|
292 | 318 | left: 50%;
|
293 | 319 | top: 50%;
|
294 |
| - height: $d; width: $d; |
| 320 | + height: $d; |
| 321 | + width: $d; |
295 | 322 | z-index: 1;
|
296 | 323 | &:before {
|
297 | 324 | @extend .ui-symbol;
|
|
301 | 328 |
|
302 | 329 | .l-toi-val {
|
303 | 330 | @include transform(translateY(-51%));
|
304 |
| - display: none; // Only show when TOI is active |
305 | 331 | font-size: 0.7rem;
|
306 | 332 | position: absolute;
|
307 | 333 | top: 50%;
|
|
316 | 342 | }
|
317 | 343 | }
|
318 | 344 |
|
319 |
| - &.s-status-active { |
320 |
| - .l-toi-val { |
321 |
| - display: block; |
| 345 | + &.pinned { |
| 346 | + opacity: 1; |
| 347 | + z-index: 2; // Get this above a non-pinned instance so user can access the remove "x" button. |
| 348 | + &.active { |
| 349 | + opacity: 1; |
322 | 350 | }
|
323 |
| - } |
324 |
| - |
325 |
| - &:hover { |
326 | 351 | &:before,
|
327 | 352 | &:after {
|
328 |
| - background-color: $cHov !important; |
| 353 | + // Vertical lines |
| 354 | + background-color: $cPinned; |
329 | 355 | }
|
330 |
| - .l-toi, |
331 |
| - .l-toi-val { |
332 |
| - color: $cHov !important; |
| 356 | + color: $cPinned; |
| 357 | + |
| 358 | + &:hover { |
| 359 | + opacity: 1 !important; |
| 360 | + + .l-toi-holder { |
| 361 | + // Important note: the non-pinned TOI element must come after the pinned version in markup. |
| 362 | + opacity: 0; |
| 363 | + |
| 364 | + } |
| 365 | + } |
| 366 | + |
| 367 | + .l-toi:hover { |
| 368 | + color: $cPinnedHov; |
| 369 | + cursor: pointer; |
| 370 | + &:before { |
| 371 | + content: $glyph-icon-x-in-circle; |
| 372 | + } |
333 | 373 | }
|
334 | 374 | }
|
335 | 375 | }
|
|
356 | 396 | &.realtime-mode,
|
357 | 397 | &.lad-mode {
|
358 | 398 | .time-conductor-icon {
|
359 |
| - &:before { color: $colorTimeCondKeyBg; } |
| 399 | + &:before { |
| 400 | + color: $colorTimeCondKeyBg; |
| 401 | + } |
360 | 402 | div[class*="hand"] {
|
361 | 403 | @include animation-name(clock-hands);
|
362 | 404 | &:before {
|
|
398 | 440 |
|
399 | 441 | .l-data-visualization {
|
400 | 442 | background: $colorTimeCondDataVisRtBg !important;
|
401 |
| - //height: $r2HRt; |
402 | 443 | }
|
403 | 444 |
|
404 | 445 | .mode-selector .s-menu-button {
|
405 | 446 | $fg: $colorTimeCondKeyFg;
|
406 | 447 | @include btnSubtle($bg: $colorTimeCondKeyBg, $bgHov: pullForward($colorTimeCondKeyBg, $ltGamma), $fg: $colorTimeCondKeyFg);
|
407 |
| - &:before { color: $fg !important; }; |
| 448 | + &:before { |
| 449 | + color: $fg !important; |
| 450 | + } |
| 451 | + ; |
408 | 452 | color: $fg !important;
|
409 | 453 | }
|
410 | 454 | }
|
|
466 | 510 | /******************************************************************** MOBILE */
|
467 | 511 |
|
468 | 512 | @include phoneandtablet {
|
469 |
| - .l-time-conductor-holder { min-width: 0 !important; } |
| 513 | + .l-time-conductor-holder { |
| 514 | + min-width: 0 !important; |
| 515 | + } |
470 | 516 | .super-menu.mini {
|
471 | 517 | width: 200px;
|
472 | 518 | height: 100px;
|
|
0 commit comments