mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 00:40:22 +02: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 {
|
.attributeBoxOdd {
|
||||||
fill: #ffffff;
|
fill: ${options.attributeBackgroundColorOdd};
|
||||||
stroke: ${options.nodeBorder};
|
stroke: ${options.nodeBorder};
|
||||||
}
|
}
|
||||||
|
|
||||||
.attributeBoxEven {
|
.attributeBoxEven {
|
||||||
fill: #f2f2f2;
|
fill: ${options.attributeBackgroundColorEven};
|
||||||
stroke: ${options.nodeBorder};
|
stroke: ${options.nodeBorder};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.attributeBoxText {
|
||||||
|
color: ${options.attributeTextColor};
|
||||||
|
}
|
||||||
|
|
||||||
.relationshipLabelBox {
|
.relationshipLabelBox {
|
||||||
fill: ${options.tertiaryColor};
|
fill: ${options.tertiaryColor};
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
@@ -24,9 +28,9 @@ const getStyles = (options) =>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.relationshipLine {
|
.relationshipLine {
|
||||||
stroke: ${options.lineColor};
|
stroke: ${options.lineColor};
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default getStyles;
|
export default getStyles;
|
||||||
|
Reference in New Issue
Block a user