@mixin navbar-responsive() { .menu-on-left .navbar-translate { flex-direction: row-reverse; } .navbar { .navbar-toggler-bar { display: block; position: relative; width: 22px; height: 1px; border-radius: 1px; background: $black; & + .navbar-toggler-bar { margin-top: 7px; } &.bar2 { width: 17px; transition: width 0.2s linear; } } &.relative-top { .navbar-toggler-bar { background: $white; } } .navbar-nav { margin-top: 53px; position: relative; // max-height: calc(100vh - 75px); // min-height: 100%; overflow: auto; &.navbar-logo { top: 0; height: 53px; } } .dropdown.show .dropdown-menu, .dropdown .dropdown-menu { background-color: transparent; border: 0; transition: none; -webkit-box-shadow: none; box-shadow: none; width: auto; margin: 0 1rem; margin-bottom: 15px; padding-top: 0; height: auto; overflow-y: scroll; &:before { display: none; } } .dropdown { .dropdown-item { padding-left: 2.5rem; } .dropdown-menu { display: none; } &.show .dropdown-menu { display: block; } } .dropdown-menu .dropdown-item:focus, .dropdown-menu .dropdown-item:hover { color: $white; border-radius: $border-radius-small; } .navbar-translate { width: 100%; position: relative; display: flex; -ms-flex-pack: justify !important; justify-content: space-between !important; -ms-flex-align: center; align-items: center; @include transform-translate-x(0px); @include custom_transition(0.5s, cubic-bezier(0.685, 0.0473, 0.346, 1)); padding: 0.5rem 1rem; } &.bg-white:not(.navbar-transparent) .navbar-toggler-bar { background: $dark; } } // .bar1, // .bar2, // .bar3 { // outline: 1px solid transparent; // } // .bar1 { // top: 0px; // @include bar-animation($topbar-back); // } // .bar2 { // opacity: 1; // } // .bar3 { // bottom: 0px; // @include bar-animation($bottombar-back); // } // .toggled .bar1 { // top: 6px; // @include bar-animation($topbar-x); // } // .toggled .bar2 { // opacity: 0; // } // .toggled .bar3 { // bottom: 6px; // @include bar-animation($bottombar-x); // } .top-bar { transform: rotate(0); } .middle-bar { opacity: 1; } .bottom-bar { transform: rotate(0); } .top-bar, .middle-bar, .bottom-bar { transition: all 0.2s; } .toggled { .top-bar { transform: rotate(45deg); transform-origin: 0%; } .bottom-bar { transform: rotate(-45deg); transform-origin: 0%; } .middle-bar { opacity: 0; } } // // @include topbar-x-rotation(); // @include topbar-back-rotation(); // @include bottombar-x-rotation(); // @include bottombar-back-rotation(); // // @-webkit-keyframes fadeIn { // 0% {opacity: 0;} // 100% {opacity: 1;} // } // @-moz-keyframes fadeIn { // 0% {opacity: 0;} // 100% {opacity: 1;} // } // @keyframes fadeIn { // 0% {opacity: 0;} // 100% {opacity: 1;} // } } @mixin navbar-collapse() { #globalnav { background: $opacity-2; user-select: none; } @supports ( (-webkit-backdrop-filter: $small-backdrop-filter) or (backdrop-filter: $small-backdrop-filter) ) { #globalnav { background: $opacity-2; -webkit-backdrop-filter: $small-backdrop-filter; backdrop-filter: $small-backdrop-filter; } } .navbar-collapse { position: fixed; display: block !important; top: 0; height: 100% !important; width: 300px; right: 0; z-index: 1032; visibility: visible; background-color: #999; overflow-y: visible; border-top: none; text-align: left; @include transform-translate-x(300px); @include custom_transition(0.5s, cubic-bezier(0.685, 0.0473, 0.346, 1)); &:before { // background: $brand-primary; /* For browsers that do not support gradients */ background: $primary-gradient; @include opacity(0.76); box-shadow: $material-shadow; display: block; content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: -1; } .navbar-nav:not(.navbar-logo) { .nav-link { margin: 0 1rem; margin-top: 0.3125rem; &:not(.btn) { color: $white !important; } } } .dropdown-menu .dropdown-item { color: $white; } $number_of_btn: 6; // .btn:nth-child(1) { // // position: fixed !important; // // bottom: 30px * (($i - 1) * 2); // margin-bottom: 30px !important; // // width: 80%; // color: $white !important; // } @for $i from 1 through $number_of_btn { .btn:nth-child(#{$i}) { // position: fixed !important; bottom: 40px * $i; // margin-bottom: 30px !important; // width: 80%; color: $white !important; } } // check btn-outline- // which incude btn-outline-gradient-also // with colored navbar [class^='btn-outline-'], [class*='btn-outline-'] { @include button-outline-variant($white); &:hover { color: $white !important; background-color: transparent !important; } } } @include navbar-responsive(); [class*='navbar-expand-'] .navbar-collapse { width: 300px; } .wrapper { @include custom_transition(0.5s, cubic-bezier(0.685, 0.0473, 0.346, 1)); } #bodyClick { height: 100%; width: 100%; position: fixed; opacity: 1; top: 0; left: auto; right: 300px; content: ''; z-index: 9999; overflow-x: hidden; background-color: transparent; @include custom_transition(0.5s, cubic-bezier(0.685, 0.0473, 0.346, 1)); } } @mixin navbar-hover-link($color, $border) { padding-top: 10px; color: $color; font-size: 14px; line-height: $line-height-nav-link; display: block; transition: 0.3s ease; transform: $transition-border; &:hover { text-decoration: none !important; } &:after { display: block; content: ''; border-bottom: $border; transform: scaleX(0); transition: transform $transition-border; } &:hover:after { transform: scaleX(1); } &.fromLeft:after { transform-origin: 0% 50%; } &:focus { color: $color; opacity: 1; text-decoration: none !important; } p { font-weight: $font-weight-normal; } }