chyba menu css
Manuál
ul {
list-style: none;
}
header {
width: 100%;
position: absolute;
top: 0;
left: 0;
}
.container {
width: 100%;
max-width: 117rem;
margin-top: 1rem;
margin: 0 auto;
padding: 0 1.5rem;
}
.menu-icons {
color: #eee;
font-size: 4rem;
position: absolute;
margin-top: 30px;
margin-right: 15px;
right: 2rem;
transform: translateY(-50%);
cursor: pointer;
z-index: 1500;
display: none;
}
nav {
display: flex;
align-items: center;
width: 100%;
height: 8rem;
border-bottom: 1px solid rgba(255,255,255, .1);
background: rgba(0,0,0, .6);
}
.logo {
width: 5rem;
height: 5rem;
background-color: #fb6602;
display: flex;
border-radius: 100%;
margin-right: 5rem;
}
.logo i {
margin: auto;
font-size: 3rem;
color: #eee;
}
.nav-list {
display: flex;
width: 100%;
align-items: center;
justify-content: center;
}
.nav-list li {
line-height: 8rem;
position: relative;
}
.sub-menu li {
line-height: 4rem;
}
.nav-list a {
display: block;
color: #eee;
padding: 0 1.5rem;
font-size: 1.4rem;
text-transform: uppercase;
transition: color 650ms;
}
.nav-list button {
display: block;
color: #eee;
padding: 0 1.5rem;
font-size: 1.4rem;
text-transform: uppercase;
transition: color 650ms;
background-color: transparent;
border: none;
}
.nav-list a:hover {
color: #fb6602;
}
.nav-list a.active {
background-color: #fb6602;
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
transform: translateX(-8%) translateY(15%);
border-radius: 3px;
color: #eee;
transition: all 1s;
}
.btn {
padding: 1.3rem;
display: inline-block;
background-color: #fb6602;
border: 2px solid #fb6602;
border-radius: 5rem;
transition: background-color 650ms;
}
.btn:hover {
color: #fb6602;
background-color: rgba(0,0,0,.2);
}
.sub-menu {
width: 20rem;
display: block;
position: absolute;
border-top: 3px solid #fb6602;
background-color: #191919;
z-index: 100;
top: 16rem;
opacity: 0;
visibility: hidden;
transition: all 650ms ease;
}
.sub-menu::before {
content: "";
position: absolute;
top: -2.5rem;
left: 3rem;
border: 1.2rem solid transparent;
border-bottom-color: #fb6602;
}
.sub-menu .sub-menu::before {
top: .9rem;
left: -2.5rem;
border: 1.2rem solid transparent;
border-right-color: #fb6602;
}
.sub-menu .sub-menu {
border-top: none;
border-left: 3px solid #fb6602;
top: 0;
left: 160%;
}
.nav-list li:hover > .sub-menu {
top: 8rem;
opacity: 1;
visibility: visible;
}
.sub-menu li:hover > .sub-menu {
top: 0;
left: 100%;
}
li.move-right {
margin: auto 0 auto auto;
line-height: initial;
}
@media screen and (max-width: 850px) {
.nav-list {
position: fixed;
top: 0;
left: 0;
height: 100vh;
flex-direction: column;
align-items: initial;
display: none;
background-color: #191919;
z-index: 1000;
}
.nav-list > li {
line-height: 6rem;
}
.nav-list a.active {
background-color: none;
clip-path: none;
transform: none;
border-radius: none;
color: white;
}
.sub-menu {
position: initial;
border: 3px solid transparent;
border-left-color: #fb6602;
margin-left: .7rem;
max-height: 0;
}
.sub-menu::before {
display: none
}
.nav-list li:hover > .sub-menu {
opacity: 1;
visibility: visible;
max-height: initial;
}
li.move-right {
margin: 0 auto 0 0;
line-height: initial;
}
.menu-icons {
display: block;
}
.ion-md-close {
display: none;
}
nav.active .ion-md-close {
display: block;
}
nav.active .ion-md-menu {
display: none;
}
nav.active .nav-list {
display: flex;
}
}
Neformátovaný
Přidáno: 11.4.2020
Expirace: Neuvedeno