Proyectos de Subversion LeadersLinked - SPA

Rev

Autoría | Ultima modificación | Ver Log |

.user__options-dropdown,
.nav__options-dropdown {
  position: absolute;
  right: 0;
  min-width: 220px;
  top: calc(100% + 10px);
  background-color: var(--bg-color);
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 5%), 0 3px 3px rgb(0 0 0 / 30%);
  transition: all 0.2s ease-in-out;
  transform-origin: top;

  &.fadeOut {
    transform: scaleY(0);
    opacity: 0;
  }

  &.fadeIn {
    transform: scaleY(1);
    opacity: 1;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    a {
      white-space: nowrap;
    }
  }
}

.user__options-dropdown {
  border-top-right-radius: 0;
}

.user__options-item {
  padding: 1rem 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  h3 {
    font-weight: 600;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    a {
      color: gray !important;

      &:hover {
        text-decoration: underline !important;
      }
    }
  }
}

.nav__options-dropdown {
  transform: scaleY(0);
  right: -10%;
  opacity: 0;
  padding: 1rem;
  min-width: fit-content;
  ul {
    display: flex;
    flex-direction: column;
    a {
      color: gray;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  &.level_three {
    transform: scaleY(1);
    transform: scaleX(0);
    top: -10%;
    left: 100%;
    max-height: 20rem;
    overflow: auto;
    transform-origin: left;

    a {
      max-width: 30ch;
    }
  }

  &.mobile {
    top: initial;
    bottom: 99%;
    left: 50%;
    transform-origin: bottom;
  }

  &.show {
    transform: scaleY(1);
    opacity: 1;
  }

  ul li:hover .level_three {
    transform: scaleX(1);
    opacity: 1;
  }
}

.user__options-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 10px;
  left: 0;
  right: initial;

  .btn__profile {
    padding: 2px;
    border: 1px solid #7405f9;
    width: 100%;
    border-radius: 30px;
    color: #7405f9;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.1s ease-in;

    &:hover {
      border: 2px solid #7405f9;
    }
  }
}

.user__options-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;

  h3 {
    font-weight: 600;
    font-size: 1.1rem;
  }
}

@media (min-width: 768px) {
  .nav__options-dropdown {
    right: 0;
    border-top-right-radius: 0;
  }
}