Skip to content

Commit 15ef044

Browse files
authored
Merge pull request #1555 from Papia-tech/main
style: custom scrollbar UI for better visual consistency (#1553)
2 parents 1e33b85 + 1b909e9 commit 15ef044

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

src/css/custom.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,3 +1984,45 @@ h3:first-child {
19841984
margin-top: 0;
19851985
margin-bottom: 1rem;
19861986
}
1987+
1988+
/* --- CUSTOM MODERN SCROLLBAR --- */
1989+
1990+
::-webkit-scrollbar {
1991+
width: 6px !important;
1992+
height: 6px !important;
1993+
}
1994+
1995+
::-webkit-scrollbar-track {
1996+
background: transparent !important;
1997+
}
1998+
1999+
/* --- LIGHT THEME --- */
2000+
html[data-theme="light"] ::-webkit-scrollbar-thumb {
2001+
background-color: rgba(203, 213, 225, 1) !important;
2002+
border-radius: 10px !important;
2003+
}
2004+
2005+
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
2006+
background-color: rgba(148, 163, 184, 1) !important;
2007+
}
2008+
2009+
/* --- DARK THEME --- */
2010+
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
2011+
background-color: rgba(51, 65, 85, 0.8) !important;
2012+
border-radius: 10px !important;
2013+
}
2014+
2015+
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
2016+
background-color: #06b6d4 !important;
2017+
}
2018+
2019+
/* --- FIREFOX CORRECTIONS --- */
2020+
html[data-theme="light"] {
2021+
scrollbar-width: thin !important;
2022+
scrollbar-color: #cbd5e1 transparent !important;
2023+
}
2024+
2025+
html[data-theme="dark"] {
2026+
scrollbar-width: thin !important;
2027+
scrollbar-color: #334155 transparent !important;
2028+
}

0 commit comments

Comments
 (0)