From 5d4f5ff53063049ca19a56a6bd040f7852e696ba Mon Sep 17 00:00:00 2001 From: Shan Carter Date: Tue, 29 Aug 2017 17:09:36 -0700 Subject: [PATCH] Left aligned math --- src/components/d-math.js | 13 +++++++++++++ src/components/d-title.js | 2 +- src/styles/styles-article.css | 1 - 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/d-math.js b/src/components/d-math.js index 0a643fc..1201ca7 100644 --- a/src/components/d-math.js +++ b/src/components/d-math.js @@ -17,6 +17,19 @@ const T = Template('d-math', ` display: block; } +#katex-container .katex-display { + text-align: left; + border-left: 2px solid #ddd; + padding: 8px 0 8px 36px; + margin: 20px 0; + color: rgba(0, 0, 0, 0.7); + -webkit-font-smoothing: antialiased; +} + +#katex-container .katex { + font-size: 1.2em; +} + ${katexCSSTag} diff --git a/src/components/d-title.js b/src/components/d-title.js index f888a67..89a804c 100644 --- a/src/components/d-title.js +++ b/src/components/d-title.js @@ -25,7 +25,7 @@ const T = Template('d-title', ` font-weight: 300 !important; padding-top: 0 !important; padding-bottom: 0 !important; - line-height: 1.5em !important; + line-height: 1.6em !important; margin-top: 0 !important; margin-bottom: 18px !important; } diff --git a/src/styles/styles-article.css b/src/styles/styles-article.css index 0c73176..2a7a1f7 100644 --- a/src/styles/styles-article.css +++ b/src/styles/styles-article.css @@ -1,4 +1,3 @@ - d-article { color: rgba(0, 0, 0, 0.8); padding-top: 0;