css.c (sarg-2.3.11) | : | css.c (sarg-2.4.0) | ||
---|---|---|---|---|
/* | /* | |||
* SARG Squid Analysis Report Generator http://sarg.sourceforge.net | * SARG Squid Analysis Report Generator http://sarg.sourceforge.net | |||
* 1998, 2013 | * 1998, 2015 | |||
* | * | |||
* SARG donations: | * SARG donations: | |||
* please look at http://sarg.sourceforge.net/donations.php | * please look at http://sarg.sourceforge.net/donations.php | |||
* Support: | * Support: | |||
* http://sourceforge.net/projects/sarg/forums/forum/363374 | * http://sourceforge.net/projects/sarg/forums/forum/363374 | |||
* --------------------------------------------------------------------- | * --------------------------------------------------------------------- | |||
* | * | |||
* This program is free software; you can redistribute it and/or modify | * This program is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | * the Free Software Foundation; either version 2 of the License, or | |||
skipping to change at line 74 | skipping to change at line 74 | |||
fprintf(fp_css,".more {font-style: italic;color:#777;}\n"); | fprintf(fp_css,".more {font-style: italic;color:#777;}\n"); | |||
fprintf(fp_css,".link {font-family:%s;font-size:%s;color:#0000FF;}\n", Fo ntFace, FontSize); | fprintf(fp_css,".link {font-family:%s;font-size:%s;color:#0000FF;}\n", Fo ntFace, FontSize); | |||
fprintf(fp_css,".link a:link,a:visited {font-family:%s;font-size:%s;color :#0000FF;text-decoration:none;}\n", FontFace, FontSize); | fprintf(fp_css,".link a:link,a:visited {font-family:%s;font-size:%s;color :#0000FF;text-decoration:none;}\n", FontFace, FontSize); | |||
fprintf(fp_css,"a > img {border:none;}\n"); | fprintf(fp_css,"a > img {border:none;}\n"); | |||
fputs(".warn {margin:0.5em;}\n",fp_css); | fputs(".warn {margin:0.5em;}\n",fp_css); | |||
fprintf(fp_css,".warn > span {padding:0.5em;border:2px solid black;backgr ound-color:orange;font-family:%s;font-size:%s;}\n",FontFace,FontSize); | fprintf(fp_css,".warn > span {padding:0.5em;border:2px solid black;backgr ound-color:orange;font-family:%s;font-size:%s;}\n",FontFace,FontSize); | |||
fprintf(fp_css,"tr.tt > td {font-family:%s;color:%s;font-size:%s;text-ali | ||||
gn:left;border-right:1px solid #6A5ACD;border-bottom:1px solid #6A5ACD;padding-t | ||||
op:0.5em;border:none;}\n", FontFace, TxColor, FontSize); | ||||
if (SortTableJs[0]) { | if (SortTableJs[0]) { | |||
fprintf(fp_css,".sorttable_nosort {cursor:default !important;}\n" ); | fprintf(fp_css,".sorttable_nosort {cursor:default !important;}\n" ); | |||
fprintf(fp_css,".sortable thead th {cursor:pointer;}\n"); | fprintf(fp_css,".sortable thead th {cursor:pointer;}\n"); | |||
} | } | |||
} | } | |||
void css(FILE *fp_css) | void css(FILE *fp_css) | |||
{ | { | |||
if(ExternalCSSFile[0] != '\0') { | if (ExternalCSSFile[0] != '\0') { | |||
fprintf(fp_css,"<link rel=\"stylesheet\" href=\"%s\" type=\"text/ css\">\n",ExternalCSSFile); | fprintf(fp_css,"<link rel=\"stylesheet\" href=\"%s\" type=\"text/ css\">\n",ExternalCSSFile); | |||
return; | return; | |||
} | } | |||
fprintf(fp_css,"<style type=\"text/css\">\n"); | fprintf(fp_css,"<style type=\"text/css\">\n"); | |||
css_content(fp_css); | css_content(fp_css); | |||
fputs("</style>\n",fp_css); | fputs("</style>\n",fp_css); | |||
} | } | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 6 lines changed or added |