diff --git a/obsidian.css b/obsidian.css index 76713a2..7e1b112 100644 --- a/obsidian.css +++ b/obsidian.css @@ -1441,13 +1441,6 @@ body.theme-dark:not(.is-translucent):not(.hider-frameless) border-color: var(--text-highlight-bg-active); } -.cm-s-obsidian span.obsidian-search-match-highlight { - background: inherit; - border-radius: 2px; - box-shadow: 0 0 0px 2px hsla(var(--accent-hsl), 0.8); - padding-left: 0; - padding-right: 0; -} .markdown-preview-view .search-highlight > div { box-shadow: 0 0 0px 2px var(--text-normal); border-radius: 2px; @@ -4854,6 +4847,11 @@ a[href*="obsidian://search"]:after } /* Pretty editor */ + +.cc-pretty-editor .cm-formatting-header.obsidian-search-match-highlight + { + background: transparent; +} .cc-pretty-editor .cm-formatting-header { color: var(--text-faint) !important; diff --git a/src/010-main.css b/src/010-main.css index 72d4161..72ed3e4 100644 --- a/src/010-main.css +++ b/src/010-main.css @@ -1077,13 +1077,6 @@ body.theme-dark:not(.is-translucent):not(.hider-frameless) border-color: var(--text-highlight-bg-active); } -.cm-s-obsidian span.obsidian-search-match-highlight { - background: inherit; - border-radius: 2px; - box-shadow: 0 0 0px 2px hsla(var(--accent-hsl), 0.8); - padding-left: 0; - padding-right: 0; -} .markdown-preview-view .search-highlight > div { box-shadow: 0 0 0px 2px var(--text-normal); border-radius: 2px; diff --git a/src/050-editor.css b/src/050-editor.css index 655fd6b..e8ae709 100644 --- a/src/050-editor.css +++ b/src/050-editor.css @@ -63,6 +63,11 @@ } /* Pretty editor */ + +.cc-pretty-editor .cm-formatting-header.obsidian-search-match-highlight + { + background: transparent; +} .cc-pretty-editor .cm-formatting-header { color: var(--text-faint) !important;