Rev 4918 | Rev 5102 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@use "../../settings/breakpoints.scss";
.navLinksContainer {
flex: 1;
order: 3;
min-width: 50%;
display: flex;
& > ul {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
width: 100%;
& > li {
position: relative;
display: flex;
flex-direction: column;
color: $font-color;
padding-top: 0;
padding-bottom: 12px;
gap: 0.5rem;
svg,
i {
font-size: 1.5rem;
}
a,
p {
font-size: 1.1rem;
display: flex;
color: $font-color;
flex-direction: column;
align-items: center;
gap: 0.5rem;
position: relative;
}
p {
display: none;
}
&:not(:last-child):hover {
border-bottom: 2px solid $font-color;
& > a,
& > p {
font-weight: bold;
}
.navLinkDropdown {
display: block;
}
}
&:last-child:hover .aditional_links {
display: block;
}
}
}
}
.navLinkLevelThree,
.notifications-list {
display: none;
position: absolute;
top: -10%;
left: 100%;
z-index: 1000;
overflow: hidden;
background-color: $bg-color;
border-radius: $border-radius;
box-shadow: $shadow;
ul {
max-height: 20rem;
overflow: scroll;
li a {
min-width: 15ch;
}
li:hover a {
font-weight: bold;
}
}
}
.aditional_links {
display: none;
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
background-color: $bg-color;
border-radius: $border-radius;
box-shadow: $shadow;
ul {
display: flex;
flex-direction: column;
padding: 1rem;
gap: 0.5rem;
li {
position: relative;
a {
font-size: 1.1rem;
display: flex;
}
&:hover > a {
font-weight: bold;
}
&:hover .navLinkLevelThree {
display: block;
}
}
}
}
.navLinkDropdown {
display: none;
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-35%);
z-index: 1000;
background-color: $bg-color;
border-radius: 10px;
ul {
display: flex;
flex-direction: column;
padding: 1rem;
gap: 1rem;
text-align: left;
background-color: $bg-color;
border-radius: 10px;
box-shadow: 0px 4px 14px -2px rgb(0 0 0 / 12%), 0px -5px 14px -2px rgb(0 0 0 / 12%);
li {
align-items: center;
display: flex;
gap: 1rem;
position: relative;
a {
font-size: 1.1rem;
}
&:hover {
.navLinkLevelThree {
display: block;
}
& > a,
.navLinkLevelThree ul li:hover a {
font-weight: bold;
}
}
}
}
}
@include breakpoints.maxwidth("medium") {
.navLinksContainer > ul > li {
p {
display: inline-flex;
}
&:hover .navLinkDropdown {
transform: translateX(-50%);
}
}
}
@include breakpoints.maxwidth("desktop") {
.navLinksContainer {
margin-left: 2rem;
min-width: auto;
order: 2;
& > ul {
justify-content: space-around;
& > li {
padding-top: 32px;
padding-bottom: 12px;
}
}
}
.aditional_links ul li:hover {
.notifications-list {
display: block;
}
}
}