~mrls/essential

bcd25ada78cfdfbac195e33bf6784bcd9cf6488f — Mauro Morales 1 year, 7 months ago 3f7c602
updates for mermaid
2 files changed, 13 insertions(+), 3 deletions(-)

M layouts/shortcodes/mermaid.html
M static/css/style.css
M layouts/shortcodes/mermaid.html => layouts/shortcodes/mermaid.html +5 -3
@@ 9,6 9,8 @@
{{ .Page.Scratch.Set "mermaid" true }}
{{ end }}

<pre class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
  {{- .Inner -}}
</pre>
<div class="mermaid-container">
  <div class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
    {{- .Inner -}}
  </div>
</div>

M static/css/style.css => static/css/style.css +8 -0
@@ 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;
    }
}