Skip to content

Harness engineering beginner tutorial, from 0 to 1

phase 1: dark-mode-aware mermaid zoom modal chrome

Aliakseif63fd348fddd
diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css
index c39099a..eb4acfb 100644
--- a/docs/.vitepress/theme/style.css
+++ b/docs/.vitepress/theme/style.css
@@ -644,7 +644,7 @@ html.has-mermaid-viewer body {
.mermaid-viewer__backdrop {
position: absolute;
inset: 0;
- background: rgba(250, 249, 245, 0.96);
+ background: var(--vp-c-bg);
}
.mermaid-viewer__panel {
@@ -670,7 +670,7 @@ html.has-mermaid-viewer body {
border-radius: 999px;
width: 40px;
height: 40px;
- background: rgba(0, 0, 0, 0.06);
+ background: var(--vp-c-bg-soft);
color: var(--vp-c-text-1);
font-size: 24px;
line-height: 1;
@@ -678,6 +678,11 @@ html.has-mermaid-viewer body {
cursor: pointer;
}
+.mermaid-viewer__tool:hover,
+.mermaid-viewer__close:hover {
+ background: var(--vp-c-bg-mute);
+}
+
.mermaid-viewer__tool--label {
width: auto;
min-width: 72px;
@@ -694,7 +699,7 @@ html.has-mermaid-viewer body {
justify-content: center;
padding: 8px;
cursor: zoom-out;
- background: #fff;
+ background: var(--vp-c-bg);
}
.mermaid-viewer__stage {