Closed groovemen closed 6 years ago
@groovemen : this is having conflict with the current code. First the drop down will be like :
Then on clicking the sub menu item name the sub menu drop down moves to the right and it continues like the following.
And the sub menus wont hide. Please make sure it doesn't have any conflict with the current code of paper kit 2 pro.
Cheers!
Hello @krishna-7,
Please check again and make sure you have all the classes for the navbar from the Paper Kit, also create the dropdown with the sub-level like in the example above because it's working fine, you can see in the photo from the first comment and also in this video. Make sure you insert the JS code too. Greetings!
Hi @groovemen,
If you don't mind can you share the entire code of the page that you have shown in the video, because I am still having issues with the multi-level navbar
Are there any changes in the .CSS files?
Also is this the same code that you have shown in the video because you have provided the following snippet : " Navbar" but in the demo in the nav bar it shows Paper Kit 2 Pro
As the js ready function was already in it I just placed the inner code into that in paper-kit.js as well (I tried it in both ways)
Please check this link : test_sub_menu
Add the following code to paper-kit.css as well.
.nav-item.dropdown .dropdown-menu li.show .dropdown-menu.show{
opacity: 1;
visibility: visible;
}
Hello again @krishna-7, sorry for the big delay, here are some changes that you have to make:
in dropdown.scss file please set display: block; only for the first dropdown because it will affect other submenus. Erase this property from .dropdown-menu class.
.dropdown{
> .dropdown-menu:first-of-type {
display: block;
}
}
also set this code to hide those arrows and align the sublevel dropdowns:
.dropdown.show {
.dropdown-menu.show {
.dropdown-item.dropdown-toggle + .dropdown-menu {
&.show {
left: 166px !important;
&:before,
&:after {
display: none;
}
li.show {
.dropdown-menu.show {
left: 237px !important;
}
}
}
}
}
}
Hope this infos helps you!
All the best, Stefan
If you want a multi-level dropdown menu, this is what you have to do:
go in
paper-kit.js
and insert this block of code:Best, Stefan