From 14772216de5ed3778018f36e1f317148ddc30048 Mon Sep 17 00:00:00 2001 From: mgmeyers Date: Thu, 15 Jul 2021 11:53:25 -0700 Subject: [PATCH] Preview blockquotes --- obsidian.css | 37 ++++++++++++++----------------------- src/020-document.css | 11 +++++++++-- src/060-preview.css | 26 +++++--------------------- 3 files changed, 28 insertions(+), 46 deletions(-) diff --git a/obsidian.css b/obsidian.css index 6400bac..1d836f5 100644 --- a/obsidian.css +++ b/obsidian.css @@ -4245,14 +4245,21 @@ input[type="checkbox"]:checked:before { } .markdown-preview-view .collapse-indicator > svg.right-triangle { - width: 16px; - height: 16px; + color: var(--shade-40); + width: 14px; + height: 14px; position: absolute; left: -2.33rem; top: 50%; transform: translateY(-50%); } +.is-mobile .markdown-preview-view .collapse-indicator > svg.right-triangle { + width: 16px; + height: 16px; +} + + .markdown-preview-view .heading-collapse-indicator.collapse-indicator > svg.right-triangle { @@ -6386,13 +6393,13 @@ body { color: unset; padding: 0 0 0 1.4375rem; margin-inline-start: unset; + border-left: 2px solid var(--shade-plus-darker); } -.markdown-preview-section blockquote:before { - position: absolute; - left: 0; - line-height: 1.88889 !important; -} +/* .theme-dark .markdown-preview-section blockquote { + border-left-color: var(--shade-10); +} */ + .markdown-preview-view blockquote p { margin: 0; @@ -6497,22 +6504,6 @@ body { padding: unset; } -/* Icons */ - -.markdown-preview-section blockquote:before { - display: inline-block; - line-height: 1; - margin-right: -0.6em; - opacity: 0.1; - width: 1rem; - height: 1rem; - content: url('data:image/svg+xml; utf8, '); -} - -.theme-dark .markdown-preview-section blockquote:before { - content: url('data:image/svg+xml; utf8, '); -} - /* Pretty preview */ .cc-pretty-preview .markdown-preview-section > div > * { line-height: var(--editor-line-height); diff --git a/src/020-document.css b/src/020-document.css index 0537e5a..3e006d0 100644 --- a/src/020-document.css +++ b/src/020-document.css @@ -309,14 +309,21 @@ input[type="checkbox"]:checked:before { } .markdown-preview-view .collapse-indicator > svg.right-triangle { - width: 16px; - height: 16px; + color: var(--shade-40); + width: 14px; + height: 14px; position: absolute; left: -2.33rem; top: 50%; transform: translateY(-50%); } +.is-mobile .markdown-preview-view .collapse-indicator > svg.right-triangle { + width: 16px; + height: 16px; +} + + .markdown-preview-view .heading-collapse-indicator.collapse-indicator > svg.right-triangle { diff --git a/src/060-preview.css b/src/060-preview.css index 99298d7..995440b 100644 --- a/src/060-preview.css +++ b/src/060-preview.css @@ -130,13 +130,13 @@ body { color: unset; padding: 0 0 0 1.4375rem; margin-inline-start: unset; + border-left: 2px solid var(--shade-plus-darker); } -.markdown-preview-section blockquote:before { - position: absolute; - left: 0; - line-height: 1.88889 !important; -} +/* .theme-dark .markdown-preview-section blockquote { + border-left-color: var(--shade-10); +} */ + .markdown-preview-view blockquote p { margin: 0; @@ -241,22 +241,6 @@ body { padding: unset; } -/* Icons */ - -.markdown-preview-section blockquote:before { - display: inline-block; - line-height: 1; - margin-right: -0.6em; - opacity: 0.1; - width: 1rem; - height: 1rem; - content: url('data:image/svg+xml; utf8, '); -} - -.theme-dark .markdown-preview-section blockquote:before { - content: url('data:image/svg+xml; utf8, '); -} - /* Pretty preview */ .cc-pretty-preview .markdown-preview-section > div > * { line-height: var(--editor-line-height);