somewebmedia / hc-offcanvas-nav

JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
https://somewebmedia.github.io/hc-offcanvas-nav/
MIT License
336 stars 82 forks source link

Refactor default theme for better maintainability, bring CSS variables and stylelint #74

Open ronilaukkarinen opened 2 years ago

ronilaukkarinen commented 2 years ago

Hello! Finally got a project where I had to use this and could not go with the current structure because of maintainability. Related to #60 decided to go and do the work. This PR will maintain the current default theme completely refactored carefully. I have tested this with the demo and it seems to work fine.

This PR will:

After this making a new custom theme will be easy. You just need to replace the colors in variables with your own and style other things according to preferences.

somewebmedia commented 2 years ago

I'll check this as soon as I have a chance for it :)

thagxt commented 1 year ago

Any plans of merging this in master? It would be pretty useful to have CSS vars for easier customization of the drawer.