我的 CSS 颜色选择为何被覆盖?

I’m trying to manually recolor this forum and it’s worked for most of what I’ve attempted so far but the main table background keeps getting reset. I’m only allowed to include 1 screenshot so I’ll include the inspect menu, the primary table becomes blue again when I apply the changes to the CSS and refresh the page. It should be the same color as the sidebar on the left which I did successfully change.

I’ve tried

.category-list{background-color: #F6F6F5;}

as well as

.category-list, .topic-list, .column, .latest-topic-list {background-color: #F6F6F5;}

The background color is a variable by default and I have tried changing the definition of that variable as well with no luck.

Use your browser’s DevTools to inspect the main content area and identify which CSS variable controls the background color.
Then, override it in your theme’s CSS like this:

:root {
  --primary-low: #F6F6F5;
  --primary-very-low: #F6F6F5;
  --d-topic-list-background-color: #F6F6F5;
}
2 个赞

That worked! Thank you so much for your help

2 个赞