Skip to content

Commit 5a20f7d

Browse files
#775 Quick select day/month/year times (Part 2) (#777)
* #775 Quick select day/month/year times * #775 Touch ups * #775 More touch ups, TimeUI drag range and arrows
1 parent 0bcf427 commit 5a20f7d

2 files changed

Lines changed: 344 additions & 9 deletions

File tree

src/essence/Ancillary/TimeUI.css

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,42 @@
446446
z-index: -1;
447447
}
448448

449+
/* Middle drag handle for range extent */
450+
#mmgisTimeUITimelineExtentHandle {
451+
position: absolute;
452+
bottom: -8px;
453+
transform: translate(-50%, -50%);
454+
width: 24px;
455+
height: 16px;
456+
opacity: 0.5;
457+
background: var(--color-a);
458+
display: flex;
459+
align-items: center;
460+
justify-content: center;
461+
cursor: grab;
462+
z-index: 5;
463+
transition: background 0.15s ease-in-out, opacity 0.15s ease-in-out;
464+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
465+
}
466+
#mmgisTimeUITimelineExtentHandle:hover {
467+
background: var(--color-a-5);
468+
opacity: 1;
469+
}
470+
#mmgisTimeUITimelineExtentHandle:active {
471+
cursor: grabbing;
472+
opacity: 1;
473+
background: var(--color-a1);
474+
}
475+
#mmgisTimeUITimelineExtentHandle i {
476+
color: var(--color-a6);
477+
font-size: 16px;
478+
line-height: 16px;
479+
pointer-events: none;
480+
}
481+
#mmgisTimeUITimelineExtentHandle:hover i {
482+
color: var(--color-h);
483+
}
484+
449485
/* Subtle tick flash on Live update (title text) */
450486
#mmgisTimeUIEndWrapper > span.flash {
451487
animation: mmgis-time-text-flash 0.35s ease-out;
@@ -454,3 +490,32 @@
454490
0% { color: var(--color-p4); }
455491
100% { color: var(--color-h); }
456492
}
493+
494+
/* Range shift arrow buttons */
495+
.timeUIRangeShiftBtn {
496+
position: absolute;
497+
bottom: 0px;
498+
width: 20px;
499+
height: 16px;
500+
opacity: 0.5;
501+
background: var(--color-a);
502+
display: flex;
503+
align-items: center;
504+
justify-content: center;
505+
cursor: pointer;
506+
z-index: 10;
507+
transition: background 0.15s ease-in-out, opacity 0.15s ease-in-out;
508+
pointer-events: all;
509+
}
510+
.timeUIRangeShiftBtn:hover {
511+
background: var(--color-a-5);
512+
opacity: 1
513+
}
514+
.timeUIRangeShiftBtn i {
515+
color: var(--color-a6);
516+
font-size: 14px;
517+
line-height: 14px;
518+
}
519+
.timeUIRangeShiftBtn:hover i {
520+
color: var(--color-h);
521+
}

0 commit comments

Comments
 (0)