Skip to content

Commit

Permalink
Remove obsidian-search-match-highlight styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Apr 9, 2021
1 parent 2781e30 commit 09d3e5e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
12 changes: 5 additions & 7 deletions obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 0 additions & 7 deletions src/010-main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions src/050-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 09d3e5e

Please sign in to comment.