123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- /*--------------------------------------------------------------
- # Navigation Menu
- --------------------------------------------------------------*/
- /**
- * Desktop Navigation
- */
- .navbar {
- padding: 0;
- ul {
- margin: 0;
- padding: 0;
- display: flex;
- list-style: none;
- align-items: center;
- }
- li {
- position: relative;
- }
-
- a, a:focus {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 8px 16px;
- margin-left: 10px;
- font-family: $font-primary;
- font-size: 16px;
- font-weight: 700;
- color: #fff;
- white-space: nowrap;
- transition: 0.3s;
- i {
- font-size: 12px;
- line-height: 0;
- margin-left: 5px;
- }
- }
- a:hover, .active, .active:focus, li:hover > a {
- background: rgba(#fff, .2);
- }
- .dropdown {
- ul {
- display: block;
- position: absolute;
- left: 10px;
- top: calc(100% + 30px);
- margin: 0;
- padding: 10px 0;
- z-index: 99;
- opacity: 0;
- visibility: hidden;
- background: #fff;
- box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
- transition: 0.3s;
-
- li {
- min-width: 200px;
- }
- a {
- padding: 10px 20px;
- font-size: 15px;
- text-transform: none;
- font-weight: 600;
- color: $secondary;
- i {
- font-size: 12px;
- }
- }
- a:hover, .active:hover, li:hover > a {
- color: $primary;
- }
- }
- &:hover > ul {
- opacity: 1;
- top: 100%;
- visibility: visible;
- }
- }
- .dropdown .dropdown {
-
- ul {
- top: 0;
- left: calc(100% - 30px);
- visibility: hidden;
- }
- &:hover > ul {
- opacity: 1;
- top: 0;
- left: 100%;
- visibility: visible;
- }
- @media (max-width: 1366px) {
- ul {
- left: -90%;
- }
- &:hover > ul {
- left: -100%;
- }
- }
- }
- }
- /**
- * Mobile Navigation
- */
- .mobile-nav-toggle {
- color: #fff;
- font-size: 28px;
- cursor: pointer;
- display: none;
- line-height: 0;
- transition: 0.5s;
- }
- @media (max-width: 991px) {
- .mobile-nav-toggle {
- display: block;
- }
- .navbar ul {
- display: none;
- }
- }
- .navbar-mobile {
- position: fixed;
- overflow: hidden;
- top: 0;
- right: 0;
- left: 0;
- bottom: 0;
- background: rgba(darken($primary, 25), 0.9);
- transition: 0.3s;
- .mobile-nav-toggle {
- position: absolute;
- top: 15px;
- right: 15px;
- }
- ul {
- display: block;
- position: absolute;
- top: 55px;
- right: 15px;
- bottom: 15px;
- left: 15px;
- padding: 10px 0;
- background-color: #fff;
- overflow-y: auto;
- transition: 0.3s;
- }
- a {
- padding: 10px 20px;
- font-size: 15px;
- color: $secondary;
- }
- a:hover, .active, li:hover > a {
- color: $primary;
- }
- .getstarted {
- margin: 15px;
- }
- .dropdown {
- ul {
- position: static;
- display: none;
- margin: 10px 20px;
- padding: 10px 0;
- z-index: 99;
- opacity: 1;
- visibility: visible;
- background: #fff;
- box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
-
- li {
- min-width: 200px;
- }
- a {
- padding: 10px 20px;
-
- i {
- font-size: 12px;
- }
- }
- a:hover, .active:hover, li:hover > a {
- color: $primary;
- }
- }
- > .dropdown-active {
- display: block;
- }
- }
- }
|