Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5597 | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

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

.navbar {
  align-items: center;
  background-color: $bg-color;
  border-bottom: solid 1px $border-primary;
  box-shadow: $shadow;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  height: auto;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1rem 5% 0;
  position: relative;
  width: 100%;
}

.rightNavContainer {
  display: none;
  align-items: center;
  height: 100%;

  @media (max-width: 361px) {
    gap: 5px;

    .btn {
      padding: 0 !important;

      .badge {
        font-size: 0.6rem;
      }
    }
  }
}

.logo {
  height: 65px;
  order: 1;

  img {
    height: 100%;
  }
}

.hamburgerIcon {
  color: $font-color;
  font-size: 1.5rem;
  order: 3;
}

.searchIcon {
  color: $font-color;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0.5rem;
}

.mailIcon {
  color: $font-color;
  width: 25px;
  height: 25px;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.5rem;

  @media (max-width: 361px) {
    margin-right: 0rem;
  }
}

.badge {
  top: 0%;
  left: 50%;
  font-size: 0.7rem;
  transform: translateX(-80%);
  background-color: $danger;
  color: #fff;
  border-radius: 100px;
  position: absolute;
}

.bellIcon {
  color: $font-color;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  clip-path: circle(50%);

  @media (max-width: 361px) {
    font-size: 1rem;
    width: 21px;
    height: 21px;
  }
}

.triangleDown {
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid white;
  margin-left: 0.5rem;
}

.triangleUp {
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid white;
  margin-left: 0.5rem;
}

.backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.205);
  z-index: 900;
}

.searchInputContainer {
  font-size: 0.9rem;
  min-width: 65%;
  flex: 1;
  order: 1;

  form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
  }

  input {
    width: 100%;
    padding: 0.2rem 1rem 0.2rem 2rem;
    border-radius: 30px;
    background-color: $bg-color;
    color: $font-color;
    border: 1px solid $border-primary;

    &::placeholder {
      color: $font-color;
    }
  }

  button {
    font-size: 1rem;
    color: $font-color;
    border: none;
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

.chatIcon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-right: 0.2rem;
  position: relative;

  &_active::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: red;
    position: absolute;
    top: -1px;
    right: 1px;
  }
}

@media (min-width: 1000px) {
  .chatIcon {
    display: none;
  }
}

@include breakpoints.maxwidth("medium") {
  .logo {
    max-width: 317px;
  }

  .searchInputContainer input {
    padding: 0.4rem 1rem 0.4rem 2rem;
  }

  .bellIcon {
    background-color: initial;
    color: $font-color;
  }
}

@include breakpoints.maxwidth("desktop") {
  .searchInputContainer {
    order: 3;
    min-width: auto;
    flex: inherit;
  }

  .hamburgerIcon {
    display: none;
  }

  .navbar {
    padding: 0 5%;
    flex-wrap: nowrap;
  }
}