Giter Site home page Giter Site logo

Comments (1)

panoply avatar panoply commented on July 3, 2024 1

You're best to use something like Yamm3 with bootstrap for a megamenu. If you want to integrate this into bootstrap you're going to want to fiddle with the CSS heavily, the JS is pretty much setup, and clean af. I recommend you drop the panel-group class by eliminating the "cols" class. This will give you a responsive div dropdown box and from here you just use the grid classes in the megamenu.

By simply wrapping the panel in a max-width class and using fixed position. This way it's responsive.

.accessible-megamenu-panel {
        position: fixed;
        left: 0;
        right: 0;
        color: #222;
        margin: 0 38px; //here for left/right margin
        padding: 20px;
        line-height: normal;
        visibility: hidden;
        overflow: hidden;
        display: none !important;

        &.open {
            top: 86px; // here for top spacing
            display: block !important;
            visibility: visible;
            max-height: 500px;
            max-width: 1200px; //here for width.
            background-color:rgb(255, 255, 255);
            z-index: 1001;
            border: 1px solid #000;

        }

I'm currently integrating this menu into shopify using the timber framework. Once I complete the project I will branch this repo and make a bootstrap integration for all you bootstrap fags.

from accessible-mega-menu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.