Theme Files Update

This commit is contained in:
GitHub Action
2023-08-19 07:24:17 +00:00
parent dd0cc8f02d
commit 680dbbd43f
15 changed files with 69 additions and 20 deletions

View File

@ -99,16 +99,4 @@ if (header !== null) {
toggleMobileMenu();
}
}, 250));
}
// Scroll to Top button Toggle
//
const scroll = document.querySelector(".scroll-up"), rootElement = document.documentElement;
function handleScroll() {
if (rootElement.scrollTop / (rootElement.scrollHeight - rootElement.clientHeight) > 0.4) {
scroll.classList.remove("hide");scroll.classList.add("show");
} else {
scroll.classList.add("hide");scroll.classList.remove("show");
}
}
document.addEventListener("scroll", handleScroll);
}

View File

@ -0,0 +1,17 @@
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [['$$','$$'], ['\\[', '\\]']],
processEscapes: true,
processEnvironments: true
},
options: {
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
enableMenu: false
}
};
window.addEventListener('load', (event) => {
document.querySelectorAll("mjx-container").forEach(function(x){
x.parentElement.classList += 'has-jax'})
});

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
const scroll=document.querySelector(".scroll-up"),rootElement=document.documentElement;function handleScroll(){rootElement.scrollTop/(rootElement.scrollHeight-rootElement.clientHeight)>.4?(scroll.classList.remove("hide"),scroll.classList.add("show")):(scroll.classList.add("hide"),scroll.classList.remove("show"))}document.addEventListener("scroll",handleScroll);

View File

@ -0,0 +1,6 @@
.has-jax {
-webkit-font-smoothing: antialiased;
background: inherit !important;
border: none !important;
font-size: 100%;
}

View File

@ -2,7 +2,7 @@
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc }
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #55595ebb }
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
/* Keyword */ .chroma .k { color: #66d9ef }

View File

@ -2,7 +2,8 @@
@import "normalize.scss";
@import "syntax.scss";
@import "animate.scss";
@import "scroll.scss";
@import "_scroll.scss";
@import "_mathjax.scss";
/* Webkit Scrollbar Customize */
::-webkit-scrollbar {