Improve dark mode scrollbar styling for Chrome
Add custom scrollbar styles that properly match dark and light themes: - Webkit browsers: styled scrollbars with theme-appropriate colors - Firefox: thin scrollbars with matching color scheme - Dark mode: darker gray scrollbars that blend with the UI - Light mode: light gray scrollbars for better visibility
This commit is contained in:
parent
ed63672e66
commit
0ecf6f9bca
1 changed files with 46 additions and 0 deletions
|
|
@ -609,6 +609,52 @@
|
|||
}
|
||||
}
|
||||
|
||||
/* Scrollbar styling for webkit browsers (Chrome, Safari, Edge) */
|
||||
/* Light mode scrollbars */
|
||||
::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #c1c1c1;
|
||||
border-radius: 6px;
|
||||
border: 2px solid var(--bg-secondary);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #a8a8a8;
|
||||
}
|
||||
|
||||
/* Dark mode scrollbars */
|
||||
[data-theme="dark"] ::-webkit-scrollbar-track {
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] ::-webkit-scrollbar-thumb {
|
||||
background: #4a4a4a;
|
||||
border: 2px solid var(--bg-secondary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
|
||||
background: #5a5a5a;
|
||||
}
|
||||
|
||||
/* Scrollbar styling for Firefox */
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #c1c1c1 var(--bg-secondary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] * {
|
||||
scrollbar-color: #4a4a4a var(--bg-secondary);
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue