diff --git a/obsidian.css b/obsidian.css index eaae10d..5302faf 100644 --- a/obsidian.css +++ b/obsidian.css @@ -24,8 +24,8 @@ settings: default: false - id: ebullientworks-hide-inactive-collapse-indicators - title: Hide collapse indicators when not hovered or active - description: If true, hide collapse indicators in all three modes when not hovered or active. + title: Hide collapse indicators unless hovered or active + description: If true, hide collapse indicators in all three modes unless they are hovered over or the line is active. type: class-toggle default: false - @@ -1333,7 +1333,7 @@ a, color: var(--link-underline); } -/* Collapse external links / markdown links in edit mode */ +/* Collapse external links / markdown links in edit mode: CodeMirrorOptions + Legacy editor */ body.style-active-selection:not(.ebullientworks-show-edit-mode-links) div:not(.CodeMirror-activeline) > .CodeMirror-line .cm-string.cm-url:not(.cm-formatting) { font-size: 0; } @@ -1342,6 +1342,15 @@ body.style-active-selection:not(.ebullientworks-show-edit-mode-links) div:not(.C font-size: 1rem; } +/* CM6 editor */ +body:not(.ebullientworks-show-edit-mode-links) .markdown-source-view.mod-cm6 div.cm-line:not(.cm-active) > .cm-string.cm-url:not(.cm-formatting) { + font-size: 0; +} +body:not(.ebullientworks-show-edit-mode-links) .markdown-source-view.mod-cm6 div.cm-line:not(.cm-active) > .cm-string.cm-url:not(.cm-formatting)::after { + content: "·"; + font-size: 1rem; +} + :root { --checkbox-checked: var(--green-3); --checkbox-deferred: var(--blue-3); diff --git a/src/05-text-links.scss b/src/05-text-links.scss index 0917321..7f3c716 100644 --- a/src/05-text-links.scss +++ b/src/05-text-links.scss @@ -104,7 +104,7 @@ a, color: var(--link-underline); } -/* Collapse external links / markdown links in edit mode */ +/* Collapse external links / markdown links in edit mode: CodeMirrorOptions + Legacy editor */ body.style-active-selection:not(.ebullientworks-show-edit-mode-links) div:not(.CodeMirror-activeline) > .CodeMirror-line { .cm-string.cm-url:not(.cm-formatting) { font-size: 0; @@ -114,3 +114,15 @@ body.style-active-selection:not(.ebullientworks-show-edit-mode-links) div:not(.C font-size: 1rem; } } +/* CM6 editor */ +body:not(.ebullientworks-show-edit-mode-links) .markdown-source-view.mod-cm6 { + div.cm-line:not(.cm-active) { + > .cm-string.cm-url:not(.cm-formatting) { + font-size: 0; + } + > .cm-string.cm-url:not(.cm-formatting)::after { + content: '·'; + font-size: 1rem; + } + } +}