From 543ec07e724e3b02313d1933ebbf4543196df8f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20H=C3=A4usler?= Date: Fri, 25 Jan 2019 06:57:24 +0100 Subject: [PATCH] Adjust inline math font (#657) --- .github/CHANGELOG.md | 4 +++- src/muya/lib/assets/styles/index.css | 4 ++++ src/muya/themes/dark.css | 4 ++++ src/muya/themes/light.css | 4 ++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index a2c2adc8..e3e23eeb 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -2,7 +2,7 @@ **:cactus:Feature** -- Added an error handler +- Improve exception and error handling **:butterfly:Optimization** @@ -10,6 +10,8 @@ - Separate font and font size for code blocks and source code mode (#373, #467) - Opened files and opened directories/files can now be folded (#475, #602) - You can now hide the quick insert hint (#621) +- Adjusted quote inline math color (#592) +- Fix inline math text align (#593) **:beetle:Bug fix** diff --git a/src/muya/lib/assets/styles/index.css b/src/muya/lib/assets/styles/index.css index a3d34fc4..9f783329 100644 --- a/src/muya/lib/assets/styles/index.css +++ b/src/muya/lib/assets/styles/index.css @@ -192,11 +192,15 @@ span.ag-math > .ag-math-render.ag-math-error { font-family: monospace; } +/* (Preview) math block */ +/* TODO: DOM path should be wrong. Correct path should be: 'ag-container-preview > .katex-display'. */ .ag-math > .ag-math-render .katex-display { margin: 0; } +/* Inline math */ .ag-math > .ag-math-render .katex { + vertical-align: middle; white-space: nowrap; } diff --git a/src/muya/themes/dark.css b/src/muya/themes/dark.css index 527d367a..d2148723 100755 --- a/src/muya/themes/dark.css +++ b/src/muya/themes/dark.css @@ -455,6 +455,10 @@ td code { color: #efefef; } +blockquote .ag-hide.ag-math > .ag-math-render { + color: #999999; +} + .ag-gray.ag-math > .ag-math-render { color: #333333; background: #f6f8fa; diff --git a/src/muya/themes/light.css b/src/muya/themes/light.css index f57e329a..914e3745 100644 --- a/src/muya/themes/light.css +++ b/src/muya/themes/light.css @@ -434,6 +434,10 @@ pre[class*="language-"] { color: #333333; } +blockquote .ag-hide.ag-math > .ag-math-render { + color: #777777; +} + .ag-gray.ag-math > .ag-math-render { color: #f6f8fa; background: #333333;