react-scrollbar-patch
Version:
A patch of souhe/reactScrollbar that fixes a significant bug preventing range sliders working (issue #42).
72 lines (59 loc) • 1.35 kB
text/less
.scrollarea-content{
margin: 0;
padding: 0;
overflow: hidden;
position: relative;
&:focus {
outline: 0;
}
}
.scrollarea{
position: relative;
overflow: hidden;
.scrollbar-container{
&.horizontal{
width: 100%;
height: 10px;
left: 0;
bottom: 0;
.scrollbar{
width: 20px;
height: 8px;
background: black;
margin-top: 1px;
}
}
&.vertical{
width: 10px;
height: 100%;
right: 0;
top: 0;
.scrollbar{
width: 8px;
height: 20px;
background: black;
margin-left: 1px;
}
}
position: absolute;
background: none;
opacity: .1;
z-index: 9999;
-webkit-transition: all .4s;
-moz-transition: all .4s;
-ms-transition: all .4s;
-o-transition: all .4s;
transition: all .4s;
&:hover{
background: gray;
opacity: .6 ;
}
&.active{
background: gray;
opacity: .6 ;
}
}
&:hover .scrollbar-container{
opacity: .3;
}
}