Skip to content

Commit fbc5cc0

Browse files
authored
feat: mod sroll bar style (#557)
* feat: mod sroll bar style * feat: mod scroll bar radius * Create thirty-windows-listen.md
1 parent 3de2517 commit fbc5cc0

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.changeset/thirty-windows-listen.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@alauda/ui": patch
3+
---
4+
5+
feat: mod sroll bar style

src/theme/_mixin.scss

+7-3
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,21 @@
152152
transform: translate(-50%, -50%);
153153
}
154154

155-
@mixin scroll-bar($color: #{use-rgba(n-1, 0.2)}) {
155+
@mixin scroll-bar($color: #{use-rgb(n-7)}, $hover-color: #{use-rgb(n-5)}) {
156156
&::-webkit-scrollbar {
157-
width: 4px;
157+
width: 8px;
158158
height: 4px;
159159
}
160160

161161
&::-webkit-scrollbar-thumb {
162-
border-radius: 2px;
162+
border-radius: 4px;
163163
background-color: $color;
164164
}
165165

166+
&::-webkit-scrollbar-thumb:hover {
167+
background-color: $hover-color;
168+
}
169+
166170
&::-webkit-scrollbar-corner {
167171
background-color: transparent;
168172
}

0 commit comments

Comments
 (0)