We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc9408 commit 8f0c8b3Copy full SHA for 8f0c8b3
2 files changed
.changeset/tidy-garlics-raise.md
@@ -0,0 +1,5 @@
1
+---
2
+'hexo-theme-cupertino': patch
3
4
+
5
+Fix math formula making container oversized.
source/css/post.scss
@@ -123,7 +123,6 @@ body {
123
#{$content} > video,
124
#{$content} > ul,
125
#{$content} > ol,
126
- #{$content} > mjx-container,
127
#{$content} > .katex,
128
.about {
129
@include ctn;
@@ -273,7 +272,12 @@ body {
273
272
}
274
275
/* for [hexo-math](https://github.com/hexojs/hexo-math): */
276
+ #{$content} > p:has(mjx-container) {
+ max-width: none;
277
+ overflow-x: auto;
278
+ overscroll-behavior-x: contain;
279
+ text-align: center;
280
+ }
281
#{$content} > .katex {
282
display: block;
283
text-align: center;
0 commit comments