Skip to content

Commit 6630119

Browse files
authored
Merge pull request #362 from zalabhavy/scrollbarfix
Fix Changes in Scrollbar
2 parents a0c5fae + 6c8a4bd commit 6630119

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@
7979
"engines": {
8080
"node": ">=18.0"
8181
}
82-
}
82+
}

src/pages/index.module.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,22 @@
3535
padding: 1rem;
3636
}
3737

38+
/* scrollbar.css */
39+
::-webkit-scrollbar {
40+
width: 10px;
41+
}
42+
/* Track */
43+
::-webkit-scrollbar-track {
44+
background: var(--ifm-color-primary);
45+
}
46+
/* Handle */
47+
::-webkit-scrollbar-thumb {
48+
background: darkgray;
49+
border-radius: 10px;
50+
}
51+
::-webkit-scrollbar-thumb:hover {
52+
background: darkgrey;
53+
}
3854
.scrollToBottomButton {
3955
position: fixed;
4056
bottom: 20px;
@@ -54,3 +70,4 @@
5470
background-color: var(--ifm-color-primary);
5571
box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
5672
}
73+

0 commit comments

Comments
 (0)