Skip to content

Commit

Permalink
Fixed Mermaid sequence diagram box colors
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Apr 7, 2023
1 parent 639dabf commit 97fd112
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.407015b8.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.51198bba.min.js' | url }}"></script>
{% for path in config.extra_javascript %}
<script src="{{ path | url }}"></script>
{% endfor %}
Expand Down
11 changes: 11 additions & 0 deletions src/assets/javascripts/components/content/code/mermaid/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,17 @@ line {
fill: var(--md-accent-bg-color);
}

/* Sequence rectangle */
rect.rect {
fill: var(--md-mermaid-node-bg-color);
stroke: none;
}

/* Sequence rectangle text */
rect.rect + text.text {
fill: var(--md-mermaid-edge-color);
}

/* Sequence diagram markers */
defs #sequencenumber {
fill: var(--md-mermaid-node-fg-color) !important;
Expand Down

0 comments on commit 97fd112

Please sign in to comment.