I just wanted to elaborate a little on whether this is a standard CSS-selector, or not, and when it’s available. If you look at the Obsidian CSS guide, and navigate your way to a file with an extension, you’ll see something like the following:
Here you can see that the data-path
is an added attribute to the .nav-file-title
element, thusly allowing for attribute CSS selectors to be applied to it. See MDN or W3Schools for documentation on these.
Basically you can now target any of the attributes in an html element, and you can match against start, end or within the attribute in various combination. A really nifty addition to CSS allowing for some fancy CSS to be applied.
This addition is done by Obsidian, so you kind of have to look it up for each element where you might benefit from it, but if you want to target some element you’ll most likely look it up using Developers Tools (as suggested in the guide above), and then you’ll see if there any extra attributes for you to play around with.