mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
ER styles: replace hardcoded values with new options properties
This commit is contained in:
parent
353b62aa0a
commit
2d7a289105
@ -6,15 +6,19 @@ const getStyles = (options) =>
|
||||
}
|
||||
|
||||
.attributeBoxOdd {
|
||||
fill: #ffffff;
|
||||
fill: ${options.attributeBackgroundColorOdd};
|
||||
stroke: ${options.nodeBorder};
|
||||
}
|
||||
|
||||
.attributeBoxEven {
|
||||
fill: #f2f2f2;
|
||||
fill: ${options.attributeBackgroundColorEven};
|
||||
stroke: ${options.nodeBorder};
|
||||
}
|
||||
|
||||
|
||||
.attributeBoxText {
|
||||
color: ${options.attributeTextColor};
|
||||
}
|
||||
|
||||
.relationshipLabelBox {
|
||||
fill: ${options.tertiaryColor};
|
||||
opacity: 0.7;
|
||||
@ -24,9 +28,9 @@ const getStyles = (options) =>
|
||||
}
|
||||
}
|
||||
|
||||
.relationshipLine {
|
||||
stroke: ${options.lineColor};
|
||||
}
|
||||
.relationshipLine {
|
||||
stroke: ${options.lineColor};
|
||||
}
|
||||
`;
|
||||
|
||||
export default getStyles;
|
||||
|
Loading…
x
Reference in New Issue
Block a user