purecss-ui-menu
v1.0.1
Published
Responsive menu system with submenus and dropdowns built on purecss-ui.
Downloads
1
Maintainers
Readme
purecss-ui-menu
purecss-ui-menu is a responsive menu control that implements submenus and a hamburger menu with dropdowns using vanilla JavaScript.
Demo: https://sanjaythadani.github.io/purecss-ui-menu/
This submenu system builds on top of the horizontal menu from purecss-ui design system:
npm install purecss-ui --save
GitHub: https://github.com/sanjaythadani/purecss-ui
Once the parent design system is installed, then install the submenu package:
npm install purecss-ui-menu --save
Include any one of the CSS stylesheets from the dist folders of the package, depending on the required theme and the minification.
Then include one of the JS files.
The JS file does support UMD so it can be used in a modular capacity.
The menu system uses CSS processed through PostCSS to create a design system with a minimal footprint that is easily customized and currently supports the following themes:
-- default
-- dark
The project use gulp as its task runner and will work easier if you have gulp-cli installed globally and want to work with it locally.
npm install gulp-cli -g
Runninng the project locally:
- Run 'npm install' to install all Node.js dependencies.
- Run 'npm run build:dev' to create all the local artifacts.
- Run 'npm run serve' to run the local Express server. If the files need to be watched then use 'npm run watch' instead.
Creating a distribution:
- Run 'npm install' to install all Node.js dependencies.
- Run 'npm run build:dist' to create the distribution artifacts.