X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fplugins%2Fenluminures_typographiques_v3%2Fcss%2Fenluminurestypo.css;h=1873bdd05e5bb9ae3dedd847e57d0b29c1748640;hb=c0f18416f529232b5555c6410a8765a5125ebcd3;hp=876c5b37942391bb97844ae0363fa81db22f8d95;hpb=50522c53acc9e61a4a7de3a1890c4ba93e2f61b4;p=lhc%2Fweb%2Fwww.git diff --git a/www/plugins/enluminures_typographiques_v3/css/enluminurestypo.css b/www/plugins/enluminures_typographiques_v3/css/enluminurestypo.css index 876c5b37..1873bdd0 100644 --- a/www/plugins/enluminures_typographiques_v3/css/enluminurestypo.css +++ b/www/plugins/enluminures_typographiques_v3/css/enluminurestypo.css @@ -33,16 +33,28 @@ background: transparent; font-size:x-small; } +sub, sup, sup.typo_exposants { + /* Specified in % so that the sup/sup is the + right size relative to the surrounding text */ + font-size: 75%; + /* Zero out the line-height so that it doesn't + interfere with the positioning that follows */ + line-height: 0; + /* Where the magic happens: makes all browsers position + the sup/sup properly, relative to the surrounding text */ + position: relative; + /* Note that if you're using Eric Meyer's reset.css, this + is already set and you can remove this rule */ + vertical-align: baseline; +} sup, sup.typo_exposants { - font-size: 78%; - font-variant: normal; - vertical-align: 24%; + /* Move the superscripted text up */ + top: -0.5em; } - sub { - font-size: 60%; - font-variant: normal; - vertical-align: -20%; + /* Move the subscripted text down, but only + half as far down as the superscript moved up */ + bottom: -0.25em; } .caps {