Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

CSS Wizardry - targeting a specific copy of a repeating section

1727010395
Steve
Pro
Sheet Author
So, I have the main class="repeating_meleeweapons", and a smaller 'summary' version of it elsewhere on the sheet, class="repeating_meleeweapons maingauchesummary". I want to display: none; the repcontrol on the summary only. Is it possible to target that specific copy of the repeating section? Some variations I have tried: .charsheet .repcontrol[data-groupname="repeating_meleeweapons"] + .maingauchesummary { .charsheet .repcontrol[data-groupname="repeating_meleeweapons  maingauchesummary "]  .charsheet  .maingauchesummary  .repcontrol[data-groupname="repeating_meleeweapons "]  .charsheet  .repcontrol  .maingauchesummary [data-groupname="repeating_meleeweapons "]  and a few others that I don't remember now.
1727025033

Edited 1727115255
GiGs
Pro
Sheet Author
API Scripter
If you put everything in the section in a div with its own class, you can target that class. Does that do what you need? Or maybe put the entire fieldset inside a div (or other container) with its own class, so should be able to target and hide that container using its class. Other than those means, if you have copies of a repeating section, I can't think of a way to target a specific copy. You can't target the specific repeating section, but you can target the html inside or around it.
1727080716
Steve
Pro
Sheet Author
Thanks GiGs, got it with the extra div.