arnau / obsidian-metatable

An Obsidian plugin to display the frontmatter section as a fully expanded table.
MIT License
150 stars 13 forks source link

Is it possible to customize inner css class? #14

Closed gwd0715 closed 3 years ago

gwd0715 commented 3 years ago

Other than .obsidian-metatable class, can we customize other css class like .set or .member? I tried to change them in CSS snippets, but failed! Thanks!

arnau commented 3 years ago

Hi @gwd0715, the short answer is no, by design the whole component is constrained under a shadow DOM which acts as a hard boundary for CSS so CSS from the outside doesn't conflict with the inside and vice-versa.

For certain parts there are hooks via ::part (e.g. tags) but the possibilities for customisation are quite limited.