Is there a way to hide all content on a page except for a specific element and its children using CSS?
I've been exploring the :not selector, but I'm struggling to make it work with the * selector.
:not(.list-app) {
display: none;
}
:not(.list-app *) {
display: none;
}
The code above successfully targets the parent ".list-app" element, but I'm having trouble targeting its children.
Any suggestions or ideas to achieve this?