2017-08-23 10:07:14 +00:00
|
|
|
@import "mixins/mixins";
|
|
|
|
@import "common/var";
|
|
|
|
|
|
|
|
@include b(scrollbar) {
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
2017-09-30 07:50:04 +00:00
|
|
|
> .el-scrollbar__bar {
|
2017-08-23 10:07:14 +00:00
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 340ms ease-out;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(wrap) {
|
|
|
|
overflow: scroll;
|
2017-09-30 07:50:04 +00:00
|
|
|
height: 100%;
|
2017-08-23 10:07:14 +00:00
|
|
|
|
|
|
|
@include m(hidden-default) {
|
2019-11-25 04:05:55 +00:00
|
|
|
scrollbar-width: none;
|
2017-08-23 10:07:14 +00:00
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(thumb) {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
border-radius: inherit;
|
|
|
|
background-color: $--scrollbar-background-color;
|
|
|
|
transition: .3s background-color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $--scrollbar-hover-background-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(bar) {
|
|
|
|
position: absolute;
|
|
|
|
right: 2px;
|
|
|
|
bottom: 2px;
|
|
|
|
z-index: 1;
|
|
|
|
border-radius: 4px;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 120ms ease-out;
|
|
|
|
|
|
|
|
@include when(vertical) {
|
|
|
|
width: 6px;
|
|
|
|
top: 2px;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include when(horizontal) {
|
|
|
|
height: 6px;
|
|
|
|
left: 2px;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|