Differenze tra le versioni di "Template: Card"

Da CoderDojoComo Wiki.
(Creata pagina con "<includeonly><!-- --><div class="card {{#if: {{{border|}}} |border border-{{{border}}} }} text-{{{contentcolor|black}}} bg-{{{bodybg|info}}} mb-3" style="max-width: {{{maxwidt...")
 
 
(16 versioni intermedie di uno stesso utente non sono mostrate)
Riga 1: Riga 1:
 
<includeonly><!--
 
<includeonly><!--
--><div class="card {{#if: {{{border|}}} |border border-{{{border}}} }} text-{{{contentcolor|black}}} bg-{{{bodybg|info}}} mb-3" style="max-width: {{{maxwidth|18rem}}};">
+
-->
  <div class="card-header {{#if: {{{headerbg|}}} |bg-{{{headerbg}}} }} {{#if: {{{headercolor|}}} |text-{{{headercolor}}} }}">{{{header|}}}</div>
+
  <div class="col-sm-6 col-md-4">
  <div class="card-body text-{{{contentcolor|black}}} bg-{{{bodybg|info}}}">
+
    <div class="thumbnail"  style="min-height:25em">{{#if: {{{image|}}} | {{{image|}}} }}  
    <h5 class="card-title {{#if: {{{titlecolor|}}} |text-{{{titlecolor}}} }}">{{{title|}}}</h5>
+
      <div class="caption">
    <p class="card-text">{{{content|}}}</p>
+
        <h3>{{{title|}}}</h3>
 +
        <p>{{{content|}}}</p>
 +
      </div>
 +
    </div>
 
   </div>
 
   </div>
  {{#if: {{{footer|}}} |
+
<nowiki />
<div class="card-footer {{#if: {{{footerbg|}}} |bg-{{{footerbg}}} }}">
+
</includeonly>
<small class="text-{{{footercolor|muted}}}">{{{footer}}}</small>
 
</div>
 
  }}
 
</div></includeonly>
 

Versione attuale delle 12:45, 16 mar 2024