Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sphinx, restructuredtext: color cell/row of a table

Is there a way to color a specific row in a table in sphinx?

I tryed using .. role:: which is related to a CSS file as discused in sphinx, restructuredtext: set color for a single word. However a :role: does not seem to work in a table.

like image 741
hrhax Avatar asked Oct 17 '25 09:10

hrhax


1 Answers

No, but there is using the CSS selector :nth-child and applying a class to the parent table element. Then your custom CSS would be something like:

table.myclass tr:nth-child(3) {color: red;}
like image 107
Steve Piercy Avatar answered Oct 18 '25 22:10

Steve Piercy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!