Difference between revisions of "Template:Crafting"

From Mystcraft
Jump to: navigation, search
(Tweaked CSS to center grid images and make the grid *numbers* unclickable)
m (Fixed pointer-events: none; wrong div (and templates can't be previewed!))
Line 36: Line 36:
 
</div>}}
 
</div>}}
 
{{#if:{{{OA|}}}|
 
{{#if:{{{OA|}}}|
<div style="left:210px; top:68px; width:16px; height:18px; position:absolute; overflow:hidden;">
+
<div style="left:210px; top:68px; width:16px; height:18px; position:absolute; overflow:hidden; pointer-events: none;">
<div style="left:{{#expr:-16 * (floor({{{OA|}}}/10) - 1)}}px; top:-8px; width:160px; height:18px; position:absolute; pointer-events: none;">
+
<div style="left:{{#expr:-16 * (floor({{{OA|}}}/10) - 1)}}px; top:-8px; width:160px; height:18px; position:absolute;">
 
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
 
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
 
</div>
 
</div>
 
</div>
 
</div>
<div style="left:222px; top:68px; width:16px; height:18px; position:absolute; overflow:hidden;">
+
<div style="left:222px; top:68px; width:16px; height:18px; position:absolute; overflow:hidden; pointer-events: none;">
<div style="left:{{#expr:-16 * (({{{OA|}}} - 1) mod 10)}}px; top:-8px; width:160px; height:18px; position:absolute; pointer-events: none;">
+
<div style="left:{{#expr:-16 * (({{{OA|}}} - 1) mod 10)}}px; top:-8px; width:160px; height:18px; position:absolute;">
 
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
 
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
 
</div>
 
</div>

Revision as of 21:14, 29 July 2018