From 79ef2218205ef03ea83ca45420d217858f7d111a Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 6 Mar 2020 17:54:00 -0800 Subject: [PATCH] Make KaTeX not break inside math, and clean up container code --- themes/vanilla/assets/scss/sidenotes.scss | 1 - themes/vanilla/assets/scss/style.scss | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/vanilla/assets/scss/sidenotes.scss b/themes/vanilla/assets/scss/sidenotes.scss index 2c20023..7a6512c 100644 --- a/themes/vanilla/assets/scss/sidenotes.scss +++ b/themes/vanilla/assets/scss/sidenotes.scss @@ -91,7 +91,6 @@ $sidenote-highlight-border-width: .2rem; } .container { - position: relative; left: -$sidenote-width/2 } } diff --git a/themes/vanilla/assets/scss/style.scss b/themes/vanilla/assets/scss/style.scss index 1e5d045..4e60edf 100755 --- a/themes/vanilla/assets/scss/style.scss +++ b/themes/vanilla/assets/scss/style.scss @@ -32,10 +32,6 @@ body { text-align: justify; } -main { - position: relative; -} - h1, h2, h3, h4, h5, h6 { margin-bottom: .1rem; margin-top: .5rem; @@ -65,6 +61,7 @@ pre code { } .container { + position: relative; margin: auto; width: 100%; max-width: $container-width; @@ -175,3 +172,7 @@ td { } padding: 0.5rem; } + +.katex-html { + white-space: nowrap; +}