Im using SugarCube 2.11.0 on Twine 2.0.11. I have added some links with the StoryMenu passage on the left sidebar (UI bar). With the button on the top you can expand and collapse the sidebar. Now I would like the sidbar will be collapsed after a link is clicked on the StoryMenu - but only if "@media (max-width: 800px)" rule matches. How can I implement this?
This is because on mobile devices the sidebar overlaps the story passage. So the sidebar is collapsed by default. The player has to expand the sidebar to press the link. The passage is loaded "under" the sidebar. Now the player has to collapse the sidebar manually.
This is because on mobile devices the sidebar overlaps the story passage. So the sidebar is collapsed by default. The player has to expand the sidebar to press the link. The passage is loaded "under" the sidebar. Now the player has to collapse the sidebar manually.