1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-09-24 11:28:23 +02:00

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 %}
{% endblock %}
{% 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 %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.a0c5b2b5.min.css' | url }}">

View File

@ -24,8 +24,8 @@
// Rules
// ----------------------------------------------------------------------------
// All definitions
.mermaid {
// Mermaid variables
:root > * {
--md-mermaid-font-family: var(--md-text-font-family), sans-serif;
// Colors
@ -34,8 +34,12 @@
--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 container
.mermaid {
margin: 1em 0;
line-height: normal;
}