File tree Expand file tree Collapse file tree 1 file changed +26
-25
lines changed
chat2db-client/src/styles Expand file tree Collapse file tree 1 file changed +26
-25
lines changed Original file line number Diff line number Diff line change @@ -26,35 +26,36 @@ input:-webkit-autofill {
2626 caret-color : var (--color-text ) !important ; // 光标的颜色
2727}
2828
29- ::-webkit-scrollbar {
30- width : 6px ;
31- height : 6px ;
32- }
33-
34- ::-webkit-scrollbar-thumb {
35- background-color : var (--color-fill );
36- border-radius : 2px ;
37- }
29+ * {
30+ ::-webkit-scrollbar {
31+ cursor : pointer ;
32+ width : 4px ;
33+ height : 4px ;
34+ background-color : transparent ;
35+ }
3836
39- ::-webkit-scrollbar-button {
40- width : 0 ;
41- height : 0 ;
42- background : transparent ;
43- }
37+ ::-webkit-scrollbar-thumb {
38+ cursor : pointer ;
39+ background-color : transparent ;
40+ border-radius : 2 px ;
41+ // transition: background-color 500ms ${token.motionEaseOut};
4442
45- ::-webkit-scrollbar-track {
46- background : transparent ;
47- width : 0px ;
48- cursor : pointer ;
49- }
43+ & :hover {
44+ background-color : var (--color-text );
45+ }
46+ }
5047
51- ::-webkit-scrollbar-corner {
52- background : transparent ;
53- }
48+ ::-webkit-scrollbar-corner {
49+ display : none ;
50+ width : 0 ;
51+ height : 0 ;
52+ }
5453
55- * {
56- scrollbar-width : 4px ; // 宽度:auto(默认),thin(窄),none(隐藏)
57- scrollbar-color : var (--color-fill ) transparent ; // 颜色:第一个颜色是滑块颜色,第二个颜色是轨道颜色
54+ & :hover {
55+ ::-webkit-scrollbar-thumb {
56+ background-color : var (--color-fill );
57+ }
58+ }
5859}
5960
6061html ,
You can’t perform that action at this time.
0 commit comments