覆盖默认滚动条样式

This commit is contained in:
thofx
2023-08-12 20:16:46 +08:00
parent 2ddc0269ea
commit 882bc6bd0f
+14
View File
@@ -96,3 +96,17 @@
line-height: 2.25rem; line-height: 2.25rem;
} }
} }
// 美化滚动条
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
border-radius: 3px;
background: rgb(var(--v-theme-perfect-scrollbar-thumb));
-webkit-box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
&:hover{
background: #a1a1a1;
}
}