Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Elegant Custom Scrollbar #1352

Merged
merged 2 commits into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions Components/Scrollbars/Elegant-Custom-Scrollbar/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<div class="container custom-scrollbar">
<h1>Elegant Custom Scrollbar</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente expedita aperiam iste suscipit
cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto, minima culpa id velit
consequatur quae?</p>
<p style="margin-bottom: 0;">Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ipsa sapiente
expedita aperiam iste suscipit cum voluptates voluptatibus facilis incidunt perferendis dolore iure iusto,
minima culpa id velit consequatur quae?</p>
</div>
</body>

</html>
49 changes: 49 additions & 0 deletions Components/Scrollbars/Elegant-Custom-Scrollbar/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
* {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
line-height: 1.5;
box-sizing: border-box;
color: #44585d;
}

body {
height: 100vh;
background-color: #ecf0f1;
padding: 1.5rem;
margin: 0;
}

.container {
background-color: #fdfdfd;
height: 100%;
width: 100%;
border-radius: 6px;
box-shadow: 0 4px 28px rgba(123, 151, 158, .25);
border: 1px solid #d6dee1;
padding: 1rem;
overflow: scroll;
}

h1 {
margin: 0;
text-align: center;
}

/* custom scrollbar */
::-webkit-scrollbar {
width: 20px;
}

::-webkit-scrollbar-track {
background-color: transparent;
}

::-webkit-scrollbar-thumb {
background-color: #d6dee1;
border-radius: 20px;
border: 6px solid transparent;
background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
background-color: #a8bbbf;
}
13 changes: 13 additions & 0 deletions assets/html_files/scrollbars.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,19 @@ <h2>Hmmm, we are not getting any result. <br> Our bad - Please try another searc
</div>

<div class="contain">
<div class="box">
<h1>Elegant Custom Scrollbar</h1>
<div class="preview">
<a href="../../Components/Scrollbars/Elegant-Custom-Scrollbar/index.html" title="Live Preview" target="_blank">
<img src="../images/link.png">
</a>
</div>
<div class="source">
<a href="https://github.com/Rakesh9100/Beautiify/tree/main/Components/Scrollbars/Elegant-Custom-Scrollbar" title="Source Code" target="_blank">
<img src="../images/github.png">
</a>
</div>
</div>
<div class="box">
<h1>Rainbow Scrollbar</h1>
<div class="preview">
Expand Down