Template
Interface template⮥
Flip card
From Dogcraft Wiki
mNo edit summary |
m (Added categories: Interface templates) |
||
Line 86: | Line 86: | ||
</div> | </div> | ||
{{Interface template}} | |||
</noinclude><includeonly><div class="flip-card mw-customtoggle mw-customtoggle-fliptrigger" style="perspective:1000px;"><div class="{{{class|}}} flip-card-inner" style="height:100%; transition: transform 0.8s; transform-style: preserve-3d; border-radius:5px; background-color:{{{background|#E9EDEF}}}; max-width:{{{width|300px}}}; {{{style|}}} {{#if:{{{link|}}}|box-shadow: 0 2px 3px rgba(85, 85, 85, 0.2), 0 0 0 1px rgba(85, 85, 85, 0.2);|}}"><div class="flip-card-front" style="max-width:300px; position:relative; border-radius:5px; height:100%; overflow:clip; display:flex; flex-direction:column;"><div style="flex-grow:2;">[[File:{{{file|File missing}}}|{{{width|300px}}}|frameless|class=image-cover]]<span style="position:absolute; height:100%; width:100%; top:0; left:0;"></span></div> | </noinclude><includeonly><div class="flip-card mw-customtoggle mw-customtoggle-fliptrigger" style="perspective:1000px;"><div class="{{{class|}}} flip-card-inner" style="height:100%; transition: transform 0.8s; transform-style: preserve-3d; border-radius:5px; background-color:{{{background|#E9EDEF}}}; max-width:{{{width|300px}}}; {{{style|}}} {{#if:{{{link|}}}|box-shadow: 0 2px 3px rgba(85, 85, 85, 0.2), 0 0 0 1px rgba(85, 85, 85, 0.2);|}}"><div class="flip-card-front" style="max-width:300px; position:relative; border-radius:5px; height:100%; overflow:clip; display:flex; flex-direction:column;"><div style="flex-grow:2;">[[File:{{{file|File missing}}}|{{{width|300px}}}|frameless|class=image-cover]]<span style="position:absolute; height:100%; width:100%; top:0; left:0;"></span></div> | ||
{{Header|{{{title|Title}}}|margin=margin:0;|style=flex-grow:1; {{{headerstyle|}}} }}</div> | {{Header|{{{title|Title}}}|margin=margin:0;|style=flex-grow:1; {{{headerstyle|}}} }}</div> | ||
<div style="overflow:clip; padding:5px 10px; -webkit-backface-visibility:hidden; backface-visibility:hidden; transform:rotateY(180deg); position:absolute; top:0; left:0; background:inherit; box-shadow:0 2px 3px rgba(85,85,85,0.45),0 0 10px rgba(85,85,85,0.45); border-radius:5px; height:calc(100% - 10px);" class="flip-card-back"><div style="{{#if: {{{link|}}}|height:80%;|}} overflow:clip;">{{{content|}}}</div>{{#if: {{{link|}}}|<div style="height:20%; overflow:clip; display:flex; flex-direction:column; justify-content:center; text-align:center; border-top:2px solid #d9d6d3; margin:0 -10px;">[[{{{link|Main_Page}}}|<span class="{{{linkclass|}}}" style="font-weight:bold; font-size:1.3rem;">Go to page</span>]]</div>|}}</div> | <div style="overflow:clip; padding:5px 10px; -webkit-backface-visibility:hidden; backface-visibility:hidden; transform:rotateY(180deg); position:absolute; top:0; left:0; background:inherit; box-shadow:0 2px 3px rgba(85,85,85,0.45),0 0 10px rgba(85,85,85,0.45); border-radius:5px; height:calc(100% - 10px);" class="flip-card-back"><div style="{{#if: {{{link|}}}|height:80%;|}} overflow:clip;">{{{content|}}}</div>{{#if: {{{link|}}}|<div style="height:20%; overflow:clip; display:flex; flex-direction:column; justify-content:center; text-align:center; border-top:2px solid #d9d6d3; margin:0 -10px;">[[{{{link|Main_Page}}}|<span class="{{{linkclass|}}}" style="font-weight:bold; font-size:1.3rem;">Go to page</span>]]</div>|}}</div> | ||
</div><span class="mw-collapsible" id="mw-customcollapsible-fliptrigger"></span></div></includeonly> | </div><span class="mw-collapsible" id="mw-customcollapsible-fliptrigger"></span></div></includeonly> |