glennrocksvb
I have been pulling my hair out in an attempt to update my Custom Forum Icons code.
The issue seems to be that elements are being taken over at points I can't locate.
The source class=forum-item main new forum-item
I tried to key off .new but it is completely ignored. When I save the element rule I get .forum-list-container .forum-item
Note that .main .new do not appear?!?!
What is troubling me is that I can enter the code into the browser manually and it works as expected, however, if placed into css_addition or css_global, it breaks.
On page load, with code in css_additional, the changes don't appear and the default theme icon is present-
If I manually enter the code, it works.
With my old code I had to key off ID and CLASS #forum16 .cell-forum .icon
This works in a limited way, but I want 2 icons for new/no new posts.
When I looked at the original template, .forum-list-container .forum-item.inactive.cell-forum .icon is used along with .forum-list-container .forum-item.new .cell-forum .icon, ergo I know my logic in this was not flawed (having discovered the code long after coming up with mine).
I moved the code around but to no avail.
So why, oh why, master of the vB/CSS can I not get the below code to work as expected?
Works, but icon is always set the same-
Does not work at all-
I have been pulling my hair out in an attempt to update my Custom Forum Icons code.
The issue seems to be that elements are being taken over at points I can't locate.
The source class=forum-item main new forum-item
I tried to key off .new but it is completely ignored. When I save the element rule I get .forum-list-container .forum-item
Note that .main .new do not appear?!?!
What is troubling me is that I can enter the code into the browser manually and it works as expected, however, if placed into css_addition or css_global, it breaks.
On page load, with code in css_additional, the changes don't appear and the default theme icon is present-
If I manually enter the code, it works.
With my old code I had to key off ID and CLASS #forum16 .cell-forum .icon
This works in a limited way, but I want 2 icons for new/no new posts.
When I looked at the original template, .forum-list-container .forum-item.inactive.cell-forum .icon is used along with .forum-list-container .forum-item.new .cell-forum .icon, ergo I know my logic in this was not flawed (having discovered the code long after coming up with mine).
I moved the code around but to no avail.
So why, oh why, master of the vB/CSS can I not get the below code to work as expected?
Works, but icon is always set the same-
Code:
#forum16 .cell-forum .icon { background: transparent url("/images/CustomIcons/BOS32-NEW.png") no-repeat; }
Does not work at all-
Code:
/* Start custom forum icons v2 */ #forum16 .forum-list-container .forum-item.inactive.cell-forum .icon { background: transparent url("/images/CustomIcons/BOS32.png") no-repeat; } #forum16 .forum-list-container .forum-item.new .cell-forum .icon { background: transparent url("/images/CustomIcons/BOS32-NEW.png") no-repeat; } /* End custom forum icons v2 */
Comment