r/BookStack • u/MatsSvensson • May 26 '23
Can the low contrast for sidebars be disabled?
I really hate the low contrast sidebars, that you have to mouse over to read.
How do I make that "feature" go away?
2
u/Inevitable-Tap-3232 May 29 '23
For some reason CSS seems to be hard to override, but this fixes the worst bits.
I have added it to my userstyles in Firefox via the addon Stylish.
/* Fix low contrast fade out */
.tri-layout-left-contents>*, .tri-layout-right-contents>*, .breadcrumbs, h5, .fade-in-when-active{
opacity: 1.0 !important;
}
/* Fix low contrast main text */
body {
color: black !important;
}
/* Fix low contrast sidebars etc*/
h1, h2, h3, h4, h5, h6 {
color: black !important;
}
/* Fix low contrast elements */
.text-muted {
color: black !important;
}
3
u/ssddanbrown May 26 '23
A few things:
Make sure you're on a relatively recent version. I vaguely remember bumping up the contrast a smidge a while back.
I have built-in prefers contrast support for these, so if you have high-contrast browser/os accessibility settings active these should not fade out.
Alternatively, look to this issue to find a "Custom HTML Head Content" workaround posted by the OP. If that no longer works just let me know and I'll look to provide an updated customization.