From: Amos Jeffries Date: Mon, 27 Oct 2008 06:53:22 +0000 (+1300) Subject: Polish Error Page CSS X-Git-Tag: SQUID_3_2_0_1~1369 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57e70e80844f037296b06fe89891f966a5fa446d;p=thirdparty%2Fsquid.git Polish Error Page CSS Update errorpage.css content to display error pages matched to squid-cache.org website color scheme and styles including logo. Add Creative Commons Licence to the CSS file distributed. Also fix paths for out-of-tree translation. --- diff --git a/errors/Makefile.am b/errors/Makefile.am index 46afda9d26..00c2f98e1d 100644 --- a/errors/Makefile.am +++ b/errors/Makefile.am @@ -151,8 +151,8 @@ translate: mkdir $$lang; \ cd $$lang; \ echo -n "Translate '$$lang' ..."; \ - for f in `ls -1 ../templates`; do \ - $(PO2HTML) --progress=none -i ../$$lang.po -t ../templates/$$f >$$f || exit 1; \ + for f in `ls -1 ../$(srcdir)/templates`; do \ + $(PO2HTML) --progress=none -i ../$(srcdir)/$$lang.po -t ../$(srcdir)/templates/$$f >$$f || exit 1; \ done; \ echo "done."; \ cd ..; \ diff --git a/errors/errorpage.css b/errors/errorpage.css index 1c13ae1456..449a8ca34e 100644 --- a/errors/errorpage.css +++ b/errors/errorpage.css @@ -1,19 +1,37 @@ -/* Stylesheet for Squid Error pages */ +/* + Stylesheet for Squid Error pages + Adapted from design by Free CSS Templates + http://www.freecsstemplates.org + Released for free under a Creative Commons Attribution 2.5 License +*/ /* Page basics */ +* { + font-family: verdana, sans-serif; +} + html body { - background-color: #ffffff; - font-family: verdana,sans-serif; + margin: 0; + padding: 0; + background: #efefef; + font-size: 12px; + color: #1e1e1e; } /* Page displayed title area */ #titles { + margin-left: 15px; + padding: 10px; + padding-left: 100px; + background: url('http://www.squid-cache.org/Artwork/SN.png') no-repeat left; } /* initial title */ #titles h1 { + color: #000000; } #titles h2 { + color: #000000; } /* special event: FTP success page titles */ @@ -24,6 +42,8 @@ html body { /* Page displayed body content area */ #content { + padding: 10px; + background: #ffffff; } /* General text */ @@ -48,9 +68,11 @@ pre { /* horizontal lines */ hr { + margin: 0; } /* page displayed footer area */ #footer { - width: 100%; + font-size: 9px; + padding-left: 10px; }