From 55829447c867045d64b6c43553c4b207bc5d7b85 Mon Sep 17 00:00:00 2001 From: mgmeyers Date: Fri, 29 Jan 2021 11:48:39 -0800 Subject: [PATCH] Add non-md file icons --- obsidian.css | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/obsidian.css b/obsidian.css index e0cadd0..040b93f 100644 --- a/obsidian.css +++ b/obsidian.css @@ -2418,7 +2418,9 @@ input[type="checkbox"]:checked:before { } .nav-file-tag { - margin: 0 4px 0 0; + background-color: var(--shade-5); + letter-spacing: 0; + margin: 0 0 0 4px; position: static; } @@ -2433,6 +2435,11 @@ input[type="checkbox"]:checked:before { display: flex; align-items: center; } + +.nav-file-title { + flex-direction: row-reverse; +} + .nav-file-title.is-being-dragged, .nav-file-title.is-active, body:not(.is-grabbing) .nav-file-title.is-active:hover { @@ -2472,13 +2479,13 @@ body:not(.is-grabbing) .nav-file-title.is-active:hover { line-height: 0; } .nav-file-icon:before, -.nav-file-title-content:only-child:before, +.nav-file-title-content:before, .search-result-file-title .tree-item-inner:before { position: relative; padding-right: 4px; margin: 0; } -.nav-file-title-content:only-child:before { +.nav-file-title-content:before { top: 0.5px; } .workspace-leaf-content[data-type="starred"] .nav-file-title-content { @@ -3824,7 +3831,7 @@ input[type="range"]::-webkit-slider-thumb:active { .external-link:after, .markdown-preview-view .collapse-indicator:before, .search-result-file-title .tree-item-inner:before, -.nav-file-title-content:only-child:before, +.nav-file-title-content:before, .nav-file-icon:before, .CodeMirror-foldmarker:after, .CodeMirror-foldgutter-folded:after, @@ -3851,7 +3858,7 @@ input[type="range"]::-webkit-slider-thumb:active { height: 18px; } -.nav-file-title-content:only-child:before, +.nav-file-title-content:before, .search-result-file-title .tree-item-inner:before, .nav-file-icon:before { display: inline-block; @@ -3896,6 +3903,14 @@ input[type="range"]::-webkit-slider-thumb:active { content: url('data:image/svg+xml; utf8, '); } +.nav-file-title-content:before { + content: url('data:image/svg+xml; utf8, '); +} + +.theme-dark .nav-file-title-content:before { + content: url('data:image/svg+xml; utf8, '); +} + .workspace-tab-header[aria-label="File explorer"] .workspace-tab-header-inner-icon:after { opacity: 0.5;