mirror of
https://github.com/nasa/openmct.git
synced 2025-05-10 20:43:00 +00:00
[Frontend] Styling for Time Conductor v2
Fixes #933 WIP: Added zoom current range indicator; tweaks to style
This commit is contained in:
parent
b3a4f52fe2
commit
43a804eef4
@ -430,25 +430,35 @@ input[type="search"] {
|
|||||||
//border-radius: 50% !important;
|
//border-radius: 50% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin sliderKnobRound() {
|
||||||
|
$h: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
width: $h;
|
||||||
|
height: $h;
|
||||||
|
margin-top: 1 + floor($h/2) * -1;
|
||||||
|
@include btnSubtle(pullForward($colorBtnBg, 10%));
|
||||||
|
border-radius: 50% !important;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="range"] {
|
input[type="range"] {
|
||||||
// HTML5 range inputs
|
// HTML5 range inputs
|
||||||
|
|
||||||
-webkit-appearance: none; /* Hides the slider so that custom slider can be made */
|
-webkit-appearance: none; /* Hides the slider so that custom slider can be made */
|
||||||
background: transparent; /* Otherwise white in Chrome */
|
background: transparent; /* Otherwise white in Chrome */
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
|
outline: none; /* Removes the blue border. */
|
||||||
}
|
}
|
||||||
|
|
||||||
// Thumb
|
// Thumb
|
||||||
&::-webkit-slider-thumb {
|
&::-webkit-slider-thumb {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
@include sliderKnob();
|
@include sliderKnobRound();
|
||||||
}
|
}
|
||||||
&::-moz-range-thumb {
|
&::-moz-range-thumb {
|
||||||
@include sliderKnob();
|
@include sliderKnobRound();
|
||||||
}
|
}
|
||||||
&::-ms-thumb {
|
&::-ms-thumb {
|
||||||
@include sliderKnob();
|
@include sliderKnobRound();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Track
|
// Track
|
||||||
|
@ -119,7 +119,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.l-time-conductor-inputs-holder,
|
.l-time-conductor-inputs-holder,
|
||||||
.l-time-conductor-ticks {
|
.l-time-conductor-ticks,
|
||||||
|
.l-time-conductor-zoom-w {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,11 +204,16 @@
|
|||||||
.l-time-conductor-controls {
|
.l-time-conductor-controls {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: $interiorMargin;
|
margin-top: $interiorMargin;
|
||||||
.time-conductor-zoom {
|
.l-time-conductor-zoom-w {
|
||||||
//@include test();
|
@include justify-content(flex-end);
|
||||||
min-width: 100px;
|
.time-conductor-zoom {
|
||||||
height: $r3H;
|
height: $r3H;
|
||||||
width: 25%;
|
min-width: 100px;
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
.time-conductor-zoom-current-range {
|
||||||
|
color: $colorTick;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -105,8 +105,9 @@
|
|||||||
]}">
|
]}">
|
||||||
</mct-control>
|
</mct-control>
|
||||||
<!-- Zoom control -->
|
<!-- Zoom control -->
|
||||||
<div class="l-time-conductor-zoom-w grows flex-elem contents-align-right">
|
<div class="l-time-conductor-zoom-w grows flex-elem l-flex-row">
|
||||||
<input class="time-conductor-zoom" type="range" />
|
<span class="time-conductor-zoom-current-range flex-elem flex-fixed holder">Mars Minutes</span>
|
||||||
|
<input class="time-conductor-zoom flex-elem" type="range" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user