Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

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

.userImgContainer {
  display: flex;
  align-items: center;
  position: relative;
  gap: 1rem;
  cursor: pointer;
  .d-flex,
  .d-inline-flex {
    gap: 5px;
  }
  h3 {
    font-weight: bold;
  }
}

.userImg {
  width: 45px;
  object-fit: contain;
  border-radius: 50%;
  background-color: #fff;
}

.userDropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: $bg-color;
  width: 220px;
  box-shadow: $light-shadow;
  border: 1px solid $border-primary;
  overflow: hidden;
  z-index: 1000;
  @media (max-width: 767px) {
    right: 0;
  }
  ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    li:not(:first-child) {
      margin-top: 1rem;
    }
    a {
      color: $font-color;
      font-size: 1rem;
      &:hover {
        color: $font-color;
        font-weight: bold;
      }
    }
    .logOutContainer {
      &__a {
        font-weight: 600;
        &:hover {
          color: $danger;
        }
      }
    }
  }
}

.fadeIn {
  transform-origin: top;
  animation: fadeIn 0.3s;
}

.fadeOut {
  transform-origin: top;
  animation: fadeOut 0.3s;
}

@keyframes fadeIn {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}
@keyframes fadeOut {
  0% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
  }
}

@include breakpoints.maxwidth("medium") {
  .userImg {
    width: 65px;
  }
}