92 lines
1.7 KiB
CSS
92 lines
1.7 KiB
CSS
.nav-menu {
|
|
border-bottom: 1px solid var(--secondary);
|
|
}
|
|
|
|
.nav-menu .jdc7ud {
|
|
display: flex;
|
|
justify-content: center;
|
|
position: sticky;
|
|
top: 0px;
|
|
z-index: 10;
|
|
padding: 0 10px;
|
|
height: 50px;
|
|
background-color:var(--main)
|
|
}
|
|
|
|
.nav-menu-item .jdc7ud {
|
|
text-decoration: none;
|
|
font-weight: 400;
|
|
padding: 10px 20px;
|
|
color: inherit;
|
|
display: flex;
|
|
align-items: center;
|
|
/* border-bottom:3px solid transparent */
|
|
}
|
|
|
|
.nav-menu-item-label .jdc7ud {
|
|
margin-left:10px
|
|
}
|
|
|
|
.nav-menu-item .jdc7ud:hover {
|
|
background-color:var(--main-hover)
|
|
}
|
|
|
|
.nav-menu-mobile .jdc7ud {
|
|
z-index: -1;
|
|
max-height: calc(100vh - 51px);
|
|
min-height: calc(100vh - 51px);
|
|
width: 100%;
|
|
position: absolute;
|
|
background-color: var(--main);
|
|
top: 51px;
|
|
transform: translateY(-100vh);
|
|
transition-property: transform opacity;
|
|
transition: .4s ease;
|
|
opacity:0
|
|
}
|
|
|
|
.nav-menu-mobile-open .jdc7ud {
|
|
opacity: 1;
|
|
transform: translateY(0)
|
|
}
|
|
|
|
|
|
.nav-bar-mobile-btn {
|
|
width: 36px;
|
|
height:36px
|
|
}
|
|
|
|
.nav-bar-mobile-btn:before, .nav-bar-mobile-btn:after {
|
|
content: "";
|
|
display: block;
|
|
height: 1px;
|
|
width: 20px;
|
|
background-color: var(--secondary-text);
|
|
transition:transform .2s ease
|
|
}
|
|
|
|
.nav-bar-mobile-btn:hover:before, .nav-bar-mobile-btn:hover:after {
|
|
background-color:auto
|
|
}
|
|
|
|
.nav-bar-mobile-btn:before {
|
|
transform:translateY(-5px) rotate(0)
|
|
}
|
|
|
|
.nav-bar-mobile-btn:after {
|
|
transform:translateY(4px) rotate(0)
|
|
}
|
|
|
|
.nav-bar-mobile-btn-expanded:before {
|
|
transform:translateY(2px) rotate(45deg)
|
|
}
|
|
|
|
.nav-bar-mobile-btn-expanded:after {
|
|
transform:translateY(0) rotate(-45deg)
|
|
}
|
|
|
|
@media (max-width: 950px) {
|
|
.nav-menu-item-label .jdc7ud {
|
|
display:none
|
|
}
|
|
} |