From 57e70e80844f037296b06fe89891f966a5fa446d Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 27 Oct 2008 19:53:22 +1300 Subject: [PATCH] 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. --- errors/Makefile.am | 4 ++-- errors/errorpage.css | 30 ++++++++++++++++++++++++++---- 2 files changed, 28 insertions(+), 6 deletions(-) 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; } -- 2.47.3