Fixed Mermaid text boxes incorrectly computed (9.0.13 regression)

This commit is contained in:
squidfunk 2023-03-09 20:20:59 +01:00
parent 6538b35a39
commit 5b7cf17cd8
4 changed files with 10 additions and 6 deletions

View File

@ -40,7 +40,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.402914a4.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/main.7bf56d0a.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.a0c5b2b5.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/palette.a0c5b2b5.min.css' | url }}">

View File

@ -24,8 +24,8 @@
// Rules // Rules
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// All definitions // Mermaid variables
.mermaid { :root > * {
--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,8 +34,12 @@
--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;
} }