I don’t think I’ve seen any official Obsidian documentation for data-mode specifically. It’s not in app.css (Obsidian’s default CSS), but it does show up in the DOM/HTML in the DevTools, so you can target it with CSS.
Try searching the web for “CSS attribute selector” or similar.
Seems you’ve sorted it out already, but there are two variables for showing/hiding the metadata editor in the different views that can be used with a cssclass:
--metadata-display-reading
--metadata-display-editing
so, for example:
.NoProps {
--metadata-display-reading: none; /* default: block */
--metadata-display-editing: none;
}
Also grabbing a copy of the app.css for reference is useful:
You can also right-click on the app.css tab and “save as…” if you don’t want to copy-paste it.
