Skip to content

Commit 0a98686

Browse files
author
Willem Kokke
committed
Fix embedded mermaid css to fix class diagram arrow heads
Originally used id based selecters, which doesn't work as the ids are made unique. Replacing them with class based selectors fixes this.
1 parent a890d6e commit 0a98686

File tree

1 file changed

+4
-8
lines changed
  • src/templates/assets/javascripts/components/content/mermaid

1 file changed

+4
-8
lines changed

Diff for: src/templates/assets/javascripts/components/content/mermaid/index.css

+4-8
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,15 @@ g.classGroup text {
171171
}
172172

173173
/* Class extension, composition and dependency marker */
174-
defs #classDiagram-extensionStart,
175-
defs #classDiagram-extensionEnd,
176-
defs #classDiagram-compositionStart,
177-
defs #classDiagram-compositionEnd,
178-
defs #classDiagram-dependencyStart,
179-
defs #classDiagram-dependencyEnd {
174+
defs marker.marker.extension.class path,
175+
defs marker.marker.composition.class path ,
176+
defs marker.marker.dependency.class path {
180177
fill: var(--md-mermaid-edge-color) !important;
181178
stroke: var(--md-mermaid-edge-color) !important;
182179
}
183180

184181
/* Class aggregation marker */
185-
defs #classDiagram-aggregationStart,
186-
defs #classDiagram-aggregationEnd {
182+
defs marker.marker.aggregation.class path {
187183
fill: var(--md-mermaid-label-bg-color) !important;
188184
stroke: var(--md-mermaid-edge-color) !important;
189185
}

0 commit comments

Comments
 (0)