diff --git a/dist/mermaid.css b/dist/mermaid.css index b895e1b1c..769933f0a 100644 --- a/dist/mermaid.css +++ b/dist/mermaid.css @@ -15,6 +15,9 @@ .edgePath .path { stroke: #333333; } +.edgeLabel { + background-color: #e8e8e8; +} .cluster rect { fill: #ffffde !important; rx: 4 !important; @@ -251,7 +254,7 @@ text.actor { */ -text { +.node text { font-family: 'trebuchet ms', verdana, arial; font-size: 14px; } diff --git a/dist/mermaid.forest.css b/dist/mermaid.forest.css index 71f8c3259..ecfbe7fe2 100644 --- a/dist/mermaid.forest.css +++ b/dist/mermaid.forest.css @@ -17,6 +17,9 @@ stroke: green; stroke-width: 1.5px; } +.edgeLabel { + background-color: #e8e8e8; +} .cluster rect { fill: #cdffb2 !important; rx: 4 !important; @@ -331,7 +334,7 @@ svg .classLabel .label { stroke: #13540c; stroke-width: 1; } -text { +.node text { font-family: 'trebuchet ms', verdana, arial; font-size: 14px; } diff --git a/src/less/default/mermaid.less b/src/less/default/mermaid.less index d031540ab..a819b62d1 100644 --- a/src/less/default/mermaid.less +++ b/src/less/default/mermaid.less @@ -4,7 +4,7 @@ @import "gantt"; @import "variables"; -text { +.node text { font-family: 'trebuchet ms', verdana, arial; font-size:14px; } diff --git a/src/less/forest/mermaid.less b/src/less/forest/mermaid.less index da2965456..6470a354d 100644 --- a/src/less/forest/mermaid.less +++ b/src/less/forest/mermaid.less @@ -4,7 +4,7 @@ @import "gantt"; @import "classDiagram"; -text { +.node text { font-family: 'trebuchet ms', verdana, arial; font-size:14px; } diff --git a/test/examples/htmlLabelsFalse.html b/test/examples/htmlLabelsFalse.html new file mode 100644 index 000000000..2e359867b --- /dev/null +++ b/test/examples/htmlLabelsFalse.html @@ -0,0 +1,23 @@ + + + + + + + + + + +

The nodes should not be false

+
+ graph LR; + A[Node A]-->B[Node B]; + B-->C[Node C]; +
+ \ No newline at end of file diff --git a/test/examples/labelOutOfNode.html b/test/examples/labelOutOfNode.html new file mode 100644 index 000000000..4b715f71e --- /dev/null +++ b/test/examples/labelOutOfNode.html @@ -0,0 +1,31 @@ + + + + + + + + + + +

The text should be inside the boxes

+
+ graph TD; + A[TESTTESTTESTTESTTESTTESTTEST]; + A --> B[testtesttesttesttesttesttesttesttesttesttest]; +
+ \ No newline at end of file