From 4c3cb1d03ca70119a878d403e8c3abe8c6b48218 Mon Sep 17 00:00:00 2001 From: xero Date: Tue, 19 Nov 2024 02:09:05 -0500 Subject: [PATCH] feat(callouts): new callout styles --- manifest.json | 2 +- theme.css | 274 +++++++++++++++++++++++++++++++++++++++++--------- versions.json | 1 + 3 files changed, 229 insertions(+), 48 deletions(-) diff --git a/manifest.json b/manifest.json index 82a25e3..f396bfe 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "evangelion", - "version": "1.2.2", + "version": "1.2.3", "minAppVersion": "1.0.0", "author": "xero", "authorUrl": "https://github.com/xero" diff --git a/theme.css b/theme.css index 2b404db..57cc8ad 100644 --- a/theme.css +++ b/theme.css @@ -515,11 +515,10 @@ blockquote { mix-blend-mode: normal; a svg { - stroke: #000; - fill: #000; padding-right: 3px; } + .callout-title-inner, em, strong, .cm-em, @@ -529,7 +528,6 @@ blockquote { * { margin: 0px !important; - /* required */ } .cm-hmd-internal-link, @@ -537,7 +535,6 @@ blockquote { .cm-url, .external-link { color: #201430 !important; - /* required */ text-decoration-thickness: 1px; text-decoration: underline; text-underline-offset: 1.5px; @@ -553,20 +550,33 @@ blockquote { .external-link { text-decoration-color: #87ff5f; } + + a, + a:visited, + .cm-hmd-internal-link, + .cm-url, + .internal-link, + .external-link { + font-weight: bold; + } + code { + border-bottom: 0 !important; + background: #9284fc; + color: #201430; + font-weight: bold !important; + } } .callout[data-callout="bug"], - .callout[data-callout="default"], - .callout[data-callout="note"], .callout[data-callout="error"], .callout[data-callout="danger"] { background: #db6088; --callout-color: #201430; color: #201430; - svg { - fill: #ae1018; - stroke: #201430; + code { + background: firebrick !important; + color: #151515 !important; } .cm-hmd-internal-link, @@ -587,18 +597,19 @@ blockquote { --callout-color: #201430; color: #201430; - svg { - stroke: #660000; + code { + background: firebrick !important; + color: #000; } .cm-url, .external-link { - text-decoration-color: #87ff5f; + text-decoration-color: firebrick; } .cm-hmd-internal-link, .internal-link { - text-decoration-color: #9f50e1; + text-decoration-color: firebrick; } } @@ -609,9 +620,9 @@ blockquote { --callout-color: #201430; color: #201430; - svg { - fill: #87ff5f; - stroke: #74008e; + code { + background: #87ff5f !important; + color: #74008e !important; } .cm-s-obsidian span.cm-footref, @@ -620,7 +631,6 @@ blockquote { color: #ce67f0; padding-left: 2px; filter: none !important; - /* required */ } .cm-url, @@ -640,9 +650,9 @@ blockquote { --callout-color: #201430; color: #201430; - svg { - fill: #d99145; - stroke: #201430; + code { + background: #d99145 !important; + color: #201430 !important; } .cm-url, @@ -656,9 +666,9 @@ blockquote { --callout-color: #201430; color: #201430; - svg { - fill: #a4d2ec; - stroke: #151515; + code { + background: #9284fc !important; + color: #151515 !important; } .cm-hmd-internal-link, @@ -666,11 +676,12 @@ blockquote { text-decoration-color: #452f5c; } } - .callout[data-callout="question"], + .callout[data-callout="note"], .callout[data-callout="help"], .callout[data-callout="faq"], .callout[data-callout="tip"], + .callout[data-callout="default"], .callout[data-callout="hint"], .callout[data-callout="todo"], .callout[data-callout="attention"], @@ -679,9 +690,9 @@ blockquote { --callout-color: #201430; color: #201430; - svg { - fill: #a4d2ec; - stroke: #483160; + code { + background: #9284fc !important; + color: #201430 !important; } .cm-url, @@ -696,17 +707,117 @@ blockquote { } .callout[data-callout="important"] { - svg { - stroke: #201430; - fill: #db6088; + code { + color: #151515 !important; + background: #d99145 !important; } } + .callout[data-callout="default"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="error"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="caution"] .callout-icon, + .callout[data-callout="warning"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="attention"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="abstract"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="example"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="question"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="note"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="fail"] .callout-icon, + .callout[data-callout="failure"] .callout-icon, + .callout[data-callout="missing"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="hint"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="todo"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="faq"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="quote"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="help"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="tldr"] .callout-icon, + .callout[data-callout="summary"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="info"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="success"] .callout-icon, + .callout[data-callout="check"] .callout-icon, + .callout[data-callout="done"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="important"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="tip"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="danger"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="bug"] .callout-icon { + background-image: url('data:image/svg+xml; utf8, '); + } + .callout[data-callout="default"], + .callout[data-callout="info"], .callout[data-callout="tip"], - .callout[data-callout="hint"] { - svg { - stroke: #201430; - fill: #87ff5f; + .callout[data-callout="bug"], + .callout[data-callout="danger"], + .callout[data-callout="abstract"], + .callout[data-callout="important"], + .callout[data-callout="success"], + .callout[data-callout="check"], + .callout[data-callout="done"], + .callout[data-callout="summary"], + .callout[data-callout="tldr"], + .callout[data-callout="help"], + .callout[data-callout="quote"], + .callout[data-callout="faq"], + .callout[data-callout="caution"], + .callout[data-callout="todo"], + .callout[data-callout="hint"], + .callout[data-callout="attention"], + .callout[data-callout="fail"], + .callout[data-callout="warning"], + .callout[data-callout="error"], + .callout[data-callout="failure"], + .callout[data-callout="missing"], + .callout[data-callout="example"], + .callout[data-callout="question"], + .callout[data-callout="note"] { + .callout-icon { + display: inline-flex; + width: 20px; + height: 20px; + background-repeat: none; + stroke: #151515; + svg { + display: none !important; + } } } } @@ -963,18 +1074,75 @@ hr.workspace-leaf-resize-handle { } /* data view */ -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .block-language-dataview h4, -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .block-language-dataview > h4, -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .block-language-dataviewjs h4, -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .block-language-dataviewjs > h1, -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .block-language-dataviewjs > h2, -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .block-language-dataviewjs > h3, -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .block-language-dataviewjs > h4, -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .block-language-dataviewjs > p, -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .dataview.dataview-container > .contains-task-list, -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .dataview.dataview-error, -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .dataview.list-view-ul, -body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not( .table-max):not(.table-wide) .dataview.result-group { +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .block-language-dataview + h4, +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .block-language-dataview + > h4, +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .block-language-dataviewjs + h4, +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .block-language-dataviewjs + > h1, +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .block-language-dataviewjs + > h2, +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .block-language-dataviewjs + > h3, +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .block-language-dataviewjs + > h4, +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .block-language-dataviewjs + > p, +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .dataview.dataview-container + > .contains-task-list, +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .dataview.dataview-error, +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .dataview.list-view-ul, +body:not(.table-100):not(.table-max):not(.table-wide) + .markdown-preview-view.is-readable-line-width:not(.table-100):not( + .table-max + ):not(.table-wide) + .dataview.result-group { /* width fix */ max-width: 100%; } @@ -1033,8 +1201,20 @@ a:visited { thead, .table-view-thead { background-color: #9f50e1 !important; - color: #000 !important; font-weight: bold; + border: none !important; + th { + color: #000 !important; + border: none !important; + + em, + strong, + code { + background: transparent !important; + border-bottom: 0 !important; + color: #000 !important; + } + } } .HyperMD-table-row-0.cm-line { diff --git a/versions.json b/versions.json index dccb7ae..bbbdf66 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,4 @@ { + "1.2.3": "1.2.2", "1.2.2": "1.2.2" }