Difference between revisions of "Widget:Compass"
From LINKS Community Center
Line 9: | Line 9: | ||
font-weight: 300; | font-weight: 300; | ||
letter-spacing: .06em; | letter-spacing: .06em; | ||
+ | } | ||
+ | |||
+ | .subtheme { | ||
+ | padding-left: 1em; | ||
+ | } | ||
+ | |||
+ | .question { | ||
+ | padding-left: 2em; | ||
} | } | ||
.subtheme, .question { display: none; } | .subtheme, .question { display: none; } | ||
Line 88: | Line 96: | ||
if (event.target.tagName === 'H2') { | if (event.target.tagName === 'H2') { | ||
event.target.closest('.theme').querySelectorAll('.subtheme').forEach(el => el.classList.toggle('opened')); | event.target.closest('.theme').querySelectorAll('.subtheme').forEach(el => el.classList.toggle('opened')); | ||
+ | } | ||
+ | if (event.target.tagName === 'H3') { | ||
+ | event.target.closest('.subtheme').querySelectorAll('.question').forEach(el => el.classList.toggle('opened')); | ||
} | } | ||
}); | }); | ||
</script> | </script> | ||
</includeonly> | </includeonly> |
Revision as of 16:11, 22 November 2022
Development version of the Compass.
Not ready for production!