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

github.com/thegeeklab/hugo-geekblog.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 22:40:45 +0300
committerGitHub <noreply@github.com>2022-08-30 22:40:45 +0300
commitfbfaec50b6d31867e319eb7f288bdb3d04d9105b (patch)
tree8e16092c4d1dcff4d0179a38e76cff265377a381
parent12fc429b87a06179b9a09df4cc1748c646404efa (diff)
fix: temp fix mermaid svg height (#304)
-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 5e5af5a..e2811bd 100644
--- a/src/sass/_shortcodes.scss
+++ b/src/sass/_shortcodes.scss
@@ -238,4 +238,10 @@
// {{< mermaid >}}
.gblog-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;
+ }
}