Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .sub-menu-link {
- width: 100%;
- min-height: 45px;
- /* position: relative; */
- display: flex;
- background-color: #fff;
- border-bottom: 1px solid #b2b2b2;
- }
- .main-menu-links {
- list-style: none;
- position: relative;
- font-weight: bold;
- font-size: 1.5rem;
- clear: both;
- display: flex;
- justify-content: space-around;
- align-items: center;
- }
- sub-menu-link .no-style {
- color:#575959;
- }
- $(document).click(function (e) {
- if ($(e.target).parents(".sub-menu").length === 0 && $(e.target).parents(".main-menu-section").length === 0 && !$(e.target).hasClass(".sub-menu")) {
- // reset set all arrows
- $(".column-trigger .fa").attr('class', 'fa fa-chevron-right');
- $(".main-menu").find(".active").removeClass("active");
- $(".main-menu-dropdown").find(".fa").addClass("fa-chevron-down").removeClass("fa-chevron-up");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement