Mercurial > hg > batmud > maputils
changeset 76:07c825a366c4
Use CSS defined style instead of style-attribute on markup tag
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 16 Dec 2006 07:23:15 +0000 |
parents | b391438cac33 |
children | f950e58e743c |
files | colormap.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/colormap.c Sat Dec 16 07:22:33 2006 +0000 +++ b/colormap.c Sat Dec 16 07:23:15 2006 +0000 @@ -28,7 +28,11 @@ if (p != -1) fprintf(outFile, "</i>"); c = p = -2; - fprintf(outFile, "<i style='background:white;color:black'>"); +#ifdef CHEATMODE + fprintf(outFile, "<i class=q>"); +#else + fprintf(outFile, "<i class='q'>"); +#endif while ((k = fgetc(inFile)) != EOF) { if (k == 0xfe) @@ -128,6 +132,7 @@ " <style type=\"text/css\">\n" " body { background: black; color: white; }\n" " i { text-decoration: none; font-style: normal; }\n" + " span.q { background: white; color: black; }\n" ); mcXHTMLcolors(outFile, "i");