Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

details summary not open css

details:not([open]) > *:not(summary),
details:not([open]) > *text* {
  /* any direct child elements other than summary, or any direct child text nodes */
  display: none;
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #details #summary #open #css
ADD COMMENT
Topic
Name
5+2 =