forked from genius-alray/box3-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deployed b1ee750 with MkDocs version: 1.6.0
- Loading branch information
0 parents
commit 991735d
Showing
199 changed files
with
15,752 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.