From e6126697532e7b2c7fba477e417218bafa92a0d8 Mon Sep 17 00:00:00 2001 From: moz Date: Sun, 16 Feb 2025 23:52:02 +0800 Subject: [PATCH 1/3] Add support for gradient bold font --- theme.css | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/theme.css b/theme.css index 6dc82f4..5019ee8 100644 --- a/theme.css +++ b/theme.css @@ -60,6 +60,14 @@ body { --progress-color-4: #b0c07e; --progress-color-5: #768399; + --strong-gradient-color-1: #87c2fd; + --strong-gradient-color-2: #dcb9fc; + --strong-gradient-aurora: linear-gradient(62deg, #87c2fd, #dcb9fc); + --strong-gradient-fleet: linear-gradient(62deg, #6E90F1, #9ECFEF); + --strong-gradient-snipestlab: linear-gradient(62deg, #29aee9, #28dac9); + --strong-gradient-custom: linear-gradient(62deg, var(--strong-gradient-color-1), var(--strong-gradient-color-2)); + --strong-gradient: var(--strong-gradient-aurora); + /* Font families */ --font-text-theme: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Ubuntu, sans-serif; @@ -328,6 +336,16 @@ body:not(.default-font-color) span:not(.cm-highlight).cm-strong { color: var(--strong-color); } +/* Fancy bold font */ +body.fancy-bold:not(.default-font-color) strong, +body.fancy-bold:not(.default-font-color) span:not(.cm-highlight).cm-strong { + padding-right: 0.1em; + background-clip: text; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-image: var(--strong-gradient); +} + /* Italics */ body:not(.default-font-color) em, body:not(.default-font-color) span:not(.cm-highlight).cm-em { @@ -1265,6 +1283,44 @@ settings: type: class-toggle default: false - + id: fancy-bold + title: Fancy bold font + description: Enable fancy gradient bold font + type: class-toggle + - + title: Fancy bold font theme + description: Change gradient bold font theme + id: strong-gradient + type: variable-select + default: var(--strong-gradient-aurora) + options: + - + label: Aurora + value: var(--strong-gradient-aurora) + - + label: Fleet + value: var(--strong-gradient-fleet) + - + label: SnipetsLab + value: var(--strong-gradient-snipestlab) + - + label: Custom + value: var(--strong-gradient-custom) + - + id: strong-gradient-color-1 + title: Blod font graident color 1 + type: variable-color + opacity: false + format: hex + default: '#87c2fd' + - + id: strong-gradient-color-2 + title: Blod font graident color 2 + type: variable-color + opacity: false + format: hex + default: '#dcb9fc' + - title: Disable Kanban board styles description: Remove minimalist styling to the Kanban plugin id: no-kanban-styles From 3f42c0d85cf9d48082d5f26793bafdc07b449f99 Mon Sep 17 00:00:00 2001 From: moz Date: Mon, 17 Feb 2025 15:17:42 +0800 Subject: [PATCH 2/3] correct spelling --- theme.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/theme.css b/theme.css index 5019ee8..5c89cc8 100644 --- a/theme.css +++ b/theme.css @@ -64,7 +64,7 @@ body { --strong-gradient-color-2: #dcb9fc; --strong-gradient-aurora: linear-gradient(62deg, #87c2fd, #dcb9fc); --strong-gradient-fleet: linear-gradient(62deg, #6E90F1, #9ECFEF); - --strong-gradient-snipestlab: linear-gradient(62deg, #29aee9, #28dac9); + --strong-gradient-snippetslab: linear-gradient(62deg, #29aee9, #28dac9); --strong-gradient-custom: linear-gradient(62deg, var(--strong-gradient-color-1), var(--strong-gradient-color-2)); --strong-gradient: var(--strong-gradient-aurora); @@ -1301,8 +1301,8 @@ settings: label: Fleet value: var(--strong-gradient-fleet) - - label: SnipetsLab - value: var(--strong-gradient-snipestlab) + label: SnippetsLab + value: var(--strong-gradient-snippetslab) - label: Custom value: var(--strong-gradient-custom) From 91558957d824523e54d8469866afd9d68d4e296a Mon Sep 17 00:00:00 2001 From: moz Date: Sat, 23 Aug 2025 15:56:50 +0800 Subject: [PATCH 3/3] fix: fancy-code not work correctly --- theme.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme.css b/theme.css index 5c89cc8..63e8a21 100644 --- a/theme.css +++ b/theme.css @@ -456,7 +456,7 @@ body.fancy-code } body.fancy-code - .HyperMD-codeblock.cm-line:not( + .HyperMD-codeblock.HyperMD-codeblock-bg.cm-line:not( .HyperMD-codeblock-begin, .HyperMD-codeblock-end ) {