mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-16 17:13:46 -05:00
Make scrollbar a bit nicer
This commit is contained in:
@@ -21,7 +21,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
.gi::before, .gi::after {
|
.gi::before,
|
||||||
|
.gi::after {
|
||||||
background-color: #1f2937;
|
background-color: #1f2937;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,6 +39,31 @@
|
|||||||
inset-inline-start: 0;
|
inset-inline-start: 0;
|
||||||
inset-block-start: -0.12rem;
|
inset-block-start: -0.12rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@supports (scrollbar-color: auto) {
|
||||||
|
html {
|
||||||
|
scrollbar-color: #707070 #343840;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@supports selector(::-webkit-scrollbar) {
|
||||||
|
html::-webkit-scrollbar {
|
||||||
|
width: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
html::-webkit-scrollbar-track {
|
||||||
|
background: #343840;
|
||||||
|
}
|
||||||
|
|
||||||
|
html::-webkit-scrollbar-thumb {
|
||||||
|
background: #707070;
|
||||||
|
border-radius: 0.375rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
html::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: #b5b5b5;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user