mirror of https://github.com/fantasticit/think.git
feat: custom scroll bar style
parent
955e8a066b
commit
5985f216da
|
@ -84,9 +84,32 @@ select {
|
|||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
transition-duration: .01ms !important;
|
||||
animation-duration: .01ms !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: transparent;
|
||||
border-radius: 0.5rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
*:hover {
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: var(--scrollbar-bg);
|
||||
}
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
background: transparent;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
body {
|
||||
--border-radius: 4px;
|
||||
--box-shadow: rgb(0 0 0 / 10%) 0 0 10px;
|
||||
--scrollbar-bg: #dadada;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue