daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .sub-menu-link {
  2.     width: 100%;
  3.     min-height: 45px;
  4.     /* position: relative; */
  5.     display: flex;
  6.     background-color: #fff;
  7.     border-bottom: 1px solid #b2b2b2;
  8. }
  9. .main-menu-links {
  10.     list-style: none;
  11.     position: relative;
  12.     font-weight: bold;
  13.     font-size: 1.5rem;
  14.     clear: both;
  15.     display: flex;
  16.     justify-content: space-around;
  17.     align-items: center;
  18. }
  19. sub-menu-link .no-style {
  20.     color:#575959;
  21. }
  22.  
  23. $(document).click(function (e) {
  24.     if ($(e.target).parents(".sub-menu").length === 0 && $(e.target).parents(".main-menu-section").length === 0 && !$(e.target).hasClass(".sub-menu")) {
  25.         // reset set all arrows
  26.         $(".column-trigger .fa").attr('class', 'fa fa-chevron-right');
  27.         $(".main-menu").find(".active").removeClass("active");
  28.         $(".main-menu-dropdown").find(".fa").addClass("fa-chevron-down").removeClass("fa-chevron-up");
  29.     }
  30. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top