scroll.scss
948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@import "node_modules/bootstrap/scss/variables";
.scroll-y {
overflow-y: auto;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
}
.scroll-y-visible {
overflow-y: auto;
&::-webkit-scrollbar {
width: 0.75em;
}
&::-webkit-scrollbar-track {
border-radius: 10px;
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
background-color: $white;
}
&::-webkit-scrollbar-thumb {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7);
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7);
outline: 1px solid slategrey;
border-radius: 10px;
height: 12px;
&:active {
box-shadow: inset 0 0 8px $primary;
-webkit-box-shadow: inset 0 0 8px $primary;
}
}
&::-webkit-scrollbar-corner {
border-radius: 10px;
}
}
.scroll-x {
overflow-x: auto;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
}