Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartinAramayo <gabriel.m.aramayo@gmail.com>2022-10-29 15:38:44 +0300
committerGitHub <noreply@github.com>2022-10-29 15:38:44 +0300
commit30e033c66019e27c482eee3361beb040360315bf (patch)
treea72b2861a7c8e59ab8a33583c80c30ab935c7753
parent86314608e39c115f5c7c2966a62f9cf622b64fa7 (diff)
feat(article): make long KaTeX equations scrollable in the x-axis (#706)
* Make long KaTeX equations scrollable in the x-axis Suggested from: https://katex.org/docs/issues.html, I have tested it adding a long equation and activating a phone user agent. * refactor: move KaTeX style to article.scss
-rw-r--r--assets/scss/partials/layout/article.scss6
1 files changed, 6 insertions, 0 deletions
diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss
index 6199118..97c7e77 100644
--- a/assets/scss/partials/layout/article.scss
+++ b/assets/scss/partials/layout/article.scss
@@ -412,4 +412,10 @@
margin-right: calc((var(--card-padding)) * -1);
width: calc(100% + var(--card-padding) * 2);
}
+
+ /// Make long KaTeX equations scrollable in the x-axis
+ .katex-display > .katex {
+ overflow-x: auto;
+ overflow-y: hidden;
+ }
}