by Ange Tuteur 8/5/2015, 19:41
This is the CSS for the forum icons which I wrote for my mobile theme :
- Code:
/* LINK ARROW ( FAR RIGHT ) */
.mobile_item_link_content {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/chevro10.png');
background-position:99% 50%;
}
/* CATEGORY NEW AND NO NEW */
.cat_no_new, .cat_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/folder10.png');
}
/* FORUM, FOLDER, HOT */
.forum_no_new, .forum_new, .folder_new, .folder_no_new, .folder_hot, .folder_hot_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
}
/* LOCKED */
.cat_locked, .forum_locked, .folder_locked, .folder_locked_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/locked10.png');
}
/* GLOBAL */
.folder_global, .folder_global_new, .folder_announce, .folder_announce_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/announ10.png');
}
/* STICKY */
.folder_sticky, .folder_sticky_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/pinned10.png');
}
It combines both the new and no new icons, so you might want one that's a bit more extended like the one below which includes a rule for each individual icon.
- Code:
/* ARROW ( FAR RIGHT ) */
.mobile_item_link_content {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/chevro10.png');
background-position:99% 50%;
}
/* CATEGORY */
.cat_no_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/folder10.png');
}
.cat_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/folder10.png');
}
/* FORUM */
.forum_no_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
}
.forum_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
}
/* FOLDER */
.folder_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
}
.folder_no_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
}
/* HOT */
.folder_hot {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
}
.folder_hot_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
}
/* LOCKED */
.cat_locked {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/locked10.png');
}
.forum_locked {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/locked10.png');
}
.folder_locked {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/locked10.png');
}
.folder_locked_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/locked10.png');
}
/* GLOBAL */
.folder_global {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/announ10.png');
}
.folder_global_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/announ10.png');
}
.folder_announce {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/announ10.png');
}
.folder_announce_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/announ10.png');
}
/* STICKY */
.folder_sticky {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/pinned10.png');
}
.folder_sticky_new {
background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/pinned10.png');
}
All you need to do is replace the image URLs with the ones you want to display. It should be easy to tell which one does want by looking at the comments or the class name. New post icons are denoted by "new" and regular ones either lack "new" or contain "no_new" in the class.
Lastly, to change the background color of the category rows, you can use these two rules. First one for default, and second one for hover.
- Code:
.mobile_item {
background:#FDF;
}
.mobile_item:hover {
background:#FEF;
}
Don't worry about it, that's why I'm here.