Update global scrollbar styles

This commit is contained in:
LeonspaceX
2026-01-26 18:25:19 +08:00
parent 929ff68f50
commit 07bf09949f

View File

@@ -1,42 +1,18 @@
#root { /* 滚动条样式(全局,参考 v1 */
max-width: 1280px; ::-webkit-scrollbar {
margin: 0 auto; width: 10px;
padding: 2rem; height: 10px;
text-align: center;
} }
.logo { ::-webkit-scrollbar-track {
height: 6em; background: transparent;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
} }
@keyframes logo-spin { ::-webkit-scrollbar-thumb {
from { background: #888;
transform: rotate(0deg); border-radius: 5px;
}
to {
transform: rotate(360deg);
}
} }
@media (prefers-reduced-motion: no-preference) { ::-webkit-scrollbar-thumb:hover {
a:nth-of-type(2) .logo { background: #555;
animation: logo-spin infinite 20s linear;
}
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
} }