Pojdi na vsebino

Predloga:DIY-kartica: Razlika med redakcijama

Iz Center Rog
Brez povzetka urejanja
Brez povzetka urejanja
Vrstica 1: Vrstica 1:
<div style="
<div style=" background:#DBDBAB; border-radius:10px; overflow:hidden; box-shadow:0 4px 5px rgba(0,0,0,0.1); transition:transform 0.2s ease, box-shadow 0.2s ease; display:flex; flex-direction:column; height:280px; " onmouseover="this.style.transform='translateY(-4px)'; this.style.boxShadow='0 8px 12px rgba(0,0,0,0.15)'" onmouseout="this.style.transform='translateY(0)'; this.style.boxShadow='0 4px 5px rgba(0,0,0,0.1)'" > <!-- Naslov --> <div style=" padding:0.4rem 0.4rem; text-align:center; font-weight:600; color:#2c3e50; line-height:1.1; "> [[{{{title1|Example title 1}}}|{{{display1|{{{title1|Example title 1}}}}}}]] </div> <!-- Slika --> <div style=" flex:1; display:flex; align-items:center; justify-content:center; background:#fff; padding:0.4rem; "> [[File:{{{image1|Example.jpg}}}|center|frameless|260px|link={{{title1|Example title 1}}}]] </div> </div>
  background:#DBDBAB;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 4px 5px rgba(0,0,0,0.1);
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  display:flex;
  flex-direction:column;
  height:280px;
"
onmouseover="this.style.transform='translateY(-4px)'; this.style.boxShadow='0 8px 12px rgba(0,0,0,0.15)'"
onmouseout="this.style.transform='translateY(0)'; this.style.boxShadow='0 4px 5px rgba(0,0,0,0.1)'"
>
 
  <!-- Naslov -->
  <div style="
    padding:0.35rem 0.4rem;
    text-align:center;
    font-weight:600;
    color:#2c3e50;
    line-height:1.1;
    font-size:0.95rem;
  ">
[[{{{title1|Example title}}}|{{{display1|{{{title1|Example title}}}}}}]]
  </div>
 
  <!-- Slika (kvadratna) -->
  <div style="
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    aspect-ratio:1 / 1;
  ">
    [[File:{{{image1|Example.jpg}}}|center|frameless|220px|link={{{title1|Example title}}}]]
  </div>
 
  <!-- Spodnji pas (meta) -->
  <div style="
    padding:0.3rem 0.4rem;
    font-size:0.75rem;
    color:#2c3e50;
    background:#f4f4f4;
    line-height:1.2;
  ">
    <span>
      {{#if:{{{meta1|}}}|{{{meta1}}}|<span style="opacity:0.6">#kategorija #oznaka</span>}}
    </span>
  </div>
 
</div>

Redakcija: 15:26, 20. marec 2026