Rev 5464 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@use "../../settings/breakpoints.scss";
.navLinksContainer {
flex: 1 0 50%;
order: 3;
display: flex;
&>ul {
display: flex;
align-items: center;
justify-content: space-between;
gap: .5rem;
width: 100%;
&>li {
position: relative;
display: flex;
flex-direction: column;
padding-bottom: 1rem;
gap: 0.5rem;
svg,
i {
color: $font-color;
font-size: 1.5rem;
}
a {
font-size: 1.1rem;
display: flex;
color: $font-color;
flex-direction: column;
align-items: center;
gap: 0.5rem;
position: relative;
}
p {
color: $font-color;
font-size: 1.1rem;
display: none;
}
&::after {
content: "";
height: 2px;
width: 0;
background-color: $font-color;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
transform-origin: center;
transition: all 200ms;
}
&:hover {
&>a,
&>p {
text-shadow: 0 0 0 $font-color;
}
&::after {
width: 100%;
}
.navLinkDropdown {
display: block;
}
}
&:last-child:hover .aditional_links {
display: block;
}
}
}
}
.navLinkDropdown,
.navigation-level_three,
.aditional_links {
background-color: $bg-color;
border-radius: $border-radius;
box-shadow: $shadow;
display: none;
padding: 1rem;
position: absolute;
left: 50%;
top: 100%;
z-index: 900;
ul {
display: flex;
flex-direction: column;
gap: 1rem;
li {
display: flex;
gap: 1rem;
position: relative;
a:hover {
text-shadow: 0 0 0 $font-color;
}
}
}
}
.navigation-level_three {
top: -10%;
left: 100%;
max-height: 20rem;
overflow: auto;
a {
max-width: 30ch;
}
}
.navLinkDropdown {
transform: translateX(-35%);
li:hover .navigation-level_three {
display: block;
}
}
.aditional_links {
transform: translateX(-50%);
ul {
align-items: center;
}
}
@include breakpoints.maxwidth("medium") {
.navLinksContainer>ul>li p {
display: inline-flex;
}
.navLinksContainer>ul>li:hover .navLinkDropdown {
transform: translateX(-50%);
}
}
@include breakpoints.maxwidth("desktop") {
.navLinksContainer {
margin-left: 2rem;
flex: 1;
order: 2;
&>ul>li {
padding-top: 1rem;
}
}
.aditional_links ul li:hover .navigation-level_three {
display: block;
}
}