Add page-moved admonition

This commit is contained in:
thhsh-local 2025-05-20 13:04:57 -04:00
parent e305c9a8df
commit 76755b810c
Signed by: thhsh-local
SSH key fingerprint: SHA256:bLOq3d7dN1v5+W5U6pQekP0rBm0YUtC9qvh3TDYyAsg
2 changed files with 32 additions and 1 deletions

View file

@ -16,6 +16,24 @@
mask-image: var(--md-admonition-icon--deprecated);
}
:root {
--md-admonition-icon--page-moved: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-3.5a.75.75 0 0 1 0-1.5h3.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073H3.75a.25.25 0 0 0-.25.25v6.5a.75.75 0 0 1-1.5 0z"/><path d="m5.427 15.573 3.146-3.146a.25.25 0 0 0 0-.354L5.427 8.927A.25.25 0 0 0 5 9.104V11.5H.75a.75.75 0 0 0 0 1.5H5v2.396c0 .223.27.335.427.177"/></svg>')
}
.md-typeset .admonition.page-moved,
.md-typeset details.page-moved {
border-color: rgb(255, 121, 198);
}
.md-typeset .page-moved > .admonition-title,
.md-typeset .page-moved > summary {
background-color: rgba(255, 121, 198, 0.1);
}
.md-typeset .page-moved > .admonition-title::before,
.md-typeset .page-moved > summary::before {
background-color: rgb(255, 121, 198);
-webkit-mask-image: var(--md-admonition-icon--page-moved);
mask-image: var(--md-admonition-icon--page-moved);
}
.note-blue {
color: #448AFF;
}