XF 2.2 How do I make the scroll bar a bit wider?


Pretty sure it will only work with webkit based browsers (it does nothing on Firefox / Zen)
 
I did some testing.
Code:
:root {
    scrollbar-color: hsla(var(--xf-paletteColor1)) hsla(var(--xf-pageBg));
    scrollbar-width: thin;
}

There's not much options to set the width. The only three things it accepts is thin, auto and none. You can't set it to px or %.

Perhaps someone else can pitch in a better solution though.
 
There's not much options to set the width.

Here is what I use, see it working at dn(dot)ca

Code:
/* Yellow Navigation Bars */
:root {
--basecolor: #ffaf1b;
--pagewidth: 90%;
}
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-thumb {
background: var(--basecolor);
}
 
Back
Top Bottom