Add div to collapsible

This commit is contained in:
Ivaylo Ivanov 2024-11-30 07:14:20 +01:00
parent 53831da3c0
commit 0f895b71da
2 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,6 @@
<div>
<button type="button" class="collapsible">{{ index .Params 0 }}</button>
<div class="content">
<p>{{ .Inner }}</p>
</div>
<div class="collapsible-content">
{{ .Inner }}
</div>
</div>

View File

@ -75,10 +75,11 @@
}
/* Style the collapsible content. Note: hidden by default */
.content {
.collapsible-content {
padding: 0 18px;
display: none;
overflow: hidden;
background-color: #f1f1f1;
color: black;
}