codefog / contao-mobile_menu

Contao extension to add the mobile menu to your website easily
MIT License
13 stars 3 forks source link

Problems with position:fixed elements by using contao-mobile_menu with offcanvas #28

Open liquid-a opened 1 year ago

liquid-a commented 1 year ago

When using "off canvas effect" it is not possible to place any element on the whole web page with position:fixed.

The cause is the: transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1); will-change: transform;

in the div with the id "wrapper", which is entered there by setting the checkmark "off Canvas Effect".

Since navigation menus or other elements like to be fixed, this problem is not so optimally solved, especially in connection with this module. It should still be possible to use position:fixed. I would be happy if there was a solution for this, as the module is otherwise very good.

qzminski commented 1 year ago

The CSS is always individual to each website. This extension provides an off-canvas feature like that, but you can always override it. Let me know if you have a better proposal for the off-canvas effect.