Skip to content

Commit

Permalink
Update active sidebar state
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Jul 19, 2022
1 parent 99deecb commit 7275641
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
12 changes: 12 additions & 0 deletions obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -3564,6 +3564,7 @@ body:not(.is-grabbing) .nav-folder-title:hover {
}

.nav-file {
border: none;
padding: 0 5px 0 19px;
}

Expand Down Expand Up @@ -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;
Expand Down
15 changes: 15 additions & 0 deletions src/core/file-explorer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
}

.nav-file {
border: none;
padding: 0 5px 0 19px;
}

Expand Down Expand Up @@ -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);
}
}

0 comments on commit 7275641

Please sign in to comment.