mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 14:22:01 +08:00
Merge branch 'dev'
This commit is contained in:
commit
42bc175718
4 files changed
+17
-10
No files matched your search
+11
-1
@@ -21,7 +21,17 @@ script.
|
|||||||
math.end = {node: text, delim: '', n: 0}
|
math.end = {node: text, delim: '', n: 0}
|
||||||
doc.math.push(math)
|
doc.math.push(math)
|
||||||
}
|
}
|
||||||
}, '']
|
}, ''],
|
||||||
|
insertScript: [200, () => {
|
||||||
|
document.querySelectorAll('mjx-container:not\([display]\)').forEach(node => {
|
||||||
|
const target = node.parentNode
|
||||||
|
if (target.nodeName.toLowerCase() === 'li') {
|
||||||
|
target.parentNode.classList.add('has-jax')
|
||||||
|
} else {
|
||||||
|
target.classList.add('has-jax')
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, '', false]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "3.8.0",
|
"version": "3.8.1",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"hexo-renderer-stylus": "^2.0.1",
|
"hexo-renderer-stylus": "^2.0.1",
|
||||||
"hexo-renderer-pug": "^1.0.0"
|
"hexo-renderer-pug": "^2.0.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://butterfly.js.org/",
|
"homepage": "https://butterfly.js.org/",
|
||||||
"author": "Jerry <i@immyw.com>",
|
"author": "Jerry <i@immyw.com>",
|
||||||
|
|||||||
@@ -90,14 +90,11 @@ if hexo-config('waline.bg')
|
|||||||
display: none
|
display: none
|
||||||
|
|
||||||
// mathjax
|
// mathjax
|
||||||
mjx-container
|
mjx-container[display],
|
||||||
|
.has-jax
|
||||||
overflow-x: auto
|
overflow-x: auto
|
||||||
overflow-y: hidden
|
overflow-y: hidden
|
||||||
|
|
||||||
&:not([display])
|
|
||||||
display: inline-grid
|
|
||||||
max-width: 100%
|
|
||||||
|
|
||||||
.aplayer
|
.aplayer
|
||||||
color: $font-black
|
color: $font-black
|
||||||
|
|
||||||
|
|||||||
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user