MIME Icons

git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@993 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
astro 2007-08-16 18:20:00 +00:00
parent 8a20aa4939
commit 8254162ac0
7 changed files with 39 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

View File

@ -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;

View File

@ -428,7 +428,7 @@ div#akct a#akpeel:hover {
<xsl:template match="resource" mode="resources-in-news">
<li>
<!-- MIME-Type ist nützlich z.B. für ftp:// URLs -->
<a href="{@url}" type="{@type}">
<a href="{@url}" type="{@type}" class="mime">
<xsl:choose>
<xsl:when test="@title"><xsl:value-of select="@title"/></xsl:when>
<xsl:otherwise><xsl:value-of select="@url"/></xsl:otherwise>
@ -448,7 +448,7 @@ div#akct a#akpeel:hover {
<xsl:template match="resource/alternative" mode="resources-in-news">
<li>
<!-- MIME-Type ist nützlich z.B. für ftp:// URLs -->
<a href="{@url}" type="{@type}">
<a href="{@url}" type="{@type}" class="mime">
<xsl:choose>
<xsl:when test="../@title"><xsl:value-of select="../@title"/></xsl:when>
<xsl:otherwise><xsl:value-of select="@url"/></xsl:otherwise>