Difference between revisions of "Template:Collapse image"

From OpenGeofiction Encyclopedia
Jump to: navigation, search
(New template)
 
(max width 100%)
Line 1: Line 1:
<includeonly><div style="width:max-content;position:relative;overflow:hidden;border:1px solid #a2a9b1"><div class="mw-collapsible" id="mw-customcollapsible-{{{id|100}}}"><div style="display:inline-flex;align-items:center;padding-left:7px;padding-right:7px;padding-top:2px;padding-bottom:2px">'''{{{caption|Expand}}}'''<span style="padding:3px"></span>[[File:Font Awesome 5 solid chevron-corner.svg|12px]]</div></div><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{id|100}}}" style="line-height:0">[[File:{{{file}}}{{#if:{{{width|}}}|{{!}}{{{width}}}px|}}]]</div>
+
<includeonly><div style="width:max-content;max-width:100%;position:relative;overflow:hidden;border:1px solid #a2a9b1"><div class="mw-collapsible" id="mw-customcollapsible-{{{id|100}}}"><div style="display:inline-flex;align-items:center;padding-left:7px;padding-right:7px;padding-top:2px;padding-bottom:2px">'''{{{caption|Expand}}}'''<span style="padding:3px"></span>[[File:Font Awesome 5 solid chevron-corner.svg|12px]]</div></div><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{id|100}}}" style="line-height:0">[[File:{{{file}}}{{#if:{{{width|}}}|{{!}}{{{width}}}px|}}]]</div>
 
<div style="z-index:1;position:absolute;top:0;left:0">[[File:{{{file}}}]]</div>
 
<div style="z-index:1;position:absolute;top:0;left:0">[[File:{{{file}}}]]</div>
 
<div class="mw-customtoggle-{{{id|100}}}" style="z-index:2;position:absolute;top:0;left:0;display:inline-flex;align-items:center;padding-left:7px;padding-right:7px;padding-top:2px;padding-bottom:2px">'''{{{caption|Expand}}}'''<span style="padding:3px"></span>[[File:Font Awesome 5 solid chevron-corner.svg|12px]]</div></div></includeonly><noinclude>
 
<div class="mw-customtoggle-{{{id|100}}}" style="z-index:2;position:absolute;top:0;left:0;display:inline-flex;align-items:center;padding-left:7px;padding-right:7px;padding-top:2px;padding-bottom:2px">'''{{{caption|Expand}}}'''<span style="padding:3px"></span>[[File:Font Awesome 5 solid chevron-corner.svg|12px]]</div></div></includeonly><noinclude>

Revision as of 18:24, 19 August 2020