Yet another megamenu for Bootstrap 3

Related tags

Menu yamm3
Overview

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

Sponsored content

47Admin - Bootstrap Admin Template   

Comments
  • Optional removal of fixed navbar for mobile sizes.

    Optional removal of fixed navbar for mobile sizes.

    Added a '.yamm-responsive' class added to navbar, which removes the effects of a fixed navbar at mobile sizes. This allows large megamenu content to be fully visible on mobile devices.

    opened by AnthonyPAlicea 4
  • Adds scss implementation and updates bower.json.

    Adds scss implementation and updates bower.json.

    Adds a .scss implementation for sass compilers. Fixes the "main" specification to match the docs at http://bower.io/docs/creating-packages/#main.

    opened by paulschwarz 2
  • Update yamm.less

    Update yamm.less

    Concerning https://github.com/geedmo/yamm3/issues/18

    If I am not mistakien, Bootstrap already provides this :

    https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css#L3226

    btw, thanks for this useful repository :-)

    opened by X13454 0
  • add div[class*=

    add div[class*="col-"].fw

    add line below to make content inside .yamm-content under div[class*="col-"].fw class auto width:

    .yamm-content div[class*="col-"].fw { width: auto; }

    opened by latuminggi 0
  • Trim trailing white space throughout the project

    Trim trailing white space throughout the project

    Many editors clean up trailing white space on save. By removing it all in one go, it helps keep future diffs cleaner by avoiding spurious white space changes on unrelated lines.

    opened by jdufresne 0
  • Separate yamm.css and _yamm.scss to different directories

    Separate yamm.css and _yamm.scss to different directories

    Move the compiled yamm.css to a dist directory.

    When compiling yamm3 using webpack and sass, the following error is received:

    SassError: It's not clear which file to import for '@import ".../node_modules/@geedmo/yamm3/yamm/yamm"'.
           Candidates:
             .../node_modules/@geedmo/yamm3/yamm/_yamm.scss
             .../node_modules/@geedmo/yamm3/yamm/yamm.css
           Please delete or rename all but one of these files.
            on line 1 of .../app/javascript/stylesheets/application.scss
    

    By moving the compiled output to a separate directory, it avoids the ambiguity. The source files continue to live in the yamm directory. The output now lives in the dist directory, which is commonly used by other projects (e.g. jQuery).

    opened by jdufresne 1
Releases(v1.3.1)
Yet-Another-Relog-Mod - Just another relog mod. Call it YARM!

Yet Another Relog Mod A relog mod with a name so long, you can just call it YARM for short. Features An aesthetic relog list design that follows my "p

Hail 0 Oct 19, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Bootstrap-select - Shim repository for Bootstrap-select that works with bootstrap 4.

bootstrap-select Bootstrap-select is a jQuery plugin that utilizes Bootstrap's dropdown.js to style and bring additional functionality to standard sel

Heimrich & Hannot GmbH 35 Aug 27, 2022
The best way to quickly integrate Bootstrap 5 Bootstrap 4 or Bootstrap 3 Components with Angular

ngx-bootstrap The best way to quickly integrate Bootstrap 5 Bootstrap 4 or Bootstrap 3 Components with Angular Links Documentation Release Notes Slack

Valor Software 5.4k Jan 8, 2023
Extends Bootstrap Tooltips and Popovers by adding custom classes. Available for Bootstrap 3 and Bootstrap 4.

Bootstrap Tooltip Custom Class Extends Bootstrap Tooltips and Popovers by adding custom classes. Available for Bootstrap 3 and Bootstrap 4. Define you

Andrei Victor Bulearca 14 Feb 10, 2022
A simple Form Validation Utility for Bootstrap 3, Bootstrap 4, and Bootstrap 5 for Humans.

bootstrap-validate A simple Form Validation Utility for Bootstrap 3, Bootstrap 4, and Bootstrap 5 for Humans. ?? Support us with Developer Merchandise

null 138 Jan 2, 2023
yet another unzip library for node

yauzl yet another unzip library for node. For zipping, see yazl. Design principles: Follow the spec. Don't scan for local file headers. Read the centr

Josh Wolfe 622 Dec 26, 2022
yet another zip library for node

yazl yet another zip library for node. For unzipping, see yauzl. Design principles: Don't block the JavaScript thread. Use and provide async APIs. Kee

Josh Wolfe 307 Dec 3, 2022
Yet another Linux distribution for voice-enabled IoT and embrace Web standards

YodaOS is Yet another Linux Distribution for voice-enabled IoT and embrace Web standards, thus it uses JavaScript as the main application/scripting la

YODAOS Project 1.2k Dec 22, 2022
Yet Another JSX using tagged template

우아한 JSX Yet Another Simple JSX using tagged template 언어의 한계가 곧 세계의 한계다 - Ludwig Wittgenstein 우아한 JSX가 캠퍼들의 표현의 자유를 넓히고 세계를 넓히는데 도움이 되었으면 합니다 Example i

null 20 Sep 22, 2022
Alternatively called Yet Another Enhancement Point Tracker

Yet Another Talent Tracker Alternatively called Yet Another Enhancement Point Tracker, but that name doesn't sound as cool in an acronym, so let's cal

Hail 2 Oct 17, 2022
Yet another concurrent priority task queue, yay!

YQueue Yet another concurrent priority task queue, yay! Install npm install yqueue Features Concurrency control Prioritized tasks Error handling for b

null 6 Apr 4, 2022
Yet another eslint blame (might) with better adaptability

yet-another-eslint-blame Yet another eslint blame (might) with better adaptability. The input is eslint's output with json format (You can see it here

快手“探索组”前端 5 Mar 7, 2022
Yet another basic minter.

Mojito Yet another basic minter. Live demo: https://mojito-app.netlify.app/ Motivation The create-eth-app team recently added useDApp in their v1.8.0,

Julien Béranger 3 Apr 26, 2022
Yet another advanced djs slash command handler made by dano with ❤️

Advanced djs slash command handler Yet another advanced djs slash command handler made by dano with ❤️ Ultimate, Efficient, Slash command handler for

null 5 Nov 7, 2022
💚 Yet another mutli purpose discord bot, allowing you to maintain and manage your discord server with ease.

Jade Jade is once again another mutli purpose bot, allowing you to maintain and manage your discord server with ease. Completely open source or use th

Saige 1 Sep 13, 2022
Yet another library for generating NFT artwork, uploading NFT assets and metadata to IPFS, deploying NFT smart contracts, and minting NFT collections

eznft Yet another library for generating NFT artwork, uploading NFT assets and metadata to IPFS, deploying NFT smart contracts, and minting NFT collec

null 3 Sep 21, 2022