diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index 726c3ca..4ed852c --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .*.sw* +node_modules diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..7fcba18 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,20 @@ +module.exports = function(grunt) { + + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + connect: { + demo: { + options: { + open: true, + port: 8888, + keepalive: true, + base: '.' + } + } + } + }); + + grunt.loadNpmTasks('grunt-contrib-connect'); + grunt.registerTask('default', 'connect'); + +}; \ No newline at end of file diff --git a/README.md b/README.md old mode 100644 new mode 100755 index e28bdb6..a18a9dc --- a/README.md +++ b/README.md @@ -2,3 +2,59 @@ ionic-contrib-drawer ==================== A side menu drawer for Ionic apps + +#####Setting up: + +Clone the ionic-ion-drawer repo into the lib folder in your ionic project so it looks like: + +*yourProjectName/www/lib/ionic-ion-drawer* + +Add the ionic-contrib-drawer.js and ionic-contrib-drawer.css files to your index file + + + + +Add ionic.contrib.drawer to your Angular app: + + angular.module('App', [ + 'ionic', + 'ionic.contrib.drawer' + ]) + +#####Usage: + + Add the `` directive to your ionic templates or index.html files. + +#####Example: + + + +
+

Example

+
+
+ + +

Menu

+ + + Friends + Favorites + Search + +
+
+
+ + + +Change the 'side' attribute of the `` to either "right" or "left" to switch the side the drawer opens from. + +#####Credits: + +driftyco: https://github.com/driftyco (original build) + +vitalyrotari: https://github.com/vitalyrotari (bug fixes, improved performance, background fading +transition) + +brybott: https://github.com/brybott (right side functionality) diff --git a/bower.json b/bower.json old mode 100644 new mode 100755 diff --git a/custom.css b/custom.css new file mode 100644 index 0000000..e9b5905 --- /dev/null +++ b/custom.css @@ -0,0 +1,27 @@ +drawer, drawer.left, drawer.right { + background-color: #222; + top: 44px; + width:20%; +} +.drawer-overlay { + top: 44px; +} +drawer h2 { + color: #fff; + margin-top: 40px !important; + margin-left: 15px; + font-weight: 200; +} + +.item { + background: none; + color: #fff; +} + +.item:first-child { + border-top: 0px; +} + +.item:last-child { + border-bottom: 0px; +} \ No newline at end of file diff --git a/index.html b/index.html old mode 100644 new mode 100755 index 0382143..c68d9a3 --- a/index.html +++ b/index.html @@ -4,47 +4,18 @@ Ionic Seed App - - - - + - + - - + - - - +

Menu

- Friends Favorites @@ -54,7 +25,10 @@

Menu

- + + + +