Skip to content

Commit 142995e

Browse files
committed
add custom scrollbar
1 parent e4f987d commit 142995e

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<link href="static/css/hover-min.css" rel="stylesheet" media="all">
2222
<link rel="stylesheet" type="text/css" href="static/css/cards.css">
2323
</head>
24-
<body>
24+
<body style="overflow-y:scroll;overflow-x:hidden;">
2525
<!--[if lte IE 9]>
2626
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
2727
<![endif]-->

static/css/main.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@ html {
1616
line-height: 1.4;
1717
}
1818

19+
20+
/* Scrollbar Styling */
21+
::-webkit-scrollbar {
22+
width: 4px;
23+
}
24+
25+
::-webkit-scrollbar-track {
26+
background-color: #ffffff;
27+
-webkit-border-radius: 10px;
28+
border-radius: 10px;
29+
}
30+
31+
::-webkit-scrollbar-thumb {
32+
-webkit-border-radius: 10px;
33+
border-radius: 10px;
34+
background: linear-gradient(330deg, #4C4491 0%, #FD5C63 100%);
35+
}
36+
1937
/*
2038
* Remove text-shadow in selection highlight:
2139
* https://twitter.com/miketaylr/status/12228805301

0 commit comments

Comments
 (0)