diff --git a/obsidian.css b/obsidian.css index a0ecd78..66370d0 100644 --- a/obsidian.css +++ b/obsidian.css @@ -3564,6 +3564,7 @@ body:not(.is-grabbing) .nav-folder-title:hover { } .nav-file { + border: none; padding: 0 5px 0 19px; } @@ -3626,6 +3627,17 @@ body:not(.is-grabbing) .nav-folder-title:hover { padding: 4px; } +.workspace-leaf.mod-active .nav-folder.has-focus > .nav-folder-title, +.workspace-leaf.mod-active .nav-file.has-focus { + border-radius: var(--radius-s); + border: none; + background-color: transparent; +} +.workspace-leaf.mod-active .nav-folder.has-focus > .nav-folder-title, +.workspace-leaf.mod-active .nav-file.has-focus .nav-file-title { + box-shadow: inset 0 0 0 2px var(--shade-30-opaque); +} + .graph-controls { top: 10px; left: 10px; diff --git a/src/core/file-explorer.scss b/src/core/file-explorer.scss index 6db9079..8f74864 100644 --- a/src/core/file-explorer.scss +++ b/src/core/file-explorer.scss @@ -130,6 +130,7 @@ } .nav-file { + border: none; padding: 0 5px 0 19px; } @@ -207,3 +208,17 @@ padding: 4px; } } + +.workspace-leaf.mod-active { + .nav-folder.has-focus > .nav-folder-title, + .nav-file.has-focus { + border-radius: var(--radius-s); + border: none; + background-color: transparent; + } + + .nav-folder.has-focus > .nav-folder-title, + .nav-file.has-focus .nav-file-title { + box-shadow: inset 0 0 0 2px var(--shade-30-opaque); + } +}