mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
highlight labels in time slider on active
This commit is contained in:
parent
65e61ae1c8
commit
d8e1dced48
2 changed files with 8 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ class TimeSlider extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classnames(styles['time-slider-container'], this.props.className)}>
|
<div className={classnames(styles['time-slider-container'], { [styles['active']]: this.state.time !== null }, this.props.className)}>
|
||||||
{this.renderTimeLabel()}
|
{this.renderTimeLabel()}
|
||||||
{this.renderSlider()}
|
{this.renderSlider()}
|
||||||
{this.renderDurationLabel()}
|
{this.renderDurationLabel()}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
.label {
|
.label {
|
||||||
font-size: calc(var(--time-slider-thumb-size) * 0.7);
|
font-size: calc(var(--time-slider-thumb-size) * 0.7);
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
color: var(--color-surfacelighter);
|
color: var(--color-surfacelight);
|
||||||
}
|
}
|
||||||
|
|
||||||
.slider {
|
.slider {
|
||||||
|
|
@ -17,4 +17,10 @@
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin: 0 var(--time-slider-thumb-size);
|
margin: 0 var(--time-slider-thumb-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover, &.active {
|
||||||
|
.label {
|
||||||
|
color: var(--color-surfacelighter);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue