Forums › Forums › General Questions › CSS background inherit from theme › Reply To: CSS background inherit from theme
-
Hi @Homdax ! Something seems to have went wrong with the code snippet I copied. The “<devtools-color-swatch>” tag isn’t supposed to be included. Since I’m unable to edit my earlier response, I’m including the fixed version below instead.
.ub_table-of-contents { background-color: inherit; }
You’re right, though, that you have to use the additional CSS setting for adding it.
However, we’ll be releasing a new version of the plugin soon. It will include options to set custom colors for various parts of the Table of Contents. The code above is very likely to be overriden by it. If you want to keep the above code snippet from being overriden, you may also add the following code snippet as a precaution:
.ub_table-of-contents > * { background-color: inherit !impotant; }
Please keep in mind that you will be unable to use the new custom color feature of the Table of Contents as long as the second code snippet is present.