From 971aecd7dea936e433de441465f8cff05acbd9bd Mon Sep 17 00:00:00 2001 From: Anubis <102488279+AnubisNekhet@users.noreply.github.com> Date: Sat, 21 Jan 2023 18:38:08 +0530 Subject: [PATCH] fix: LP codeblock language --- obsidian.css | 4 ++-- src/modules/Features/custom-checkboxes.scss | 2 +- src/modules/Note/codeblocks.scss | 2 +- theme.css | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/obsidian.css b/obsidian.css index a38aede..77d008f 100644 --- a/obsidian.css +++ b/obsidian.css @@ -3029,7 +3029,7 @@ body.is-translucent { } /* Show language in LP always */ -.markdown-source-view.mod-cm6 .HyperMD-codeblock.cm-line.HyperMD-codeblock-begin { +.markdown-source-view.mod-cm6 .HyperMD-codeblock.cm-line.cm-line.cm-line.HyperMD-codeblock-begin { overflow-x: visible; } @@ -4857,7 +4857,7 @@ Icons were taken from Font Awesome: https://fontawesome.com/ .theme-dark.anp-speech-bubble [data-task="8"], .theme-dark.anp-speech-bubble [data-task="9"] { --text-normal: var(--background-primary); - transition: background-color 0.2s, background 0.2s; + transition: background-color 0.2s, background 0.2s, border-radius 0.2s; } .theme-dark.anp-speech-bubble [data-task="0"]::selection, .theme-dark.anp-speech-bubble [data-task="1"]::selection, diff --git a/src/modules/Features/custom-checkboxes.scss b/src/modules/Features/custom-checkboxes.scss index 1a117c4..bf4abf4 100644 --- a/src/modules/Features/custom-checkboxes.scss +++ b/src/modules/Features/custom-checkboxes.scss @@ -260,7 +260,7 @@ Icons were taken from Font Awesome: https://fontawesome.com/ background-color: rgba(var(--ctp-crust), 0.2); background: rgba(var(--ctp-crust), 0.2); } - transition: background-color 0.2s, background 0.2s; + transition: background-color 0.2s, background 0.2s, border-radius 0.2s; } } .anp-speech-bubble .is-live-preview { diff --git a/src/modules/Note/codeblocks.scss b/src/modules/Note/codeblocks.scss index 2fba59f..1443521 100644 --- a/src/modules/Note/codeblocks.scss +++ b/src/modules/Note/codeblocks.scss @@ -5,7 +5,7 @@ --code-normal: var(--anp-code-text-color, var(--text-normal)); } /* Show language in LP always */ -.markdown-source-view.mod-cm6 .HyperMD-codeblock.cm-line.HyperMD-codeblock-begin { +.markdown-source-view.mod-cm6 .HyperMD-codeblock.cm-line.cm-line.cm-line.HyperMD-codeblock-begin { overflow-x: visible; } .anp-codeblock-edit-nowrap { diff --git a/theme.css b/theme.css index 42abe33..3d7b996 100644 --- a/theme.css +++ b/theme.css @@ -3029,7 +3029,7 @@ body.is-translucent { } /* Show language in LP always */ -.markdown-source-view.mod-cm6 .HyperMD-codeblock.cm-line.HyperMD-codeblock-begin { +.markdown-source-view.mod-cm6 .HyperMD-codeblock.cm-line.cm-line.cm-line.HyperMD-codeblock-begin { overflow-x: visible; } @@ -4857,7 +4857,7 @@ Icons were taken from Font Awesome: https://fontawesome.com/ .theme-dark.anp-speech-bubble [data-task="8"], .theme-dark.anp-speech-bubble [data-task="9"] { --text-normal: var(--background-primary); - transition: background-color 0.2s, background 0.2s; + transition: background-color 0.2s, background 0.2s, border-radius 0.2s; } .theme-dark.anp-speech-bubble [data-task="0"]::selection, .theme-dark.anp-speech-bubble [data-task="1"]::selection,