Skip to content

Commit

Permalink
Deployed b1ee750 with MkDocs version: 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 7, 2024
0 parents commit 991735d
Show file tree
Hide file tree
Showing 199 changed files with 15,752 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
1 change: 1 addition & 0 deletions 404.html

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions _assets/anchorParser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
gsap.registerPlugin(ScrollToPlugin);
function jump() {
const hash = /.+#(.+)/.exec(location.href)[1];
const el =
[...document.querySelectorAll("[anchor]")].find(
(e) => e.getAttribute("anchor").trim() == hash
) ||
[...document.querySelectorAll("*")].find(
(e) => e.id && e.id.trim() == hash
);
if (el) {
const timeline = gsap.timeline();
timeline.to(window, {
scrollTo: el.offsetTop - innerHeight / 2,
duration: 0.5,
ease: "power2",
});
timeline.fromTo(
el,
{
background: "rgba(32, 148, 243, .5)",
boxShadow: "0 0 5px #2094f3",
scale: 1.3,
onComplete() {
el.style.display = "block";
},
},
{
background: "rgba(32, 148, 243, 0)",
boxShadow: "0 0 0px #2094f3",
delay: 0.5,
scale: 1,
ease: "power2",
onComplete() {
el.style.display = "inherit";
},
duration: 0.5,
}
);

timeline.play();
}
}
window.addEventListener("hashchange", jump);
jump();
63 changes: 63 additions & 0 deletions _assets/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/* .kind-icon:hover,
button:hover,
a:hover {
border-color: rgba(32, 148, 243, 0.5);
} */
anchor {
height: 0;
}

summary,
img {
border: 1px solid transparent;
transition-duration: 0.25s;
cursor: pointer;
box-shadow: 0 0 3px transparent;
}

summary:active,
img:active {
border-color: #2094f3 !important;
background: rgba(32, 148, 243, 0.5) !important;
box-shadow: 0 0 3px #2094f3 !important;
}

img {
transition-duration: 0s !important;
}

/*解决双层active效果*/
a>a:active,
a>.kind-icon:active {
border-color: transparent !important;
box-shadow: none !important;
background-color: transparent !important;
}

/*解决方块速查表颜色太深看不见字问题*/
.voxelsTableTableData span,
.coloredWord {
transition: background-color 300ms;
padding: 5px;
border-radius: 3px;
}

.voxelsTableTableData span:hover,
.coloredWord:hover {
background-color: unset !important;
}

/*Joke Mode Only*/
.jokeElement {
transition: all 300ms;
}

* {
transition: background-color 0.5s, border-color 0.5s;
}

.admonition,
summary {
-webkit-user-select: none;
user-select: none;
}
Loading

0 comments on commit 991735d

Please sign in to comment.