.tc-sidebar-scrollable { background-image: url("https://s5.postimg.org/lyaazi9tj/Side_Bar_BGBlue070.png"); } /* SideBar BG Blue 70% */.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.6); } /* SideBar BG Blue 60% */.tc-sidebar-header { background-color: rgba(0,0,255,0.6); } /* SideBar BG Blue 60% */.tc-sidebar-header >(when the value is "yes" or "visible") { background-color: rgba(0,0,255,0.6); }
Help, somebody :-)Do you have an example site that we could look at?
When I try your sidebar style, and then hide the sidebar, the background color goes away. So .... that's all right?
Sorry for the long hiatus, but I've had to be out of town for a few days (and AFK), plus I didn't want to show my face around these parts again until I'd made some substantial progress on this 'project.'
So here we go!
I worked, cussed, fooled, thought, prayed and finagled until I FINALLY figured out one (hacky, cludgy, inelegant) way to do what I wanted to...
I copied the
$:/core/ui/TopBar/menu<$reveal state="$:/state/sidebar" type="nomatch" text="no">
<$button
set="$:/state/sidebar" setTo="no"
tooltip={{$:/language/Buttons/HideSideBar/Hint}}
aria-label={{$:/language/Buttons/HideSideBar/Caption}}
class="tc-btn-invisible">{{$:/core/images/chevron-right}}
<$transclude tiddler="$:/_SBBG1"/></$button>
</$reveal>
<$reveal state="$:/state/sidebar" type="match" text="no">
<$button
set="$:/state/sidebar" setTo="yes"
tooltip={{$:/language/Buttons/ShowSideBar/Hint}}
aria-label={{$:/language/Buttons/ShowSideBar/Caption}}
class="tc-btn-invisible">{{$:/core/images/chevron-left}}<$transclude tiddler="$:/_SBBG2"/></$button>
</$reveal><style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.5); }</style><style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.0); }</style><div style=" flex-grow: 1; background-color: silver;">
<div style="background-color: red; color: white; text-align: center; font-weight: bold;">Opacity : 50%</div>
<$radio tiddler="$:/_SBBG1" field="text" value="<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.5); }</style>">''@@color:black;Black (default)@@''</$radio><br/>
<$radio tiddler="$:/_SBBG1" field="text" value="<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.5); }</style>">''@@color:red;Red@@''</$radio><br/>
<$radio tiddler="$:/_SBBG1" field="text" value="<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.5); }</style>">''@@color:white;White@@''</$radio><br/>
<$radio tiddler="$:/_SBBG1" field="text" value="<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.5); }</style>">''@@color:green;Green@@''</$radio><br/>
<$radio tiddler="$:/_SBBG1" field="text" value="<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.5); }</style>">''@@color:blue;Blue@@''</$radio><br/>
<$radio tiddler="$:/_SBBG1" field="text" value="<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.5); }</style>">''@@color:orange;Orange@@''</$radio><br/>
<$radio tiddler="$:/_SBBG1" field="text" value="<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.5); }</style>">''@@color:yellow;Yellow@@''</$radio><br/>
<$radio tiddler="$:/_SBBG1" field="text" value="<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.5); }</style>">''@@color:purple;Purple@@''</$radio><br/>
</div>