dklemmt / contao_dk_mmenu

Implementation of mmenu as extension for Contao Open Source CMS
15 stars 16 forks source link

Close button #48

Closed Cleanerrr closed 4 years ago

Cleanerrr commented 4 years ago

Hi, is there any possibility to make a close button into mmenu (such as in the screenshot), mmenu-close

I tried with mmenu mburger (https://mmenujs.com/mburger/tutorial-css.html) but not working. Maybe can be useful to make an update of Contao mmenu plugin with an implemented field for adding a close button. Thank you

fritzmg commented 4 years ago

Sorry, but this is out of scope for this extension. This Contao extension simply integrates mmenu in Contao and provides modules with settings for it. It does not and will not provide additional features. Any such features would need to be implemented into mmenu itself. However, there are ways to customize mmenu.

Cleanerrr commented 4 years ago

Thank you for a very quick answer. Do you have any hint for customization? :)

rustykowski commented 4 years ago

I often use the same element, which triggers the menu. You can use the body-class mm-wrapper_opened, which is injected, when the menu is opened (as the class-name says). For example: give it a x-symbol as background-image.

Cleanerrr commented 4 years ago

Thank you very much :)

Cleanerrr commented 4 years ago

I often use the same element, which triggers the menu. You can use the body-class mm-wrapper_opened, which is injected, when the menu is opened (as the class-name says). For example: give it a x-symbol as background-image.

Doy ou have an example, maybe? Website URL, or... I already tried a similar thing, but for me not working. I can't put "X" in opened panel :( Thank you in advance

rustykowski commented 4 years ago

It is not inside the panel, but here you can see, what i mean: https://initiative-elmshorn.de/ https://anton-ree-schule-allermoehe.de/

Cleanerrr commented 4 years ago

It is not inside the panel, but here you can see, what i mean: https://initiative-elmshorn.de/ https://anton-ree-schule-allermoehe.de/

Ahaam :) I understand. Thank you so much