Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3495 | Rev 3654 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

@use "../../settings/breakpoints.scss";

.navLinksContainer {
  display: flex;
  align-items: center;
  height: 60%;
  max-width: 80%;
  order: 4;
  &__ul {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 0.5rem;
    &__li {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: $font-color;
      padding-top: 12px;
      padding-bottom: 12px;
      gap: 0.5rem;
      font-size: 1.5rem;
      & > a {
        p {
          display: none;
        }
      }
      a,
      p {
        color: $font-color;
        font-size: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        svg {
          font-size: 1rem;
        }
      }
      &:hover {
        font-weight: bold;
        border-bottom: 2px solid $font-color;
        .navLinkDropdown {
          display: block;
          position: absolute;
          top: calc(100% + 2px);
          left: 50%;
          transform: translateX(-35%);
          width: 200px;
          z-index: 1000;
          background-color: $bg-color;
          border-radius: 10px;
          ul {
            display: flex;
            flex-direction: column;
            padding: 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 {
              position: relative;
              &:hover {
                .navLinkLevelThree {
                  display: block;
                  position: absolute;
                  top: -10%;
                  left: 170px;
                  width: 200px;
                  z-index: 1000;
                }
              }
            }
            li:not(:last-child) {
              margin-bottom: 1rem;
              &:hover {
                border-bottom: 2px solid $font-color;
              }
            }
            a {
              font-weight: normal !important;
              padding: 0 !important;
              font-size: 1.1rem;
            }
          }
          &:nth-child(1),
          &:nth-child(2) {
            ul {
              li {
                display: flex;
                justify-content: space-between;
              }
            }
          }
        }
      }
    }
  }
}

.navLinkDropdown,
.navLinkLevelThree {
  display: none;
}
@include breakpoints.maxwidth("small") {
  .navLinksContainer {
    &__ul {
      &__li {
        a,
        p {
          svg {
            font-size: 1.5rem;
          }
        }
      }
    }
  }
}

@include breakpoints.maxwidth("medium") {
  .navLinksContainer {
    height: 100%;
    order: 2;
    max-width: none;
    &__ul {
      gap: 1rem;
      &__li {
        padding-bottom: 0;
        & > a {
          display: flex;
          p {
            display: inline-flex;
          }
        }
        a,
        p {
          svg {
            font-size: 1.5rem;
          }
        }
        &:hover {
          font-weight: bold;
          border-bottom: 2px solid $font-color;
          .navLinkDropdown {
            transform: translateX(-50%);
          }
        }
      }
    }
  }
}