:root{ --main-color: #2ecc71; } .demo{ background: var(--main-color); } nav.navbar.bootsnav{ background: none; font-family: 'Fira Sans', sans-serif; margin-bottom: 150px; border: none; } nav.navbar.bootsnav ul.nav>li{ margin-right: 20px; } nav.navbar.bootsnav ul.nav > li > a{ color: #555; background-color: rgba(255,255,255,0.9); font-size: 15px; letter-spacing: 1px; font-weight: 600; text-transform: uppercase; padding: 12px 15px; border-radius: 0; overflow: hidden; position: relative; transition: all 0.2s ease-out; z-index: 1; } nav.navbar.bootsnav ul.nav > li.dropdown > a{ padding: 12px 30px 12px 15px; } nav.navbar.bootsnav ul.nav > li.active > a, nav.navbar.bootsnav ul.nav > li.active > a:hover, nav.navbar.bootsnav ul.nav > li > a:hover, nav.navbar.bootsnav ul.nav > li.on > a{ background: transparent !important; color: #fff; border-color: transparent; box-shadow: 0 0 5px #fff; } nav.navbar.bootsnav ul.nav>li>a>span:before{ content: ''; background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent, rgba(255,255,255,0.3), transparent, rgba(255,255,255,0.3)); height: 100%; width: 100%; position: absolute; left: 0; top: 0; z-index: -1; opacity: 0; transform: scale(0.5); transition: all 0.3s ease 0.1s; } nav.navbar.bootsnav ul.nav>li.on>a>span:before, nav.navbar.bootsnav ul.nav>li.active>a>span:before, nav.navbar.bootsnav ul.nav>li>a:hover>span:before{ opacity: 1; transform: scale(1); } nav.navbar.bootsnav li.dropdown ul.dropdown-menu.megamenu-content li a:hover, nav.navbar.bootsnav li.dropdown ul.dropdown-menu li a:hover, nav.navbar.bootsnav li.dropdown ul.dropdown-menu li a.dropdown-toggle:active, nav.navbar ul.nav li.dropdown.on ul.dropdown-menu li.dropdown.on > a{ background: #fff !important; color: var(--main-color) !important; } nav.navbar.bootsnav ul.nav > li.dropdown > a.dropdown-toggle:after{ color: #555; position: absolute; top: 10px; right: 10px; margin: 0 0 0 7px; } nav.navbar.bootsnav ul.nav > li.dropdown > ul{ top: 100%; transition: all 0.8s ease 0s; } nav.navbar.bootsnav ul.nav > li.dropdown.on > ul{ top: 120%; } .dropdown-menu.multi-dropdown{ position: absolute; left: -100% !important; } nav.navbar.bootsnav li.dropdown ul.dropdown-menu{ box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); border: none; } nav.navbar.bootsnav li.dropdown ul.dropdown-menu.megamenu-content li{ font-size: 14px; } nav.navbar.bootsnav li.dropdown ul.dropdown-menu.megamenu-content .menu-col li a{ padding-left: 10px; } nav.navbar.bootsnav li.dropdown ul.dropdown-menu.megamenu-content .title{ color: #555; font-size: 16px; font-weight: bold; } @media only screen and (max-width:990px){ .dropdown-menu.multi-dropdown{ left: 0 !important; } nav.navbar.bootsnav .navbar-toggle{ color: #fff; background: transparent !important; } nav.navbar.bootsnav.navbar-mobile .navbar-collapse{ background-color: var(--main-color); } nav.navbar.bootsnav ul.nav>li{ margin: 5px auto 15px; } nav.navbar.bootsnav.navbar-mobile ul.nav>li>a{ text-align: center; padding: 10px 15px; border: none; } nav.navbar.bootsnav ul.nav>li.dropdown>a{ padding: 10px 10px 10px 17px; } nav.navbar.bootsnav ul.nav>li.dropdown>a.dropdown-toggle:before{ color: #555; } nav.navbar.bootsnav ul.nav>li.dropdown>a.dropdown-toggle:focus:before, nav.navbar.bootsnav ul.nav>li.dropdown>a.dropdown-toggle:hover:before{ color: #fff; } nav.navbar.bootsnav ul.nav li.dropdown ul.dropdown-menu>li>a{ color: #fff; padding-left: 10px; border-bottom-color: none; } nav.navbar.bootsnav ul.nav>li.dropdown>ul{ top: 100%; } nav.navbar.bootsnav li.dropdown ul.dropdown-menu.megamenu-content .title{ color: #fff; font-size: 14px; font-weight: normal; padding-left: 10px; } nav.navbar.bootsnav li.dropdown ul.dropdown-menu.megamenu-content .col-menu li a{ color: #fff; } }