RealTimeDesigner Support Network
Wiki Forums Libraries Docs Support RealTimeDesigner Home
Welcome! Log In Create A New Profile

Advanced

target background-color on select clipart categories

Posted by cos 
cos
target background-color on select clipart categories
February 21, 2019 03:36PM
We need a dark background-color for a few categories in clipart. Is there a way to target background-color on select clipart categories without resorting to setting up a new store?

.local_table_clipspopup th {
background-color: #FFFFFF;
width: 125px !important;
}
Re: target background-color on select clipart categories
February 22, 2019 12:50AM
There was no way to do it, but now I've added something that might help.
The table originally had only the local_table_clipspopup class.
Now I added also a 2nd one which includes the category ID, and looks somethng like this: local_table_clipspopup_category_xxxx
where xxxx is the category ID. chcking with an inspector while loading a spacific category will give you the number you need.

So, if you want a different BG for the category ID 3258, you can do someting like this:
.local_table_clipspopup th {
   background-color: #FFFFFF;
   width: 125px !important;
}
local_table_clipspopup_category_3258 th { background-color: #FF0000 !important; }
cos
Re: target background-color on select clipart categories
February 22, 2019 01:14PM
Thank Alex. Works perfectly. Although, you left off the leading "." in the example.
Re: target background-color on select clipart categories
February 22, 2019 01:57PM
Done on purpose, was checking if you were paying attention tongue sticking out smiley tongue sticking out smiley tongue sticking out smiley
cos
Re: target background-color on select clipart categories
February 25, 2019 06:09AM
Could you also add the same to the popup thumbnail image?
Re: target background-color on select clipart categories
February 25, 2019 08:16AM
Done same way. Now class like local_table_clipspopup_thumbs_large_category_xxx exists
cos
Re: target background-color on select clipart categories
February 25, 2019 10:16AM
Perfect. Padding can also be added into these.

Thank you Alex.
Sorry, only registered users may post in this forum.

Click here to login