Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4185 | Rev 4187 | 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-around;
    gap: 1rem;
    width: 100%;
    & > li {
      position: relative;
      display: flex;
      flex-direction: column;
      color: $font-color;
      padding-top: 32px;
      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;
      }
      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: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 {
    padding-bottom: 12px;
    p {
      display: inline-flex;
    }
    &:hover .navLinkDropdown {
      transform: translateX(-50%);
    }
  }
}

@include breakpoints.maxwidth("desktop") {
  .navLinksContainer {
    margin-left: 4rem;
    min-width: auto;
    order: 2;
  }
  .aditional_links ul li:hover {
    .notifications-list {
      display: block;
    }
  }
}