Skip to content

Commit 7863531

Browse files
committed
fix: color for state diagram arrows not applied (#148)
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
1 parent ba91eb4 commit 7863531

3 files changed

Lines changed: 12 additions & 11 deletions

File tree

dist/assets/javascripts/bundle.a8959a4f.min.js renamed to dist/assets/javascripts/bundle.8a45299d.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
</script>
274274
{% endblock %}
275275
{% block scripts %}
276-
<script src="{{ 'assets/javascripts/bundle.a8959a4f.min.js' | url }}"></script>
276+
<script src="{{ 'assets/javascripts/bundle.8a45299d.min.js' | url }}"></script>
277277
{% for script in config.extra_javascript %}
278278
{{ script | script_tag }}
279279
{% endfor %}

src/assets/javascripts/components/content/mermaid/index.css

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
/* General marker */
4141
marker {
42-
fill: var(--md-mermaid-edge-color) !important;
42+
fill: var(--md-mermaid-edge-color);
4343
}
4444

4545
/* General edge label */
@@ -174,14 +174,14 @@ g.classGroup text {
174174

175175
/* Class extension, composition and dependency marker */
176176
defs marker.marker.extension.class path,
177-
defs marker.marker.composition.class path ,
178-
defs marker.marker.dependency.class path {
177+
defs marker.marker.composition.class path,
178+
defs marker.marker.dependency.class path {
179179
fill: var(--md-mermaid-edge-color) !important;
180180
stroke: var(--md-mermaid-edge-color) !important;
181181
}
182182

183183
/* Class aggregation marker */
184-
defs marker.marker.aggregation.class path {
184+
defs marker.marker.aggregation.class path {
185185
fill: var(--md-mermaid-label-bg-color) !important;
186186
stroke: var(--md-mermaid-edge-color) !important;
187187
}
@@ -250,8 +250,8 @@ a .nodeLabel {
250250
}
251251

252252
/* State fork and join */
253-
[id^=state-fork] rect,
254-
[id^=state-join] rect {
253+
[id^="state-fork"] rect,
254+
[id^="state-join"] rect {
255255
fill: var(--md-mermaid-edge-color) !important;
256256
stroke: none !important;
257257
}
@@ -274,7 +274,8 @@ a .nodeLabel {
274274
}
275275

276276
/* State diagram markers */
277-
defs #statediagram-barbEnd {
277+
defs [id$="-barbEnd"] {
278+
fill: var(--md-mermaid-edge-color);
278279
stroke: var(--md-mermaid-edge-color);
279280
}
280281

@@ -283,8 +284,8 @@ defs #statediagram-barbEnd {
283284
* ------------------------------------------------------------------------- */
284285

285286
/* Entity node and path - override color or markers will shine through */
286-
[id^=entity] rect,
287-
[id^=entity] path {
287+
[id^="entity"] rect,
288+
[id^="entity"] path {
288289
fill: var(--md-default-bg-color);
289290
}
290291

0 commit comments

Comments
 (0)