From bcd25ada78cfdfbac195e33bf6784bcd9cf6488f Mon Sep 17 00:00:00 2001 From: Mauro Morales Date: Thu, 3 Dec 2020 22:20:10 +0100 Subject: [PATCH] updates for mermaid --- layouts/shortcodes/mermaid.html | 8 +++++--- static/css/style.css | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html index daa2efd..e8ebd72 100644 --- a/layouts/shortcodes/mermaid.html +++ b/layouts/shortcodes/mermaid.html @@ -9,6 +9,8 @@ {{ .Page.Scratch.Set "mermaid" true }} {{ end }} -
-  {{- .Inner -}}
-
+
+
+ {{- .Inner -}} +
+
diff --git a/static/css/style.css b/static/css/style.css index 43c7099..7807c39 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -173,6 +173,10 @@ pre { overflow-x: auto; } +.mermaid.full { + width: 1500px; +} + .light { color: #646464; } @@ -307,4 +311,8 @@ img { #content-list li { margin-bottom: 0.8em; } + + .mermaid-container { + overflow-x: auto; + } } -- 2.45.2