From 69d022a2fa5675330a68bed681498a0ac1bd6037 Mon Sep 17 00:00:00 2001 From: Dallas Hoffman Date: Mon, 2 Oct 2023 23:17:30 -0400 Subject: [PATCH] Improve contrast of note editor in dark mode; code block styles --- src/styles/_bytemd.scss | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/styles/_bytemd.scss b/src/styles/_bytemd.scss index ae3a59f..55f5ddb 100644 --- a/src/styles/_bytemd.scss +++ b/src/styles/_bytemd.scss @@ -51,6 +51,12 @@ border-color: var(--editor-border); } +.markdown-body { + pre { + background-color: hsl(0 0% 100% / 0.3); + } +} + .tippy-box { font-size: 0.875rem; color: var(--tooltip-color); @@ -66,12 +72,13 @@ color: var(--tooltip-background-color); } -:root[data-theme='dark'] .bytemd { - --editor-bg: hsl(0 0% 0% / 0.075); - color-scheme: dark; +:root[data-theme='dark'] { + .bytemd { + color-scheme: dark; + } - &.bytemd-fullscreen { - --editor-bg: var(--note-color, hsl(0 0% 80%)); + .markdown-body { + color-scheme: dark; } }