[Pkg-javascript-commits] [yamm3] 01/03: Imported Upstream version 1.1.0+dfsg1

Mike Gabriel sunweaver at debian.org
Tue Jul 28 15:20:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository yamm3.

commit bc1f7fafc118bd1259c47724e20730dfb4cb16c7
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Jul 28 17:05:37 2015 +0200

    Imported Upstream version 1.1.0+dfsg1
---
 LICENSE.txt    | 21 ++++++++++++++
 README.md      | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 package.json   | 19 +++++++++++++
 yamm/yamm.css  | 25 +++++++++++++++++
 yamm/yamm.less | 39 ++++++++++++++++++++++++++
 5 files changed, 190 insertions(+)

diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..2d0288d
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Geedmo
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..3537bf9
--- /dev/null
+++ b/README.md
@@ -0,0 +1,86 @@
+# Yamm
+
+
+This is *Yet another megamenu for [Bootstrap 3](http://getbootstrap.com/)* from Twitter.   
+   
+Lightweight and pure CSS megamenu that uses the standard navbar markup and the fluid grid system classes from Bootstrap 3. Work for fixed and responsive layout and has the facility to include (almost) any Bootstrap elements.
+
+####[Demo](http://geedmo.github.io/yamm3)
+
+### Markup
+
+1. Reuse navbar markup and add class `.yamm` at the top.
+
+2. Then add your markup into the `.dropdown-menu`
+
+3. Optionally use `.yamm-content` to wrap content with padding.
+
+Example
+
+    <nav class="navbar yamm navbar-default " role="navigation">
+        ...
+        <ul class="nav navbar-nav">
+            <li class="dropdown">
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>
+                <ul class="dropdown-menu">
+                    <li>
+                        <div class="yamm-content">
+                        <div class="row"> 
+                            ...
+                    </li>
+                </ul>
+            </li>
+        </ul>
+        ...
+    </nav>
+
+
+### Fullwidth
+
+By default every mega-dropdown will take the content size so is possible to use add `.yamm-fw` to `.dropdown` to expand it fullwidth.  
+Yamm works better with fullwidth menus.
+
+Example
+
+    <nav class="navbar yamm navbar-default " role="navigation">
+    ...
+         <ul class="nav navbar-nav">
+           <li class="dropdown yamm-fw">
+                 ...
+           </li>
+         </ul>
+    ...
+    </nav>
+
+
+### Javascript
+
+If necessary, this code will prevent unexpected menu close when using some components (like accordion, forms, etc)
+
+    $(document).on('click', '.yamm .dropdown-menu', function(e) {
+       e.stopPropagation()
+    })
+
+
+### Install via composer
+
+	{ 
+		"require": {
+			"geedmo/yamm3": "dev-master"
+		}
+	}
+
+### Compile
+
+Run the following commands in the repository folder
+
+- npm install
+- gulp
+
+To compile yamm with demo
+
+- gulp demo
+
+### License
+
+- Licenced under MIT - [details here](LICENSE.txt)
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..2b0f32c
--- /dev/null
+++ b/package.json
@@ -0,0 +1,19 @@
+{
+  "name": "Yamm",
+  "version": "1.1.0",
+  "description": "Yet another megamenu for Bootstrap",
+  "homepage": "http://geedmo.github.io/yamm3/",
+  "author": "@geedmo",
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/geedmo/yamm3"
+  },
+  "dependencies": {},
+  "devDependencies": {
+    "gulp": "~3.8.11",
+    "gulp-jade": "^1.0.0",
+    "gulp-less": "^3.0.2",
+    "marked": "~0.3.3",
+    "gulp-htmlhint": "0.1.1"
+  }
+}
diff --git a/yamm/yamm.css b/yamm/yamm.css
new file mode 100644
index 0000000..26bc71f
--- /dev/null
+++ b/yamm/yamm.css
@@ -0,0 +1,25 @@
+/*!
+ * Yamm!3 - Yet another megamenu for Bootstrap 3
+ * http://geedmo.github.com/yamm3
+ * 
+ * @geedmo - Licensed under the MIT license
+ */
+.yamm .nav,
+.yamm .collapse,
+.yamm .dropup,
+.yamm .dropdown {
+  position: static;
+}
+.yamm .container {
+  position: relative;
+}
+.yamm .dropdown-menu {
+  left: auto;
+}
+.yamm .yamm-content {
+  padding: 20px 30px;
+}
+.yamm .dropdown.yamm-fw .dropdown-menu {
+  left: 0;
+  right: 0;
+}
diff --git a/yamm/yamm.less b/yamm/yamm.less
new file mode 100644
index 0000000..d7ebd2d
--- /dev/null
+++ b/yamm/yamm.less
@@ -0,0 +1,39 @@
+/*!
+ * Yamm!3 - Yet another megamenu for Bootstrap 3
+ * http://geedmo.github.com/yamm3
+ * 
+ * @geedmo - Licensed under the MIT license
+ */
+
+//-----------------------------
+//  Yamm Styles
+//-----------------------------
+
+.yamm {
+
+  // reset positions 
+  .nav, .collapse, .dropup, .dropdown {
+    position: static;
+  }  
+
+  // propagate menu position under container for fw navbars
+  .container {
+    position: relative;
+  }
+
+  // by default aligns menu to left
+  .dropdown-menu {
+    left: auto;
+  }
+  
+  // Content with padding 
+  .yamm-content {
+    padding: 20px 30px;
+  }
+
+  // Fullwidth menu
+  .dropdown.yamm-fw .dropdown-menu {
+    left: 0; right: 0;
+  }
+
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/yamm3.git



More information about the Pkg-javascript-commits mailing list