mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-13 12:29:42 +02:00
Style the flow chart labels via SCSS
This commit is contained in:
@@ -78,7 +78,6 @@ export const addVertices = function (vert, g, svgId) {
|
|||||||
tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve')
|
tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve')
|
||||||
tspan.setAttribute('dy', '1em')
|
tspan.setAttribute('dy', '1em')
|
||||||
tspan.setAttribute('x', '1')
|
tspan.setAttribute('x', '1')
|
||||||
tspan.setAttribute('fill', '#333')
|
|
||||||
tspan.textContent = rows[j]
|
tspan.textContent = rows[j]
|
||||||
svgLabel.appendChild(tspan)
|
svgLabel.appendChild(tspan)
|
||||||
}
|
}
|
||||||
|
@@ -3,6 +3,10 @@
|
|||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.label text {
|
||||||
|
fill: #333;
|
||||||
|
}
|
||||||
|
|
||||||
.node rect,
|
.node rect,
|
||||||
.node circle,
|
.node circle,
|
||||||
.node ellipse,
|
.node ellipse,
|
||||||
|
Reference in New Issue
Block a user