2019-07-31 17:31:35 +08:00
|
|
|
@import './mixins/mixins.scss';
|
2020-02-11 14:44:29 +08:00
|
|
|
|
2019-09-20 17:37:38 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
@include b(scrollbar) {
|
2019-12-15 19:44:35 +08:00
|
|
|
@include once {
|
|
|
|
position: relative;
|
|
|
|
height: 100%;
|
|
|
|
}
|
2019-12-15 19:14:56 +08:00
|
|
|
& > {
|
2019-12-15 19:44:35 +08:00
|
|
|
@include once {
|
|
|
|
@include b(scrollbar-container) {
|
|
|
|
width: 100%;
|
|
|
|
overflow: scroll;
|
|
|
|
height: 100%;
|
|
|
|
max-height: inherit;
|
2019-12-30 13:15:57 +08:00
|
|
|
scrollbar-width: none;
|
2019-12-15 19:44:35 +08:00
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
& > {
|
|
|
|
@include b(scrollbar-content) {
|
|
|
|
width: fit-content;
|
|
|
|
overflow: hidden;
|
|
|
|
min-width: 100%;
|
|
|
|
}
|
2019-12-15 19:14:56 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-15 19:44:35 +08:00
|
|
|
@include b(scrollbar-rail) {
|
|
|
|
@include once {
|
2019-12-15 19:14:56 +08:00
|
|
|
position: absolute;
|
2019-12-15 19:44:35 +08:00
|
|
|
user-select: none;
|
|
|
|
@include m(horizontal) {
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 2.5px;
|
|
|
|
& > {
|
|
|
|
@include e(scrollbar) {
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include m(vertical) {
|
|
|
|
right: 2.5px;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
& > {
|
|
|
|
@include e(scrollbar) {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2019-12-15 19:14:56 +08:00
|
|
|
}
|
|
|
|
}
|
2019-12-15 19:44:35 +08:00
|
|
|
& > {
|
|
|
|
@include e(scrollbar) {
|
|
|
|
@include once {
|
|
|
|
@include fade-in-transition(scrollbar);
|
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2020-02-20 13:22:48 +08:00
|
|
|
background-color: map-get($--scrollbar-background-color, 'default');
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: background-color .2s $--n-ease-in-out-cubic-bezier;
|
2019-12-15 19:44:35 +08:00
|
|
|
&:hover {
|
2020-02-20 13:22:48 +08:00
|
|
|
background-color: map-get($--scrollbar-background-color, 'hover');
|
2019-12-15 19:44:35 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-20 17:37:38 +08:00
|
|
|
}
|
|
|
|
}
|
2019-07-31 17:31:35 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|