feat(docs): click-to-zoom for mermaid diagrams

This commit is contained in:
pj committed 2026-04-23 00:25:44 +07:00
1 parent baf1daff61
commit 70e21c2eaa
2 files changed
+44

No files matched your search

+27
View File
@@ -184,6 +184,33 @@ footer a { color: var(--muted); }
.mermaid {
text-align: center;
margin: 1.5rem 0;
cursor: zoom-in;
}
.diagram-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.9);
z-index: 9999;
cursor: zoom-out;
align-items: center;
justify-content: center;
padding: 2rem;
}
.diagram-overlay.open {
display: flex;
}
.diagram-overlay svg {
max-width: 95vw;
max-height: 95vh;
width: auto;
height: auto;
background: var(--bg);
border-radius: 6px;
padding: 1.5rem;
}
@media (max-width: 768px) {