Scrollbar Module

On this page

The scrollbar module changes the default browser scrollbar style.

Modulegithub.com/hbstack/scrollbar
Repository⭐ Please consider giving a star if your like it.
Stars
Version
Used by
Requirements
License
UsageSee how to use modules.

Site Parameters

ParameterTypeDefaultDescription
heightstring12pxThe height of scrollbar.
widthstring12pxThe width of scrollbar.
track_bgstring#f8f9faThe background color of track.
thumb_bgstring#909294The background color of thumb.
corner_bgstring#909294The background color of corner.

hugo.toml

1[params]
2  [params.hb]
3    [params.hb.scrollbar]
4      corner_bg = '#909294'
5      height = '12px'
6      thumb_bg = '#909294'
7      track_bg = '#f8f9fa'
8      width = '12px'

hugo.yaml

1params:
2  hb:
3    scrollbar:
4      corner_bg: '#909294'
5      height: 12px
6      thumb_bg: '#909294'
7      track_bg: '#f8f9fa'
8      width: 12px

hugo.json

 1{
 2   "params": {
 3      "hb": {
 4         "scrollbar": {
 5            "corner_bg": "#909294",
 6            "height": "12px",
 7            "thumb_bg": "#909294",
 8            "track_bg": "#f8f9fa",
 9            "width": "12px"
10         }
11      }
12   }
13}