clickable objects under fixed sidebar, is it possible? - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9) +--- Thread: clickable objects under fixed sidebar, is it possible? (/showthread.php?tid=784) |
clickable objects under fixed sidebar, is it possible? - xdigito - 15.05.2017 Hi LM fans, me and a colleague of mine are trying to make a fixed sidebar with a transparent background. We would like to always see the buttons to navigate the plan, but still have the possibility to click the objects under the (transparent) sidebar. Making the .menu element transparent in the CSS was the easy part, but the problem is that the .menu item has a z-index of 200 while the objects have a lower z-index value. What happens is that even if the .menu background is not visible, it's still there from top to bottom of the visualization and prevents you to click the buttons underneath. I tried changing the z-index of the objects in the CSS (attachment), but it doesn't work. Do you have any idea on how to get around this? Thank you very much for any feedback! RE: clickable objects under fixed sidebar, is it possible? - admin - 15.05.2017 Use pointer-events CSS property, set it to none for elements that should not react to clicks, set it to all for elements that should react to clicks. RE: clickable objects under fixed sidebar, is it possible? - xdigito - 15.05.2017 (15.05.2017, 12:20)admin Wrote: Use pointer-events CSS property, set it to none for elements that should not react to clicks, set it to all for elements that should react to clicks. Thank you admin, nice trick! This is the code I used, and it works: Code: .menu { |