File "layouts.module.scss"

Full Path: /var/www/html/gitep_front/src/shared/ui/layouts/layouts.module.scss
File size: 5.75 KB
MIME-type: text/plain
Charset: utf-8

.main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  height: 100vh;
}

.logo {
  width: 32px;
  height: 32px;
}
.moduleName, .mobileModuleName {
  text-align: center;
  color: $primary-2;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 16px;
  padding: 8px 0;
  flex-direction: column;
  width: 64px;
}

.mobileModuleName {
  font-size: 20px;
  color: #FFFFFF;
  width: 100%;
}

.moduleName:hover {
  color: #ffffff;
}
.activeModule {
  color: #ffffff;
  background-color: #9254DE;
}
.avatar {
  border: 4px solid #9254DE;
}

.menu {
  row-gap: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: $white;
  :global(.ant-menu-item) {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: $primary-2;
  }
  :global(.ant-menu-item:hover),
  :global(.ant-menu-item-selected) {
    color: $white !important;
  }
  :global(.ant-menu-item:active) {
    background-color: #9254DE !important;
  }
  :global(.ant-menu-item:hover) {
    background-color: #ffffff15 !important;
  }

  :global(.ant-menu-title-content) {
    display: none !important;
  }
}

.customAvatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFF;
  height: 32px;
  width: 32px;
  border-radius: 50%;
}

.sider {
  padding: 32px 8px 24px 8px;
  :global(.ant-layout-sider-children) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    row-gap: 24px;
  }
}
.modelsMenuCardAround {
  position: absolute;
  top: 19px;
  z-index: 100;
  left: 4px;
  padding: 20px 20px 20px 60px;
  background: transparent;
}
.modelsMenuCard {
  // position: absolute;
  // top: 19px;
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  // z-index: 10;
  // left: 64px;
  width: 216px;
  box-shadow: 
    0px 9px 28px 8px #0000000D,
    0px 3px 6px -4px #0000001F,
    0px 6px 16px 0px #00000014;
}
.departmentsSection {
  gap: 4px;
  display: flex;
  flex-direction: column;
}
.modelsMenuTitle {
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  padding: 0 12px;
  margin-bottom: 12px;
}
.departmentItem {
  position: relative;
  cursor: pointer;
  padding: 10px 4px 10px 36px;
  border-radius: 6px;
  color: #667085;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  &:hover {
    background-color: #F9F0FF;
  }
  &:active {
    background-color: #EFDBFF;
  }
}
.departmentItemActive {
  position: relative;
  cursor: pointer;
  padding: 10px 4px 10px 36px;
  border-radius: 6px;
  background-color: #F4F6FA;
  color: #101828;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
    &:hover {
    background-color: #F9F0FF;
  }
}
.checkicon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #98A2B3;
  width: 12px;
  height: 8px;
}
.downArrow {
  width: 8px;
  height: 4px;
  color: #ffffff;
}
.modelSettings {
  width: 40px;
  height: 40px;
  position: absolute;
  right: 0px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  &:hover {
    color: #722ED1!important;
  }
}
.avatarCircle {
  &:hover {
    box-shadow: 0px 0 0 8px #ffffff25;
  }
  &:active {
    box-shadow: 0px 0 0 8px #9254DE;
  }
}
.avatarCircleActive {
  box-shadow: 0px 0 0 8px #9254DE;
}
:global(.ant-menu::before) {
  display: none!important;
}
@media screen and (max-width: 768px) { 
  .main {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 100px 1fr;
    grid-template-columns: unset;
  }
  .sider {
    max-width: 100% !important;
    width: 100% !important;
    position: fixed;
    top: 0;
    z-index: 1;
    padding: 12px 16px 12px;
    :global(.ant-layout-sider-children) {
      flex-direction: row;
      width: 100%;
      max-width: 100%;
    }
  }
  .menu {
    max-width: 142px;
    height: fit-content;
    background: unset;
    color: #FFFFFF;
    border-inline-end: unset!important;
    :global(.ant-menu-title-content) {
      display: block !important;
      color: $white;
      font-size: 15px;
    }
    :global(.ant-menu-submenu-title) {
      padding: 0 12px!important;
      margin: 0;
      width: 100%;
      height: 32px!important;
    }
    :global(.ant-menu-submenu ) {
      background-color: rgba(146, 84, 222, 0.5019607843);
      position: relative;
    }
    :global(.ant-menu-submenu-arrow) {
      top: 57%;
      right: unset;
      left: 88%;
      &::before {
        background-color: $white;
      }
      &::after {
        background-color: $white;
      }
    }
    :global(.ant-menu-item) {
      align-items: flex-start!important;
      width: 100%;
      height: unset;
      padding-left: 12px!important;
    }
    :global(.ant-menu-sub) {
      position: absolute!important;
      overflow: hidden!important;
      width: 100%!important;
      background-color: rgba(146, 84, 222)!important;
      border-radius: 8px!important;
      top: 40px;
      z-index: 10;
    }
  }
  .moduleName {
    text-align: center;
    color: $white;
    font-size: 20px;
    font-weight: 600;
    line-height: 16px;
  }
}

.dropdownButton {
  background: #9254DE;
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  padding: 0 12px;
}

.menuDropdown {
  :global(.ant-dropdown-menu) {
    background: #9254DE !important;
    border-radius: 8px !important;
    padding: 9px 5px !important;
  }
  
  :global(.ant-dropdown-menu-item) {
    color: #FFFFFF !important;
    background: #9254DE !important;
    padding: 8px 12px !important;
  }
  
  :global(.ant-dropdown-menu-title-content) {
    color: #FFFFFF !important;
  }
}

.whiteArrow path {
  stroke: #F9F0FF !important;
}