How do you set alternating colors in the list of topics

There are at least two methods which work:

  • Use different colors for different themes.
  • Shade rows with a translucent medium gray, so it’ll work on both light and dark backgrounds. Like, give nth-child(odd) rows a color like background: #80808040;.

If it helps, I published a stylesheet override which demonstrates the first method… setting colors per-theme. For details, look in style.css for any parts containing nth-child.

Here’s an example of how it looks in a light theme:

… and each theme has its own color definitions, so the table rows fit each theme.

1 Like