html – Set the item in the top right corner using Flex.

html {
  background-color: gray;
}

.right-container {
  display: flex;
  display: flex;
  flex-wrap: wrap;
}

.overlay {
  width: 50px;
  height: 50px;
}

.nav {
  flex: 50%;
}

.nav {
  flex: 50%;
  .nav-item {
    .nav-link {
      display: inline-flex;
      align-items: center;
      height: 36px;
      padding: 1rem;
      font-size: 14px;
      font-weight: 600;
      color: $clr-carbonLT;
      border-radius: 0.5rem;
      transition: background-color 0.3s ease;
      position: relative;
      text-transform: uppercase;
      &:hover {
        background-color: rgba(0, 0, 0, 0.05);
      }
      &.active {
        color: $clr-carbon;
        &::after {
          content: '';
          transform: translateY(0);
        }
      }
    }
  }
}
<div class="right-container">

  <div class="overlay">
    <div class="nav">
      <li class="nav-item">
        <button class="nav-link btn" (click)="toggleSidebar()"><i class="mdi mdi-menu"></i></button>
      </li>
    </div>
  </div>
</div>

Write a Comment

Your email address will not be published. Required fields are marked *