@import 'header.less';
@import 'side-menu/components.less';
@import 'side-menu/inspector.less';
@import 'side-menu/blocks.less';
@import 'side-menu/block-publish.less';
@import 'side-menu/market.less';
@import 'side-menu/pages.less';
@import 'side-menu/setting.less';

.main-container{
  display: flex;
  .layout-aside{
    width: 48px;
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.65);
    background-color: #fff;
    // border-right: 1px solid #e8e8e8;
    box-shadow: 2px 0px 3px 0px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    .column-bar-container{
      position: relative;
      z-index: 2; // 解决元素设置fixed定位时遮挡问题，所以提高层级
      height: 100%;
      .bar {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 40px;
        cursor: pointer;
        text-align: center;
        background-color: #fff;
        padding-top: 8px;
        .logo {
          width: 32px;
          height: 32px;
          background: rgba(0, 0, 0, 0.06);
          border-radius: 16px;
          display: flex;
          justify-content: center;
          align-items: center;
          svg {
            fill: #333;
          }
          &:hover {
            background-color: #f0fff0;
            svg {
              fill: @primary-color;
            }
          }
        }
      }
      .ant-menu-inline{
        position: absolute;
        top: 40px;
        border: none;
        padding-top: 12px;
        height: calc(100% - 40px);
        .ant-menu-item{
          height: 54px;
          // line-height: 40px;
          display: flex;
          flex-wrap: wrap;
          justify-content: center;
          // align-items: center;
          padding: 0 !important;
          background: #fff;
          margin-top: 0;
          .iconContent {
            height: 28px;
          }
          span {
            line-height: 0;
            font-size: 12px;
            color: #666666;
            padding-bottom: 4px;
          }
          .anticon{
            font-size: 30px;
          }
          svg {
            padding: 0;
            outline: none;
          }
          &:hover {
            svg {
              background: rgba(0, 0, 0, 0.06);
              border-radius: 4px;
              fill: #333;
            }
            span {
              color: #5B5B5B;
            }
          }
          &.ant-menu-item-selected {
            svg {
              background: #f0fff0;
              fill: @primary-color !important;
            }
            &::after {
              display: none;
            }
            span {
              color: @primary-color;
            }
          }
          &:not(:last-child) {
            margin-bottom: 8px;
          }
        }
      }
    }
   .menu{
      padding-left: 48px;
      .ant-drawer-body{
        padding: 0;
        height: calc(100% - 60px);
        overflow-x: hidden;
        overflow-y: auto;
      }
      .yee-side-menu-drawer-wrap {
        .operation-content {
          position: absolute;
          top: 0;
          padding: 0px 16px;
          text-align: right;
          left: 100px;
          right: 0;
          background: #fff;
          display: flex;
          justify-content: flex-end;
          align-items: center;
          height: 52px;
        }
      }
   }
   .footer-operter {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    .setting-wrap {
      width: 32px;
      height: 32px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .setting-active {
      background: rgba(82,191,99,0.06);
    }
  }
  }
  .layout-content{
    // width: calc(100vm-48px);
    width: 100%;
    flex: 1;
    height: 100%;
  }

  .has-editor-panel{
    width: calc(100% - 256px);
  }
  .loading-container {
    width: calc(100vw - 48px);
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
