Skip to content

Commit

Permalink
Fixed actors in sequence diagrams not adhering to color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Feb 18, 2023
1 parent 9653719 commit 5065bf9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.03fa9ba6.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.707f6b2f.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.2505c338.min.css' | url }}">
Expand Down Expand Up @@ -240,7 +240,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.18008817.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.055143c9.min.js' | url }}"></script>
{% for path in config.extra_javascript %}
<script src="{{ path | url }}"></script>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,13 @@ line {
stroke: var(--md-default-fg-color--lighter);
}

/* Sequence actor */
.actor-man circle,
.actor-man line {
fill: var(--md-mermaid-label-bg-color);
stroke: var(--md-mermaid-node-fg-color);
}

/* Sequence message line */
.messageLine0,
.messageLine1 {
Expand Down
6 changes: 2 additions & 4 deletions src/assets/stylesheets/main/integrations/_mermaid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// ----------------------------------------------------------------------------

// All definitions
:root > * {
.mermaid {
--md-mermaid-font-family: var(--md-text-font-family), sans-serif;

// Colors
Expand All @@ -34,10 +34,8 @@
--md-mermaid-node-fg-color: var(--md-accent-fg-color);
--md-mermaid-label-bg-color: var(--md-default-bg-color);
--md-mermaid-label-fg-color: var(--md-code-fg-color);
}

// Mermaid container
.mermaid {
// Mermaid container
margin: 1em 0;
line-height: normal;
}

0 comments on commit 5065bf9

Please sign in to comment.