diff --git a/content/static/images/mime/audio.png b/content/static/images/mime/audio.png new file mode 100644 index 000000000..fd877cb8d Binary files /dev/null and b/content/static/images/mime/audio.png differ diff --git a/content/static/images/mime/document.png b/content/static/images/mime/document.png new file mode 100644 index 000000000..d18082e39 Binary files /dev/null and b/content/static/images/mime/document.png differ diff --git a/content/static/images/mime/image.png b/content/static/images/mime/image.png new file mode 100644 index 000000000..68da5027c Binary files /dev/null and b/content/static/images/mime/image.png differ diff --git a/content/static/images/mime/text.png b/content/static/images/mime/text.png new file mode 100644 index 000000000..2d7f2d601 Binary files /dev/null and b/content/static/images/mime/text.png differ diff --git a/content/static/images/mime/video.png b/content/static/images/mime/video.png new file mode 100644 index 000000000..64e7a3075 Binary files /dev/null and b/content/static/images/mime/video.png differ diff --git a/content/static/style/default.css b/content/static/style/default.css index 8d12ee8d8..e3b0337b9 100644 --- a/content/static/style/default.css +++ b/content/static/style/default.css @@ -411,6 +411,43 @@ table.calendar tr td ul { margin: 0px; } +/* -- MIME Icons -- */ +/* Icons from the Tango Project, http://art.gnome.org/themes/icon/1150 */ +/* CSS Idea by Tigion, http://blog.tigion.de/2007/06/28/link-indication-der-kompromiss-des-linkbildes/ */ +a.mime:before { + padding-right: 0.3em; + content: url(../images/mime/text.png); + text-align: right; + vertical-align: middle; +} +a[href$=".pdf"].mime:before { + content: url(../images/mime/document.png); +} +a[href$=".mp3"].mime:before { + content: url(../images/mime/audio.png); +} +a[href$=".ogg"].mime:before { + content: url(../images/mime/audio.png); +} +a[href$=".png"].mime:before { + content: url(../images/mime/image.png); +} +a[href$=".gif"].mime:before { + content: url(../images/mime/image.png); +} +a[href$=".jpg"].mime:before { + content: url(../images/mime/image.png); +} +a[href$=".avi"].mime:before { + content: url(../images/mime/video.png); +} +a[href$=".mpg"].mime:before { + content: url(../images/mime/video.png); +} +a[href$=".mov"].mime:before { + content: url(../images/mime/video.png); +} + /* -- Search Engine -- */ div.search div.estform { margin: 0.8em 1.0em; padding: 0em 1.0em; diff --git a/xsl/xhtml.xsl b/xsl/xhtml.xsl index bf893c96f..8c90cbdf4 100644 --- a/xsl/xhtml.xsl +++ b/xsl/xhtml.xsl @@ -428,7 +428,7 @@ div#akct a#akpeel:hover {
  • - + @@ -448,7 +448,7 @@ div#akct a#akpeel:hover {
  • - +