feeling like a genius for realizing that hiding the "advanced mode" elements of this page when advanced mode isn't enabled is as simple as putting a css rule that says
body:not(:has(#advanced:checked)) .advanced {
display: none;
}
feeling like a genius for realizing that hiding the "advanced mode" elements of this page when advanced mode isn't enabled is as simple as putting a css rule that says
body:not(:has(#advanced:checked)) .advanced {
display: none;
}
Likes: 0
Boosts: 0
Hashtags:
#Advanced
Mentions:
Comments
Displaying 0 of 1 comments
mixed berry social anxiety disorder 🍓
before i was looping over all the elements with the "advanced" class with an event listener on the checkbox
@monorail Oh oh yes, it's so amazing when CSS makes something _easy_. I'm so not used to it that I never think of it first.
by Austin Dern, Dean of Coatis ;
Likes: 0
Replies: 1
Boosts: 0