Differenze tra le versioni di "Template: Card"

Da CoderDojoComo Wiki.
Riga 1: Riga 1:
 
<includeonly><!--
 
<includeonly><!--
--><div class="panel {{#if: {{{border|}}} |border border-{{{border}}} }} text-{{{contentcolor|black}}} panel-{{{bodybg|primary}}} mb-3" style="max-width: {{{maxwidth|18rem}}};">
+
-->
  <div class="panel-heading {{#if: {{{headerbg|}}} |bg-{{{headerbg}}} }} {{#if: {{{headercolor|}}} |text-{{{headercolor}}} }}">{{{header|}}}</div>
+
<div class="panel panel-{{{bodybg|primary}}}">
   <div class="panel-body text-{{{contentcolor|black}}} bg-{{{bodybg|info}}}">
+
   <div class="panel-body">
 
     <h5 class="panel-title {{#if: {{{titlecolor|}}} |text-{{{titlecolor}}} }}">{{{title|}}}</h5>
 
     <h5 class="panel-title {{#if: {{{titlecolor|}}} |text-{{{titlecolor}}} }}">{{{title|}}}</h5>
 
     <p class="panel-text">{{{content|}}}</p>
 
     <p class="panel-text">{{{content|}}}</p>
 
   </div>
 
   </div>
   {{#if: {{{footer|}}} |
+
   <div class="panel-footer"><small class="text-{{{footercolor|muted}}}">{{{footer}}}</small></div>
<div class="panel-footer {{#if: {{{footerbg|}}} |bg-{{{footerbg}}} }}">
 
<small class="text-{{{footercolor|muted}}}">{{{footer}}}</small>
 
 
</div>
 
</div>
  }}
+
</includeonly>
</div></includeonly>
 

Versione delle 01:54, 16 mar 2024