« Modèle:Pointsdesuite » : différence entre les versions

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 8 :
|altd=alignement du texte de droite (altd=g)
|m=motif à pas fixe fin(2px) ou xfin(1px)
|indent=indentation du texte de gauche + ou -
}}
--><div style= "position:relative;<!--1
Ligne 15 ⟶ 16 :
-->{{#if:{{{m|}}}|<div style="position:absolute;<!--4
-->z-index:1;<!--
-->bottom:.4em;<!--
-->width:calc(100% + {{#ifexpr:{{{indent|0}}}<0|{{{indent}}}|0}}em);<!--
-->{{#ifexpr:{{{indent|0}}}<0|margin-left:{{#expr:-{{{indent}}}}}em;}}<!--
-->border-bottom:{{#switch:{{{m}}}|fin=2|1}}px dotted"><!--
--></div>|}}<!--4
--><div style="position:relative; z-index:2;<!--3
-->width{{#ifexpr:100%;{{{indent|0}}}<0|<!--
===== pour gérer la marge d’indentation négative =====
-->margin-left:{{#expr:-{{{indent}}}}}em;<!--
-->text-indent:{{{indent}}}em;<!--
-->width:calc(100% + {{{indent}}})em;<!--
-->|width:100%;<!--
-->}}<!--
-->{{#if:{{{m|}}}||background-image:radial-gradient(black 1px, white 0px); <!--
-->background-size: {{{x|.5}}}em {{{x|.5}}}em;<!--
Ligne 27 ⟶ 35 :
--><span style="z-index:3;<!--
-->padding-right:{{#if:{{{m|}}}|2px|{{#expr: {{{x|.5}}}/2 }}em}};<!--
-->{{#if:{{{1|}}}|background: white;|}}">{{{1|&nbsp;}}}</span> <!--
-->{{#ifexpr:{{{indent|0}}}>0|<!--
===== pour gérer la marge d’indentation positive =====
--><span style="display:inline-block;min-width:{{{indent}}}em;<!--
-->max-width:{{{indent}}}em">&#65279;</span><!--
-->}}<!--
-->{{{1|&nbsp;}}}</span> <!--
--></div><!--3
--></div><!--2