Add side-by-side shortcode

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2024-11-28 20:41:05 -08:00
parent 7a263ce2e5
commit 85ea55402e
3 changed files with 14 additions and 0 deletions

View File

@ -470,3 +470,11 @@ blockquote {
.early-navigation-wrapper { .early-navigation-wrapper {
margin-bottom: 3rem; margin-bottom: 3rem;
} }
.side-by-side {
display: flex;
}
.side-by-side-item {
flex-basis: 0;
}

View File

@ -0,0 +1,3 @@
<div class="side-by-side">
{{ .Inner }}
</div>

View File

@ -0,0 +1,3 @@
<div class="side-by-side-item" {{ with .Get "weight" }} style="flex-grow: {{ . }};" {{ end }}>
{{ .Inner }}
</div>