Apply style to files in the root that doesn't affect others

Is it possible? I can’t find a way to get it. I tried with:

.nav-file {
  border-bottom: 1.4px solid var(--background-modifier-border);
}

.nav-file-title[data-path*="/"] {
	border-bottom 0px;
}

But maybe I’m forgetting something.

Basically I want to remove the bottom line in the files at the root of my vault but keep the separator line in everything else

Give this a try:

.nav-file-title {
    border-bottom: 0px;
}

.nav-file-title[data-path*="/"] {
    border-bottom: 1.4px solid var(--background-modifier-border);
}

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.