Skip to content

Commit

Permalink
scrollbar custom code
Browse files Browse the repository at this point in the history
  • Loading branch information
minimit committed Apr 24, 2024
1 parent b67d14c commit e9d348b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 45 deletions.
13 changes: 4 additions & 9 deletions encore/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,10 @@ module.exports = {
},
// custom scrollbar
'.xt-overflow-main': {
'&::-webkit-scrollbar': {
height: '10px',
width: '10px',
background: theme('colors.white'),
},
'&::-webkit-scrollbar-thumb': {
background: theme('colors.gray.900'),
},
scrollbarColor: `${theme('colors.gray.900')} ${theme('colors.white')}`,
scrollbarColor: `${theme('colors.black')} ${theme('colors.white')}`,
},
'.xt-overflow-sub': {
scrollbarColor: `${theme('colors.gray.300')} ${theme('colors.white')}`,
},
}),
},
Expand Down
13 changes: 4 additions & 9 deletions nextjs/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,10 @@ module.exports = {
},
// custom scrollbar
'.xt-overflow-main': {
'&::-webkit-scrollbar': {
height: '10px',
width: '10px',
background: theme('colors.white'),
},
'&::-webkit-scrollbar-thumb': {
background: theme('colors.gray.900'),
},
scrollbarColor: `${theme('colors.gray.900')} ${theme('colors.white')}`,
scrollbarColor: `${theme('colors.black')} ${theme('colors.white')}`,
},
'.xt-overflow-sub': {
scrollbarColor: `${theme('colors.gray.300')} ${theme('colors.white')}`,
},
}),
},
Expand Down
13 changes: 4 additions & 9 deletions parcel/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,10 @@ module.exports = {
},
// custom scrollbar
'.xt-overflow-main': {
'&::-webkit-scrollbar': {
height: '10px',
width: '10px',
background: theme('colors.white'),
},
'&::-webkit-scrollbar-thumb': {
background: theme('colors.gray.900'),
},
scrollbarColor: `${theme('colors.gray.900')} ${theme('colors.white')}`,
scrollbarColor: `${theme('colors.black')} ${theme('colors.white')}`,
},
'.xt-overflow-sub': {
scrollbarColor: `${theme('colors.gray.300')} ${theme('colors.white')}`,
},
}),
},
Expand Down
13 changes: 4 additions & 9 deletions vite/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,10 @@ module.exports = {
},
// custom scrollbar
'.xt-overflow-main': {
'&::-webkit-scrollbar': {
height: '10px',
width: '10px',
background: theme('colors.white'),
},
'&::-webkit-scrollbar-thumb': {
background: theme('colors.gray.900'),
},
scrollbarColor: `${theme('colors.gray.900')} ${theme('colors.white')}`,
scrollbarColor: `${theme('colors.black')} ${theme('colors.white')}`,
},
'.xt-overflow-sub': {
scrollbarColor: `${theme('colors.gray.300')} ${theme('colors.white')}`,
},
}),
},
Expand Down
13 changes: 4 additions & 9 deletions webpack/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,10 @@ module.exports = {
},
// custom scrollbar
'.xt-overflow-main': {
'&::-webkit-scrollbar': {
height: '10px',
width: '10px',
background: theme('colors.white'),
},
'&::-webkit-scrollbar-thumb': {
background: theme('colors.gray.900'),
},
scrollbarColor: `${theme('colors.gray.900')} ${theme('colors.white')}`,
scrollbarColor: `${theme('colors.black')} ${theme('colors.white')}`,
},
'.xt-overflow-sub': {
scrollbarColor: `${theme('colors.gray.300')} ${theme('colors.white')}`,
},
}),
},
Expand Down

0 comments on commit e9d348b

Please sign in to comment.