You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
9 years ago | |
|---|---|---|
| .. | ||
| demo | 11 years ago | |
| yamm | 9 years ago | |
| .bower.json | 9 years ago | |
| LICENSE.txt | 11 years ago | |
| README.md | 11 years ago | |
| bower.json | 11 years ago | |
| composer.json | 11 years ago | |
| index.html | 11 years ago | |
README.md
Yamm
This is Yet another megamenu for Bootstrap 3 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.
Markup
-
Reuse navbar markup and add class
.yammat the top. -
Then add your markup into the
.dropdown-menu -
Optionally use
.yamm-contentto 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"
}
}