Template:Sfrac: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Graham87 make it so the fraction will be read out properly by screen reders using techniques described at http://webaim.org/techniques/css/invisiblecontent/ ... this shouldn't affect the way the template displays for sighted users but if it does, scream :-) |
meta>Edokter regular space will do |
||
Line 1: | Line 1: | ||
<span class="sfrac nowrap"{{#if:{{{3|}}}|>{{{1}}}<span style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;">& | <span class="sfrac nowrap"{{#if:{{{3|}}}|>{{{1}}}<span style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;"> </span><span}} <!-- | ||
-->style="display:inline-block; vertical-align:-0.5em; font-size:85%; text-align:center;"><!-- | -->style="display:inline-block; vertical-align:-0.5em; font-size:85%; text-align:center;"><!-- | ||
--><span style="display:block; line-height:1em; padding:0 0.1em;">{{#if:{{{3|}}}|{{{2}}}|{{#if:{{{2|}}}|{{{1}}}|1}}}}</span><!-- | --><span style="display:block; line-height:1em; padding:0 0.1em;">{{#if:{{{3|}}}|{{{2}}}|{{#if:{{{2|}}}|{{{1}}}|1}}}}</span><!-- |