Adding styling

This commit is contained in:
Knut Sveidqvist
2020-10-22 19:51:31 +02:00
parent 5fb572abaf
commit 6eaea38df7
4 changed files with 50 additions and 268 deletions

View File

@@ -1,4 +1,4 @@
const getStyles = () =>
const getStyles = options =>
`
.commit-id,
.commit-msg,
@@ -8,6 +8,17 @@ const getStyles = () =>
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
}
.branch {
stroke-width: 10;
}
.branch0 { stroke: ${options.fillType0}; }
.branch1 { stroke: ${options.fillType1}; }
.branch2 { stroke: ${options.fillType2}; }
.branch3 { stroke: ${options.fillType3}; }
.branch4 { stroke: ${options.fillType4}; }
.branch5 { stroke: ${options.fillType5}; }
.branch6 { stroke: ${options.fillType6}; }
.branch7 { stroke: ${options.fillType7}; }
`;
export default getStyles;