mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 15:30:03 +02:00
Used 'options' instead of 'var(--mermaid-font-family)'
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
const getStyles = (options) =>
|
const getStyles = (options) =>
|
||||||
`
|
`
|
||||||
.mermaid-main-font {
|
.mermaid-main-font {
|
||||||
font-family: var(--mermaid-font-family), trebuchet ms, verdana, arial, sans-serif;
|
font-family: ${options.fontFamily};
|
||||||
}
|
}
|
||||||
|
|
||||||
.exclude-range {
|
.exclude-range {
|
||||||
@@ -45,7 +45,7 @@ const getStyles = (options) =>
|
|||||||
|
|
||||||
.sectionTitle {
|
.sectionTitle {
|
||||||
text-anchor: start;
|
text-anchor: start;
|
||||||
font-family: var(--mermaid-font-family), trebuchet ms, verdana, arial, sans-serif;
|
font-family: ${options.fontFamily};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -86,13 +86,13 @@ const getStyles = (options) =>
|
|||||||
|
|
||||||
.taskText {
|
.taskText {
|
||||||
text-anchor: middle;
|
text-anchor: middle;
|
||||||
font-family: var(--mermaid-font-family), trebuchet ms, verdana, arial, sans-serif;
|
font-family: ${options.fontFamily};
|
||||||
}
|
}
|
||||||
|
|
||||||
.taskTextOutsideRight {
|
.taskTextOutsideRight {
|
||||||
fill: ${options.taskTextDarkColor};
|
fill: ${options.taskTextDarkColor};
|
||||||
text-anchor: start;
|
text-anchor: start;
|
||||||
font-family: var(--mermaid-font-family), trebuchet ms, verdana, arial, sans-serif;
|
font-family: ${options.fontFamily};
|
||||||
}
|
}
|
||||||
|
|
||||||
.taskTextOutsideLeft {
|
.taskTextOutsideLeft {
|
||||||
@@ -248,7 +248,7 @@ const getStyles = (options) =>
|
|||||||
text-anchor: middle;
|
text-anchor: middle;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
fill: ${options.titleColor || options.textColor};
|
fill: ${options.titleColor || options.textColor};
|
||||||
font-family: var(--mermaid-font-family), trebuchet ms, verdana, arial, sans-serif;
|
font-family: ${options.fontFamily};
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
const getStyles = () =>
|
const getStyles = (options) =>
|
||||||
`.label {
|
`.label {
|
||||||
font-family: var(--mermaid-font-family), trebuchet ms, verdana, arial, sans-serif;
|
font-family: ${options.fontFamily};
|
||||||
}`;
|
}`;
|
||||||
|
|
||||||
export default getStyles;
|
export default getStyles;
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
const getStyles = (options) =>
|
const getStyles = (options) =>
|
||||||
`.label {
|
`.label {
|
||||||
font-family: var(--mermaid-font-family), trebuchet ms, verdana, arial, sans-serif;
|
font-family: ${options.fontFamily};
|
||||||
color: ${options.textColor};
|
color: ${options.textColor};
|
||||||
}
|
}
|
||||||
.mouth {
|
.mouth {
|
||||||
@@ -78,7 +78,7 @@ const getStyles = (options) =>
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
max-width: 200px;
|
max-width: 200px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
font-family: var(--mermaid-font-family), trebuchet ms, verdana, arial, sans-serif;
|
font-family: ${options.fontFamily};
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
background: ${options.tertiaryColor};
|
background: ${options.tertiaryColor};
|
||||||
border: 1px solid ${options.border2};
|
border: 1px solid ${options.border2};
|
||||||
|
Reference in New Issue
Block a user