mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-12 19:53:41 +08:00
refactor(projects): perfect scrollbar style [完善滚动条]
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
@import './transition.css';
|
||||
@import './reset.css';
|
||||
@import './scrollbar.css';
|
||||
|
||||
html, body, #app {
|
||||
height: 100%;
|
||||
|
||||
@@ -1,26 +1,53 @@
|
||||
/*---滚动条默认显示样式--*/
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: #e6e6e6;
|
||||
border-radius: 6px;
|
||||
}
|
||||
/*---鼠标点击滚动条显示样式--*/
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background-color: #e6e6e6;
|
||||
border-radius: 6px;
|
||||
}
|
||||
/*---滚动条大小--*/
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
html {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #e1e1e1 transparent;
|
||||
}
|
||||
|
||||
/*---滚动条默认显示样式--*/
|
||||
html::-webkit-scrollbar-thumb {
|
||||
background-color: #e1e1e1;
|
||||
border-radius: 8px;
|
||||
}
|
||||
/*---鼠标点击滚动条显示样式--*/
|
||||
html::-webkit-scrollbar-thumb:hover {
|
||||
background-color: #e1e1e1;
|
||||
border-radius: 8px;
|
||||
}
|
||||
/*---滚动条大小--*/
|
||||
html::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
/*---滚动框背景样式--*/
|
||||
::-webkit-scrollbar-track-piece {
|
||||
html::-webkit-scrollbar-track-piece {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
|
||||
html.dark {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: e6e6e6 transparent;
|
||||
scrollbar-color: #555 transparent;
|
||||
}
|
||||
|
||||
/*---滚动条默认显示样式--*/
|
||||
html.dark::-webkit-scrollbar-thumb {
|
||||
background-color: #555;
|
||||
border-radius: 8px;
|
||||
}
|
||||
/*---鼠标点击滚动条显示样式--*/
|
||||
html.dark::-webkit-scrollbar-thumb:hover {
|
||||
background-color: #555;
|
||||
border-radius: 8px;
|
||||
}
|
||||
/*---滚动条大小--*/
|
||||
html.dark::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
/*---滚动框背景样式--*/
|
||||
html.dark::-webkit-scrollbar-track-piece {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user