「テンプレート:折り畳みボックス」の版間の差分
細 ベースフォーマットをインラインCSSで記載 |
細編集の要約なし |
||
| 1行目: | 1行目: | ||
<!-- 折り畳み式テンプレート --> | <!-- 折り畳み式テンプレート --> | ||
<div class="custom-template-expandable-box" style="border: 1px solid gray; margin: 0.2rem;"> | <div class="custom-template-expandable-box" style="border: 1px solid gray; margin: 0.2rem;" data-opened="{{{opened|False}}}"> | ||
<div class="custom-template-expandable-box-header" style="background-color: {{{header_color}}}; display: flex; justify-content: space-between;"> | |||
<p style="text-align: center; width: 100%; font-size: 120%; font-weight: bold; margin: 0;">{{{title}}}</p> | |||
<p class="custom-template-expandable-box-toggle-label" style="flex-shrink: 0; padding: 0 0.5rem; margin: 0; color: blue; text-decoration: underline; cursor: pointer;">[表示]</p> | |||
</div> | |||
<div class="custom-template-expandable-box-contents" style="padding: 0.5rem; background-color: #fcfcfc; "> | |||
{{{contents}}} | |||
</div> | |||
</div> | </div> | ||
<!-- ここまで --> | <!-- ここまで --> | ||