Skip to content

Commit dc82846

Browse files
make scrollbar prettier
1 parent 4a0f4d9 commit dc82846

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

assets/css/handmade.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Declare some colors that I can use throughout
1313
--favicon-hover-color: #808080;
1414
--hr-color: rgba(0, 0, 0, .1);
1515
--vr-color: #dee2e6;
16+
--scrollbar-thumb-color: #adbecf;
1617
}
1718

1819
body {
@@ -26,6 +27,15 @@ body {
2627
background-color: var(--page-background);
2728
}
2829

30+
::-webkit-scrollbar {
31+
background-color: var(--page-background);
32+
}
33+
34+
::-webkit-scrollbar-thumb {
35+
background: var(--scrollbar-thumb-color);
36+
border-radius: 10px;
37+
}
38+
2939
h1,
3040
h2,
3141
h3,
@@ -302,7 +312,9 @@ These two classes allow part of a page to scroll and another part to not scroll.
302312
}
303313

304314
.mh-100 {
305-
max-height: 100%
315+
max-height: 100%;
316+
scrollbar-color: var(--page-background) white;
317+
306318
}
307319

308320
/* Class for the active and inactive experiences */

0 commit comments

Comments
 (0)