In my custom.css
file I have,
.bold {
font-weight: bold;
}
.red {
color:red;
}
And in my _.rst
file,
.. role:: bold
.. role:: red
But if I try to nest/compound them, only the outermost role takes effect, e.g.
:bold:`:red:`This is only bold``
This is only bold
Is there a way to combine these effects without defining a new (combined) role?
you can use a custom css class directive:
.. cssclass:: boldred
bold red text
and update the css to format the boldred class
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With