As a beginner in SCSS, I am uncertain if it is possible to create a loop function that would compile the following code:
I aim to apply certain CSS properties to specific elements when a particular input button is checked. My goal is to achieve this using only CSS and SCSS, without involving JavaScript.
#menu-results:checked + #reveal-results{ height: 100%; visibility:visible; opacity:1; };
#menu-membership:checked + #reveal-membership{ height: 100%; visibility:visible; opacity:1;};
#menu-lotterywest:checked + #reveal-lotterywest{ height: 100%; visibility:visible; opacity:1;};
#menu-grants:checked + #reveal-grants{ height: 100%; visibility:visible; opacity:1; };
#menu-more:checked + #reveal-more{ height: 100%; visibility:visible; opacity:1;};