[PLUGINS] ~maj globale
[lhc/web/www.git] / www / plugins / enluminures_typographiques_v3 / css / enluminurestypo.css
index 876c5b3..1873bdd 100644 (file)
@@ -33,16 +33,28 @@ background: transparent;
 font-size:x-small;\r
 }\r
 \r
+sub, sup, sup.typo_exposants {\r
+ /* Specified in % so that the sup/sup is the\r
+    right size relative to the surrounding text */\r
+ font-size: 75%;\r
+ /* Zero out the line-height so that it doesn't\r
+    interfere with the positioning that follows */\r
+ line-height: 0;\r
+ /* Where the magic happens: makes all browsers position\r
+    the sup/sup properly, relative to the surrounding text */\r
+ position: relative;\r
+ /* Note that if you're using Eric Meyer's reset.css, this\r
+    is already set and you can remove this rule */\r
+ vertical-align: baseline;\r
+}\r
 sup, sup.typo_exposants {\r
-       font-size: 78%;\r
-       font-variant: normal;\r
-       vertical-align: 24%;\r
+ /* Move the superscripted text up */\r
+ top: -0.5em;\r
 }\r
-\r
 sub {\r
-       font-size: 60%;\r
-       font-variant: normal;\r
      vertical-align: -20%;\r
+ /* Move the subscripted text down, but only\r
+    half as far down as the superscript moved up */\r
bottom: -0.25em;\r
 }\r
 \r
 .caps {\r