I need to change the text of an expand text in a table to black because it currently isn't very visible on the background color, I don't want to change the background color or the theme, is it even possible to do this? Thank you for any help :)
I need to change the text of an expand text in a table to black because it currently isn't very visible on the background color, I don't want to change the background color or the theme, is it even possible to do this? Thank you for any help :)
Not sure if a thread like this one would be able to assist you with your question as it is quite old, but still view it regardless.
A link might help since I can't imagine the issue you are encountering.
Generally addressing the color of the default Collapse/Expand text:
.mw-collapsible-toggle-default a { color:black; }
You may want to add the page's class if it's supposed to be applied on one or certain pages only. The code above would apply to all collapsible toggles everywhere on the wiki.
Perhaps you would also want to apply it only to the light or dark theme, or differently depending on the theme, by using
.theme-fandomdesktop-light
.theme-fandomdesktop-dark
Finally, you may also want to change the color of the brackets the text is wrapped in with something like
.mw-collapsible-toggle-default::before,
.mw-collapsible-toggle-default::after {
color: black;
}
A link to your page would as always be helpful to give you a more in-depth answer.
See also: https://community.fandom.com/wiki/Help:Collapsing
@Marisa1980 The expand texts are in the brackets on the right but they're hardly visible
https://bombline-roblox.fandom.com/wiki/Weapons
Its a new wiki, still trying to get some good formatting
If it's only for that specific page, put this code into your Common.css file:
.page-Weapons .mw-collapsible-toggle-default a {
color:black;
}
/edit:
If you intend to use that type of yellow collapsible tables on other pages as well, it would be best to give it a custom class, like for example "yellow-collapsible", and then address that kind of tables in the CSS file:
On the table:
{| class="mw-collapsible mw-collapsed yellow-collapsible"
In Common.css:
.yellow-collapsible .mw-collapsible-toggle-default a {
color:black;
}
Unrelated:
Remove the highlighted part on top of that page:
Thank you so much, you are a life saver
What do you think?