@bbc/react-transcript-editor
Version:
A React component to make transcribing audio and video easier and faster.
42 lines (34 loc) • 805 B
CSS
@value color-light-grey, color-labs-red from '../colours.module.css';
.bar {
position: relative;
overflow: hidden;
height: 20px;
-webkit-appearance: none;
margin: 10px 0;
width: 100%;
}
.bar:focus {
outline: none;
}
.bar::-webkit-slider-runnable-track {
width: 100%;
cursor: pointer;
background: color-light-grey;
}
.bar::-webkit-slider-thumb {
background: color-labs-red;
cursor: pointer;
-webkit-appearance: none;
width: 20px;
height: 20px;
background: #fff;
box-shadow: -100vw 0 0 100vw color-labs-red;
border: 2px solid #999;
}
/*
The ms-upper/low only works on IE: box-shadow solution is cross browser
TODO: make slider thumb bypass overflow:hidden (make taller than bar)
*/
.bar:focus::-webkit-slider-runnable-track {
background: color-light-grey;
}