Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thegeeklab/hugo-geekdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kaussow <mail@thegeeklab.de>2022-08-30 11:00:53 +0300
committerGitHub <noreply@github.com>2022-08-30 11:00:53 +0300
commit2e1098d3e3e8b0a7da29e62308ac9071a8ca771a (patch)
tree7e03782c372955e43dce6ec82bb7553c9db06a15
parentb765bdf561ca57266d090991a73ad183488bdf93 (diff)
fix: temp fix mermaid svg height (#488)v0.35.0
-rw-r--r--src/sass/_shortcodes.scss6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sass/_shortcodes.scss b/src/sass/_shortcodes.scss
index 4cc42fe..6dea13c 100644
--- a/src/sass/_shortcodes.scss
+++ b/src/sass/_shortcodes.scss
@@ -192,6 +192,12 @@
// {{< mermaid >}}
.gdoc-mermaid {
font-family: "Liberation Sans", sans-serif;
+
+ // Fix height of mermaid SVG elements (see https://github.com/mermaid-js/mermaid/issues/2481)
+ > svg {
+ height: 100%;
+ padding: $padding-8;
+ }
}
// {{< propertylist >}}