1.0.0 • Published 5 years ago
postcss-scrollable v1.0.0
PostCSS Scrollbar
Postcss plugin for pure css scrollbar.
Usage
Installation
$ npm i --save postcss-scrollableConfigure
module.exports = {
plugins: {
require('postcss-scrollable')
}
}With options
module.exports = {
plugins: {
require('postcss-scrollable')({
color: '#20692b',
width: '4px',
height: '4px',
radius: '4px'
})
}
}See Postcss docs for examples for your environment.
Options
| Options | Description | Value |
|---|---|---|
| color | Color of scrollbar | HEX, RGB, RGBA, HSL. Default #006387 |
| width | Width of scrollbar | px, em, rem. Default 6px |
| height | Height of scrollbar | px, em, rem. Default 6px |
| radius | Radius of scrollbar | px, em, rem. Default 6px |
License
MIT © Dang Van Thanh
1.0.0
5 years ago