Fixed actors in sequence diagrams not adhering to color scheme

This commit is contained in:
squidfunk 2023-02-18 10:39:39 +01:00
parent 9653719524
commit 5065bf9cd3
7 changed files with 16 additions and 11 deletions

View File

@ -40,7 +40,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% 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 %} {% if config.theme.palette %}
{% set palette = config.theme.palette %} {% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.2505c338.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/palette.2505c338.min.css' | url }}">
@ -240,7 +240,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% 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 %} {% for path in config.extra_javascript %}
<script src="{{ path | url }}"></script> <script src="{{ path | url }}"></script>
{% endfor %} {% endfor %}

View File

@ -338,6 +338,13 @@ line {
stroke: var(--md-default-fg-color--lighter); 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 */ /* Sequence message line */
.messageLine0, .messageLine0,
.messageLine1 { .messageLine1 {

View File

@ -25,7 +25,7 @@
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// All definitions // All definitions
:root > * { .mermaid {
--md-mermaid-font-family: var(--md-text-font-family), sans-serif; --md-mermaid-font-family: var(--md-text-font-family), sans-serif;
// Colors // Colors
@ -34,10 +34,8 @@
--md-mermaid-node-fg-color: var(--md-accent-fg-color); --md-mermaid-node-fg-color: var(--md-accent-fg-color);
--md-mermaid-label-bg-color: var(--md-default-bg-color); --md-mermaid-label-bg-color: var(--md-default-bg-color);
--md-mermaid-label-fg-color: var(--md-code-fg-color); --md-mermaid-label-fg-color: var(--md-code-fg-color);
}
// Mermaid container // Mermaid container
.mermaid {
margin: 1em 0; margin: 1em 0;
line-height: normal; line-height: normal;
} }