lightweight, simple, classless CSS framework inspired by new.css devcss.devins.page
framework lightweight css classless stylesheet
17
fork

Configure Feed

Select the types of activity you want to include in your feed.

at fb5d007572a3c5785132a9821f135c3c35cee96c 10 lines 583 B view raw
1/* responsive-sidebar for dev.css v4, a lightweight CSS framework - https://github.com/intergrav/dev.css */ 2/* about: auto open/close `aside details` at 82rem breakpoint. prevents sidebar from looking awkward on wide screens, improves usability on small screens */ 3 4const mediaQuery = matchMedia("(min-width: 82rem)"); 5const toggleDetails = (matches) => 6 document 7 .querySelectorAll("aside details") 8 .forEach((details) => details.toggleAttribute("open", matches)); 9toggleDetails(mediaQuery.matches); 10mediaQuery.addEventListener("change", (event) => toggleDetails(event.matches));