]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Better CSS
authorLaurent Destailleur <eldy@users.sourceforge.net>
Thu, 8 Aug 2024 23:32:24 +0000 (01:32 +0200)
committerLaurent Destailleur <eldy@users.sourceforge.net>
Thu, 8 Aug 2024 23:32:24 +0000 (01:32 +0200)
test/awstats/conf/awstats.testglobal.conf
wwwroot/cgi-bin/awstats.pl

index af704f3ab8ab5e229fd6b930a8c720b726ac9fd1..48ca1ff9346a9838028b070259a6cd9e3758cbcf 100644 (file)
@@ -706,7 +706,7 @@ IncludeInternalLinksInOriginSection=1
 # table with country name
 # Replace spaces in the path of geoip data file with string "%20".
 #
-LoadPlugin="geoip GEOIP_STANDARD /home/ldestailleur/git/awstats/test/maxmind/GeoIP.dat"
+#LoadPlugin="geoip GEOIP_STANDARD /home/ldestailleur/git/awstats/test/maxmind/GeoIP.dat"
 
 # PLUGIN: GeoIP_City_Maxmind
 # REQUIRED MODULES: Geo::IP or Geo::IP::PurePerl (from Maxmind)
@@ -715,7 +715,7 @@ LoadPlugin="geoip GEOIP_STANDARD /home/ldestailleur/git/awstats/test/maxmind/Geo
 # and hits by city including regions.
 # Replace spaces in the path of geoip data file with string "%20".
 #
-LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /home/ldestailleur/git/awstats/test/maxmind/GeoIPCity-532.dat"
+#LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /home/ldestailleur/git/awstats/test/maxmind/GeoIPCity-532.dat"
 
 # PLUGIN: GeoIP_ASN_Maxmind
 # REQUIRED MODULES: Geo::IP or Geo::IP::PurePerl (from Maxmind)
@@ -735,7 +735,7 @@ LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /home/ldestailleur/git/awstats/tes
 # Canada can be detected.
 # Replace spaces in the path of geoip data file with string "%20".
 #
-LoadPlugin="geoip_region_maxmind GEOIP_STANDARD /home/ldestailleur/git/awstats/test/maxmind/GeoIPRegion-515.dat"
+#LoadPlugin="geoip_region_maxmind GEOIP_STANDARD /home/ldestailleur/git/awstats/test/maxmind/GeoIPRegion-515.dat"
 
 # PLUGIN: GeoIP_ISP_Maxmind
 # REQUIRED MODULES: Geo::IP or Geo::IP::PurePerl (from Maxmind)
@@ -751,7 +751,7 @@ LoadPlugin="geoip_region_maxmind GEOIP_STANDARD /home/ldestailleur/git/awstats/t
 # DESCRIPTION: This plugin add a chart of hits by Organization name
 # Replace spaces in the path of geoip data file with string "%20".
 #
-LoadPlugin="geoip_org_maxmind GEOIP_STANDARD /home/ldestailleur/git/awstats/test/maxmind/GeoIPOrg-111.dat"
+#LoadPlugin="geoip_org_maxmind GEOIP_STANDARD /home/ldestailleur/git/awstats/test/maxmind/GeoIPOrg-111.dat"
 
 
 
index 0e111fc34091ad0c891d87d21ad34caee004522d..92c6e328af0c2b301d48b95da43ab274f5bcbb8a 100755 (executable)
@@ -933,7 +933,7 @@ sub html_head {
 
                        if ( !$StyleSheet ) {
                                print
-"body { font: 11px verdana, arial, helvetica, sans-serif; background-color: #$color_Background; margin-top: 0; margin-bottom: 0; }\n";
+"body { font: 1.2em verdana, arial, helvetica, sans-serif; background-color: #$color_Background; margin-top: 0; margin-bottom: 0; }\n";
                                print ".aws_bodyl  { }\n";
                                print
 ".aws_border { border-collapse: collapse; background-color: #$color_TableBG; padding: 1px 1px "
@@ -941,7 +941,7 @@ sub html_head {
                                          || $BuildReportFormat eq 'xml' ? "2px" : "1px" )
                                  . " 1px; margin-top: 0px; margin-bottom: 0px; }\n";
                                print
-".aws_title  { font: 13px verdana, arial, helvetica, sans-serif; font-weight: bold; background-color: #$color_TableBGTitle; text-align: center; margin-top: 0; margin-bottom: 0; padding: 1px 1px 1px 1px; color: #$color_TableTitle; }\n";
+".aws_title  { font: 1em verdana, arial, helvetica, sans-serif; font-weight: bold; background-color: #$color_TableBGTitle; text-align: center; margin-top: 0; margin-bottom: 0; padding: 5px; color: #$color_TableTitle; }\n";
                                print
 ".aws_blank  { font: 13px verdana, arial, helvetica, sans-serif; background-color: #$color_Background; text-align: center; margin-bottom: 0; padding: 1px 1px 1px 1px; }\n";
                                print <<EOF;
@@ -961,14 +961,15 @@ sub html_head {
 }
 th             { border-color: #$color_TableBorder; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 2px 1px 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:center; color: #$color_titletext; }
 th.aws { border-color: #$color_TableBorder; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 2px 1px 1px; font-size: 13px; font-weight: bold; }
-td             { border-color: #$color_TableBorder; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:center; color: #$color_text; }
-td.aws { border-color: #$color_TableBorder; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:$dir; color: #$color_text; padding: 0px;}
+td             { border-color: #$color_TableBorder; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; font: 0.9em verdana, arial, helvetica, sans-serif; text-align:center; color: #$color_text; }
+td.aws { border-color: #$color_TableBorder; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; text-align:$dir; color: #$color_text; padding: 6px;}
 td.awsm        { border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; font: 11px verdana, arial, helvetica, sans-serif; text-align:$dir; color: #$color_text; padding: 0px; }
 b { font-weight: bold; }
-a { font: 11px verdana, arial, helvetica, sans-serif; }
+.awsm a { font: 1.4em verdana, arial, helvetica, sans-serif; }
 a:link    { color: #$color_link; text-decoration: none; }
 a:visited { color: #$color_link; text-decoration: none; }
 a:hover   { color: #$color_hover; text-decoration: underline; }
+.aws_data th { font-size: 0.9em; padding: 5px; }
 .currentday { font-weight: bold; }
 EOF
                        }