Template:Sfrac: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Edokter |
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 :-) |
||
Line 1: | Line 1: | ||
<span class="sfrac nowrap"{{#if:{{{3|}}}|>{{{1}}}<span style=" | <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><!-- | ||
--><span style=" | --><span style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;">/</span><!-- | ||
--><span style="display:block; line-height:1em; padding:0 0.1em; border-top:1px solid;">{{{3|{{{2|{{{1}}}}}}}}}</span><!-- | --><span style="display:block; line-height:1em; padding:0 0.1em; border-top:1px solid;">{{{3|{{{2|{{{1}}}}}}}}}</span><!-- | ||
-->{{#if:{{{3|}}}|</span>}}<!-- | -->{{#if:{{{3|}}}|</span>}}<!-- |