HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: /var/www/admin.javaapp.co.uk/public/sass-dark/assets/_structure/_sidebar.scss
/* 
===============
    Sidebar
===============
*/

.sidebar-wrapper {
  width: 255px;
  position: fixed;
  z-index: 1030;
  border-radius: 6px 6px 0 0;
  transition: .600s;
  height: 100vh;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.sidebar-theme {
  background: $m-color_10;
}

.sidebar-closed > {
  .sidebar-wrapper {
    width: 54px;

    &:hover {
      width: 255px;
      box-shadow: 6px 0 10px 0 rgba(0, 0, 0, 0.14), 1px 0px 18px 0 rgba(0, 0, 0, 0.12), 3px 0 5px -1px rgba(0, 0, 0, 0.2);
    }
  }

  #content {
    margin-left: 54px;
  }
}

#sidebar .theme-brand {
  background-color: $m-color_12;
  padding: 0.9px 12px 0.9px 24px;
  border-bottom: 1px solid $m-color_12;
  border-radius: 6px 6px 0 0;
  justify-content: space-between;
}

.sidebar-closed {
  #sidebar .theme-brand {
    padding: 9.14px 5px;
  }

  > .sidebar-wrapper:hover #sidebar .theme-brand {
    padding: 0.9px 12px 0.9px 24px;
  }
}

#sidebar .theme-brand li.theme-logo {
  align-self: center;

  img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
  }
}

.sidebar-closed > .sidebar-wrapper:hover #sidebar .theme-brand li.theme-text a {
  display: block;
}

#sidebar {
  .theme-brand li.theme-text a {
    font-size: 25px !important;
    color: $m-color_3 !important;
    line-height: 2.75rem;
    padding: 0.39rem 0.8rem;
    text-transform: initial;
    position: unset;
    font-weight: 600;
  }

  .navbar-brand .img-fluid {
    display: inline;
    width: 44px;
    height: auto;
    margin-left: 20px;
    margin-top: 5px;
  }

  * {
    overflow: hidden;
    white-space: nowrap;
  }

  ul.menu-categories {
    position: relative;
    padding: 20px 0 20px 0;
    margin: auto;
    width: 100%;
    overflow: auto;

    &.ps {
      height: calc(100vh - 71px) !important;
    }

    li {
      > .dropdown-toggle[aria-expanded="true"] svg.feather-chevron-right {
        transform: rotate(90deg);
      }

      &.menu:first-child ul.submenu > li a {
        justify-content: flex-start;

        i {
          align-self: center;
          margin-right: 12px;
          font-size: 19px;
          width: 21px;
        }
      }
    }
  }
}

.sidebar-wrapper ul.menu-categories li.menu.menu-heading > .heading .feather-minus {
  display: none;
  vertical-align: sub;
  width: 12px;
  height: 12px;
  stroke-width: 4px;
  color: $m-color_7;
}

.sidebar-closed .sidebar-wrapper {
  &:hover #sidebar ul.menu-categories {
    padding: 20px 0 20px 0;
  }

  ul.menu-categories li.menu.menu-heading > .heading .feather-minus {
    display: inline-block;
  }

  &:hover ul.menu-categories li.menu.menu-heading > .heading .feather-minus {
    display: none;
  }
}

.sidebar-wrapper ul.menu-categories li.menu.menu-heading > .heading {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: $m-color_7;
  padding: 20px 0 20px 20px;
  letter-spacing: 1px;
}

.sidebar-closed {
  .sidebar-wrapper ul.menu-categories li.menu.menu-heading > .heading {
    padding: 20px 9px 20px 22px;
  }

  > .sidebar-wrapper {
    ul.menu-categories li.menu.menu-heading > .heading span {
      display: none;
    }

    &:hover ul.menu-categories li.menu.menu-heading > .heading {
      span {
        display: inline-block;
      }

      padding: 20px 0 20px 20px;
    }
  }

  #sidebar ul.menu-categories li.menu > .dropdown-toggle {
    padding: 12px 17px;
    transition: .600s;
    position: relative;
  }

  > .sidebar-wrapper:hover #sidebar ul.menu-categories li.menu > .dropdown-toggle {
    padding: 9px 20px;
    transition: .600s;
  }

  .sidebar-wrapper:hover #sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded="true"]:before, #sidebar ul.menu-categories li.menu > .dropdown-toggle svg.feather-chevron-right {
    display: none;
  }

  .sidebar-wrapper:hover #sidebar ul.menu-categories li.menu > .dropdown-toggle {
    svg.feather-chevron-right {
      display: inline-block;
    }

    &[aria-expanded="true"] svg {
      padding: 0;
      background: transparent;
      border-radius: 0;
      border: none;
      width: auto;
      width: 20px;
      height: 20px;
    }
  }
}

#sidebar ul.menu-categories {
  li.menu {
    > .dropdown-toggle {
      display: flex;
      justify-content: space-between;
      cursor: pointer;
      font-size: 13px;
      color: $m-color_6;
      padding: 9px 20px;
      font-weight: 600;
      transition: .600s;

      > div {
        align-self: center;
      }
    }

    .dropdown-toggle:after {
      display: none;
    }

    > .dropdown-toggle svg {
      color: $m-color_6;
      margin-right: 6px;
      vertical-align: middle;
      width: 20px;
      height: 20px;

      stroke-width: 1.8;
    }

    &.active > .dropdown-toggle {
      svg {
        color: $m-color_25;
        fill: $m-color_18;
      }

      span {
        color: $m-color_25;
      }

      svg.feather-chevron-right {
        background-color: transparent;
        transform: rotate(90deg);
      }
    }

    > {
      .dropdown-toggle {
        &[aria-expanded="true"] {
          svg {
            color: $m-color_25;
            fill: $m-color_18;
          }

          span {
            color: $m-color_25;
          }
        }

        &:hover {
          color: $m-color_25;

          svg {
            color: $m-color_25;
          }
        }

        svg.feather-chevron-right {
          vertical-align: middle;
          margin-right: 0;
          width: 15px;
        }
      }

      a span:not(.badge) {
        vertical-align: middle;
      }
    }
  }

  ul.submenu > li {
    &.active:before {
      content: '';
      position: absolute;
      background-color: rgba(27, 46, 75, 0.48);
      width: 15px;
      height: 40px;
      width: 84%;
      margin: 0 21px;
      border-radius: 6px;
    }

    a {
      position: relative;
      display: flex;
      justify-content: space-between;
      padding: 10px 12px 10px 48px;
      padding-left: 24px;
      margin-left: 40px;
      font-size: 13px;
      font-weight: 500;
      color: $m-color_4;
    }
  }

  li.menu ul.submenu > li a:before {
    content: '';
    background-color: $m-color_5;
    position: absolute;
    height: 3px;
    width: 3px;
    top: 17.5px;
    left: 13px;
    border-radius: 50%;
  }

  ul.submenu > li.active a {
    color: $m-color_2;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 10px 12px 10px 24px;
  }

  li.menu ul.submenu > li.active a:before {
    background-color: $m-color_25;
  }

  ul.submenu {
    > li {
      &.active {
        position: relative;
      }

      a {
        &:hover {
          color: $l-dark;

          &:before {
            background-color: $l-dark !important;
          }
        }

        i {
          align-self: center;
          font-size: 9px;
        }
      }
    }

    li > {
      [aria-expanded="true"] {
        i {
          color: $m-color_14;
        }

        &:before {
          background-color: $m-color_14 !important;
        }
      }

      a[aria-expanded="true"] {
        color: $m-color_14;
      }
    }

    > li ul.sub-submenu > li {
      a {
        position: relative;
        padding: 10px 12px 10px 48px;
        padding-left: 13px;
        margin-left: 72px;
        font-size: 11px;
        color: $m-color_4;
      }

      &.active a {
        color: $m-color_14;
      }

      a {
        &:hover {
          color: $m-color_14;

          &:before {
            background-color: $m-color_14;
          }
        }

        &:before {
          content: '';
          background-color: $m-color_4;
          position: absolute;
          top: 15px !important;
          border-radius: 50%;
          left: 0;
        }
      }

      &.active a:before {
        background-color: $m-color_14;
      }
    }
  }
}

.overlay {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1035 !important;
  opacity: 0;
  transition: all 0.5s ease-in-out;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.e-animated {
  -webkit-animation-duration: 0.6s;
  animation-duration: 0.6s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes e-fadeInUp {
  0% {
    opacity: 0;
    margin-top: 10px;
  }

  100% {
    opacity: 1;
    margin-top: 0;
  }
}

@keyframes e-fadeInUp {
  0% {
    opacity: 0;
    margin-top: 10px;
  }

  100% {
    opacity: 1;
    margin-top: 0;
  }
}

.e-fadeInUp {
  -webkit-animation-name: e-fadeInUp;
  animation-name: e-fadeInUp;
}