From 6f47b626d0b87140caa7e9ad128c81f0a750d3c8 Mon Sep 17 00:00:00 2001 From: iwa Date: Sun, 20 Oct 2024 20:15:19 +0200 Subject: [PATCH 1/3] feat: toggle to match inline title to h1 color --- src/modules/Markdown-Elements/headers.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/Markdown-Elements/headers.scss b/src/modules/Markdown-Elements/headers.scss index 59304c2..16c2dae 100644 --- a/src/modules/Markdown-Elements/headers.scss +++ b/src/modules/Markdown-Elements/headers.scss @@ -64,3 +64,9 @@ $accents: "rosewater", "flamingo", "pink", "mauve", "red", "maroon", "peach", --h5-font: var(--anp-editor-font); --h6-font: var(--anp-editor-font); } + +.anp-inline-color-match-h1 { + .inline-title { + color: var(--h1-color); + } +} From b169dbb6ff21e27bbce93eb4ecc477d027177d17 Mon Sep 17 00:00:00 2001 From: iwa Date: Sun, 20 Oct 2024 20:16:03 +0200 Subject: [PATCH 2/3] feat: add style setting toggle for inline title match h1 color located under H1 settings --- src/modules/Core/style-settings.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/Core/style-settings.scss b/src/modules/Core/style-settings.scss index 7a9422b..b0a1102 100644 --- a/src/modules/Core/style-settings.scss +++ b/src/modules/Core/style-settings.scss @@ -1400,6 +1400,10 @@ settings: - label: Lavender value: anp-h1-lavender + - + id: anp-inline-color-match-h1 + title: Apply H1 Color to Inline Title + type: class-toggle - id: anp-h1-divider title: H1 Divider From 58a3a06d0283a867f881700f2c3123eb738d2ed6 Mon Sep 17 00:00:00 2001 From: iwa Date: Sun, 20 Oct 2024 20:16:14 +0200 Subject: [PATCH 3/3] chore: regen css files --- obsidian.css | 8 ++++++++ theme.css | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/obsidian.css b/obsidian.css index bd21fd6..0b7de9a 100644 --- a/obsidian.css +++ b/obsidian.css @@ -1414,6 +1414,10 @@ settings: - label: Lavender value: anp-h1-lavender + - + id: anp-inline-color-match-h1 + title: Apply H1 Color to Inline Title + type: class-toggle - id: anp-h1-divider title: H1 Divider @@ -5257,6 +5261,10 @@ sup[data-footnote-id] { --h6-font: var(--anp-editor-font); } +.anp-inline-color-match-h1 .inline-title { + color: var(--h1-color); +} + /*-Custom hr margins-*/ hr { margin-block-start: 5px; diff --git a/theme.css b/theme.css index bd21fd6..0b7de9a 100644 --- a/theme.css +++ b/theme.css @@ -1414,6 +1414,10 @@ settings: - label: Lavender value: anp-h1-lavender + - + id: anp-inline-color-match-h1 + title: Apply H1 Color to Inline Title + type: class-toggle - id: anp-h1-divider title: H1 Divider @@ -5257,6 +5261,10 @@ sup[data-footnote-id] { --h6-font: var(--anp-editor-font); } +.anp-inline-color-match-h1 .inline-title { + color: var(--h1-color); +} + /*-Custom hr margins-*/ hr { margin-block-start: 5px;