Skip to content

Commit 5b7cf17

Browse files
committed
Fixed Mermaid text boxes incorrectly computed (9.0.13 regression)
1 parent 6538b35 commit 5b7cf17

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

material/assets/stylesheets/main.402914a4.min.css renamed to material/assets/stylesheets/main.7bf56d0a.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.402914a4.min.css.map renamed to material/assets/stylesheets/main.7bf56d0a.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
{% endif %}
4141
{% endblock %}
4242
{% block styles %}
43-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.402914a4.min.css' | url }}">
43+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.7bf56d0a.min.css' | url }}">
4444
{% if config.theme.palette %}
4545
{% set palette = config.theme.palette %}
4646
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.a0c5b2b5.min.css' | url }}">

src/assets/stylesheets/main/integrations/_mermaid.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
// Rules
2525
// ----------------------------------------------------------------------------
2626

27-
// All definitions
28-
.mermaid {
27+
// Mermaid variables
28+
:root > * {
2929
--md-mermaid-font-family: var(--md-text-font-family), sans-serif;
3030

3131
// Colors
@@ -34,8 +34,12 @@
3434
--md-mermaid-node-fg-color: var(--md-accent-fg-color);
3535
--md-mermaid-label-bg-color: var(--md-default-bg-color);
3636
--md-mermaid-label-fg-color: var(--md-code-fg-color);
37+
}
3738

38-
// Mermaid container
39+
// ----------------------------------------------------------------------------
40+
41+
// Mermaid container
42+
.mermaid {
3943
margin: 1em 0;
4044
line-height: normal;
4145
}

0 commit comments

Comments
 (0)