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> <button type="button" class="collapsible">{{ index .Params 0 }}</button>
<div class="content"> <div class="collapsible-content">
<p>{{ .Inner }}</p> {{ .Inner }}
</div>
</div> </div>

View File

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