This commit is contained in:
jack ning
2025-12-05 16:05:26 +08:00
parent e6a6a3a51f
commit bc7362f949
138 changed files with 4063 additions and 451 deletions

View File

@@ -0,0 +1,20 @@
/* 美化windows滚动条, TODO: 待完善参考mac scroll是不占用宽度的漂浮在上方 */
/* https://www.51cto.com/article/716443.html */
body {
margin: 0;
overflow: overlay;
}
::-webkit-scrollbar {
background-color: transparent;
width: 12px;
}
::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 8px;
background-clip: content-box;
border: 2px solid transparent;
}
body[scroll]::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.5);
}