forked from riccardoperra/codeimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBox.css.ts
More file actions
25 lines (22 loc) · 663 Bytes
/
Box.css.ts
File metadata and controls
25 lines (22 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import {style} from '@vanilla-extract/css';
import {themeVars} from '../../theme';
export const boxBase = style({
'::-webkit-scrollbar': {
width: '18px',
},
'::-webkit-scrollbar-track': {
backgroundColor: 'transparent',
},
'::-webkit-scrollbar-thumb': {
backgroundColor: themeVars.dynamicColors.scrollBar.backgroundColor,
borderRadius: themeVars.borderRadius.full,
border: '6px solid transparent',
backgroundClip: 'content-box',
transition: 'background-color .2s',
},
selectors: {
'&::-webkit-scrollbar-thumb:hover': {
backgroundColor: themeVars.dynamicColors.scrollBar.hoverBackgroundColor,
},
},
});