2

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.

hrhax
  • 55
  • 5

1 Answers1

3

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;}
Steve Piercy
  • 13,693
  • 1
  • 44
  • 57