www.federated.computer/themes/apsho/assets/scss/components/_navigation.scss
2023-06-02 10:17:07 -06:00

254 lines
4.5 KiB
SCSS

.main-nav {
padding: 30px 35px 20px;
transition: all 0.5s ease-in-out;
position: fixed;
z-index: 99;
top: 0;
width: 100%;
@include desktop {
text-align: center;
padding: 20px 30px;
width: 95%;
margin: 20px auto;
border-radius: 8px;
background: $white;
box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.09);
}
@include mobile {
padding: 15px 20px;
}
.navbar-nav {
.nav-item {
position: relative;
.nav-link {
color: $text-color-dark;
padding-left: 20px;
font-weight: 500;
font-size: 14px;
text-transform: uppercase;
padding-right: 20px;
position: relative;
z-index: 1;
transition: all 0.5s ease-in-out;
letter-spacing: 2px;
@include desktop {
font-size: 16px;
padding: 15px 0;
}
}
}
}
.navbar-nav {
.nav-item{
.drop-icon{
position: absolute;
top: 5px;
right: 0;
@include mobile {
top: 14px;
right: 95px;
}
}
}
}
.navbar-nav {
transition: all .5s ease-in-out;
.nav-item {
transition: all .5s ease-in-out;
.sub-menu{
background-color: $bg-color;
position: absolute;
list-style: none;
display: none;
transition: display 0.5s ease;
border-radius: 4px;
padding: 0;
z-index: 999;
li{
padding: 10px 30px;
width: 200px;
border-radius: 4px;
cursor: pointer;
&:not(:last-child){
border-bottom: 1px solid $black;
}
@include mobile {
padding: 0;
width: 100%;
}
}
li:hover {
background-color: #f7f7f7;
transition: all .5s ease-in-out;
}
li a {
font-size: 12px;
}
@include mobile {
width: 75%;
right: 37px;
}
}
}
}
.navbar-nav {
transition: all .5s ease-in-out;
.nav-item:hover .sub-menu {
display: block;
transition: display 1s ease;
}
}
.navbar-brand {
img {
width: 200px;
border-radius: 4px;
margin-left: 85px;
@include mobile {
width: 120px;
margin-left: 0;
}
}
}
.account-list {
margin-left: 30px;
display: flex;
align-items: center;
@include desktop {
justify-content: center;
margin-left: 0px;
}
li {
a {
color: $white;
background-color: $primary-color;
font-weight: 500;
font-size: 14px;
font-family: $primary-font;
box-shadow: 0px 8px 20px rgba(30, 39, 47, 0.3);
transition: 0.3s $site-ease;
text-transform: uppercase;
&:hover {
transform: scale(1.04);
}
@include desktop {
margin-top: 20px;
}
@include mobile {
display: block;
}
}
}
}
.navbar-toggler {
outline: 0;
padding: 0;
.icon-bar {
width: 25px;
height: 2px;
background: $primary-color;
transition: all 0.2s;
display: block;
&:not(:last-child) {
margin-bottom: 5px;
}
&:nth-child(1) {
transform: rotate(45deg);
transform-origin: 10% 10%;
}
&:nth-child(2) {
opacity: 0;
filter: alpha(opacity=0);
}
&:nth-child(3) {
transform: rotate(-45deg);
transform-origin: 10% 90%;
}
}
&.collapsed {
.icon-bar {
&:nth-child(1) {
transform: rotate(0);
}
&:nth-child(2) {
opacity: 1;
filter: alpha(opacity=1);
}
&:nth-child(3) {
transform: rotate(0);
}
}
}
}
&.nav-bg {
background: $white;
padding: 15px;
border: none;
box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.09);
top: 0;
@include desktop {
padding: 20px 30px;
}
@include mobile {
padding: 15px 20px;
}
.navbar-brand {
.logo-main {
display: block;
}
.logo-white {
display: none;
}
}
.nav-link {
color: $text-color-dark !important;
&::before {
background: darken($color: $white, $amount: 10) !important;
}
}
}
}
.headroom {
position: fixed;
top: 0;
left: 0;
right: 0;
}
.headroom--unpinned {
top: -150px !important;
}
.headroom--pinned {
top: 0;
}