Additional CSS classes for the generateddivelements. Multiple classes can be separated with spaces.
<style>
.myStyle {
background:yellow;
}
</style>
Okay, so I got that part working and understood, thanks. Now, how would I style each individual button, so that in a single <<tabs>> instance, one tab title could be a different colour to the other, and they would be different again when selected? I want a darker shade of the same colour when a tab is selected, as you would expect, but I also want each tab to be of a different (specific) base colour. Is this possible?
Also, I guess I can create my own new names for the styles, so that they are not the defaults, which apply to every instance of the <<tabs>> macro, then just use the class= parameter when calling <<tabs>>, right?
I don't know if that is possible. Be aware I am just an end user, no developer or programmer ;-)
In principle you have to use the core classes, e.g. 'tc-tab-selected' etc.
2) Define your own tabs macro - based on the core macro - and use that for your own tabs (e.g. a macro <<tab>> instead of <<tabs>>).
So I can't just use <<tabs class=".my-more-sidebar .my-tab-buttons button.my-tab-selected" ...>> or whatever, then? That was what I was expecting to be able to do, after reading the docs.
I don't think so, but just try it. Use the browser dev tools to inspect the elements.
Here's a demo of what I'm trying to achieve, mocked up in the GIMP.
/* RED TABS */
.my-red-tab-buttons .tc-tab-buttons button.tc-tab-selected {
color: white;
font-weight: bold;
background-color: red;
}
.my-red-tab-buttons .tc-tab-buttons button {
color: black;
background-color: salmon;
}
/* GREEN TABS */
.my-green-tab-buttons .tc-tab-buttons button.tc-tab-selected {
color: white;
font-weight: bold;
background-color: green;
}
.my-green-tab-buttons .tc-tab-buttons button {
color: black;
background-color: lightgreen;
}