Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap #28

Open
ezekel opened this issue Jul 3, 2015 · 1 comment
Open

bootstrap #28

ezekel opened this issue Jul 3, 2015 · 1 comment

Comments

@ezekel
Copy link

ezekel commented Jul 3, 2015

HI,
first of all I like this megamenu when I saw your example...but I can ask if this will work in bootstrap menu ? can I still Reuse Bootstrap navbar markup ?

Thank you in advance.

@panoply
Copy link

panoply commented Nov 27, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants