Skip to content

Commit c66ffbe

Browse files
committed
fix overflow
1 parent 7ce7d46 commit c66ffbe

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

resources/css/ocify-sidebar.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,25 @@
1010
z-index: 2000;
1111
}
1212

13+
#sidebar-wrapper::-webkit-scrollbar {
14+
background-color: transparent;
15+
width: 2px;
16+
}
17+
18+
#sidebar-wrapper::-webkit-scrollbar-track {
19+
background-color: transparent;
20+
}
21+
22+
#sidebar-wrapper::-webkit-scrollbar-thumb {
23+
background-color: #babac0;
24+
border-radius: 16px;
25+
border: 0;
26+
}
27+
28+
#sidebar-wrapper::-webkit-scrollbar-button {
29+
display:none;
30+
}
31+
1332
#wrapper.toggled {
1433
padding-left: 265px;
1534
overflow: hidden;
@@ -23,12 +42,15 @@
2342
width: 0;
2443
height: 100%;
2544
margin-left: -265px;
26-
overflow-y: auto;
45+
overflow-y: hidden;
2746
-webkit-transition: all 0.5s ease;
2847
-moz-transition: all 0.5s ease;
2948
-o-transition: all 0.5s ease;
3049
transition: all 0.5s ease;
3150
}
51+
#sidebar-wrapper:hover {
52+
overflow-y: auto;
53+
}
3254

3355
#wrapper.toggled #sidebar-wrapper {
3456
width: 265px;

0 commit comments

Comments
 (0)