Skip to content

Commit 6ba1adc

Browse files
committed
Add non webkit scrollbar styles.
1 parent 23e5b5a commit 6ba1adc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mixins/webkitVisibleScrollbar.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import { css } from "styled-components"
22
import { getSizeBy, getRgbColor } from "@/theme/utils"
33

44
export default css`
5+
scrollbar-width: ${getSizeBy(1)};
6+
scrollbar-color: ${getRgbColor("border", 0.3)} ${getRgbColor("border", 0.1)};
7+
58
&::-webkit-scrollbar {
69
width: ${getSizeBy(1)};
710
}

0 commit comments

Comments
 (0)