Skip to content

Commit 8a7871e

Browse files
committed
chore(): update scroll sidebar
1 parent ded1dbe commit 8a7871e

File tree

2 files changed

+17
-30
lines changed

2 files changed

+17
-30
lines changed

src/app/homepage/menu/menu.component.scss

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
bottom: 0;
1313
top: 0;
1414
z-index: 1000;
15-
overflow: hidden;
16-
15+
overflow: overlay;
16+
1717
&.opened {
1818
@include transform(translateX(0));
1919
}
@@ -85,31 +85,3 @@
8585
background: #151515;
8686
}
8787
}
88-
89-
// Scroll bar
90-
nav.nav-container {
91-
overflow-y: overlay;
92-
overflow-x: hidden;
93-
height: 100%;
94-
}
95-
96-
/* Firefox */
97-
* {
98-
scrollbar-width: auto;
99-
scrollbar-color: #dedede;
100-
}
101-
102-
/* Chrome, Edge, and Safari */
103-
.nav-container::-webkit-scrollbar {
104-
width: 5px;
105-
position: inherit;
106-
}
107-
108-
*::-webkit-scrollbar-track {
109-
background: transparent;
110-
}
111-
112-
*::-webkit-scrollbar-thumb {
113-
background-color: #dedede;
114-
border-radius: 10px;
115-
}

src/styles.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,4 +320,19 @@ tr td span.table-code-asterisk {
320320
.DocSearch-Container {
321321
z-index: 20000;
322322
background: rgba(0, 0, 0, 0.6);
323+
}
324+
325+
// Scollbar sidebar
326+
327+
app-menu::-webkit-scrollbar {
328+
width: 6px;
329+
}
330+
331+
app-menu:hover::-webkit-scrollbar-thumb {
332+
background: #dedede;
333+
border-radius: 10px;
334+
}
335+
336+
app-menu::-webkit-scrollbar-thumb:hover {
337+
-webkit-transition: #dedede 1s linear;
323338
}

0 commit comments

Comments
 (0)