mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
75 lines
1.3 KiB
SCSS
75 lines
1.3 KiB
SCSS
@import 'mixins/mixins';
|
|
@import 'common/var';
|
|
|
|
@include b(scrollbar) {
|
|
overflow: hidden;
|
|
position: relative;
|
|
height: 100%;
|
|
|
|
@include e(wrap) {
|
|
overflow: auto;
|
|
height: 100%;
|
|
|
|
@include m(hidden-default) {
|
|
scrollbar-width: none;
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include e(thumb) {
|
|
position: relative;
|
|
display: block;
|
|
width: 0;
|
|
height: 0;
|
|
cursor: pointer;
|
|
border-radius: inherit;
|
|
background-color: $--scrollbar-background-color;
|
|
transition: 0.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;
|
|
|
|
@include when(vertical) {
|
|
width: 6px;
|
|
top: 2px;
|
|
|
|
> div {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@include when(horizontal) {
|
|
height: 6px;
|
|
left: 2px;
|
|
|
|
> div {
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.#{$namespace}-scrollbar-fade-enter-active {
|
|
transition: opacity 340ms ease-out;
|
|
}
|
|
|
|
.#{$namespace}-scrollbar-fade-leave-active {
|
|
transition: opacity 120ms ease-out;
|
|
}
|
|
|
|
.#{$namespace}-scrollbar-fade-enter-from,
|
|
.#{$namespace}-scrollbar-fade-leave-active {
|
|
opacity: 0;
|
|
}
|