yamm3

Yet another megamenu for Bootstrap 3

  • 所有者: geedmo/yamm3
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

Demo

Here you can find Yamm for Bootstrap 4

Install with npm

npm install @geedmo/yamm3 --save

Install with bower

bower install yamm3 --save

Install via composer

{
    "require": {
        "geedmo/yamm3": "dev-master"
    }
}

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()
})

AngularJS

Check it at hjzheng/angular-mega-menu

Bugs and feature requests

Please first read the issue guidelines and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.

Compile

Run the following commands in the repository folder

  • npm install
  • gulp

To compile yamm with demo

  • gulp demo

License

主要指标

概览
名称与所有者geedmo/yamm3
主编程语言HTML
编程语言CSS (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2013-11-22 19:33:14
推送于2021-04-01 03:05:47
最后一次提交2019-11-20 09:22:49
发布数5
最新版本名称v1.3.1 (发布于 )
第一版名称1.0.0 (发布于 2014-03-14 12:51:42)
用户参与
星数1.2k
关注者数79
派生数179
提交数61
已启用问题?
问题数0
打开的问题数0
拉请求数5
打开的拉请求数2
关闭的拉请求数7
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?