mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
parent
f06fef8d3c
commit
9a6e8edacc
3 changed files with 17 additions and 2 deletions
|
@ -27,7 +27,7 @@ This only works in modern browsers.
|
||||||
{{% button style="secondary" icon="download" %}}Download variant{{% /button %}}
|
{{% button style="secondary" icon="download" %}}Download variant{{% /button %}}
|
||||||
{{% button style="warning" icon="trash" %}}Reset variant{{% /button %}}
|
{{% button style="warning" icon="trash" %}}Reset variant{{% /button %}}
|
||||||
|
|
||||||
<div id="vargenerator" class="mermaid" style="background-color: var(--INTERNAL-MAIN-TEXT-color);" align="center">Graph</div>
|
<div id="vargenerator" class="mermaid" style="background-color: var(--INTERNAL-MAIN-TEXT-color);">Graph</div>
|
||||||
|
|
||||||
{{% button style="secondary" icon="download" %}}Download variant{{% /button %}}
|
{{% button style="secondary" icon="download" %}}Download variant{{% /button %}}
|
||||||
{{% button style="warning" icon="trash" %}}Reset variant{{% /button %}}
|
{{% button style="warning" icon="trash" %}}Reset variant{{% /button %}}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{{- $content := .content }}
|
{{- $content := .content }}
|
||||||
{{- $align := .align | default "center" }}
|
{{- $align := .align | default "center" }}
|
||||||
{{- with $context }}
|
{{- with $context }}
|
||||||
<div class="mermaid" align="{{ $align }}">
|
<div class="mermaid align-{{ $align }}">
|
||||||
{{- replaceRE "'" "'" ( replaceRE """ "\"" ( $content | safeHTML ) ) -}}
|
{{- replaceRE "'" "'" ( replaceRE """ "\"" ( $content | safeHTML ) ) -}}
|
||||||
</div>
|
</div>
|
||||||
{{- .Page.Store.Set "hasMermaid" true }}
|
{{- .Page.Store.Set "hasMermaid" true }}
|
||||||
|
|
|
@ -1479,3 +1479,18 @@ input[type="search"]::-webkit-search-results-decoration { display: none; }
|
||||||
transform: translateY(0%);
|
transform: translateY(0%);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
.align-right {
|
||||||
|
display: flex;
|
||||||
|
justify-content: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.align-center {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.align-left {
|
||||||
|
display: flex;
|
||||||
|
justify-content: left;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue