How to color files with a prefix that are in folders (CSS/data-path)

Doesn’t the '*=/!_' for sub-folders, and '^=!_' for the root folder trigger the pattern only where you want? Notice the use of / to anchor the pattern when matching against files in sub-folders.

.nav-file-title[data-path *= "/!_"], 
.nav-file-title[data-path ^= '!_'] {
  color: yellow;
}
1 Like