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 (forced -> force)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:256px; height:132px; position:relative; margin: 10px 10px 5px 5px">
+
<includeonly><div class="force-font-size" style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:256px; height:132px; position:relative; margin: 10px 10px 5px 5px">
 
<div style="left:0px; top:0px; width:256px; height:132px;">[[Image:Crafting_GUI.png|256px|link=|alt=]]</div>
 
<div style="left:0px; top:0px; width:256px; height:132px;">[[Image:Crafting_GUI.png|256px|link=|alt=]]</div>
  
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>

Latest revision as of 11:26, 30 July 2018