use super::*;
pub(crate) const DIAGRAM_ID_PREFIX: &str = "docs-mermaid-";
pub(crate) const SCOPED_CSS: &str = r#"
.actor{stroke:var(--foreground);fill:var(--muted);}
.actor-line{stroke:var(--foreground);}
.messageLine0,.messageLine1{stroke:var(--foreground);}
rect.note[data-look]{stroke:var(--border);fill:var(--muted);}
text.actor>tspan{fill:var(--foreground);stroke:none;}
.noteText,.noteText>tspan{fill:var(--foreground);stroke:none;}
.messageText,.messageText>tspan{fill:var(--foreground);stroke:none;}
.labelBox{stroke:var(--border);fill:var(--muted);}
.labelText,.labelText>tspan{fill:var(--foreground);stroke:none;}
.loopText,.loopText>tspan{fill:var(--foreground);stroke:none;}
.sectionTitle,.sectionTitle>tspan{fill:var(--foreground);stroke:none;}
.loopLabel{stroke:var(--foreground);fill:var(--muted);}
.loopLabel>tspan{fill:var(--foreground);stroke:none;}
"#;
class! {
pub c_docs_mermaid {
margin: format!("{} 0", var!(space-lg));
border: format!("{} solid {}", var!(border-width), var!(border));
border-radius: var!(radius-lg);
background: var!(muted);
overflow: "hidden";
min-width: "0";
}
pub c_docs_mermaid_frame {
padding: var!(space-lg);
overflow-x: "auto";
overflow-y: "hidden";
}
}