Adding icon support

This commit is contained in:
Knut Sveidqvist
2022-07-27 18:40:44 +02:00
parent 82a480d924
commit 1a205aeccc
3 changed files with 39 additions and 8 deletions

View File

@@ -21,6 +21,10 @@ const genSections = (options) => {
.section-${i - 1} text {
fill: ${options['gitBranchLabel' + i]};
}
.node-icon-${i - 1} {
font-size: 40px;
color: ${options['gitBranchLabel' + i]};
}
.section-edge-${i - 1}{
stroke: ${options['git' + i]};
}
@@ -55,6 +59,12 @@ const getStyles = (options) =>
.section-root text {
fill: ${options.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;A
}
`;
export default getStyles;