mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 13:34:06 +03:00
Merge pull request #525 from FireIsGood/style-scrollbars
Style scrollbars for Webkit browsers
This commit is contained in:
1 file changed
+22
@@ -28,6 +28,28 @@ html.scrollbar {
|
||||
scroll-padding-top: 20px;
|
||||
}
|
||||
|
||||
/***Scrollbars***/
|
||||
:root.dark {
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
/* Restrict changes to mouse users */
|
||||
@media (pointer: fine) {
|
||||
::-webkit-scrollbar {
|
||||
@apply bg-slate-200 w-2 h-2 rounded-lg
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
@apply bg-slate-300 rounded-lg
|
||||
}
|
||||
|
||||
:root.dark ::-webkit-scrollbar {
|
||||
@apply bg-slate-700
|
||||
}
|
||||
:root.dark ::-webkit-scrollbar-thumb {
|
||||
@apply bg-slate-500
|
||||
}
|
||||
}
|
||||
|
||||
.max-container {
|
||||
max-width: 1320px;
|
||||
@apply mx-auto p-3;
|
||||
|
||||
Reference in new issue
Block a user