Difference between revisions of "Template:SB Infobox Material Properties Draft"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<includeonly><nowiki/> | <includeonly><nowiki/> | ||
<div class="SB-Infobox-Data-Section-Header">Material properties (ore / refined)</div><nowiki/> | <div class="SB-Infobox-Data-Section-Header">Material properties (ore / refined)</div><nowiki/> | ||
{{#if:{{{structuralDurabilityOre|}}}{{{structuralDurabilityRefined|}}}|<div class="SB-Infobox-Data-Cell SB-Infobox-Cell-Grid" data-alt="Structural durability"><span class="SB-Infobox-Cell-Header">Structural durability</span><span class="SB-Infobox-Cell-Body"><span>{{{structuralDurabilityOre|}}}</span><span>{{{structuralDurabilityRefined|}}}</span></span></div>}}<nowiki/> | {{#if:{{{structuralDurabilityOre|}}}{{{structuralDurabilityRefined|}}}|<div class="SB-Infobox-Data-Cell SB-Infobox-Cell-Grid" data-alt="Structural durability"><span class="SB-Infobox-Cell-Header">Structural durability</span><span class="SB-Infobox-Cell-Body"><span>{{{structuralDurabilityOre|}}}</span><span style="color:#4a4a4a">──</span><span>{{{structuralDurabilityRefined|}}}</span></span></div>}}<nowiki/> | ||
</includeonly> | </includeonly> | ||
{{#css: | {{#css: | ||
.SB-Infobox-Cell-Grid .SB-Infobox-Cell-Body { | .SB-Infobox-Cell-Grid .SB-Infobox-Cell-Body { | ||
display:grid; | display:grid; | ||
grid-template-columns: | grid-template-columns: 15% 10% 15%; | ||
text-align: center; | text-align: center; | ||
line-height: | line-height: 133% | ||
} | |||
.SB-Infobox-Cell-Grid .SB-Infobox-Cell-Body span { | |||
margin: 0 0.25em; | |||
padding: 0.125em 0; | |||
} | } | ||
}} | }} |
Revision as of 16:24, 9 March 2022