quattro: icons for attachments

This commit is contained in:
Fabio Comuni 2012-02-15 11:10:02 +01:00
parent 7140e56d1f
commit fe3e8ee854
29 changed files with 69 additions and 3 deletions

BIN
images/icons/10/audio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

BIN
images/icons/10/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 B

BIN
images/icons/10/text.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 B

BIN
images/icons/10/video.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

BIN
images/icons/10/zip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

BIN
images/icons/16/audio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

BIN
images/icons/16/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

BIN
images/icons/16/text.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

BIN
images/icons/16/video.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

BIN
images/icons/16/zip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 B

BIN
images/icons/22/audio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B

BIN
images/icons/22/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 B

BIN
images/icons/22/text.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

BIN
images/icons/22/video.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

BIN
images/icons/22/zip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 785 B

BIN
images/icons/48/audio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
images/icons/48/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
images/icons/48/text.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 972 B

BIN
images/icons/48/video.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,022 B

BIN
images/icons/48/zip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -2,7 +2,8 @@
IMAGES=add.png edit.png gear.png info.png menu.png \
notify_off.png star.png delete.png feed.png group.png \
lock.png notice.png notify_on.png user.png link.png \
play.png plugin.png unlock.png
play.png plugin.png unlock.png zip.png audio.png video.png \
image.png text.png
DESTS=10/ 16/ 22/ 48/ \
$(addprefix 10/, $(IMAGES)) \

BIN
images/icons/audio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
images/icons/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
images/icons/text.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6 KiB

BIN
images/icons/video.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6 KiB

BIN
images/icons/zip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

View file

@ -799,10 +799,10 @@ function prepare_body($item,$attach = false) {
case 'audio':
case 'image':
case 'text':
$icon = '<div class="attachtype type-' . $icontype . '"></div>';
$icon = '<div class="attachtype icon s22 type-' . $icontype . '"></div>';
break;
default:
$icon = '<div class="attachtype type-unkn"></div>';
$icon = '<div class="attachtype icon s22 type-unkn"></div>';
break;
}
$title = ((strlen(trim($matches[4]))) ? escape_tags(trim($matches[4])) : escape_tags($matches[1]));

View file

@ -13,6 +13,11 @@
&.link { background-image: url("../../../images/icons/@{size}/link.png"); }
&.lock { background-image: url("../../../images/icons/@{size}/lock.png"); }
&.unlock { background-image: url("../../../images/icons/@{size}/unlock.png"); }
&.type-unkn { background-image: url("../../../images/icons/@{size}/zip.png"); }
&.type-audio{ background-image: url("../../../images/icons/@{size}/audio.png"); }
&.type-video{ background-image: url("../../../images/icons/@{size}/video.png"); }
&.type-image{ background-image: url("../../../images/icons/@{size}/image.png"); }
&.type-text { background-image: url("../../../images/icons/@{size}/text.png"); }
}

View file

@ -48,6 +48,21 @@
.icon.s10.unlock {
background-image: url("../../../images/icons/10/unlock.png");
}
.icon.s10.type-unkn {
background-image: url("../../../images/icons/10/zip.png");
}
.icon.s10.type-audio {
background-image: url("../../../images/icons/10/audio.png");
}
.icon.s10.type-video {
background-image: url("../../../images/icons/10/video.png");
}
.icon.s10.type-image {
background-image: url("../../../images/icons/10/image.png");
}
.icon.s10.type-text {
background-image: url("../../../images/icons/10/text.png");
}
.icon.s10.text {
padding: 2px 0px 0px 15px;
}
@ -85,6 +100,21 @@
.icon.s16.unlock {
background-image: url("../../../images/icons/16/unlock.png");
}
.icon.s16.type-unkn {
background-image: url("../../../images/icons/16/zip.png");
}
.icon.s16.type-audio {
background-image: url("../../../images/icons/16/audio.png");
}
.icon.s16.type-video {
background-image: url("../../../images/icons/16/video.png");
}
.icon.s16.type-image {
background-image: url("../../../images/icons/16/image.png");
}
.icon.s16.type-text {
background-image: url("../../../images/icons/16/text.png");
}
.icon.s16.text {
padding: 4px 0px 0px 20px;
}
@ -122,6 +152,21 @@
.icon.s22.unlock {
background-image: url("../../../images/icons/22/unlock.png");
}
.icon.s22.type-unkn {
background-image: url("../../../images/icons/22/zip.png");
}
.icon.s22.type-audio {
background-image: url("../../../images/icons/22/audio.png");
}
.icon.s22.type-video {
background-image: url("../../../images/icons/22/video.png");
}
.icon.s22.type-image {
background-image: url("../../../images/icons/22/image.png");
}
.icon.s22.type-text {
background-image: url("../../../images/icons/22/text.png");
}
.icon.s22.text {
padding: 10px 0px 0px 25px;
}
@ -159,6 +204,21 @@
.icon.s48.unlock {
background-image: url("../../../images/icons/48/unlock.png");
}
.icon.s48.type-unkn {
background-image: url("../../../images/icons/48/zip.png");
}
.icon.s48.type-audio {
background-image: url("../../../images/icons/48/audio.png");
}
.icon.s48.type-video {
background-image: url("../../../images/icons/48/video.png");
}
.icon.s48.type-image {
background-image: url("../../../images/icons/48/image.png");
}
.icon.s48.type-text {
background-image: url("../../../images/icons/48/text.png");
}
/* global */
body {
font-family: Liberation Sans, helvetica, arial, clean, sans-serif;